[
    {
        "db_id": "hospital_1",
        "final_query": "SELECT name FROM department GROUP BY departmentID ORDER BY count(departmentID) DESC LIMIT 1;",
        "final_utterance": "Find the department with the most employees.",
        "interaction_utterance": [
            "What is the number of employees in each department?",
            "Which department has the most employees? Give me the department name."
        ],
        "interaction_query": [
            "SELECT count(departmentID) FROM department GROUP BY departmentID",
            "SELECT name FROM department GROUP BY departmentID ORDER BY count(departmentID) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT head FROM department GROUP BY departmentID ORDER BY count(departmentID) LIMIT 1;",
        "final_utterance": "Tell me the employee id of the head of the department with the least employees.",
        "interaction_utterance": [
            "How many employees does each department have?",
            "Which department has the least employees?",
            "Who is the head of this department? Find the employee id."
        ],
        "interaction_query": [
            "SELECT count(departmentID) FROM department GROUP BY departmentID",
            "SELECT * FROM department GROUP BY departmentID ORDER BY count(departmentID) LIMIT 1;",
            "SELECT head FROM department GROUP BY departmentID ORDER BY count(departmentID) LIMIT 1;"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT T2.name ,  T2.position FROM department AS T1 JOIN physician AS T2 ON T1.head  =  T2.EmployeeID GROUP BY departmentID ORDER BY count(departmentID) LIMIT 1;",
        "final_utterance": "Find the name and position of the head of the department with the least employees.",
        "interaction_utterance": [
            "How many employees does each department have?",
            "Which department has the smallest number of employees?",
            "Tell me the name and position of the head of this department."
        ],
        "interaction_query": [
            "SELECT count(departmentID) FROM department GROUP BY departmentID",
            "SELECT * FROM department GROUP BY departmentID ORDER BY count(departmentID) LIMIT 1;",
            "SELECT T2.name ,  T2.position FROM department AS T1 JOIN physician AS T2 ON T1.head  =  T2.EmployeeID GROUP BY departmentID ORDER BY count(departmentID) LIMIT 1;"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT name FROM appointment AS T1 JOIN patient AS T2 ON T1.patient  =  T2.ssn",
        "final_utterance": "List the names of patients who have made appointments.",
        "interaction_utterance": [
            "List the patient id for all the appointments.",
            "What are the names of patients who have made appointments?"
        ],
        "interaction_query": [
            "SELECT patient FROM appointment",
            "SELECT name FROM appointment AS T1 JOIN patient AS T2 ON T1.patient  =  T2.ssn"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT name ,  phone FROM appointment AS T1 JOIN patient AS T2 ON T1.patient  =  T2.ssn GROUP BY T1.patient HAVING count(*)  >  1",
        "final_utterance": "Which patients made more than one appointment? Tell me the name and phone number of these patients.",
        "interaction_utterance": [
            "Find the number of appointments each patient has made.",
            "Which patients made more than one appointment?",
            "Tell me the name and phone number of these patients"
        ],
        "interaction_query": [
            "SELECT count(*) FROM appointment GROUP BY patient",
            "SELECT * FROM appointment GROUP BY patient HAVING count(*)  >  1",
            "SELECT name ,  phone FROM appointment AS T1 JOIN patient AS T2 ON T1.patient  =  T2.ssn GROUP BY T1.patient HAVING count(*)  >  1"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT appointmentid FROM appointment ORDER BY START DESC LIMIT 1",
        "final_utterance": "What is the id of the appointment that started most recently?",
        "interaction_utterance": [
            "What is the start date of each appointment?",
            "Sort the appointments by the starting date in descending order.",
            "Which appointment has the most recent starting date? Give me the appointment id."
        ],
        "interaction_query": [
            "SELECT START FROM appointment",
            "SELECT * FROM appointment ORDER BY START DESC",
            "SELECT appointmentid FROM appointment ORDER BY START DESC LIMIT 1"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT T2.name FROM appointment AS T1 JOIN physician AS T2 ON T1.Physician  =  T2.EmployeeID",
        "final_utterance": "What are the names of all the physicians who took appointments.",
        "interaction_utterance": [
            "What are the ids of the physicians who took appointments?",
            "Also tell me their names."
        ],
        "interaction_query": [
            "SELECT Physician FROM appointment",
            "SELECT T2.name FROM appointment AS T1 JOIN physician AS T2 ON T1.Physician  =  T2.EmployeeID"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT name FROM physician EXCEPT SELECT T2.name FROM appointment AS T1 JOIN physician AS T2 ON T1.Physician  =  T2.EmployeeID",
        "final_utterance": "Which physicians have never taken any appointment? Find their names.",
        "interaction_utterance": [
            "List all the physician names.",
            "Find the names of the physicians who took appointments.",
            "Then what are the names of physicians who never took any appointment?"
        ],
        "interaction_query": [
            "SELECT name FROM physician",
            "SELECT T2.name FROM appointment AS T1 JOIN physician AS T2 ON T1.Physician  =  T2.EmployeeID",
            "SELECT name FROM physician EXCEPT SELECT T2.name FROM appointment AS T1 JOIN physician AS T2 ON T1.Physician  =  T2.EmployeeID"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT T1.name ,  T3.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID  =  T2.physician JOIN department AS T3 ON T2.department  =  T3.DepartmentID WHERE T2.PrimaryAffiliation  =  1",
        "final_utterance": "What are the name and primarily affiliated department name of each physician?",
        "interaction_utterance": [
            "List the name of each physician.",
            "Find the name of the primarily affiliated department for each physician.",
            "Return both information together."
        ],
        "interaction_query": [
            "SELECT name FROM physician",
            "SELECT T3.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID  =  T2.physician JOIN department AS T3 ON T2.department  =  T3.DepartmentID WHERE T2.PrimaryAffiliation  =  1",
            "SELECT T1.name ,  T3.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID  =  T2.physician JOIN department AS T3 ON T2.department  =  T3.DepartmentID WHERE T2.PrimaryAffiliation  =  1"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT T1.name FROM patient AS T1 JOIN appointment AS T2 WHERE T1.ssn = T2.patient ORDER BY T2.start DESC LIMIT 1",
        "final_utterance": "Find the name of the patient who made the appointment with the most recent start date.",
        "interaction_utterance": [
            "Sort all the appointments by the start date from recent to past.",
            "Which appointment has the most recent start date?",
            "Find the name of the patient who made that appointment."
        ],
        "interaction_query": [
            "SELECT * FROM appointment ORDER BY START DESC",
            "SELECT * FROM appointment ORDER BY START DESC LIMIT 1",
            "SELECT T1.name FROM patient AS T1 JOIN appointment AS T2 WHERE T1.ssn = T2.patient ORDER BY T2.start DESC LIMIT 1"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT count(patient) FROM stay WHERE room  =  112",
        "final_utterance": "Count the number of patients who stayed in room 112.",
        "interaction_utterance": [
            "Find all the stays in room 112.",
            "How many patients stayed in room 112?"
        ],
        "interaction_query": [
            "SELECT * FROM stay WHERE room  =  112",
            "SELECT count(patient) FROM stay WHERE room  =  112"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT count(T1.SSN) FROM patient AS T1 JOIN prescribes AS T2 ON T1.SSN  =  T2.patient JOIN physician AS T3 ON T2.physician  =  T3.employeeid WHERE T3.name = \"John Dorian\"",
        "final_utterance": "Find the number of patients' prescriptions physician John Dorian made.",
        "interaction_utterance": [
            "What is the employee id of physician John Dorian?",
            "Find all the prescriptions made by him.",
            "How many patients' prescriptions are made by him?"
        ],
        "interaction_query": [
            "SELECT employeeid FROM physician WHERE name = \"John Dorian\"",
            "SELECT * FROM prescribes AS T1 JOIN physician AS T2 ON T1.physician  =  T2.employeeid WHERE T2.name = \"John Dorian\"",
            "SELECT count(T1.SSN) FROM patient AS T1 JOIN prescribes AS T2 ON T1.SSN  =  T2.patient JOIN physician AS T3 ON T2.physician  =  T3.employeeid WHERE T3.name = \"John Dorian\""
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT T4.name FROM stay AS T1 JOIN patient AS T2 ON T1.Patient  =  T2.SSN JOIN Prescribes AS T3 ON T3.Patient  =  T2.SSN JOIN Medication AS T4 ON T3.Medication  =  T4.Code WHERE room  =  111",
        "final_utterance": "What is the name of the medication used for the patient staying in room 111?",
        "interaction_utterance": [
            "Which patient is staying in room 111? Tell me the patient id.",
            "What is the id of the medication used for this patient?",
            "What is the name of the medication?"
        ],
        "interaction_query": [
            "SELECT patient FROM stay WHERE room  =  111",
            "SELECT T3.Medication FROM stay AS T1 JOIN patient AS T2 ON T1.Patient  =  T2.SSN JOIN Prescribes AS T3 ON T3.Patient  =  T2.SSN WHERE room  =  111",
            "SELECT T4.name FROM stay AS T1 JOIN patient AS T2 ON T1.Patient  =  T2.SSN JOIN Prescribes AS T3 ON T3.Patient  =  T2.SSN JOIN Medication AS T4 ON T3.Medication  =  T4.Code WHERE room  =  111"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT patient FROM stay WHERE room  =  111 ORDER BY staystart DESC LIMIT 1",
        "final_utterance": "What is the id of the patient who stayed in room 111 most recently?",
        "interaction_utterance": [
            "Find the patients who stayed in room 111.",
            "Sort the patients by the stay start date, from recent to past.",
            "Which patient stayed there most recently?"
        ],
        "interaction_query": [
            "SELECT patient FROM stay WHERE room  =  111",
            "SELECT patient FROM stay WHERE room  =  111 ORDER BY staystart DESC",
            "SELECT patient FROM stay WHERE room  =  111 ORDER BY staystart DESC LIMIT 1"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT T1.name FROM nurse AS T1 JOIN appointment AS T2 ON T1.employeeid  =  T2.prepnurse GROUP BY T1.employeeid ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the name of the nurse who has the largest number of appointments.",
        "interaction_utterance": [
            "How many appointments does each nurse have?",
            "Find the nurse with the most appointments. What is the nurse's name?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM nurse AS T1 JOIN appointment AS T2 ON T1.employeeid  =  T2.prepnurse GROUP BY T1.employeeid",
            "SELECT T1.name FROM nurse AS T1 JOIN appointment AS T2 ON T1.employeeid  =  T2.prepnurse GROUP BY T1.employeeid ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT T1.name ,  count(*) FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid  =  T2.PCP GROUP BY T1.employeeid",
        "final_utterance": "Return the name of each physician and the number of patients he or she treats.",
        "interaction_utterance": [
            "Group the patients by the physician treating them.",
            "How many patients is each physician taking care of?",
            "For each physician, return his or her name and the number of patients."
        ],
        "interaction_query": [
            "SELECT * FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid  =  T2.PCP GROUP BY T1.employeeid",
            "SELECT count(*) FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid  =  T2.PCP GROUP BY T1.employeeid",
            "SELECT T1.name ,  count(*) FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid  =  T2.PCP GROUP BY T1.employeeid"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT T1.name FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid  =  T2.PCP GROUP BY T1.employeeid HAVING count(*)  >  1",
        "final_utterance": "Which physicians are in charge of more than one patient? Give me their names.",
        "interaction_utterance": [
            "How many patients is each physician in change of?",
            "Which physicians are in charge of more than one?",
            "What are the name of these physicians?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid  =  T2.PCP GROUP BY T1.employeeid",
            "SELECT * FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid  =  T2.PCP GROUP BY T1.employeeid HAVING count(*)  >  1",
            "SELECT T1.name FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid  =  T2.PCP GROUP BY T1.employeeid HAVING count(*)  >  1"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT count(*) ,  T1.blockfloor FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor  =  T2.blockfloor AND T1.blockcode  =  T2.blockcode GROUP BY T1.blockfloor",
        "final_utterance": "How many rooms does each block floor have?",
        "interaction_utterance": [
            "What is the block floor each room is located on?",
            "How many rooms does each block floor have?"
        ],
        "interaction_query": [
            "SELECT T1.blockfloor FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor  =  T2.blockfloor AND T1.blockcode  =  T2.blockcode",
            "SELECT count(*) ,  T1.blockfloor FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor  =  T2.blockfloor AND T1.blockcode  =  T2.blockcode GROUP BY T1.blockfloor"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT count(*) ,  T1.blockcode FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor  =  T2.blockfloor AND T1.blockcode  =  T2.blockcode GROUP BY T1.blockcode",
        "final_utterance": "How many rooms are located for each block code?",
        "interaction_utterance": [
            "What is each room's block code?",
            "How many rooms does each block code have?"
        ],
        "interaction_query": [
            "SELECT T1.blockcode FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor  =  T2.blockfloor AND T1.blockcode  =  T2.blockcode",
            "SELECT count(*) ,  T1.blockcode FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor  =  T2.blockfloor AND T1.blockcode  =  T2.blockcode GROUP BY T1.blockcode"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT DISTINCT blockcode FROM room WHERE unavailable  =  0",
        "final_utterance": "Tell me the distinct block codes where some rooms are available.",
        "interaction_utterance": [
            "List all the rooms that are available.",
            "What are the distinct block codes that have rooms available?"
        ],
        "interaction_query": [
            "SELECT * FROM room WHERE unavailable  =  0",
            "SELECT DISTINCT blockcode FROM room WHERE unavailable  =  0"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT count(DISTINCT roomtype) FROM room",
        "final_utterance": "Find the number of distinct room types available.",
        "interaction_utterance": [
            "List all the room types.",
            "How many distinct room types are there?"
        ],
        "interaction_query": [
            "SELECT roomtype FROM room",
            "SELECT count(DISTINCT roomtype) FROM room"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT DISTINCT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.name  =  \"Thesisin\"",
        "final_utterance": "List the names of all the physicians who prescribe Thesisin as medication.",
        "interaction_utterance": [
            "What is the code of the medication called Thesisin?",
            "Which physicians prescribe this medication? Tell me the distinct ids.",
            "What are the names of the physicians?"
        ],
        "interaction_query": [
            "SELECT code FROM medication WHERE name  =  \"Thesisin\"",
            "SELECT DISTINCT  T1.physician FROM prescribes AS T1 JOIN medication AS T2 ON T2.code = T1.medication WHERE T2.name  =  \"Thesisin\"",
            "SELECT DISTINCT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.name  =  \"Thesisin\""
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT DISTINCT T1.name ,  T1.position FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.Brand  =  \"X\"",
        "final_utterance": "Which physicians prescribe a medication of brand X? Tell me the name and position of those physicians.",
        "interaction_utterance": [
            "Which medication has brand X?",
            "Find the physicians who prescribe this medication.",
            "What are their name and position?"
        ],
        "interaction_query": [
            "SELECT * FROM medication WHERE Brand  =  \"X\"",
            "SELECT DISTINCT T1.physician FROM prescribes AS T1 JOIN medication AS T2 ON T2.code = T1.medication WHERE T2.Brand  =  \"X\"",
            "SELECT DISTINCT T1.name ,  T1.position FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.Brand  =  \"X\""
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT count(*) ,  T1.name FROM medication AS T1 JOIN prescribes AS T2 ON T1.code = T2.medication GROUP BY T1.brand",
        "final_utterance": "How many medications are prescribed for each brand?",
        "interaction_utterance": [
            "Group all the medications by the brand.",
            "How many medications are prescribed for each brand?"
        ],
        "interaction_query": [
            "SELECT * FROM medication GROUP BY brand",
            "SELECT count(*) ,  T1.name FROM medication AS T1 JOIN prescribes AS T2 ON T1.code = T2.medication GROUP BY T1.brand"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT name FROM physician WHERE POSITION LIKE '%senior%'",
        "final_utterance": "What are the names of the physicians who have 'senior' in their titles.",
        "interaction_utterance": [
            "Find the position title of each physician.",
            "Which physicians have 'senior' in their titles?",
            "Give me their names"
        ],
        "interaction_query": [
            "SELECT POSITION FROM physician",
            "SELECT * FROM physician WHERE POSITION LIKE '%senior%'",
            "SELECT name FROM physician WHERE POSITION LIKE '%senior%'"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT patient FROM undergoes ORDER BY dateundergoes LIMIT 1",
        "final_utterance": "Which patient is undergoing the most recent treatment?",
        "interaction_utterance": [
            "List the dates of treatment undergoing.",
            "What is the most recent undergoing treatment?",
            "What is the patient of this treatment?"
        ],
        "interaction_query": [
            "SELECT dateundergoes FROM undergoes",
            "SELECT * FROM undergoes ORDER BY dateundergoes LIMIT 1",
            "SELECT patient FROM undergoes ORDER BY dateundergoes LIMIT 1"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN patient AS T2 ON T1.patient = T2.SSN JOIN stay AS T3 ON T1.Stay  =  T3.StayID WHERE T3.room  =  111",
        "final_utterance": "What are the names of patients who are staying in room 111 and have an undergoing treatment?",
        "interaction_utterance": [
            "List all the patients who have an undergoing treatment.",
            "Among them, who are staying in room 111?",
            "What are their names?"
        ],
        "interaction_query": [
            "SELECT DISTINCT patient FROM undergoes AS T1 JOIN patient AS T2 ON T1.patient = T2.SSN",
            "SELECT * FROM undergoes AS T1 JOIN patient AS T2 ON T1.patient = T2.SSN JOIN stay AS T3 ON T1.Stay  =  T3.StayID WHERE T3.room  =  111",
            "SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN patient AS T2 ON T1.patient = T2.SSN JOIN stay AS T3 ON T1.Stay  =  T3.StayID WHERE T3.room  =  111"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT DISTINCT name FROM nurse ORDER BY name",
        "final_utterance": "What is the alphabetically ordered list of all the distinct names of nurses?",
        "interaction_utterance": [
            "List the distinct names of all the nurses",
            "Order them in the alphabetical order."
        ],
        "interaction_query": [
            "SELECT DISTINCT name FROM nurse",
            "SELECT DISTINCT name FROM nurse ORDER BY name"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN nurse AS T2 ON T1.AssistingNurse  =  T2.EmployeeID",
        "final_utterance": "Which nurses are in charge of patients undergoing treatments?",
        "interaction_utterance": [
            "Find the nurses in charge of undergoing treatments.",
            "What are the distinct names of the nurses?"
        ],
        "interaction_query": [
            "SELECT AssistingNurse FROM undergoes",
            "SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN nurse AS T2 ON T1.AssistingNurse  =  T2.EmployeeID"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT DISTINCT name FROM medication ORDER BY name",
        "final_utterance": "What is the alphabetically ordered list of all distinct medications?",
        "interaction_utterance": [
            "What are the distinct names of medications?",
            "Sort them in an alphabetical order"
        ],
        "interaction_query": [
            "SELECT DISTINCT name FROM medication",
            "SELECT DISTINCT name FROM medication ORDER BY name"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician ORDER BY T2.dose DESC LIMIT 1",
        "final_utterance": "Find the physician who prescribed the highest dose. What is his or her name?",
        "interaction_utterance": [
            "What is the list of the dose each physician prescribes?",
            "Sort in the descending order of dose.",
            "What are the names of the physician who prescribed the highest dose?"
        ],
        "interaction_query": [
            "SELECT * FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician",
            "SELECT * FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician ORDER BY T2.dose DESC",
            "SELECT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician ORDER BY T2.dose DESC LIMIT 1"
        ]
    },
    {
        "db_id": "hospital_1",
        "final_query": "SELECT DISTINCT T2.name FROM affiliated_with AS T1 JOIN department AS T2 ON T1.department = T2.departmentid WHERE PrimaryAffiliation  =  1",
        "final_utterance": "What are the names of departments that have primarily affiliated physicians.",
        "interaction_utterance": [
            "Which departments have some physicians primarily affiliated.",
            "What are the distinct names of the departments?"
        ],
        "interaction_query": [
            "SELECT * FROM affiliated_with WHERE PrimaryAffiliation  =  1",
            "SELECT DISTINCT T2.name FROM affiliated_with AS T1 JOIN department AS T2 ON T1.department = T2.departmentid WHERE PrimaryAffiliation  =  1"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT count(*) FROM Video_games",
        "final_utterance": "How many video games do you have?",
        "interaction_utterance": [
            "What information do you have on video games?",
            "How many of them are there?"
        ],
        "interaction_query": [
            "SELECT * FROM Video_games",
            "SELECT count(*) FROM Video_games"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT count(DISTINCT gtype) FROM Video_games",
        "final_utterance": "What is the count of different game types?",
        "interaction_utterance": [
            "What are the game types for each video game?",
            "Give me a list of the different game types?",
            "How long is that list?"
        ],
        "interaction_query": [
            "SELECT gtype FROM Video_games",
            "SELECT DISTINCT gtype FROM Video_games",
            "SELECT count(DISTINCT gtype) FROM Video_games"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT DISTINCT gtype FROM Video_games",
        "final_utterance": "What are the different types of video games?",
        "interaction_utterance": [
            "What is the type of each game?",
            "What is a list of the different types?"
        ],
        "interaction_query": [
            "SELECT gtype FROM Video_games",
            "SELECT DISTINCT gtype FROM Video_games"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT gname ,  gtype FROM Video_games ORDER BY gname",
        "final_utterance": "What are the names of all the video games and their types in alphabetical order?",
        "interaction_utterance": [
            "What is the type of each video game?",
            "Also, what are their names?",
            "Order the above information by the game name alphabetically."
        ],
        "interaction_query": [
            "SELECT gtype FROM Video_games",
            "SELECT gname ,  gtype FROM Video_games",
            "SELECT gname ,  gtype FROM Video_games ORDER BY gname"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT gname FROM Video_games WHERE gtype  =  \"Collectible card game\"",
        "final_utterance": "What are the names of all video games that are collectible cards?",
        "interaction_utterance": [
            "What information is there on video games?",
            "What information do you have on video games that are of type collectible card game?",
            "What are their names?"
        ],
        "interaction_query": [
            "SELECT * FROM Video_games",
            "SELECT * FROM Video_games WHERE gtype  =  \"collectible card game\"",
            "SELECT gname FROM Video_games WHERE gtype  =  \"collectible card game\""
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT gtype FROM Video_games WHERE gname  =  \"Call of Destiny\"",
        "final_utterance": "What type of game is Call of Destiny?",
        "interaction_utterance": [
            "What is the name of each game?",
            "What information do you have on the game called Call of Destiny?",
            "What type is it?"
        ],
        "interaction_query": [
            "SELECT gname FROM Video_games",
            "SELECT * FROM Video_games WHERE gname  =  \"Call of Destiny\"",
            "SELECT gtype FROM Video_games WHERE gname  =  \"Call of Destiny\""
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT count(*) FROM Video_games WHERE gtype  =  \"Massively multiplayer online game\"",
        "final_utterance": "Count the number of video games with Massively multiplayer online game type .",
        "interaction_utterance": [],
        "interaction_query": []
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT gtype ,  count(*) FROM Video_games GROUP BY gtype",
        "final_utterance": "What are the types of video games and how many are in each type?",
        "interaction_utterance": [
            "What are the different types of video games?",
            "For each type, what information is there on the games?",
            "How many games are there for each type?"
        ],
        "interaction_query": [
            "SELECT gtype FROM Video_games",
            "SELECT * FROM Video_games GROUP BY gtype",
            "SELECT gtype ,  count(*) FROM Video_games GROUP BY gtype"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What type has the most games?",
        "interaction_utterance": [
            "What are the game types?",
            "Order the list of game types by number of games in descending order.",
            "Which type has the most?"
        ],
        "interaction_query": [
            "SELECT gtype FROM Video_games",
            "SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) DESC",
            "SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) LIMIT 1",
        "final_utterance": "What is the type with the fewest games?",
        "interaction_utterance": [
            "What are the different game types?",
            "Order the list of game types by number of games in ascending order.",
            "Which type has the most?"
        ],
        "interaction_query": [
            "SELECT gtype FROM Video_games",
            "SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*)",
            "SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) LIMIT 1"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT StuID FROM Student WHERE city_code  =  \"CHI\"",
        "final_utterance": "What are the ids of all students who live in CHI?",
        "interaction_utterance": [
            "What are the student ids?",
            "Which of those are for students who live in the city with the code CHI?"
        ],
        "interaction_query": [
            "SELECT StuID FROM Student",
            "SELECT StuID FROM Student WHERE city_code  =  \"CHI\""
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT StuID FROM Student WHERE Advisor  =  1121",
        "final_utterance": "What are the ids of all students who have advisor number 1121?",
        "interaction_utterance": [
            "What information do you have on the students?",
            "What are their ids?",
            "Which of those are for students who have advisor 1121?"
        ],
        "interaction_query": [
            "SELECT * FROM Student",
            "SELECT StuID FROM Student",
            "SELECT StuID FROM Student WHERE Advisor  =  1121"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT Fname FROM Student WHERE Major  =  600",
        "final_utterance": "What are the first names for all students who are from the major numbered 600?",
        "interaction_utterance": [
            "List all student information",
            "Which of that information is for students in the major numbered 600?",
            "What are their first names?"
        ],
        "interaction_query": [
            "SELECT * FROM Student",
            "SELECT * FROM Student WHERE major  =  600",
            "SELECT Fname FROM Student WHERE major  =  600"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT major ,  avg(age) ,  min(age) ,  max(age) FROM Student GROUP BY major",
        "final_utterance": "What are the average, minimum, and max ages for each of the different majors?",
        "interaction_utterance": [
            "What are the different majors?",
            "For each of those, what is the average age?",
            "Also, what is the minimum and maximum for each of those?"
        ],
        "interaction_query": [
            "SELECT major FROM Student",
            "SELECT  avg(age) FROM Student GROUP BY major",
            "SELECT major ,  avg(age) ,  min(age) ,  max(age) FROM Student GROUP BY major"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT advisor FROM Student GROUP BY advisor HAVING count(*)  >=  2",
        "final_utterance": "What are the advisors",
        "interaction_utterance": [
            "What information do you have on each advisor?",
            "What is the name for each advisor?",
            "Which of those are for advisors who have more than 1 students?"
        ],
        "interaction_query": [
            "SELECT * FROM Student GROUP BY advisor",
            "SELECT advisor FROM STUDENT GROUP BY advisor",
            "SELECT advisor FROM STUDENT GROUP BY advisor HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT count(DISTINCT sportname) FROM Sportsinfo",
        "final_utterance": "How many different types of sports do we offer?",
        "interaction_utterance": [
            "What sport does every student play?",
            "What is a list of the different types of sports?",
            "How long is that list?"
        ],
        "interaction_query": [
            "SELECT sportname FROM Sportsinfo",
            "SELECT DISTINCT sportname FROM Sportsinfo",
            "SELECT count(DISTINCT sportname) FROM Sportsinfo"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT count(DISTINCT StuID) FROM Sportsinfo",
        "final_utterance": "How many different students are involved in sports?",
        "interaction_utterance": [
            "What is the student id of every student involved in sports?",
            "Delete any repeats.",
            "How many different student ids are there?"
        ],
        "interaction_query": [
            "SELECT StuID FROM Sportsinfo",
            "SELECT DISTINCT StuID FROM Sportsinfo",
            "SELECT count(DISTINCT StuID) FROM Sportsinfo"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT StuID FROM Sportsinfo WHERE onscholarship  =  'Y'",
        "final_utterance": "What are the ids for all sporty students who are on scholarship?",
        "interaction_utterance": [
            "What information is there on all sport players?",
            "Which of those are on scholarship?",
            "What are their student ids?"
        ],
        "interaction_query": [
            "SELECT * FROM Sportsinfo",
            "SELECT * FROM Sportsinfo WHERE onscholarship  =  'Y'",
            "SELECT StuID FROM Sportsinfo WHERE onscholarship  =  'Y'"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID WHERE T1.onscholarship  =  'Y'",
        "final_utterance": "What are the last names for all scholarship students?",
        "interaction_utterance": [
            "What information is there on all students who play sports?",
            "Which subset of this information is for students on scholarships?",
            "What are their last names?"
        ],
        "interaction_query": [
            "SELECT * FROM Sportsinfo",
            "SELECT * FROM Sportsinfo WHERE onscholarship  =  'Y'",
            "SELECT T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID WHERE T1.onscholarship  =  'Y'"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT sum(gamesplayed) FROM Sportsinfo",
        "final_utterance": "What is the total number of games played?",
        "interaction_utterance": [
            "What sports information do you have?",
            "How many games did each student play?",
            "What is the total number played?"
        ],
        "interaction_query": [
            "SELECT * FROM Sportsinfo",
            "SELECT gamesplayed FROM Sportsinfo",
            "SELECT sum(gamesplayed) FROM Sportsinfo"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT sum(gamesplayed) FROM Sportsinfo WHERE sportname  =  \"Football\" AND onscholarship  =  'Y'",
        "final_utterance": "What is the total number of all football games played by scholarship students?",
        "interaction_utterance": [
            "How many games has each student played?",
            "Which of those refer to football games played by scholarship students?",
            "What is the total number of those games played?"
        ],
        "interaction_query": [
            "SELECT gamesplayed FROM Sportsinfo",
            "SELECT gamesplayed FROM Sportsinfo WHERE sportname  =  \"Football\" AND onscholarship  =  'Y'",
            "SELECT sum(gamesplayed) FROM Sportsinfo WHERE sportname  =  \"Football\" AND onscholarship  =  'Y'"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT sportname ,  count(*) FROM Sportsinfo GROUP BY sportname",
        "final_utterance": "How many students play each sport?",
        "interaction_utterance": [
            "What information do you have on each sport?",
            "How many students play each one?",
            "Also, what are the names of each sport?"
        ],
        "interaction_query": [
            "SELECT * FROM Sportsinfo GROUP BY sportname",
            "SELECT count(*) FROM Sportsinfo GROUP BY sportname",
            "SELECT sportname ,  count(*) FROM Sportsinfo GROUP BY sportname"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT StuID ,  count(*) ,  sum(gamesplayed) FROM Sportsinfo GROUP BY StuID",
        "final_utterance": "What are the ids of all students along with how many sports and games did they play?",
        "interaction_utterance": [
            "How many sports does each student play?",
            "Also, how many games has each student played?",
            "Also, what are their different student ids?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM Sportsinfo GROUP BY StuID",
            "SELECT count(*) ,  sum(gamesplayed) FROM Sportsinfo GROUP BY StuID",
            "SELECT StuID ,  count(*) ,  sum(gamesplayed) FROM Sportsinfo GROUP BY StuID"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT StuID FROM Sportsinfo GROUP BY StuID HAVING sum(hoursperweek)  >  10",
        "final_utterance": "What are the student IDs for everybody who worked for more than 10 hours per week on all sports?",
        "interaction_utterance": [
            "What are the student IDs for every student?",
            "Which of those are for students who played more than 10 hours of a week for all sports?"
        ],
        "interaction_query": [
            "SELECT StuID FROM Sportsinfo GROUP BY StuID",
            "SELECT StuID FROM Sportsinfo GROUP BY StuID HAVING sum(hoursperweek)  >  10"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT T2.Fname ,  T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the first and last name of the student who played the most sports?",
        "interaction_utterance": [
            "For each student, how many sports do they play?",
            "Order the information in descending order by number of sports played.",
            "What is the first and last name of student who played the most?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM Sportsinfo GROUP BY StuID",
            "SELECT count(*) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID GROUP BY T1.StuID",
            "SELECT T2.Fname ,  T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT sportname FROM Sportsinfo WHERE onscholarship  =  'Y' GROUP BY sportname ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the sport with the most scholarship students?",
        "interaction_utterance": [
            "What is the name of every sport?",
            "Of those, which had students on scholarship?",
            "Which sport has the most of those students?"
        ],
        "interaction_query": [
            "SELECT sportname FROM Sportsinfo GROUP BY sportname",
            "SELECT sportname FROM Sportsinfo WHERE onscholarship  =  'Y' GROUP BY sportname",
            "SELECT sportname FROM Sportsinfo WHERE onscholarship  =  'Y' GROUP BY sportname ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Sportsinfo",
        "final_utterance": "What are the ids of all students who don't play sports?",
        "interaction_utterance": [
            "What are the student ids of all those who play sports?",
            "What are the ids of all students?",
            "Which ids are in the latter list but not the former?"
        ],
        "interaction_query": [
            "SELECT StuID FROM Sportsinfo",
            "SELECT StuID FROM Student",
            "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Sportsinfo"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT StuID FROM Student WHERE major  =  600 INTERSECT SELECT StuID FROM Sportsinfo WHERE onscholarship  =  'Y'",
        "final_utterance": "What are the student ids for those on scholarship in major number 600?",
        "interaction_utterance": [
            "What are the ids of all students who are in major 600?",
            "What are the student ids for all those on scholarship?",
            "What ids are in both categories?"
        ],
        "interaction_query": [
            "SELECT StuID FROM Student WHERE major  =  600",
            "SELECT StuID FROM Sportsinfo WHERE onscholarship  =  'Y'",
            "SELECT StuID FROM Student WHERE major  =  600 INTERSECT SELECT StuID FROM Sportsinfo WHERE onscholarship  =  'Y'"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT StuID FROM Student WHERE sex  =  'F' INTERSECT SELECT StuID FROM Sportsinfo WHERE sportname  =  \"Football\"",
        "final_utterance": "What are the ids of all female students who play football?",
        "interaction_utterance": [
            "What are the ids of all female students?",
            "What are the student ids of all those who play football?",
            "What ids are for both?"
        ],
        "interaction_query": [
            "SELECT StuID FROM Student WHERE sex  =  'F'",
            "SELECT StuID FROM Sportsinfo WHERE sportname  =  \"Football\"",
            "SELECT StuID FROM Student WHERE sex  =  'F' INTERSECT SELECT StuID FROM Sportsinfo WHERE sportname  =  \"Football\""
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT StuID FROM Student WHERE sex  =  'M' EXCEPT SELECT StuID FROM Sportsinfo WHERE sportname  =  \"Football\"",
        "final_utterance": "What are the ids of all male students who do not play football?",
        "interaction_utterance": [
            "What are the ids of all the students?",
            "What are the ids of all those who play football?",
            "What are the ids of those who don't play football?"
        ],
        "interaction_query": [
            "SELECT StuID FROM Student WHERE sex  =  'M'",
            "SELECT StuID FROM Sportsinfo WHERE sportname  =  \"Football\"",
            "SELECT StuID FROM Student WHERE sex  =  'M' EXCEPT SELECT StuID FROM Sportsinfo WHERE sportname  =  \"Football\""
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT sum(hoursperweek) ,  sum(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID WHERE T2.Fname  =  \"David\" AND T2.Lname  =  \"Shieber\"",
        "final_utterance": "What is the total number of hours per work and number of games played by David Shieber?",
        "interaction_utterance": [
            "What information on sports do you have for the student named David Shieber?",
            "How many hours per week does he practice in total?",
            "Also, how many games does he play overall?"
        ],
        "interaction_query": [
            "SELECT * FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID WHERE T2.Fname  =  \"David\" AND T2.Lname  =  \"Shieber\"",
            "SELECT sum(hoursperweek) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID WHERE T2.Fname  =  \"David\" AND T2.Lname  =  \"Shieber\"",
            "SELECT sum(hoursperweek) ,  sum(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID WHERE T2.Fname  =  \"David\" AND T2.Lname  =  \"Shieber\""
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT sum(hoursperweek) ,  sum(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID WHERE T2.age  <  20",
        "final_utterance": "What is the total number of hours per week and number of games played by students under 20?",
        "interaction_utterance": [
            "What sports information is there on students under the age of 20?",
            "How many hours per week do they practice in total?",
            "Also, how many games do they play overall?"
        ],
        "interaction_query": [
            "SELECT * FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID WHERE T2.age  <  20",
            "SELECT sum(hoursperweek) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID WHERE T2.age  <  20",
            "SELECT sum(hoursperweek) ,  sum(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID WHERE T2.age  <  20"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT count(DISTINCT StuID) FROM Plays_games",
        "final_utterance": "How many different students play games?",
        "interaction_utterance": [
            "What are the student ids of those who play games?",
            "Give me a list of unique ids.",
            "How long is it?"
        ],
        "interaction_query": [
            "SELECT StuID FROM Plays_games",
            "SELECT DISTINCT StuID FROM Plays_games",
            "SELECT count(DISTINCT StuID) FROM Plays_games"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Plays_games",
        "final_utterance": "What are the ids of all students who are not video game players?",
        "interaction_utterance": [
            "What are all the student ids?",
            "What are the student ids of all who play games?",
            "What are the ids of all those in the first category but not the second?"
        ],
        "interaction_query": [
            "SELECT StuID FROM Student",
            "SELECT StuID FROM Plays_games",
            "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Plays_games"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT StuID FROM Sportsinfo INTERSECT SELECT StuID FROM Plays_games",
        "final_utterance": "What are the ids of all students who played video games and sports?",
        "interaction_utterance": [
            "What are the ids of all students who play sports?",
            "What are the student ids of all those who play games?",
            "What are the ids of those who play sports but don't play games?"
        ],
        "interaction_query": [
            "SELECT StuID FROM Sportsinfo",
            "SELECT StuID FROM Plays_games",
            "SELECT StuID FROM Sportsinfo INTERSECT SELECT StuID FROM Plays_games"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT gameid ,  sum(hours_played) FROM Plays_games GROUP BY gameid",
        "final_utterance": "What are ids and total number of hours played for each game?",
        "interaction_utterance": [
            "How many hours did each student play for each game?",
            "What is the toal number of hours played for each game?",
            "And what is the id of each game?"
        ],
        "interaction_query": [
            "SELECT hours_played FROM Plays_games GROUP BY gameid",
            "SELECT sum(hours_played) FROM Plays_games GROUP BY gameid",
            "SELECT gameid ,  sum(hours_played) FROM Plays_games GROUP BY gameid"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT Stuid ,  sum(hours_played) FROM Plays_games GROUP BY Stuid",
        "final_utterance": "What are the ids of all students and number of hours played?",
        "interaction_utterance": [
            "For each student id, how many hours did each student play?",
            "How much did they play in total?",
            "Also, what are their student ids?"
        ],
        "interaction_query": [
            "SELECT hours_played FROM Plays_games GROUP BY Stuid",
            "SELECT sum(hours_played) FROM Plays_games GROUP BY Stuid",
            "SELECT Stuid ,  sum(hours_played) FROM Plays_games GROUP BY Stuid"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid  =  T2.gameid GROUP BY T1.gameid ORDER BY sum(hours_played) DESC LIMIT 1",
        "final_utterance": "What is the name of the game that has been played the most?",
        "interaction_utterance": [
            "What is the name of each game from its id?",
            "Order the names by total hours played.",
            "which one is first?"
        ],
        "interaction_query": [
            "SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid  =  T2.gameid GROUP BY T1.gameid",
            "SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid  =  T2.gameid GROUP BY T1.gameid ORDER BY sum(hours_played) DESC",
            "SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid  =  T2.gameid GROUP BY T1.gameid ORDER BY sum(hours_played) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid  =  T2.gameid GROUP BY T1.gameid HAVING sum(hours_played)  >=  1000",
        "final_utterance": "What are the names of all the games that have been played for at least 1000 hours?",
        "interaction_utterance": [],
        "interaction_query": []
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT Gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid  =  T2.gameid JOIN Student AS T3 ON T3.Stuid  =  T1.Stuid WHERE T3.Lname  =  \"Smith\" AND T3.Fname  =  \"Linda\"",
        "final_utterance": "What are the names of all games played by Linda Smith?",
        "interaction_utterance": [],
        "interaction_query": []
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT T2.lname ,  T2.fname FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID WHERE T1.SportName  =  \"Football\" OR T1.SportName  =  \"Lacrosse\"",
        "final_utterance": "What is the first and last name of all students who play Football or Lacrosse?",
        "interaction_utterance": [
            "What are the ids of all students who played football or Lacrosse?",
            "What are the first names that correspond to those ids?",
            "Also, what are their last names?"
        ],
        "interaction_query": [
            "SELECT StuID FROM SportsInfo WHERE SportName  =  \"Football\" OR SportName  =  \"Lacrosse\"",
            "SELECT T2.fname FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID WHERE T1.SportName  =  \"Football\" OR T1.SportName  =  \"Lacrosse\"",
            "SELECT T2.lname ,  T2.fname FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID WHERE T1.SportName  =  \"Football\" OR T1.SportName  =  \"Lacrosse\""
        ]
    },
    {
        "db_id": "game_1",
        "final_query": "SELECT fname ,  age FROM Student WHERE StuID IN (SELECT StuID FROM Sportsinfo WHERE SportName  =  \"Football\" INTERSECT SELECT StuID FROM Sportsinfo WHERE SportName  =  \"Lacrosse\")",
        "final_utterance": "What are the first names and ages of all students who are playing both Football and Lacrosse?",
        "interaction_utterance": [
            "What are the student ids of all who played Football?",
            "Which of those ids are also marked as having played Lacrosse?",
            "What are the first names and ages that correspond to those student ids?"
        ],
        "interaction_query": [
            "SELECT StuID FROM Sportsinfo WHERE SportName  =  \"Football\"",
            "SELECT StuID FROM Sportsinfo WHERE SportName  =  \"Football\" INTERSECT SELECT StuID FROM Sportsinfo WHERE SportName  =  \"Lacrosse\"",
            "SELECT fname ,  age FROM Student WHERE StuID IN (SELECT StuID FROM Sportsinfo WHERE SportName  =  \"Football\" INTERSECT SELECT StuID FROM Sportsinfo WHERE SportName  =  \"Lacrosse\")"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT DISTINCT building FROM classroom WHERE capacity  >  50",
        "final_utterance": "What are the distinct buildings with capacities of greater than 50?",
        "interaction_utterance": [
            "What are the distinct classroom buildings?",
            "Of those, which have capacity of over 50?"
        ],
        "interaction_query": [
            "SELECT DISTINCT building FROM classroom",
            "SELECT DISTINCT building FROM classroom WHERE capacity  >  50"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT count(*) FROM classroom WHERE building ! =  'Lamberton'",
        "final_utterance": "How many classrooms are not in Lamberton?",
        "interaction_utterance": [
            "Which classrooms are not in Lamberton?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM classroom WHERE building ! =  'Lamberton'",
            "SELECT count(*) FROM classroom WHERE building ! =  'Lamberton'"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT dept_name ,  building FROM department WHERE budget  >  (SELECT avg(budget) FROM department)",
        "final_utterance": "Give the name and building of the departments with greater than average budget.",
        "interaction_utterance": [
            "What is the average department budget?",
            "Which departments have a budget higher than average?",
            "What are their names and buildings?"
        ],
        "interaction_query": [
            "SELECT avg(budget) FROM department",
            "SELECT * FROM department WHERE budget  >  (SELECT avg(budget) FROM department)",
            "SELECT dept_name ,  building FROM department WHERE budget  >  (SELECT avg(budget) FROM department)"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT building ,  room_number FROM classroom WHERE capacity BETWEEN 50 AND 100",
        "final_utterance": "What are the room numbers and corresponding buildings for classrooms which can seat between 50 to 100 students?",
        "interaction_utterance": [
            "Which classrooms have capacity between 50 and 100?",
            "What are their buildings and room numbers?"
        ],
        "interaction_query": [
            "SELECT * FROM classroom WHERE capacity BETWEEN 50 AND 100",
            "SELECT building ,  room_number FROM classroom WHERE capacity BETWEEN 50 AND 100"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT dept_name ,  building FROM department ORDER BY budget DESC LIMIT 1",
        "final_utterance": "What is the department name and corresponding building for the department with the greatest budget?",
        "interaction_utterance": [
            "Order the departments by budget in decreasing order.",
            "Which is has the highest budget?",
            "What is its name and building?"
        ],
        "interaction_query": [
            "SELECT * FROM department ORDER BY budget DESC",
            "SELECT * FROM department ORDER BY budget DESC LIMIT 1",
            "SELECT dept_name ,  building FROM department ORDER BY budget DESC LIMIT 1"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT name FROM student WHERE dept_name  =  'History' ORDER BY tot_cred DESC LIMIT 1",
        "final_utterance": "Give the name of the student in the History department with the most credits.",
        "interaction_utterance": [
            "What are the names of students in the History department?",
            "Which one has the most credits?"
        ],
        "interaction_query": [
            "SELECT name FROM student WHERE dept_name  =  'History'",
            "SELECT name FROM student WHERE dept_name  =  'History' ORDER BY tot_cred DESC LIMIT 1"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT count(*) FROM classroom WHERE building  =  'Lamberton'",
        "final_utterance": "Count the number of classrooms in Lamberton.",
        "interaction_utterance": [
            "What are all the classrooms in Lamberton?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM classroom WHERE building  =  'Lamberton'",
            "SELECT count(*) FROM classroom WHERE building  =  'Lamberton'"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT count(DISTINCT s_id) FROM advisor",
        "final_utterance": "Count the number of students who have advisors.",
        "interaction_utterance": [
            "What are the student ids of students with advisors?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT DISTINCT s_id FROM advisor",
            "SELECT count(DISTINCT s_id) FROM advisor"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT count(DISTINCT dept_name) FROM course",
        "final_utterance": "Count the number of departments which offer courses.",
        "interaction_utterance": [
            "What are all the department names of departments that offer courses?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT DISTINCT dept_name FROM course",
            "SELECT count(DISTINCT dept_name) FROM course"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT count(DISTINCT course_id) FROM course WHERE dept_name  =  'Physics'",
        "final_utterance": "Count the number of courses in the Physics department.",
        "interaction_utterance": [
            "What are all the courses in the Physics department?",
            "What are their course ids?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM course WHERE dept_name  =  'Physics'",
            "SELECT DISTINCT course_id FROM course WHERE dept_name  =  'Physics'",
            "SELECT count(DISTINCT course_id) FROM course WHERE dept_name  =  'Physics'"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT T1.title FROM course AS T1 JOIN prereq AS T2 ON T1.course_id  =  T2.course_id GROUP BY T2.course_id HAVING count(*)  =  2",
        "final_utterance": "What are the titles for courses with two prerequisites?",
        "interaction_utterance": [
            "Which courses have some prerequisite?",
            "Which ones have two prerequisites among them?",
            "What are their titles?"
        ],
        "interaction_query": [
            "SELECT * FROM course AS T1 JOIN prereq AS T2 ON T1.course_id  =  T2.course_id",
            "SELECT * FROM course AS T1 JOIN prereq AS T2 ON T1.course_id  =  T2.course_id GROUP BY T2.course_id HAVING count(*)  =  2",
            "SELECT T1.title FROM course AS T1 JOIN prereq AS T2 ON T1.course_id  =  T2.course_id GROUP BY T2.course_id HAVING count(*)  =  2"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT T1.title ,  T1.credits , T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id  =  T2.course_id GROUP BY T2.course_id HAVING count(*)  >  1",
        "final_utterance": "What is the title, credit value, and department name for courses with more than one prerequisite?",
        "interaction_utterance": [
            "Which courses have more than 1 prerequisite?",
            "What title, credit, and department name correspond to these?"
        ],
        "interaction_query": [
            "SELECT * FROM course AS T1 JOIN prereq AS T2 ON T1.course_id  =  T2.course_id GROUP BY T2.course_id HAVING count(*)  >  1",
            "SELECT T1.title ,  T1.credits , T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id  =  T2.course_id GROUP BY T2.course_id HAVING count(*)  >  1"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT count(*) FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)",
        "final_utterance": "Count the number of courses without prerequisites.",
        "interaction_utterance": [
            "What are the ids for courses that have some prerequisites?",
            "How many courses do not in the resulting list?"
        ],
        "interaction_query": [
            "SELECT course_id FROM prereq",
            "SELECT count(*) FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)",
        "final_utterance": "What are the titles of courses without prerequisites?",
        "interaction_utterance": [
            "What are the ids for prerequisites?",
            "Which courses do not have prerequisites?",
            "What are their titles?"
        ],
        "interaction_query": [
            "SELECT course_id FROM prereq",
            "SELECT * FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)",
            "SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT COUNT (DISTINCT id) FROM teaches",
        "final_utterance": "Count the number of distinct instructors who have taught a course.",
        "interaction_utterance": [
            "What are the ids of instructors who have taught a course?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT DISTINCT id FROM teaches",
            "SELECT COUNT (DISTINCT id) FROM teaches"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT sum(budget) FROM department WHERE dept_name  =  'Marketing' OR dept_name  =  'Finance'",
        "final_utterance": "What is the sum of budgets of the Marketing and Finance departments?",
        "interaction_utterance": [
            "What are the budgets of the Marketing department?",
            "How about that for the Finance department?",
            "What is their total budget?"
        ],
        "interaction_query": [
            "SELECT budget FROM department WHERE dept_name  =  'Marketing'",
            "SELECT budget FROM department WHERE dept_name  =  'Finance'",
            "SELECT sum(budget) FROM department WHERE dept_name  =  'Marketing' OR dept_name  =  'Finance'"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT dept_name FROM instructor WHERE name LIKE '%Soisalon%'",
        "final_utterance": "What is the name of the department with an instructure who has a name like 'Soisalon'?",
        "interaction_utterance": [
            "What is all the information about an instructor whose name contains 'Soisalon'?",
            "What is their department name?"
        ],
        "interaction_query": [
            "SELECT * FROM instructor WHERE name LIKE '%Soisalon%'",
            "SELECT dept_name FROM instructor WHERE name LIKE '%Soisalon%'"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT count(*) FROM classroom WHERE building  =  'Lamberton' AND capacity  <  50",
        "final_utterance": "Count the number of rooms in Lamberton with capacity lower than 50.",
        "interaction_utterance": [
            "How many rooms are there in Lamberton?",
            "Of those, how many have capacity less than 50?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM classroom WHERE building  =  'Lamberton'",
            "SELECT count(*) FROM classroom WHERE building  =  'Lamberton' AND capacity  <  50"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT dept_name ,  budget FROM department WHERE budget  >  (SELECT avg(budget) FROM department)",
        "final_utterance": "What are the names and budgets of departments with budgets greater than the average?",
        "interaction_utterance": [
            "What is the average department budget?",
            "Which departments have a budget higher than that?",
            "What are their names and budgets?"
        ],
        "interaction_query": [
            "SELECT avg(budget) FROM department",
            "SELECT * FROM department WHERE budget  >  (SELECT avg(budget) FROM department)",
            "SELECT dept_name ,  budget FROM department WHERE budget  >  (SELECT avg(budget) FROM department)"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT name FROM instructor WHERE dept_name  =  'Statistics' ORDER BY salary LIMIT 1",
        "final_utterance": "Give the name of the lowest earning instructor in the Statistics department.",
        "interaction_utterance": [
            "What are the names of the professors in the Statistics department?",
            "Which one earns the least?"
        ],
        "interaction_query": [
            "SELECT name FROM instructor WHERE dept_name  =  'Statistics'",
            "SELECT name FROM instructor WHERE dept_name  =  'Statistics' ORDER BY salary LIMIT 1"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT title FROM course WHERE dept_name  =  'Statistics' INTERSECT SELECT title FROM course WHERE dept_name  =  'Psychology'",
        "final_utterance": "What is the title of a course that is listed in both the Statistics and Psychology departments?",
        "interaction_utterance": [
            "What are the titles of Statistics courses?",
            "Of these, which are also listed as Psychology courses?"
        ],
        "interaction_query": [
            "SELECT title FROM course WHERE dept_name  =  'Statistics'",
            "SELECT title FROM course WHERE dept_name  =  'Statistics' INTERSECT SELECT title FROM course WHERE dept_name  =  'Psychology'"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT title FROM course WHERE dept_name  =  'Statistics' EXCEPT SELECT title FROM course WHERE dept_name  =  'Psychology'",
        "final_utterance": "What are the titles of courses that are in the Statistics department but not the Psychology department?",
        "interaction_utterance": [
            "What are the titles of Statistics courses?",
            "Of these, which are not provided by the Psychology department?"
        ],
        "interaction_query": [
            "SELECT title FROM course WHERE dept_name  =  'Statistics'",
            "SELECT title FROM course WHERE dept_name  =  'Statistics' EXCEPT SELECT title FROM course WHERE dept_name  =  'Psychology'"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT id FROM teaches WHERE semester  =  'Fall' AND YEAR  =  2009 EXCEPT SELECT id FROM teaches WHERE semester  =  'Spring' AND YEAR  =  2010",
        "final_utterance": "What are the ids of instructors who taught in the Fall of 2009 but not in the Spring of 2010?",
        "interaction_utterance": [
            "What are the ids of instructors who taught in the Fall of 2009?",
            "Of those, which did not teach in the Spring of 2010?"
        ],
        "interaction_query": [
            "SELECT id FROM teaches WHERE semester  =  'Fall' AND YEAR  =  2009",
            "SELECT id FROM teaches WHERE semester  =  'Fall' AND YEAR  =  2009 EXCEPT SELECT id FROM teaches WHERE semester  =  'Spring' AND YEAR  =  2010"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id  =  T2.id WHERE YEAR  =  2009 OR YEAR  =  2010",
        "final_utterance": "What are the names of the students who took classes in 2009 or 2010?",
        "interaction_utterance": [
            "What are the distinct names of all the students?",
            "Of these, which took classes in 2009 or 2010?"
        ],
        "interaction_query": [
            "SELECT DISTINCT name FROM student",
            "SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id  =  T2.id WHERE YEAR  =  2009 OR YEAR  =  2010"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT dept_name FROM course GROUP BY dept_name ORDER BY count(*) DESC LIMIT 3",
        "final_utterance": "What are the names of the 3 departments with the most courses?",
        "interaction_utterance": [
            "How many courses does each department have?",
            "Order their names from greatest to least.",
            "What are the top 3?"
        ],
        "interaction_query": [
            "SELECT dept_name ,  count(*) FROM course GROUP BY dept_name",
            "SELECT dept_name FROM course GROUP BY dept_name ORDER BY count(*) DESC",
            "SELECT dept_name FROM course GROUP BY dept_name ORDER BY count(*) DESC LIMIT 3"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT dept_name FROM course GROUP BY dept_name ORDER BY sum(credits) DESC LIMIT 1",
        "final_utterance": "What is the name of the department with the most credits?",
        "interaction_utterance": [
            "How many credits does each department offer?",
            "What is the name of the department which offers the most?"
        ],
        "interaction_query": [
            "SELECT dept_name ,  sum(credits) FROM course GROUP BY dept_name",
            "SELECT dept_name FROM course GROUP BY dept_name ORDER BY sum(credits) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT title FROM course ORDER BY title ,  credits",
        "final_utterance": "Given the titles of all courses, in order of titles and credits.",
        "interaction_utterance": [
            "What are the titles of all courses?",
            "Order them by titles and credits."
        ],
        "interaction_query": [
            "SELECT title FROM course",
            "SELECT title FROM course ORDER BY title ,  credits"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT dept_name FROM department ORDER BY budget LIMIT 1",
        "final_utterance": "Give the name of the department with the lowest budget.",
        "interaction_utterance": [
            "Order the department names by increasing budget.",
            "Which has the lowest?"
        ],
        "interaction_query": [
            "SELECT dept_name FROM department ORDER BY budget",
            "SELECT dept_name FROM department ORDER BY budget LIMIT 1"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT dept_name ,  building FROM department ORDER BY budget DESC",
        "final_utterance": "What are the names and buildings of the deparments, sorted by budget descending?",
        "interaction_utterance": [
            "Order the departments by decreasing budget.",
            "In the same order, what are their names and buildings?"
        ],
        "interaction_query": [
            "SELECT * FROM department ORDER BY budget DESC",
            "SELECT dept_name ,  building FROM department ORDER BY budget DESC"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT name FROM instructor ORDER BY salary DESC LIMIT 1",
        "final_utterance": "Give the name of the highest paid instructor.",
        "interaction_utterance": [
            "Order the instructor names by salary from greatest to least.",
            "Who is paid the most?"
        ],
        "interaction_query": [
            "SELECT name FROM instructor ORDER BY salary DESC",
            "SELECT name FROM instructor ORDER BY salary DESC LIMIT 1"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT * FROM instructor ORDER BY salary",
        "final_utterance": "Give all information regarding instructors, in order of salary from least to greatest.",
        "interaction_utterance": [
            "What is all the information about instructors?",
            "Order this by increasing salary."
        ],
        "interaction_query": [
            "SELECT * FROM instructor",
            "SELECT * FROM instructor ORDER BY salary"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT name ,  dept_name FROM student ORDER BY tot_cred",
        "final_utterance": "What are the names of students and their respective departments, ordered by number of credits from least to greatest?",
        "interaction_utterance": [
            "What are the names and department names for each student?",
            "Order this by total credits ascending."
        ],
        "interaction_query": [
            "SELECT name ,  dept_name FROM student",
            "SELECT name ,  dept_name FROM student ORDER BY tot_cred"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT T1.title ,  T3.name FROM course AS T1 JOIN teaches AS T2 ON T1.course_id  =  T2.course_id JOIN instructor AS T3 ON T2.id  =  T3.id WHERE YEAR  =  2008 ORDER BY T1.title",
        "final_utterance": "Show all titles and their instructors' names for courses in 2008, in alphabetical order by title.",
        "interaction_utterance": [
            "What were all the course titles in 2008?",
            "Also, what were the instructors' names?",
            "Order this by title."
        ],
        "interaction_query": [
            "SELECT T1.title FROM course AS T1 JOIN teaches AS T2 ON T1.course_id  =  T2.course_id WHERE YEAR  =  2008",
            "SELECT T1.title ,  T3.name FROM course AS T1 JOIN teaches AS T2 ON T1.course_id  =  T2.course_id JOIN instructor AS T3 ON T2.id  =  T3.id WHERE YEAR  =  2008",
            "SELECT T1.title ,  T3.name FROM course AS T1 JOIN teaches AS T2 ON T1.course_id  =  T2.course_id JOIN instructor AS T3 ON T2.id  =  T3.id WHERE YEAR  =  2008 ORDER BY T1.title"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id  =  T2.i_id GROUP BY T2.i_id HAVING count(*)  >  1",
        "final_utterance": "What are the names of instructors who advise more than one student?",
        "interaction_utterance": [
            "What are the names of all instructors who advise students?",
            "Of those, which advise more than one student?"
        ],
        "interaction_query": [
            "SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id  =  T2.i_id",
            "SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id  =  T2.i_id GROUP BY T2.i_id HAVING count(*)  >  1"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT T1.name FROM student AS T1 JOIN advisor AS T2 ON T1.id  =  T2.s_id GROUP BY T2.s_id HAVING count(*)  >  1",
        "final_utterance": "What are the names of students who have more than one advisor?",
        "interaction_utterance": [
            "What are the names of students with advisors?",
            "Which ones have more than one advisor?"
        ],
        "interaction_query": [
            "SELECT T1.name FROM student AS T1 JOIN advisor AS T2 ON T1.id  =  T2.s_id",
            "SELECT T1.name FROM student AS T1 JOIN advisor AS T2 ON T1.id  =  T2.s_id GROUP BY T2.s_id HAVING count(*)  >  1"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT count(*) ,  building FROM classroom WHERE capacity  >  50 GROUP BY building",
        "final_utterance": "How many rooms in each building have a capacity of over 50?",
        "interaction_utterance": [
            "How many classrooms have capacity greater than 50?",
            "Count these by building."
        ],
        "interaction_query": [
            "SELECT count(*) FROM classroom WHERE capacity  >  50",
            "SELECT count(*) ,  building FROM classroom WHERE capacity  >  50 GROUP BY building"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT max(capacity) ,  avg(capacity) ,  building FROM classroom GROUP BY building",
        "final_utterance": "What are the greatest and average capacity for rooms in each building?",
        "interaction_utterance": [
            "What are the maximum and average capacities across all classrooms?",
            "Find these for each building."
        ],
        "interaction_query": [
            "SELECT max(capacity) ,  avg(capacity) FROM classroom",
            "SELECT max(capacity) ,  avg(capacity) ,  building FROM classroom GROUP BY building"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT title FROM course GROUP BY title HAVING count(*)  >  1",
        "final_utterance": "What are the titles of courses that are offered in more than one department?",
        "interaction_utterance": [
            "What are all the different course titles?",
            "Of those, which are offered in more than one department?"
        ],
        "interaction_query": [
            "SELECT title FROM course",
            "SELECT title FROM course GROUP BY title HAVING count(*)  >  1"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT sum(credits) ,  dept_name FROM course GROUP BY dept_name",
        "final_utterance": "How many total credits are offered by each department?",
        "interaction_utterance": [
            "How many total credits are offered?",
            "Find the totals by department name."
        ],
        "interaction_query": [
            "SELECT sum(credits) FROM course",
            "SELECT sum(credits) ,  dept_name FROM course GROUP BY dept_name"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT min(salary) ,  dept_name FROM instructor GROUP BY dept_name HAVING avg(salary)  >  (SELECT avg(salary) FROM instructor)",
        "final_utterance": "What is the lowest salary in departments with average salary greater than the overall average.",
        "interaction_utterance": [
            "What is the average salary of an instructor?",
            "What are the departments with average salary greater than that?",
            "Also, what are their lowest salaries?"
        ],
        "interaction_query": [
            "SELECT avg(salary) FROM instructor",
            "SELECT dept_name FROM instructor GROUP BY dept_name HAVING avg(salary)  >  (SELECT avg(salary) FROM instructor)",
            "SELECT min(salary) ,  dept_name FROM instructor GROUP BY dept_name HAVING avg(salary)  >  (SELECT avg(salary) FROM instructor)"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT count(*) ,  semester ,  YEAR FROM SECTION GROUP BY semester ,  YEAR",
        "final_utterance": "How many courses are provided in each semester and year?",
        "interaction_utterance": [
            "How many courses are offered in each year?",
            "Split these by semester as well."
        ],
        "interaction_query": [
            "SELECT count(*) ,  YEAR FROM SECTION GROUP BY YEAR",
            "SELECT count(*) ,  semester ,  YEAR FROM SECTION GROUP BY semester ,  YEAR"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT YEAR FROM SECTION GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which year had the greatest number of courses?",
        "interaction_utterance": [
            "How many courses are offered in each year?",
            "Which year had the most?"
        ],
        "interaction_query": [
            "SELECT YEAR ,  count(*) FROM SECTION GROUP BY YEAR",
            "SELECT YEAR FROM SECTION GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT semester ,  YEAR FROM SECTION GROUP BY semester ,  YEAR ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the year and semester with the most courses?",
        "interaction_utterance": [
            "Find the number of courses in each semester and year.",
            "Which had the most?"
        ],
        "interaction_query": [
            "SELECT semester ,  YEAR ,  count(*) FROM SECTION GROUP BY semester ,  YEAR",
            "SELECT semester ,  YEAR FROM SECTION GROUP BY semester ,  YEAR ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT dept_name FROM student GROUP BY dept_name ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the name of the deparment with the highest enrollment?",
        "interaction_utterance": [
            "How many students are in each department?",
            "What is the name of the department with the most?"
        ],
        "interaction_query": [
            "SELECT dept_name ,  count(*) FROM student GROUP BY dept_name",
            "SELECT dept_name FROM student GROUP BY dept_name ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT count(*) ,  dept_name FROM student GROUP BY dept_name",
        "final_utterance": "How many students are in each department?",
        "interaction_utterance": [
            "How many students are there?",
            "Count this by department."
        ],
        "interaction_query": [
            "SELECT count(*) FROM student",
            "SELECT count(*) ,  dept_name FROM student GROUP BY dept_name"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT semester ,  YEAR FROM takes GROUP BY semester ,  YEAR ORDER BY count(*) LIMIT 1",
        "final_utterance": "Which semeseter and year had the fewest students?",
        "interaction_utterance": [
            "How many students were taking classes in each semester and year?",
            "Which one had the fewest?"
        ],
        "interaction_query": [
            "SELECT semester ,  YEAR ,  count(*) FROM takes GROUP BY semester ,  YEAR",
            "SELECT semester ,  YEAR FROM takes GROUP BY semester ,  YEAR ORDER BY count(*) LIMIT 1"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id  =  T2.id WHERE T2.dept_name  =  'History'",
        "final_utterance": "Give id of the instructor who advises students in the History department.",
        "interaction_utterance": [
            "What are the ids of all instructors who are advisors?",
            "Of these, which advise students in the History department?"
        ],
        "interaction_query": [
            "SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id  =  T2.id",
            "SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id  =  T2.id WHERE T2.dept_name  =  'History'"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT T2.name ,  T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id WHERE T3.dept_name  =  'History'",
        "final_utterance": "What are the names and salaries of instructors who advises students in the History department?",
        "interaction_utterance": [
            "What are the ids of all instructors who are advisors?",
            "Of these, which advise students in the History department?",
            "What are their names and salaries?"
        ],
        "interaction_query": [
            "SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id  =  T2.id",
            "SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id  =  T2.id WHERE T2.dept_name  =  'History'",
            "SELECT T2.name ,  T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id WHERE T3.dept_name  =  'History'"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT course_id FROM course EXCEPT SELECT course_id FROM prereq",
        "final_utterance": "What are the ids of courses without prerequisites?",
        "interaction_utterance": [
            "What are the ids of courses with prerequisites?",
            "What are the ids of all other courses?"
        ],
        "interaction_query": [
            "SELECT course_id FROM prereq",
            "SELECT course_id FROM course EXCEPT SELECT course_id FROM prereq"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)",
        "final_utterance": "What are the names of courses without prerequisites?",
        "interaction_utterance": [
            "What are the ids of courses with prerequisites?",
            "What are the titles of all other courses?"
        ],
        "interaction_query": [
            "SELECT course_id FROM prereq",
            "SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id  =  T2.course_id WHERE T2.title  =  'International Finance')",
        "final_utterance": "Give the title of the prerequisite to the course International Finance.",
        "interaction_utterance": [
            "What are the ids of all prerequisites?",
            "What is the id of the prerequisite for International Finance?",
            "What is its title?"
        ],
        "interaction_query": [
            "SELECT prereq_id FROM prereq",
            "SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id  =  T2.course_id WHERE T2.title  =  'International Finance'",
            "SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id  =  T2.course_id WHERE T2.title  =  'International Finance')"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id  =  T2.course_id WHERE T2.title  =  'Differential Geometry')",
        "final_utterance": "What is the title of the course with Differential Geometry as a prerequisite?",
        "interaction_utterance": [
            "What are the ids of all the prerequisites?",
            "What is the id of the course for which Differential Geometry is a prerequisite?",
            "What is its title?"
        ],
        "interaction_query": [
            "SELECT course_id FROM prereq",
            "SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id  =  T2.course_id WHERE T2.title  =  'Differential Geometry'",
            "SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id  =  T2.course_id WHERE T2.title  =  'Differential Geometry')"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT name FROM student WHERE id IN (SELECT id FROM takes WHERE semester  =  'Fall' AND YEAR  =  2003)",
        "final_utterance": "What are the names of students who took a course in the Fall of 2003?",
        "interaction_utterance": [
            "What are the ids of students who took courses in the Fall of 2003?",
            "What are their names?"
        ],
        "interaction_query": [
            "SELECT id FROM takes WHERE semester  =  'Fall' AND YEAR  =  2003",
            "SELECT name FROM student WHERE id IN (SELECT id FROM takes WHERE semester  =  'Fall' AND YEAR  =  2003)"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT T1.title FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id  =  T2.course_id WHERE building  =  'Chandler' AND semester  =  'Fall' AND YEAR  =  2010",
        "final_utterance": "Give the title of the course offered in Chandler during the Fall of 2010.",
        "interaction_utterance": [
            "What are the titles of courses offered in the Fall of 2010?",
            "Of these, which were offered in Chandler building?"
        ],
        "interaction_query": [
            "SELECT T1.title FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id  =  T2.course_id WHERE semester  =  'Fall' AND YEAR  =  2010",
            "SELECT T1.title FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id  =  T2.course_id WHERE building  =  'Chandler' AND semester  =  'Fall' AND YEAR  =  2010"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT T1.name FROM instructor AS T1 JOIN teaches AS T2 ON T1.id  =  T2.id JOIN course AS T3 ON T2.course_id  =  T3.course_id WHERE T3.title  =  'C Programming'",
        "final_utterance": "What are the names of instructors who have taught C Programming courses?",
        "interaction_utterance": [
            "What are the names of all instructors?",
            "Of those, which have taught a C Programming course?"
        ],
        "interaction_query": [
            "SELECT name FROM instructor",
            "SELECT T1.name FROM instructor AS T1 JOIN teaches AS T2 ON T1.id  =  T2.id JOIN course AS T3 ON T2.course_id  =  T3.course_id WHERE T3.title  =  'C Programming'"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT T2.name ,  T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id WHERE T3.dept_name  =  'Math'",
        "final_utterance": "What are the names and salaries of instructors who advise students in the Math department?",
        "interaction_utterance": [
            "What are the ids of all advisors?",
            "What are the ids of advisors who advise students in the Math department?",
            "What are their names and salaries?"
        ],
        "interaction_query": [
            "SELECT i_id FROM advisor",
            "SELECT T1.i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id  =  T2.id WHERE T2.dept_name  =  'Math'",
            "SELECT T2.name ,  T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id WHERE T3.dept_name  =  'Math'"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id WHERE T3.dept_name  =  'Math' ORDER BY T3.tot_cred",
        "final_utterance": "What are the names of all instructors who advise students in the math depart sorted by total credits of the student.",
        "interaction_utterance": [
            "What are the ids of advisors who advise students in the Math department?",
            "What are their names?",
            "Order this by the students' total credits."
        ],
        "interaction_query": [
            "SELECT T1.i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id  =  T2.id WHERE T2.dept_name  =  'Math'",
            "SELECT T2.name ,  T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id WHERE T3.dept_name  =  'Math'",
            "SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id WHERE T3.dept_name  =  'Math' ORDER BY T3.tot_cred"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id  =  T2.course_id WHERE T2.title  =  'Mobile Computing')",
        "final_utterance": "What is the title of the course that is a prerequisite for Mobile Computing?",
        "interaction_utterance": [
            "What are all the ids of the prerequisite classes?",
            "Of these, which is the prerequisite for Mobile Computing?",
            "What is its title?"
        ],
        "interaction_query": [
            "SELECT prereq_id FROM prereq",
            "SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id  =  T2.course_id WHERE T2.title  =  'Mobile Computing'",
            "SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id  =  T2.course_id WHERE T2.title  =  'Mobile Computing')"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id ORDER BY T3.tot_cred DESC LIMIT 1",
        "final_utterance": "What is the name of the instructor who advises the student with the greatest number of total credits?",
        "interaction_utterance": [
            "What are names of instructors who advise students?",
            "Of these, which one instructs the students with the most total credits?"
        ],
        "interaction_query": [
            "SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id",
            "SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id ORDER BY T3.tot_cred DESC LIMIT 1"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches)",
        "final_utterance": "What are the names of instructors who didn't teach?",
        "interaction_utterance": [
            "What are the ids of instructors who taught courses?",
            "What are the ids of all other instructors?",
            "What are their names?"
        ],
        "interaction_query": [
            "SELECT id FROM teaches",
            "SELECT id FROM instructor WHERE id NOT IN (SELECT id FROM teaches)",
            "SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches)"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT id FROM instructor EXCEPT SELECT id FROM teaches",
        "final_utterance": "What are the ids of instructors who didnt' teach?",
        "interaction_utterance": [
            "What are the ids of instructors who taught courses?",
            "What are the ids of all other instructors?"
        ],
        "interaction_query": [
            "SELECT id FROM teaches",
            "SELECT id FROM instructor EXCEPT SELECT id FROM teaches"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches WHERE semester  =  'Spring')",
        "final_utterance": "What are the names of instructors who didn't teach courses in the Spring?",
        "interaction_utterance": [
            "What are the ids of teachers who taught in the Spring?",
            "What are the ids of all other instructors?",
            "What are the corresponding instructor names?"
        ],
        "interaction_query": [
            "SELECT id FROM teaches WHERE semester  =  'Spring'",
            "SELECT id FROM instructor WHERE id NOT IN (SELECT id FROM teaches WHERE semester  =  'Spring')",
            "SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches WHERE semester  =  'Spring')"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY avg(salary) DESC LIMIT 1",
        "final_utterance": "Which department has the highest average instructor salary?",
        "interaction_utterance": [
            "What are the average instructor salaries for each department?",
            "Which department has the highest?"
        ],
        "interaction_query": [
            "SELECT dept_name ,  avg(salary) FROM instructor GROUP BY dept_name",
            "SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY avg(salary) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT avg(T1.salary) ,  count(*) FROM instructor AS T1 JOIN department AS T2 ON T1.dept_name  =  T2.dept_name ORDER BY T2.budget DESC LIMIT 1",
        "final_utterance": "How many instructors are in the department with the highest budget, and what is their average salary?",
        "interaction_utterance": [
            "Order the departments by decreasing budget.",
            "How many instructors are in the department with the highest budget?",
            "Also, what is the average salary of those instructors?"
        ],
        "interaction_query": [
            "SELECT dept_name FROM department ORDER BY budget DESC",
            "SELECT count(*) FROM instructor AS T1 JOIN department AS T2 ON T1.dept_name  =  T2.dept_name ORDER BY T2.budget DESC LIMIT 1",
            "SELECT avg(T1.salary) ,  count(*) FROM instructor AS T1 JOIN department AS T2 ON T1.dept_name  =  T2.dept_name ORDER BY T2.budget DESC LIMIT 1"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT T3.title ,  T3.credits FROM classroom AS T1 JOIN SECTION AS T2 ON T1.building  =  T2.building AND T1.room_number  =  T2.room_number JOIN course AS T3 ON T2.course_id  =  T3.course_id WHERE T1.capacity  =  (SELECT max(capacity) FROM classroom)",
        "final_utterance": "Give the title and credits for the course that is taught in the classroom with the greatest capacity.",
        "interaction_utterance": [
            "What is the maximum capacity of any classroom?",
            "What is the title of the course which is taught there?",
            "Also, what credits value does that course have?"
        ],
        "interaction_query": [
            "SELECT max(capacity) FROM classroom",
            "SELECT T3.title FROM classroom AS T1 JOIN SECTION AS T2 ON T1.building  =  T2.building AND T1.room_number  =  T2.room_number JOIN course AS T3 ON T2.course_id  =  T3.course_id WHERE T1.capacity  =  (SELECT max(capacity) FROM classroom)",
            "SELECT T3.title ,  T3.credits FROM classroom AS T1 JOIN SECTION AS T2 ON T1.building  =  T2.building AND T1.room_number  =  T2.room_number JOIN course AS T3 ON T2.course_id  =  T3.course_id WHERE T1.capacity  =  (SELECT max(capacity) FROM classroom)"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT name FROM student WHERE id NOT IN (SELECT T1.id FROM takes AS T1 JOIN course AS T2 ON T1.course_id  =  T2.course_id WHERE T2.dept_name  =  'Biology')",
        "final_utterance": "What are the names of students who haven't taken any Biology courses?",
        "interaction_utterance": [
            "Which students have taken Biology courses?",
            "What are the names of all students who did not take that class?"
        ],
        "interaction_query": [
            "SELECT * FROM takes AS T1 JOIN course AS T2 ON T1.course_id  =  T2.course_id WHERE T2.dept_name  =  'Biology'",
            "SELECT name FROM student WHERE id NOT IN (SELECT T1.id FROM takes AS T1 JOIN course AS T2 ON T1.course_id  =  T2.course_id WHERE T2.dept_name  =  'Biology')"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT count(DISTINCT T2.id) ,  count(DISTINCT T3.id) ,  T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name  =  T2.dept_name JOIN instructor AS T3 ON T1.dept_name  =  T3.dept_name GROUP BY T3.dept_name",
        "final_utterance": "How many students and instructors are in each department?",
        "interaction_utterance": [
            "Find the total number of students.",
            "Now, find the number by department.",
            "Also, find the number of instructors in each department."
        ],
        "interaction_query": [
            "SELECT count(DISTINCT id) FROM student",
            "SELECT count(DISTINCT T2.id) ,  T1.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name  =  T2.dept_name GROUP BY T1.dept_name",
            "SELECT count(DISTINCT T2.id) ,  count(DISTINCT T3.id) ,  T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name  =  T2.dept_name JOIN instructor AS T3 ON T1.dept_name  =  T3.dept_name GROUP BY T3.dept_name"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id  =  T2.id WHERE T2.course_id IN (SELECT T4.prereq_id FROM course AS T3 JOIN prereq AS T4 ON T3.course_id  =  T4.course_id WHERE T3.title  =  'International Finance')",
        "final_utterance": "What are the names of students who have taken the prerequisite for the course International Finance?",
        "interaction_utterance": [
            "What is the id of the prerequisite of International Finance?",
            "What are the ids of students who have taken this course?",
            "What are their names?"
        ],
        "interaction_query": [
            "SELECT T2.prereq_id FROM course AS T1 JOIN prereq AS T2 ON T1.course_id  =  T2.course_id WHERE T1.title  =  'International Finance'",
            "SELECT T1.id FROM student AS T1 JOIN takes AS T2 ON T1.id  =  T2.id WHERE T2.course_id IN (SELECT T4.prereq_id FROM course AS T3 JOIN prereq AS T4 ON T3.course_id  =  T4.course_id WHERE T3.title  =  'International Finance')",
            "SELECT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id  =  T2.id WHERE T2.course_id IN (SELECT T4.prereq_id FROM course AS T3 JOIN prereq AS T4 ON T3.course_id  =  T4.course_id WHERE T3.title  =  'International Finance')"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT name ,  salary FROM instructor WHERE salary  <  (SELECT avg(salary) FROM instructor WHERE dept_name  =  'Physics')",
        "final_utterance": "What are the names and salaries for instructors who earn less than the average salary of instructors in the Physics department?",
        "interaction_utterance": [
            "What is the average salary of instructors in the Physics department?",
            "What are the names of the instructors who earn more than that?",
            "Also, what are their salaries?"
        ],
        "interaction_query": [
            "SELECT avg(salary) FROM instructor WHERE dept_name  =  'Physics'",
            "SELECT name FROM instructor WHERE salary  <  (SELECT avg(salary) FROM instructor WHERE dept_name  =  'Physics')",
            "SELECT name ,  salary FROM instructor WHERE salary  <  (SELECT avg(salary) FROM instructor WHERE dept_name  =  'Physics')"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT T3.name FROM course AS T1 JOIN takes AS T2 ON T1.course_id  =  T2.course_id JOIN student AS T3 ON T2.id  =  T3.id WHERE T1.dept_name  =  'Statistics'",
        "final_utterance": "What are the names of students who have taken Statistics courses?",
        "interaction_utterance": [
            "What is all the information about the Statistics courses?",
            "What are the names of students who have taken courses in the Statistics department?"
        ],
        "interaction_query": [
            "SELECT * FROM course WHERE dept_name  =  'Statistics'",
            "SELECT T3.name FROM course AS T1 JOIN takes AS T2 ON T1.course_id  =  T2.course_id JOIN student AS T3 ON T2.id  =  T3.id WHERE T1.dept_name  =  'Statistics'"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT T2.building ,  T2.room_number ,  T2.semester ,  T2.year FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id  =  T2.course_id WHERE T1.dept_name  =  'Psychology' ORDER BY T1.title",
        "final_utterance": "What are the building, room number, semester and year of courses in the Psychology department, sorted using course title?",
        "interaction_utterance": [
            "What is all the information about the courses in the Psychology department, ordered by title?",
            "What are the building, room number, semester and year corresponding to these courses?"
        ],
        "interaction_query": [
            "SELECT * FROM course WHERE dept_name  =  'Psychology' ORDER BY title",
            "SELECT T2.building ,  T2.room_number ,  T2.semester ,  T2.year FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id  =  T2.course_id WHERE T1.dept_name  =  'Psychology' ORDER BY T1.title"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT name FROM instructor WHERE dept_name  =  'Comp. Sci.'",
        "final_utterance": "What are the names of all instructors in the Comp. Sci. department?",
        "interaction_utterance": [
            "What are the names of all the instructors?",
            "Of those, which are in the Comp. Sci. department?"
        ],
        "interaction_query": [
            "SELECT name FROM instructor",
            "SELECT name FROM instructor WHERE dept_name  =  'Comp. Sci.'"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT name FROM instructor WHERE dept_name  =  'Comp. Sci.'  AND salary  >  80000",
        "final_utterance": "What are the names of the instructors in the Comp. Sci. department who earn more than 80000?",
        "interaction_utterance": [
            "What are the names of all instructors who earn more than 80000?",
            "Of those, which are in the Comp. Sci. department?"
        ],
        "interaction_query": [
            "SELECT name FROM instructor WHERE salary  >  80000",
            "SELECT name FROM instructor WHERE dept_name  =  'Comp. Sci.'  AND salary  >  80000"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT name ,  course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID  =  T2.ID",
        "final_utterance": "What are the names of all instructors who have taught a course, as well as the corresponding course id?",
        "interaction_utterance": [
            "What are all the names of teachers who have taught a course?",
            "Also, what were the course ids?"
        ],
        "interaction_query": [
            "SELECT name FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID  =  T2.ID",
            "SELECT name ,  course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID  =  T2.ID"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT name ,  course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID  =  T2.ID WHERE T1.dept_name  =  'Art'",
        "final_utterance": "What are the names of Art instructors who have taught a course, and the corresponding course id?",
        "interaction_utterance": [
            "What are all the names of teachers who have taught a course, and what were the course ids?",
            "Of these, which were in the Art department?"
        ],
        "interaction_query": [
            "SELECT name ,  course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID  =  T2.ID",
            "SELECT name ,  course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID  =  T2.ID WHERE T1.dept_name  =  'Art'"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT name FROM instructor WHERE name LIKE '%dar%'",
        "final_utterance": "What are the names of all instructors with names that include \"dar\"?",
        "interaction_utterance": [
            "What are the names of all instructors?",
            "Of these, which include the substring \"dar\"?"
        ],
        "interaction_query": [
            "SELECT name FROM instructor",
            "SELECT name FROM instructor WHERE name LIKE '%dar%'"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT DISTINCT name FROM  instructor ORDER BY name",
        "final_utterance": "List the distinct names of the instructors, ordered by name.",
        "interaction_utterance": [
            "What are the distinct names of all instructors?",
            "Sort this in alphabetical order."
        ],
        "interaction_query": [
            "SELECT DISTINCT name FROM  instructor",
            "SELECT DISTINCT name FROM  instructor ORDER BY name"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT course_id FROM SECTION WHERE semester  =  'Fall' AND YEAR  =  2009 UNION SELECT course_id FROM SECTION WHERE semester  =  'Spring' AND YEAR  =  2010",
        "final_utterance": "What are the ids for courses in the Fall of 2009 or the Spring of 2010?",
        "interaction_utterance": [
            "What are the ids for courses offered in the Fall of 2009?",
            "Also include the ids for courses offered in the Spring of 2010."
        ],
        "interaction_query": [
            "SELECT course_id FROM SECTION WHERE semester  =  'Fall' AND YEAR  =  2009",
            "SELECT course_id FROM SECTION WHERE semester  =  'Fall' AND YEAR  =  2009 UNION SELECT course_id FROM SECTION WHERE semester  =  'Spring' AND YEAR  =  2010"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT course_id FROM SECTION WHERE semester  =  'Fall' AND YEAR  =  2009 INTERSECT SELECT course_id FROM SECTION WHERE semester  =  'Spring' AND YEAR  =  2010",
        "final_utterance": "What are the ids for courses that were offered in both Fall of 2009 and Spring of 2010?",
        "interaction_utterance": [
            "What are the ids for courses offered in the Fall of 2009?",
            "Of these, which were also offered in the Spring of 2010?"
        ],
        "interaction_query": [
            "SELECT course_id FROM SECTION WHERE semester  =  'Fall' AND YEAR  =  2009",
            "SELECT course_id FROM SECTION WHERE semester  =  'Fall' AND YEAR  =  2009 INTERSECT SELECT course_id FROM SECTION WHERE semester  =  'Spring' AND YEAR  =  2010"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT course_id FROM SECTION WHERE semester  =  'Fall' AND YEAR  =  2009 EXCEPT SELECT course_id FROM SECTION WHERE semester  =  'Spring' AND YEAR  =  2010",
        "final_utterance": "What are the ids of courses offered in Fall of 2009 but not in Spring of 2010?",
        "interaction_utterance": [
            "What are the ids of courses offered in the Fall of 2009?",
            "Of these, which were not offered in the Spring of 2010?"
        ],
        "interaction_query": [
            "SELECT course_id FROM SECTION WHERE semester  =  'Fall' AND YEAR  =  2009",
            "SELECT course_id FROM SECTION WHERE semester  =  'Fall' AND YEAR  =  2009 EXCEPT SELECT course_id FROM SECTION WHERE semester  =  'Spring' AND YEAR  =  2010"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT DISTINCT salary FROM instructor WHERE salary  <  (SELECT max(salary) FROM instructor)",
        "final_utterance": "What are the distinct salaries of all instructors who earned less than the maximum salary?",
        "interaction_utterance": [
            "What was the largest salary across instructors?",
            "What were all the other distinct salaries?"
        ],
        "interaction_query": [
            "SELECT max(salary) FROM instructor",
            "SELECT DISTINCT salary FROM instructor WHERE salary  <  (SELECT max(salary) FROM instructor)"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT COUNT (DISTINCT ID) FROM teaches WHERE semester  =  'Spring' AND YEAR  =  2010",
        "final_utterance": "How many instructors teach a course in the Spring of 2010?",
        "interaction_utterance": [
            "What are the distinct ids of instructors teaching in the Spring of 2010?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT DISTINCT ID FROM teaches WHERE semester  =  'Spring' AND YEAR  =  2010",
            "SELECT COUNT (DISTINCT ID) FROM teaches WHERE semester  =  'Spring' AND YEAR  =  2010"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT dept_name ,  AVG (salary) FROM instructor GROUP BY dept_name HAVING AVG (salary)  >  42000",
        "final_utterance": "What are the names and average salaries for departments with average salary higher than 42000?",
        "interaction_utterance": [
            "What are the names of departments that have average salaries higher than 42000?",
            "Also, what are their average salaries?"
        ],
        "interaction_query": [
            "SELECT dept_name FROM instructor GROUP BY dept_name HAVING AVG (salary)  >  42000",
            "SELECT dept_name ,  AVG (salary) FROM instructor GROUP BY dept_name HAVING AVG (salary)  >  42000"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT name FROM instructor WHERE salary  >  (SELECT min(salary) FROM instructor WHERE dept_name  =  'Biology')",
        "final_utterance": "What are the names of instructors who earn more than at least one instructor from the Biology department?",
        "interaction_utterance": [
            "What is the lowest salary of instructors in the Biology department?",
            "What are the ids of instructors who earn more than that?",
            "What are their names?"
        ],
        "interaction_query": [
            "SELECT min(salary) FROM instructor WHERE dept_name  =  'Biology'",
            "SELECT id FROM instructor WHERE salary  >  (SELECT min(salary) FROM instructor WHERE dept_name  =  'Biology')",
            "SELECT name FROM instructor WHERE salary  >  (SELECT min(salary) FROM instructor WHERE dept_name  =  'Biology')"
        ]
    },
    {
        "db_id": "college_2",
        "final_query": "SELECT name FROM instructor WHERE salary  >  (SELECT max(salary) FROM instructor WHERE dept_name  =  'Biology')",
        "final_utterance": "What are the names of all instructors with a higher salary than any of the instructors in the Biology department?",
        "interaction_utterance": [
            "What is the highest salary of instructors in the Biology department?",
            "What are the names of instructors who earn more than this?"
        ],
        "interaction_query": [
            "SELECT max(salary) FROM instructor WHERE dept_name  =  'Biology'",
            "SELECT name FROM instructor WHERE salary  >  (SELECT max(salary) FROM instructor WHERE dept_name  =  'Biology')"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code WHERE DEPT_NAME  =  \"Accounting\"",
        "final_utterance": "How many professors are in the accounting dept?",
        "interaction_utterance": [
            "What are the codes of the accounting department?",
            "Which professors are in that department?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT dept_code FROM department WHERE DEPT_NAME  =  \"Accounting\"",
            "SELECT * FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code WHERE DEPT_NAME  =  \"Accounting\"",
            "SELECT count(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code WHERE DEPT_NAME  =  \"Accounting\""
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(DISTINCT PROF_NUM) FROM CLASS WHERE CRS_CODE  =  \"ACCT-211\"",
        "final_utterance": "How many professors teach a class with the code ACCT-211?",
        "interaction_utterance": [
            "What can you tell me about the class with code \"ACCT-211\"?",
            "How many different professors teach that class?"
        ],
        "interaction_query": [
            "SELECT * FROM CLASS WHERE CRS_CODE  =  \"ACCT-211\"",
            "SELECT count(DISTINCT PROF_NUM) FROM CLASS WHERE CRS_CODE  =  \"ACCT-211\""
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T3.EMP_FNAME ,  T3.EMP_LNAME FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code JOIN employee AS T3 ON T1.EMP_NUM  =  T3.EMP_NUM WHERE DEPT_NAME  =  \"Biology\"",
        "final_utterance": "What are the first and last name of all biology professors?",
        "interaction_utterance": [
            "What can you tell me about the biology department?",
            "What are the first name of all professors in the department?",
            "What are their last names as well?"
        ],
        "interaction_query": [
            "SELECT * FROM department WHERE DEPT_NAME  =  \"Biology\"",
            "SELECT T3.EMP_FNAME FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code JOIN employee AS T3 ON T1.EMP_NUM  =  T3.EMP_NUM WHERE DEPT_NAME  =  \"Biology\"",
            "SELECT T3.EMP_FNAME ,  T3.EMP_LNAME FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code JOIN employee AS T3 ON T1.EMP_NUM  =  T3.EMP_NUM WHERE DEPT_NAME  =  \"Biology\""
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT DISTINCT T1.EMP_FNAME ,  T1.EMP_DOB FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM  =  T2.PROF_NUM WHERE CRS_CODE  =  \"ACCT-211\"",
        "final_utterance": "What are the first names and birthdates of the professors in charge of ACCT-211?",
        "interaction_utterance": [
            "Which professors are in charge of ACCT-211?",
            "What are their first names?",
            "Also, what are their date of births?"
        ],
        "interaction_query": [
            "SELECT DISTINCT * FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM  =  T2.PROF_NUM WHERE CRS_CODE  =  \"ACCT-211\"",
            "SELECT DISTINCT T1.EMP_FNAME FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM  =  T2.PROF_NUM WHERE CRS_CODE  =  \"ACCT-211\"",
            "SELECT DISTINCT T1.EMP_FNAME ,  T1.EMP_DOB FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM  =  T2.PROF_NUM WHERE CRS_CODE  =  \"ACCT-211\""
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(*) FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM  =  T2.PROF_NUM WHERE T1.EMP_LNAME  =  'Graztevski'",
        "final_utterance": "How many classes does the professor whose last name is Graztevski teach?",
        "interaction_utterance": [
            "Give all details about the professor with the last name Graztevski?",
            "Which classes does he teach? Return the class code.",
            "How many classes does he teach?"
        ],
        "interaction_query": [
            "SELECT * FROM employee WHERE EMP_LNAME  =  'Graztevski'",
            "SELECT T2.CRS_CODE FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM  =  T2.PROF_NUM WHERE T1.EMP_LNAME  =  'Graztevski'",
            "SELECT count(*) FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM  =  T2.PROF_NUM WHERE T1.EMP_LNAME  =  'Graztevski'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT school_code FROM department WHERE dept_name  =  \"Accounting\"",
        "final_utterance": "What is the school code of the accounting department?",
        "interaction_utterance": [
            "Find all info about the accounting department?",
            "What is its school code?"
        ],
        "interaction_query": [
            "SELECT * FROM department WHERE dept_name  =  \"Accounting\"",
            "SELECT school_code FROM department WHERE dept_name  =  \"Accounting\""
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT crs_credit ,  crs_description FROM course WHERE crs_code  =  'CIS-220'",
        "final_utterance": "What is the description for the CIS-220 and how many credits does it have?",
        "interaction_utterance": [
            "How many credits does each course have?",
            "How many does CIS-220 have?",
            "What is its description?"
        ],
        "interaction_query": [
            "SELECT crs_credit ,  crs_code FROM course GROUP BY crs_code",
            "SELECT crs_credit FROM course WHERE crs_code  =  'CIS-220'",
            "SELECT crs_description FROM course WHERE crs_code  =  'CIS-220'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT dept_address FROM department WHERE dept_name  =  'History'",
        "final_utterance": "Where is the history department?",
        "interaction_utterance": [
            "List addresses of all departments.",
            "What is one for the history department?"
        ],
        "interaction_query": [
            "SELECT dept_address FROM department",
            "SELECT dept_address FROM department WHERE dept_name  =  'History'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(DISTINCT dept_address) FROM department WHERE school_code  =  'BUS'",
        "final_utterance": "What are the different locations of the school with the code BUS?",
        "interaction_utterance": [
            "What are the names of departments in the school with the code BUS?",
            "What are different addresses of the school?",
            "How many of them are there?"
        ],
        "interaction_query": [
            "SELECT DEPT_NAME FROM department WHERE school_code  =  'BUS'",
            "SELECT DISTINCT dept_address FROM department WHERE school_code  =  'BUS'",
            "SELECT count(DISTINCT dept_address) FROM department WHERE school_code  =  'BUS'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(DISTINCT dept_address) ,  school_code FROM department GROUP BY school_code",
        "final_utterance": "Count different addresses of each school.",
        "interaction_utterance": [
            "How many different shools are there?",
            "How many different addresses does each one have?"
        ],
        "interaction_query": [
            "SELECT count(DISTINCT school_code) FROM department",
            "SELECT count(DISTINCT dept_address) ,  school_code FROM department GROUP BY school_code"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT crs_credit ,  crs_description FROM course WHERE crs_code  =  'QM-261'",
        "final_utterance": "What is the course description and number of credits for QM-261?",
        "interaction_utterance": [
            "Return all info about all courses.",
            "How many credits is the course QM-261 worth?",
            "WHat is its description?"
        ],
        "interaction_query": [
            "SELECT * FROM course",
            "SELECT crs_credit FROM course WHERE crs_code  =  'QM-261'",
            "SELECT crs_credit ,  crs_description FROM course WHERE crs_code  =  'QM-261'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(DISTINCT dept_name) ,  school_code FROM department GROUP BY school_code",
        "final_utterance": "How many departments are in each school?",
        "interaction_utterance": [
            "What are the different school codes?",
            "For each one, how many different departments does it have?"
        ],
        "interaction_query": [
            "SELECT DISTINCT school_code FROM department",
            "SELECT count(DISTINCT dept_name) ,  school_code FROM department GROUP BY school_code"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(DISTINCT dept_name) ,  school_code FROM department GROUP BY school_code HAVING count(DISTINCT dept_name)  <  5",
        "final_utterance": "How many different departments are there in each school that has less than 5 apartments?",
        "interaction_utterance": [
            "What are the different schools?",
            "How many departments does each one of them have?",
            "Find the ones which have less than 5 deparments."
        ],
        "interaction_query": [
            "SELECT DISTINCT school_code FROM department",
            "SELECT count(DISTINCT dept_name) ,  school_code FROM department GROUP BY school_code",
            "SELECT count(DISTINCT dept_name) ,  school_code FROM department GROUP BY school_code HAVING count(DISTINCT dept_name)  <  5"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(*) ,  crs_code FROM CLASS GROUP BY crs_code",
        "final_utterance": "How many sections does each course have?",
        "interaction_utterance": [
            "What are the different course codes?",
            "How many sections exist for each one?"
        ],
        "interaction_query": [
            "SELECT DISTINCT crs_code FROM CLASS",
            "SELECT count(*) ,  crs_code FROM CLASS GROUP BY crs_code"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT sum(crs_credit) ,  dept_code FROM course GROUP BY dept_code",
        "final_utterance": "How many credits does the department offer?",
        "interaction_utterance": [
            "What is the total credits of all courses?",
            "Give the number for each department."
        ],
        "interaction_query": [
            "SELECT sum(crs_credit) FROM course",
            "SELECT sum(crs_credit) ,  dept_code FROM course GROUP BY dept_code"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(*) ,  class_room FROM CLASS GROUP BY class_room HAVING count(*)  >=  2",
        "final_utterance": "For each classroom with at least 2 classes, how many classes are offered?",
        "interaction_utterance": [
            "For each classroom, how many the classes held there?",
            "How many are there for each classroom with at least 2 classes?"
        ],
        "interaction_query": [
            "SELECT count(*) ,  class_room FROM CLASS GROUP BY class_room",
            "SELECT count(*) ,  class_room FROM CLASS GROUP BY class_room HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(*) ,  dept_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code  =  T2.crs_code GROUP BY dept_code",
        "final_utterance": "How many classes are held in each department?",
        "interaction_utterance": [
            "How many classes are offered?",
            "return the number for each department."
        ],
        "interaction_query": [
            "SELECT count(*) FROM CLASS",
            "SELECT count(*) ,  dept_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code  =  T2.crs_code GROUP BY dept_code"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(*) ,  T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code  =  T2.crs_code JOIN department AS T3 ON T2.dept_code  =  T3.dept_code GROUP BY T3.school_code",
        "final_utterance": "How many classes exist for each school?",
        "interaction_utterance": [
            "What are the different school codes?",
            "How many classes are there for each of them?"
        ],
        "interaction_query": [
            "SELECT DISTINCT school_code FROM department",
            "SELECT count(*) ,  T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code  =  T2.crs_code JOIN department AS T3 ON T2.dept_code  =  T3.dept_code GROUP BY T3.school_code"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(*) ,  T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.school_code",
        "final_utterance": "How many different professors are there for the different schools?",
        "interaction_utterance": [
            "How many professors are there?",
            "How many of them are there for each school?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM professor",
            "SELECT count(*) ,  T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.school_code"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT emp_jobcode ,  count(*) FROM employee GROUP BY emp_jobcode ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the count and code of the job with the most employee?",
        "interaction_utterance": [
            "For each job code, how many employees are there?",
            "Which one has the most?"
        ],
        "interaction_query": [
            "SELECT emp_jobcode ,  count(*) FROM employee GROUP BY emp_jobcode",
            "SELECT emp_jobcode ,  count(*) FROM employee GROUP BY emp_jobcode ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.school_code ORDER BY count(*) LIMIT 1",
        "final_utterance": "Which school has the fewest professors?",
        "interaction_utterance": [
            "What are the different school codes?",
            "For each one, how many professors does it have?",
            "Which one has the most?"
        ],
        "interaction_query": [
            "SELECT DISTINCT school_code FROM department",
            "SELECT T1.school_code ,  count(*) FROM department AS T1 JOIN professor AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.school_code",
            "SELECT T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.school_code ORDER BY count(*) LIMIT 1"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(*) ,  dept_code FROM professor WHERE prof_high_degree  =  'Ph.D.' GROUP BY dept_code",
        "final_utterance": "How many professors have a Ph.D. in each department?",
        "interaction_utterance": [
            "How many professors do have a Ph.D.?",
            "Count the number of these professors for each department."
        ],
        "interaction_query": [
            "SELECT count(*) FROM professor WHERE prof_high_degree  =  'Ph.D.'",
            "SELECT count(*) ,  dept_code FROM professor WHERE prof_high_degree  =  'Ph.D.' GROUP BY dept_code"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(*) ,  dept_code FROM student GROUP BY dept_code",
        "final_utterance": "How many students are in each department?",
        "interaction_utterance": [
            "What are all students?",
            "How many of them?",
            "How many are there in each department?"
        ],
        "interaction_query": [
            "SELECT * FROM student",
            "SELECT count(*) FROM student",
            "SELECT count(*) ,  dept_code FROM student GROUP BY dept_code"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT sum(stu_hrs) ,  dept_code FROM student GROUP BY dept_code",
        "final_utterance": "How many hours do the students spend studying in each department?",
        "interaction_utterance": [
            "For each department, how many students does it have?",
            "For each department, what is the total hours worked by those students?"
        ],
        "interaction_query": [
            "SELECT count(*) ,  dept_code FROM student GROUP BY dept_code",
            "SELECT sum(stu_hrs) ,  dept_code FROM student GROUP BY dept_code"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT max(stu_gpa) ,  avg(stu_gpa) ,  min(stu_gpa) ,  dept_code FROM student GROUP BY dept_code",
        "final_utterance": "What is the highest, lowest, and average student GPA for every department?",
        "interaction_utterance": [
            "what are the student GPAs?",
            "What is average for each department?",
            "Also, find the highest and lowest pga?"
        ],
        "interaction_query": [
            "SELECT stu_gpa FROM student",
            "SELECT avg(stu_gpa) ,  dept_code FROM student GROUP BY dept_code",
            "SELECT max(stu_gpa) ,  avg(stu_gpa) ,  min(stu_gpa) ,  dept_code FROM student GROUP BY dept_code"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T2.dept_name ,  avg(T1.stu_gpa) FROM student AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.dept_code ORDER BY avg(T1.stu_gpa) DESC LIMIT 1",
        "final_utterance": "Which department has the highest average student GPA, and what is the average gpa?",
        "interaction_utterance": [
            "What is the average GPA of all students?",
            "How about the average GPA of students in each department?",
            "Also, find the corresponding name of each department?",
            "Which one has the highest average GPA?"
        ],
        "interaction_query": [
            "SELECT avg(stu_gpa) FROM student",
            "SELECT dept_code ,  avg(stu_gpa) FROM student GROUP BY dept_code",
            "SELECT T2.dept_name ,  avg(T1.stu_gpa) FROM student AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.dept_code",
            "SELECT T2.dept_name ,  avg(T1.stu_gpa) FROM student AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.dept_code ORDER BY avg(T1.stu_gpa) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(DISTINCT school_code) FROM department",
        "final_utterance": "How many schools are there in the department?",
        "interaction_utterance": [
            "What are the school codes?",
            "Remove any repeating ones.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT school_code FROM department",
            "SELECT DISTINCT school_code FROM department",
            "SELECT count(DISTINCT school_code) FROM department"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(DISTINCT class_code) FROM CLASS",
        "final_utterance": "How many unique classes are offered?",
        "interaction_utterance": [
            "What are the different class codes?",
            "How many of them are there?"
        ],
        "interaction_query": [
            "SELECT DISTINCT class_code FROM CLASS",
            "SELECT count(DISTINCT class_code) FROM CLASS"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(DISTINCT crs_code) FROM CLASS",
        "final_utterance": "What are the number of different course codes?",
        "interaction_utterance": [
            "What are the course codes?",
            "What are the unique ones?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT crs_code FROM CLASS",
            "SELECT DISTINCT crs_code FROM CLASS",
            "SELECT count(DISTINCT crs_code) FROM CLASS"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(DISTINCT dept_name) FROM department",
        "final_utterance": "How many different departments are there?",
        "interaction_utterance": [
            "What are the different department names?",
            "How many does it offer?"
        ],
        "interaction_query": [
            "SELECT DISTINCT dept_name FROM department",
            "SELECT count(DISTINCT dept_name) FROM department"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(*) FROM department AS T1 JOIN course AS T2 ON T1.dept_code  =  T2.dept_code WHERE dept_name  =  \"Computer Info. Systems\"",
        "final_utterance": "How many courses does the department of Computer Information Systmes offer?",
        "interaction_utterance": [
            "What can you tell me about the Computer Info. Systems department?",
            "What courses does it offer?",
            "How many courses is that?"
        ],
        "interaction_query": [
            "SELECT * FROM department WHERE dept_name  =  \"Computer Info. Systems\"",
            "SELECT * FROM department AS T1 JOIN course AS T2 ON T1.dept_code  =  T2.dept_code WHERE dept_name  =  \"Computer Info. Systems\"",
            "SELECT count(*) FROM department AS T1 JOIN course AS T2 ON T1.dept_code  =  T2.dept_code WHERE dept_name  =  \"Computer Info. Systems\""
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(DISTINCT class_section) FROM CLASS WHERE crs_code  =  'ACCT-211'",
        "final_utterance": "What is the number of different class sections offered in the course ACCT-211?",
        "interaction_utterance": [
            "What are the different class sections?",
            "What about for the course ACCT-211?",
            "How many different ones does it offer?"
        ],
        "interaction_query": [
            "SELECT DISTINCT class_section FROM CLASS",
            "SELECT DISTINCT class_section FROM CLASS WHERE crs_code  =  'ACCT-211'",
            "SELECT count(DISTINCT class_section) FROM CLASS WHERE crs_code  =  'ACCT-211'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT sum(T1.crs_credit) ,  T1.dept_code FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code  =  T2.crs_code GROUP BY T1.dept_code",
        "final_utterance": "What are the total number of credits offered by each department?",
        "interaction_utterance": [
            "List codes of all courses and their credits.",
            "What is the total number of credits for each department?"
        ],
        "interaction_query": [
            "SELECT crs_credit ,  crs_code FROM course",
            "SELECT sum(T1.crs_credit) ,  T1.dept_code FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code  =  T2.crs_code GROUP BY T1.dept_code"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T3.dept_name FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code  =  T2.crs_code JOIN department AS T3 ON T1.dept_code  =  T3.dept_code GROUP BY T1.dept_code ORDER BY sum(T1.crs_credit) DESC LIMIT 1",
        "final_utterance": "Which department offers the most credits all together?",
        "interaction_utterance": [
            "how many total course credits does each department offer?",
            "Find the department that offers the most number of credits of classes?",
            "What is the name of that department?"
        ],
        "interaction_query": [
            "SELECT sum(T1.crs_credit) ,  T1.dept_code FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code  =  T2.crs_code GROUP BY T1.dept_code",
            "SELECT * FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code  =  T2.crs_code GROUP BY T1.dept_code ORDER BY sum(T1.crs_credit) DESC LIMIT 1",
            "SELECT T3.dept_name FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code  =  T2.crs_code JOIN department AS T3 ON T1.dept_code  =  T3.dept_code GROUP BY T1.dept_code ORDER BY sum(T1.crs_credit) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code WHERE T1.crs_code  =  'ACCT-211'",
        "final_utterance": "What are the total number of students enrolled in ACCT-211?",
        "interaction_utterance": [
            "Can you tell me about course ACCT-211?",
            "How many students are enrolled in this class?"
        ],
        "interaction_query": [
            "SELECT * FROM CLASS WHERE crs_code  =  'ACCT-211'",
            "SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code WHERE T1.crs_code  =  'ACCT-211'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T2.stu_num  =  T3.stu_num WHERE T1.crs_code  =  'ACCT-211'",
        "final_utterance": "What are the first names of all students in course ACCT-211?",
        "interaction_utterance": [
            "Can you tell me about course ACCT-211?",
            "How many students are enrolled in this class?",
            "What are their corresponding first names?"
        ],
        "interaction_query": [
            "SELECT * FROM CLASS WHERE crs_code  =  'ACCT-211'",
            "SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code WHERE T1.crs_code  =  'ACCT-211'",
            "SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T2.stu_num  =  T3.stu_num WHERE T1.crs_code  =  'ACCT-211'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T2.stu_num  =  T3.stu_num WHERE T1.crs_code  =  'ACCT-211' AND T2.enroll_grade  =  'C'",
        "final_utterance": "What are the first names of all students who took ACCT-211 and received a C?",
        "interaction_utterance": [
            "Which students were enrollment in the course ACCT-211?",
            "Which of those received C's as grades?",
            "What are their first names?"
        ],
        "interaction_query": [
            "SELECT * FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T2.stu_num  =  T3.stu_num WHERE T1.crs_code  =  'ACCT-211'",
            "SELECT * FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T2.stu_num  =  T3.stu_num WHERE T1.crs_code  =  'ACCT-211' AND T2.enroll_grade  =  'C'",
            "SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T2.stu_num  =  T3.stu_num WHERE T1.crs_code  =  'ACCT-211' AND T2.enroll_grade  =  'C'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(*) FROM employee",
        "final_utterance": "How many employees are there all together?",
        "interaction_utterance": [
            "Tell me everything about the employees.",
            "How many of them are there?"
        ],
        "interaction_query": [
            "SELECT * FROM employee",
            "SELECT count(*) FROM employee"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(*) FROM professor WHERE prof_high_degree  =  'Ph.D.'",
        "final_utterance": "What is the total number of professors with a Ph.D. ?",
        "interaction_utterance": [
            "Who are all professors?",
            "What about those who have a Ph.D. degree.",
            "How many of them are there?"
        ],
        "interaction_query": [
            "SELECT * FROM professor",
            "SELECT * FROM professor WHERE prof_high_degree  =  'Ph.D.'",
            "SELECT count(*) FROM professor WHERE prof_high_degree  =  'Ph.D.'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN department AS T4 ON T3.dept_code  =  T4.dept_code WHERE T4.dept_name  =  'Accounting'",
        "final_utterance": "How many students are enrolled in some classes that are taught by an accounting professor?",
        "interaction_utterance": [
            "Find the all info about the accounting department.",
            "Which classes are taught the department?",
            "How many students are enrolled in those classes?"
        ],
        "interaction_query": [
            "SELECT * FROM department WHERE dept_name  =  'Accounting'",
            "SELECT * FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code  =  T2.crs_code JOIN department AS T3 ON T3.dept_code  =  T2.dept_code WHERE T3.dept_name  =  'Accounting'",
            "SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN department AS T4 ON T3.dept_code  =  T4.dept_code WHERE T4.dept_name  =  'Accounting'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN department AS T4 ON T3.dept_code  =  T4.dept_code GROUP BY T3.dept_code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the name of the department with the most students enrolled?",
        "interaction_utterance": [
            "Find number of students enrolled in some classes offered by each department.",
            "Which department has the most number of students enrolled?",
            "What is the corresponding department name?"
        ],
        "interaction_query": [
            "SELECT count(*) ,  T3.dept_code FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN course AS T3 ON T1.crs_code  =  T3.crs_code GROUP BY T3.dept_code",
            "SELECT * FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN course AS T3 ON T1.crs_code  =  T3.crs_code GROUP BY T3.dept_code ORDER BY count(*) DESC LIMIT 1",
            "SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN department AS T4 ON T3.dept_code  =  T4.dept_code GROUP BY T3.dept_code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT dept_name FROM department ORDER BY dept_name",
        "final_utterance": "What are the names of all departments in alphabetical order?",
        "interaction_utterance": [
            "What are the names of each department?",
            "Order them alphabetically."
        ],
        "interaction_query": [
            "SELECT dept_name FROM department",
            "SELECT dept_name FROM department ORDER BY dept_name"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT class_code FROM CLASS WHERE class_room  =  'KLR209'",
        "final_utterance": "What are the codes of all the courses that are located in room KLR209?",
        "interaction_utterance": [
            "Tell me about all classes.",
            "Which of those take place in room KLR209?",
            "What are their codes?"
        ],
        "interaction_query": [
            "SELECT * FROM CLASS",
            "SELECT * FROM CLASS WHERE class_room  =  'KLR209'",
            "SELECT class_code FROM CLASS WHERE class_room  =  'KLR209'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT emp_fname FROM employee WHERE emp_jobcode  =  'PROF' ORDER BY emp_dob",
        "final_utterance": "What are the first names of all employees that are professors ordered by date of birth?",
        "interaction_utterance": [
            "Order the employee information by date of birth.",
            "Which of these employees have jobs as professors?",
            "What are their first names?"
        ],
        "interaction_query": [
            "SELECT * FROM employee ORDER BY emp_dob",
            "SELECT * FROM employee WHERE emp_jobcode  =  'PROF' ORDER BY emp_dob",
            "SELECT emp_fname FROM employee WHERE emp_jobcode  =  'PROF' ORDER BY emp_dob"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T2.emp_fname ,  T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num  =  T2.emp_num ORDER BY T2.emp_fname",
        "final_utterance": "What are the first names and office locations for all professors sorted alphabetically by first name?",
        "interaction_utterance": [
            "Order the employees alphabetically by first name",
            "Which of those are professors?",
            "What are their first names and office locations?"
        ],
        "interaction_query": [
            "SELECT * FROM employee ORDER BY emp_fname",
            "SELECT * FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num  =  T2.emp_num ORDER BY T2.emp_fname",
            "SELECT T2.emp_fname ,  T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num  =  T2.emp_num ORDER BY T2.emp_fname"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT emp_fname ,  emp_lname FROM employee ORDER BY emp_dob LIMIT 1",
        "final_utterance": "What are the first and last names of the employee with the earliest date of birth?",
        "interaction_utterance": [
            "What are the employees' first names?",
            "Also, what are their last names?",
            "Which of those refer to the oldest employee?"
        ],
        "interaction_query": [
            "SELECT emp_fname FROM employee",
            "SELECT emp_fname ,  emp_lname FROM employee",
            "SELECT emp_fname ,  emp_lname FROM employee ORDER BY emp_dob LIMIT 1"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT stu_fname ,  stu_lname ,  stu_gpa FROM student WHERE stu_gpa  >  3 ORDER BY stu_dob DESC LIMIT 1",
        "final_utterance": "What is the first and last name of the youngest student with a GPA above 3, and what is their GPA?",
        "interaction_utterance": [
            "List all information on students with a higher GPA than 3",
            "What information is for the youngest student?",
            "What are their first name, last name, and GPA?"
        ],
        "interaction_query": [
            "SELECT * FROM student WHERE stu_gpa  >  3",
            "SELECT * FROM student WHERE stu_gpa  >  3 ORDER BY stu_dob DESC LIMIT 1",
            "SELECT stu_fname ,  stu_lname ,  stu_gpa FROM student WHERE stu_gpa  >  3 ORDER BY stu_dob DESC LIMIT 1"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT DISTINCT stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num WHERE enroll_grade  =  'C'",
        "final_utterance": "What are the first names of all students who got a grade C in a class?",
        "interaction_utterance": [
            "What are the student ids of all students who received an enrollment grade of C?",
            "What are the first names that correspond to each student id?",
            "What is a list of distinct first names?"
        ],
        "interaction_query": [
            "SELECT stu_num FROM enroll WHERE enroll_grade  =  'C'",
            "SELECT stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num WHERE enroll_grade  =  'C'",
            "SELECT DISTINCT stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num WHERE enroll_grade  =  'C'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T2.dept_name FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) LIMIT 1",
        "final_utterance": "What is the name of the department with the fewest professors?",
        "interaction_utterance": [
            "For each department, what is the corresponding number of professors?",
            "For the department with the fewest professors, what is its name and code?"
        ],
        "interaction_query": [
            "SELECT count(*) ,  T1.dept_code FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.dept_code",
            "SELECT T2.dept_name ,  T1.dept_code FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) LIMIT 1"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T2.dept_name ,  T1.dept_code FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code WHERE T1.prof_high_degree  =  'Ph.D.' GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which department has the most professors with a Ph.D.?",
        "interaction_utterance": [
            "Which professors do have a Ph.D. degree?",
            "How many of those professors are in each department?",
            "Find the code of the department that has the most of them.",
            "What is the name of that department?"
        ],
        "interaction_query": [
            "SELECT * FROM professor WHERE prof_high_degree  =  'Ph.D.'",
            "SELECT count(*) ,  dept_code FROM professor WHERE prof_high_degree  =  'Ph.D.' GROUP BY dept_code",
            "SELECT dept_code FROM professor WHERE prof_high_degree  =  'Ph.D.' GROUP BY dept_code ORDER BY count(*) DESC LIMIT 1",
            "SELECT T2.dept_name FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code WHERE T1.prof_high_degree  =  'Ph.D.' GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT emp_fname FROM employee WHERE emp_jobcode  =  'PROF' EXCEPT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num  =  T2.prof_num",
        "final_utterance": "What are the first names of all professors not teaching any classes?",
        "interaction_utterance": [
            "What is the first names of employees whose job code is PROF?",
            "Which of them are not teaching any class?"
        ],
        "interaction_query": [
            "SELECT emp_fname FROM employee WHERE emp_jobcode  =  'PROF'",
            "SELECT emp_fname FROM employee WHERE emp_jobcode  =  'PROF' EXCEPT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num  =  T2.prof_num"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T1.emp_fname FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num JOIN department AS T3 ON T2.dept_code  =  T3.dept_code WHERE T3.dept_name  =  'History' EXCEPT SELECT T4.emp_fname FROM employee AS T4 JOIN CLASS AS T5 ON T4.emp_num  =  T5.prof_num",
        "final_utterance": "What are the first names of all history professors who do not teach?",
        "interaction_utterance": [
            "What are the first names of all employees who are teaching classes?",
            "Please list the first names of all other professors.",
            "Which of these refer to teachers in the history department?"
        ],
        "interaction_query": [
            "SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num  =  T2.prof_num",
            "SELECT T1.emp_fname FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num JOIN department AS T3 ON T2.dept_code  =  T3.dept_code EXCEPT SELECT T4.emp_fname FROM employee AS T4 JOIN CLASS AS T5 ON T4.emp_num  =  T5.prof_num",
            "SELECT T1.emp_fname FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num JOIN department AS T3 ON T2.dept_code  =  T3.dept_code WHERE T3.dept_name  =  'History' EXCEPT SELECT T4.emp_fname FROM employee AS T4 JOIN CLASS AS T5 ON T4.emp_num  =  T5.prof_num"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T1.emp_lname ,  T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num JOIN department AS T3 ON T2.dept_code  =  T3.dept_code WHERE T3.dept_name  =  'History'",
        "final_utterance": "What are the last name and office of all history professors?",
        "interaction_utterance": [
            "What is all the information about the history department?",
            "What are the names of professors in this department?",
            "Also, where are their offices located?"
        ],
        "interaction_query": [
            "SELECT * FROM department WHERE dept_name  =  'History'",
            "SELECT T1.emp_lname FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num JOIN department AS T3 ON T2.dept_code  =  T3.dept_code WHERE T3.dept_name  =  'History'",
            "SELECT T1.emp_lname ,  T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num JOIN department AS T3 ON T2.dept_code  =  T3.dept_code WHERE T3.dept_name  =  'History'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T3.dept_name  ,  T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num JOIN department AS T3 ON T2.dept_code  =  T3.dept_code WHERE T1.emp_lname  =  'Heffington'",
        "final_utterance": "What is the name of the department and office location for the professor with the last name of Heffington?",
        "interaction_utterance": [
            "Find me all employees with the last name 'Heffington'?",
            "What are the names of their departments?",
            "Also, where are their offices located?"
        ],
        "interaction_query": [
            "SELECT * FROM employee WHERE emp_lname  =  'Heffington'",
            "SELECT T3.dept_name FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num JOIN department AS T3 ON T2.dept_code  =  T3.dept_code WHERE T1.emp_lname  =  'Heffington'",
            "SELECT T3.dept_name  ,  T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num JOIN department AS T3 ON T2.dept_code  =  T3.dept_code WHERE T1.emp_lname  =  'Heffington'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T1.emp_lname ,  T1.emp_hiredate FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num WHERE T2.prof_office  =  'DRE 102'",
        "final_utterance": "What is the last name of the professor whose office is located in DRE 102, and when were they hired?",
        "interaction_utterance": [
            "Find the professors whose office is located in room DRE 102?",
            "What are their last names?",
            "When were they hired?"
        ],
        "interaction_query": [
            "SELECT * FROM professor WHERE prof_office  =  'DRE 102'",
            "SELECT T1.emp_lname FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num WHERE T2.prof_office  =  'DRE 102'",
            "SELECT T1.emp_hiredate FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num WHERE T2.prof_office  =  'DRE 102'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T1.crs_code FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T3.stu_num  =  T2.stu_num WHERE T3.stu_lname  =  'Smithson'",
        "final_utterance": "What are the course codes for every class that the student with the last name Smithson took?",
        "interaction_utterance": [
            "Find all information on students.",
            "Which of that information refers to people with the last name Smithson?",
            "What are the codes of the courses they took?"
        ],
        "interaction_query": [
            "SELECT * FROM student",
            "SELECT * FROM student WHERE stu_lname  =  'Smithson'",
            "SELECT T1.crs_code FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T3.stu_num  =  T2.stu_num WHERE T3.stu_lname  =  'Smithson'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T4.crs_description ,  T4.crs_credit FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T3.stu_num  =  T2.stu_num JOIN course AS T4 ON T4.crs_code  =  T1.crs_code WHERE T3.stu_lname  =  'Smithson'",
        "final_utterance": "How many credits is the course that the student with the last name Smithson took, and what is its description?",
        "interaction_utterance": [
            "What are the course descriptions?",
            "Also, show credits.",
            "Which of the above refer to courses that a student with the last name 'Smithson' took?"
        ],
        "interaction_query": [
            "SELECT crs_description FROM course",
            "SELECT crs_description ,  crs_credit FROM course",
            "SELECT T4.crs_description ,  T4.crs_credit FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T3.stu_num  =  T2.stu_num JOIN course AS T4 ON T4.crs_code  =  T1.crs_code WHERE T3.stu_lname  =  'Smithson'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(*) FROM professor WHERE prof_high_degree  =  'Ph.D.' OR prof_high_degree  =  'MA'",
        "final_utterance": "How many professors attained either Ph.D. or Masters degrees?",
        "interaction_utterance": [
            "What information do you have on professors who got a Ph.D.?",
            "Also, combine that with information you have on professors with a Masters?",
            "How many are there in total?"
        ],
        "interaction_query": [
            "SELECT * FROM professor WHERE prof_high_degree  =  'Ph.D.'",
            "SELECT * FROM professor WHERE prof_high_degree  =  'Ph.D.' OR prof_high_degree  =  'MA'",
            "SELECT count(*) FROM professor WHERE prof_high_degree  =  'Ph.D.' OR prof_high_degree  =  'MA'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT count(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code WHERE T2.dept_name  =  'Accounting' OR T2.dept_name  =  'Biology'",
        "final_utterance": "What is the number of professors who are in the Accounting or Biology departments?",
        "interaction_utterance": [
            "What information do you have on professors in the Accounting department?",
            "Also, what do you have on professors in the Biology department?",
            "How many of them are there?"
        ],
        "interaction_query": [
            "SELECT * FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code WHERE T2.dept_name  =  'Accounting'",
            "SELECT * FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code WHERE T2.dept_name  =  'Accounting' OR T2.dept_name  =  'Biology'",
            "SELECT count(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code WHERE T2.dept_name  =  'Accounting' OR T2.dept_name  =  'Biology'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num  =  T2.prof_num WHERE crs_code  =  'CIS-220' INTERSECT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num  =  T2.prof_num WHERE crs_code  =  'QM-261'",
        "final_utterance": "What is the first name of the professor who is teaching CIS-220 and QM-261?",
        "interaction_utterance": [
            "What are the first names of all professors teaching CIS-220?",
            "What are the first names of all professors teaching QM-261?",
            "Who is teaching both?"
        ],
        "interaction_query": [
            "SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num  =  T2.prof_num WHERE crs_code  =  'CIS-220'",
            "SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num  =  T2.prof_num WHERE crs_code  =  'QM-261'",
            "SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num  =  T2.prof_num WHERE crs_code  =  'CIS-220' INTERSECT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num  =  T2.prof_num WHERE crs_code  =  'QM-261'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num JOIN CLASS AS T3 ON T2.class_code  =  T3.class_code JOIN course AS T4 ON T3.crs_code  =  T4.crs_code JOIN department AS T5 ON T5.dept_code  =  T4.dept_code WHERE T5.dept_name  =  'Accounting' INTERSECT SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num JOIN CLASS AS T3 ON T2.class_code  =  T3.class_code JOIN course AS T4 ON T3.crs_code  =  T4.crs_code JOIN department AS T5 ON T5.dept_code  =  T4.dept_code WHERE T5.dept_name  =  'Computer Info. Systems'",
        "final_utterance": "What are the first names of all students taking accoutning and Computer Information Systems classes?",
        "interaction_utterance": [
            "What are the first names of all students taking some classes from the Accounting department?",
            "Of those, who also took some classes from the Computer Information Systems department?"
        ],
        "interaction_query": [
            "SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num JOIN CLASS AS T3 ON T2.class_code  =  T3.class_code JOIN course AS T4 ON T3.crs_code  =  T4.crs_code JOIN department AS T5 ON T5.dept_code  =  T4.dept_code WHERE T5.dept_name  =  'Accounting'",
            "SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num JOIN CLASS AS T3 ON T2.class_code  =  T3.class_code JOIN course AS T4 ON T3.crs_code  =  T4.crs_code JOIN department AS T5 ON T5.dept_code  =  T4.dept_code WHERE T5.dept_name  =  'Accounting' INTERSECT SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num JOIN CLASS AS T3 ON T2.class_code  =  T3.class_code JOIN course AS T4 ON T3.crs_code  =  T4.crs_code JOIN department AS T5 ON T5.dept_code  =  T4.dept_code WHERE T5.dept_name  =  'Computer Info. Systems'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT avg(T2.stu_gpa) FROM enroll AS T1 JOIN student AS T2 ON T1.stu_num  =  T2.stu_num JOIN CLASS AS T3 ON T1.class_code  =  T3.class_code WHERE T3.crs_code  =  'ACCT-211'",
        "final_utterance": "What is the average GPA of students taking ACCT-211?",
        "interaction_utterance": [
            "What are all the student GPAs?",
            "Which of those are for students taking course ACCT-211?",
            "What is their average GPA?"
        ],
        "interaction_query": [
            "SELECT stu_gpa FROM student",
            "SELECT T2.stu_gpa FROM enroll AS T1 JOIN student AS T2 ON T1.stu_num  =  T2.stu_num JOIN CLASS AS T3 ON T1.class_code  =  T3.class_code WHERE T3.crs_code  =  'ACCT-211'",
            "SELECT avg(T2.stu_gpa) FROM enroll AS T1 JOIN student AS T2 ON T1.stu_num  =  T2.stu_num JOIN CLASS AS T3 ON T1.class_code  =  T3.class_code WHERE T3.crs_code  =  'ACCT-211'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT stu_gpa ,  stu_phone ,  stu_fname FROM student ORDER BY stu_gpa DESC LIMIT 5",
        "final_utterance": "What is the first name, GPA, and phone number of the students with the top 5 GPAs?",
        "interaction_utterance": [
            "What is the GPA, phone number, and first name for all students?",
            "Order this information from highest GPA to lowest.",
            "What is the information for the top 5 GPAs?"
        ],
        "interaction_query": [
            "SELECT stu_gpa ,  stu_phone ,  stu_fname FROM student",
            "SELECT stu_gpa ,  stu_phone ,  stu_fname FROM student ORDER BY stu_gpa DESC",
            "SELECT stu_gpa ,  stu_phone ,  stu_fname FROM student ORDER BY stu_gpa DESC LIMIT 5"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T2.dept_name FROM student AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code ORDER BY stu_gpa LIMIT 1",
        "final_utterance": "What is the name of the department with the student that has the lowest GPA?",
        "interaction_utterance": [
            "Who is the student with lowest gpa?",
            "What is the department name for the student?"
        ],
        "interaction_query": [
            "SELECT * FROM student ORDER BY stu_gpa LIMIT 1",
            "SELECT T2.dept_name FROM student AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code ORDER BY stu_gpa LIMIT 1"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT stu_fname ,  stu_gpa FROM student WHERE stu_gpa  <  (SELECT avg(stu_gpa) FROM student)",
        "final_utterance": "What is the first name and GPA of every student that has a GPA lower than average?",
        "interaction_utterance": [
            "What is the average student GPA?",
            "Find students with a GPA less than that?",
            "What are their first names and GPAs?"
        ],
        "interaction_query": [
            "SELECT avg(stu_gpa) FROM student",
            "SELECT * FROM student WHERE stu_gpa  <  (SELECT avg(stu_gpa) FROM student)",
            "SELECT stu_fname ,  stu_gpa FROM student WHERE stu_gpa  <  (SELECT avg(stu_gpa) FROM student)"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T2.dept_name ,  T2.dept_address FROM student AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the name and address of the department with the most students?",
        "interaction_utterance": [
            "What is the number of students in each department?",
            "Which one has the most students?",
            "What is that department's name and address?"
        ],
        "interaction_query": [
            "SELECT count(*) ,  dept_code FROM student GROUP BY dept_code",
            "SELECT * FROM student GROUP BY dept_code ORDER BY count(*) DESC LIMIT 1",
            "SELECT T2.dept_name ,  T2.dept_address FROM student AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T2.dept_name ,  T2.dept_address ,  count(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 3",
        "final_utterance": "What is the name, address, and number of students in the departments that have the 3 most students?",
        "interaction_utterance": [
            "What are the names and address for each department?",
            "Also, how many students are in each department?",
            "Which of that information refers to the top 3 departments ordered by number of students?"
        ],
        "interaction_query": [
            "SELECT dept_name ,  dept_address FROM department",
            "SELECT T2.dept_name ,  T2.dept_address ,  count(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.dept_code",
            "SELECT T2.dept_name ,  T2.dept_address ,  count(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 3"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T1.emp_fname ,  T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num JOIN department AS T3 ON T3.dept_code  =  T2.dept_code WHERE T3.dept_name  =  'History' AND T2.prof_high_degree  =  'Ph.D.'",
        "final_utterance": "What are the first names and office of the professors who are in the history department and have a Ph.D?",
        "interaction_utterance": [
            "Which professors do have a Ph.D.?",
            "Also, which of these are in the history department?",
            "What are their first names and location of their offices?"
        ],
        "interaction_query": [
            "SELECT * FROM professor WHERE prof_high_degree  =  'Ph.D.'",
            "SELECT * FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code WHERE T2.dept_name  =  'History' AND T1.prof_high_degree  =  'Ph.D.'",
            "SELECT T1.emp_fname ,  T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num JOIN department AS T3 ON T3.dept_code  =  T2.dept_code WHERE T3.dept_name  =  'History' AND T2.prof_high_degree  =  'Ph.D.'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T2.emp_fname ,  T1.crs_code FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num",
        "final_utterance": "What are the first names of all teachers who have taught a course and the corresponding course codes?",
        "interaction_utterance": [
            "What are the first names of all employees?",
            "who are teaching some courses?",
            "Also, what courses do they teach?"
        ],
        "interaction_query": [
            "SELECT emp_fname FROM employee",
            "SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num",
            "SELECT T2.emp_fname ,  T1.crs_code FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T2.emp_fname ,  T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN course AS T3 ON T1.crs_code  =  T3.crs_code",
        "final_utterance": "What are the first names of all teachers who have taught a course and the corresponding descriptions?",
        "interaction_utterance": [
            "Find all employees who taught a course?",
            "What are their first names?",
            "Also, what are the course descriptions of their classes?"
        ],
        "interaction_query": [
            "SELECT * FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num",
            "SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num",
            "SELECT T2.emp_fname ,  T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN course AS T3 ON T1.crs_code  =  T3.crs_code"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T2.emp_fname ,  T4.prof_office ,  T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN professor AS T4 ON T2.emp_num  =  T4.emp_num",
        "final_utterance": "What are the first names, office locations of all lecturers who have taught some course?",
        "interaction_utterance": [
            "Which employees have taught some course?",
            "What are these courses' descriptions?",
            "Also, what are their office locations and the professors' first names?"
        ],
        "interaction_query": [
            "SELECT * FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num",
            "SELECT T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN course AS T3 ON T1.crs_code  =  T3.crs_code",
            "SELECT T2.emp_fname ,  T4.prof_office ,  T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN professor AS T4 ON T2.emp_num  =  T4.emp_num"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T2.emp_fname ,  T4.prof_office ,  T3.crs_description ,  T5.dept_name FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN professor AS T4 ON T2.emp_num  =  T4.emp_num JOIN department AS T5 ON T4.dept_code  =  T5.dept_code",
        "final_utterance": "What are the first names, office locations, and departments of all instructors, and also what are the descriptions of the courses they teach?",
        "interaction_utterance": [
            "Tell me all information on lecturers who have taught a course.",
            "What are the corresponding course descriptions?",
            "Also, what are those professors' first names, office locations, and department name?"
        ],
        "interaction_query": [
            "SELECT * FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num",
            "SELECT T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN course AS T3 ON T1.crs_code  =  T3.crs_code",
            "SELECT T2.emp_fname ,  T4.prof_office ,  T3.crs_description ,  T5.dept_name FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN professor AS T4 ON T2.emp_num  =  T4.emp_num JOIN department AS T5 ON T4.dept_code  =  T5.dept_code"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T1.stu_fname ,  T1.stu_lname ,  T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num JOIN CLASS AS T3 ON T2.class_code  =  T3.class_code JOIN course AS T4 ON T3.crs_code  =  T4.crs_code",
        "final_utterance": "What are the names of all students who took a class and the corresponding course descriptions?",
        "interaction_utterance": [
            "What information is there on students who are taking a class?",
            "What are their first and last names?",
            "Also, what are the descriptions for the courses they are taking?"
        ],
        "interaction_query": [
            "SELECT * FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num",
            "SELECT T1.stu_fname ,  T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num",
            "SELECT T1.stu_fname ,  T1.stu_lname ,  T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num JOIN CLASS AS T3 ON T2.class_code  =  T3.class_code JOIN course AS T4 ON T3.crs_code  =  T4.crs_code"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T1.stu_fname ,  T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num WHERE T2.enroll_grade  =  'C' OR T2.enroll_grade  =  'A'",
        "final_utterance": "What are the names of all students taking a course who received an A or C?",
        "interaction_utterance": [
            "Which students did receive an A in any courses?",
            "Who of them also received a C in any courses?",
            "What are their' first names and last names?"
        ],
        "interaction_query": [
            "SELECT * FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num WHERE T2.enroll_grade  =  'A'",
            "SELECT * FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num WHERE T2.enroll_grade  =  'C' OR T2.enroll_grade  =  'A'",
            "SELECT T1.stu_fname ,  T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num WHERE T2.enroll_grade  =  'C' OR T2.enroll_grade  =  'A'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T2.emp_fname ,  T1.class_room FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN professor AS T3 ON T2.emp_num  =  T3.emp_num JOIN department AS T4 ON T4.dept_code  =  T3.dept_code WHERE T4.dept_name  =  'Accounting'",
        "final_utterance": "What are the first names of all Accounting professors who teach and what are the classrooms of the courses they teach?",
        "interaction_utterance": [
            "What are the first names of all professors who are teaching any classes?",
            "Which of them are from the Accounting department?",
            "Also, what classrooms do they teach in?"
        ],
        "interaction_query": [
            "SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN professor AS T3 ON T2.emp_num  =  T3.emp_num",
            "SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN professor AS T3 ON T2.emp_num  =  T3.emp_num JOIN department AS T4 ON T4.dept_code  =  T3.dept_code WHERE T4.dept_name  =  'Accounting'",
            "SELECT T2.emp_fname ,  T1.class_room FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN professor AS T3 ON T2.emp_num  =  T3.emp_num JOIN department AS T4 ON T4.dept_code  =  T3.dept_code WHERE T4.dept_name  =  'Accounting'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT DISTINCT T2.emp_fname ,  T3.prof_high_degree FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN professor AS T3 ON T2.emp_num  =  T3.emp_num JOIN department AS T4 ON T4.dept_code  =  T3.dept_code WHERE T4.dept_name  =  'Computer Info. Systems'",
        "final_utterance": "What are the different first names and highest degree attained for professors teaching in the Computer Information Systems department?",
        "interaction_utterance": [
            "Which professors are teaching some classes?",
            "Which of them are from the Computer Information Systems department?",
            "What are their first names and highest degrees?"
        ],
        "interaction_query": [
            "SELECT * FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN professor AS T3 ON T2.emp_num  =  T3.emp_num",
            "SELECT * FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN professor AS T3 ON T2.emp_num  =  T3.emp_num JOIN department AS T4 ON T4.dept_code  =  T3.dept_code WHERE T4.dept_name  =  'Computer Info. Systems'",
            "SELECT DISTINCT T2.emp_fname ,  T3.prof_high_degree FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN professor AS T3 ON T2.emp_num  =  T3.emp_num JOIN department AS T4 ON T4.dept_code  =  T3.dept_code WHERE T4.dept_name  =  'Computer Info. Systems'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num WHERE T2.enroll_grade  =  'A' AND T2.class_code  =  10018",
        "final_utterance": "What is the last name of the student who received an A in the class with the code 10018?",
        "interaction_utterance": [
            "What are the last names of all students?",
            "Which of those refer to students who received a grade of A in some classes?",
            "Of those, who is enrolled in 10018?"
        ],
        "interaction_query": [
            "SELECT stu_lname FROM student",
            "SELECT T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num WHERE T2.enroll_grade  =  'A'",
            "SELECT T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num WHERE T2.enroll_grade  =  'A' AND T2.class_code  =  10018"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T2.emp_fname ,  T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num  =  T2.emp_num JOIN department AS T3 ON T1.dept_code  =  T3.dept_code WHERE T3.dept_name  =  'History' AND T1.prof_high_degree ! =  'Ph.D.'",
        "final_utterance": "What are the first names and offices of history professors who don't have Ph.D.s?",
        "interaction_utterance": [
            "What are the first names of all professors?",
            "Which of those are in the History department?",
            "Of those, who does not have a Ph.D.?"
        ],
        "interaction_query": [
            "SELECT emp_fname FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num  =  T2.emp_num",
            "SELECT T2.emp_fname ,  T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num  =  T2.emp_num JOIN department AS T3 ON T1.dept_code  =  T3.dept_code WHERE T3.dept_name  =  'History'",
            "SELECT T2.emp_fname ,  T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num  =  T2.emp_num JOIN department AS T3 ON T1.dept_code  =  T3.dept_code WHERE T3.dept_name  =  'History' AND T1.prof_high_degree ! =  'Ph.D.'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num GROUP BY T1.prof_num HAVING count(*)  >  1",
        "final_utterance": "What are the first names of all professors who teach more than one class?",
        "interaction_utterance": [
            "Find the first names of all professors?",
            "Which of those teach more than one class?"
        ],
        "interaction_query": [
            "SELECT emp_fname FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num  =  T2.emp_num",
            "SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num GROUP BY T1.prof_num HAVING count(*)  >  1"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num GROUP BY T2.stu_num HAVING count(*)  =  1",
        "final_utterance": "What are the first names of student who only took one course?",
        "interaction_utterance": [
            "How many courses is each student enrolled in?",
            "Which students are enrolled in only one?",
            "What are their first names?"
        ],
        "interaction_query": [
            "SELECT count(*) ,  T1.stu_num FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num GROUP BY T1.stu_num",
            "SELECT * FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num GROUP BY T2.stu_num HAVING count(*)  =  1",
            "SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num GROUP BY T2.stu_num HAVING count(*)  =  1"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T2.dept_name FROM course AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code WHERE T1.crs_description LIKE '%Statistics%'",
        "final_utterance": "What is the name of the department that offers a course that has a description including the word \"Statistics\"?",
        "interaction_utterance": [
            "Which courses have a description including the word \"Statistics\"?",
            "What is the name of the departments those courses are in?"
        ],
        "interaction_query": [
            "SELECT * FROM course WHERE crs_description LIKE '%Statistics%'",
            "SELECT T2.dept_name FROM course AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code WHERE T1.crs_description LIKE '%Statistics%'"
        ]
    },
    {
        "db_id": "college_1",
        "final_query": "SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num JOIN CLASS AS T3 ON T2.class_code  =  T3.class_code WHERE T3.crs_code  =  'ACCT-211' AND T1.stu_lname LIKE 'S%'",
        "final_utterance": "What is the first name of the student whose last name starts with the letter S and is taking ACCT-211?",
        "interaction_utterance": [
            "What information is on students whose name starts with 'S'?",
            "Which of them took course ACCT-211?",
            "What are their first names?"
        ],
        "interaction_query": [
            "SELECT * FROM student WHERE stu_lname LIKE 'S%'",
            "SELECT * FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num JOIN CLASS AS T3 ON T2.class_code  =  T3.class_code WHERE T3.crs_code  =  'ACCT-211' AND T1.stu_lname LIKE 'S%'",
            "SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num JOIN CLASS AS T3 ON T2.class_code  =  T3.class_code WHERE T3.crs_code  =  'ACCT-211' AND T1.stu_lname LIKE 'S%'"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT roomName FROM Rooms WHERE basePrice  <  160 AND beds =  2 AND decor  =  'modern';",
        "final_utterance": "What are the names of modern rooms that have a base price lower than $160 and two beds.",
        "interaction_utterance": [
            "Find all the modern rooms.",
            "Of those, which have a base price lower than $160 and two beds? Return the room names."
        ],
        "interaction_query": [
            "SELECT * FROM Rooms WHERE decor  =  'modern'",
            "SELECT roomName FROM Rooms WHERE basePrice  <  160 AND beds =  2 AND decor  =  'modern';"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT roomName ,  RoomId FROM Rooms WHERE basePrice  >  160 AND maxOccupancy  >  2;",
        "final_utterance": "What are the room names and ids of all the rooms that cost more than 160 and can accommodate more than two people.",
        "interaction_utterance": [
            "Find all the rooms whose price is above 160.",
            "Of those, which rooms can accommodate more than two people?",
            "Give me the name and id of those rooms."
        ],
        "interaction_query": [
            "SELECT * FROM Rooms WHERE basePrice  >  160",
            "SELECT * FROM Rooms WHERE basePrice  >  160 AND maxOccupancy  >  2;",
            "SELECT roomName ,  RoomId FROM Rooms WHERE basePrice  >  160 AND maxOccupancy  >  2;"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room ORDER BY count(*) DESC LIMIT 1;",
        "final_utterance": "Which room has the largest number of reservations?",
        "interaction_utterance": [
            "How many reservations were made for each room?",
            "Which room has the largest number of reservations?",
            "Tell me the name of that room."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Reservations GROUP BY Room",
            "SELECT * FROM Reservations GROUP BY Room ORDER BY count(*) DESC LIMIT 1",
            "SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room ORDER BY count(*) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT kids FROM Reservations WHERE FirstName = \"ROY\" AND LastName  =  \"SWEAZY\";",
        "final_utterance": "Find the number of kids staying in the rooms reserved by a person called ROY SWEAZ.",
        "interaction_utterance": [
            "Find the reservations made by a person called ROY SWEAZ",
            "How many kids stay in the rooms reserved by this person?"
        ],
        "interaction_query": [
            "SELECT * FROM Reservations WHERE FirstName = \"ROY\" AND LastName  =  \"SWEAZY\";",
            "SELECT kids FROM Reservations WHERE FirstName = \"ROY\" AND LastName  =  \"SWEAZY\";"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT count(*) FROM Reservations WHERE FirstName = \"ROY\" AND LastName  =  \"SWEAZY\";",
        "final_utterance": "Find the number of times ROY SWEAZY has reserved a room.",
        "interaction_utterance": [
            "Find the reservations made by a person called ROY SWEAZ",
            "Count the number of times ROY SWEAZY has made reservations."
        ],
        "interaction_query": [
            "SELECT * FROM Reservations WHERE FirstName = \"ROY\" AND LastName  =  \"SWEAZY\";",
            "SELECT count(*) FROM Reservations WHERE FirstName = \"ROY\" AND LastName  =  \"SWEAZY\";"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT T2.roomName ,  T1.Rate ,  T1.CheckIn ,  T1.CheckOut FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room ORDER BY T1.Rate DESC LIMIT 1;",
        "final_utterance": "Return the name, rate, check in and check out date for the room with the highest rate.",
        "interaction_utterance": [
            "Find the room with the highest rate.",
            "What are the name, rate, check in and check out date of this room?"
        ],
        "interaction_query": [
            "SELECT * FROM Reservations GROUP BY Room ORDER BY Rate DESC LIMIT 1;",
            "SELECT T2.roomName ,  T1.Rate ,  T1.CheckIn ,  T1.CheckOut FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room ORDER BY T1.Rate DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT Adults FROM Reservations WHERE CheckIn  =  \"2010-10-23\" AND FirstName  =  \"CONRAD\" AND LastName  =  \"SELBIG\";",
        "final_utterance": "Find the number of adults for the room reserved and checked in by CONRAD SELBIG on Oct 23, 2010.",
        "interaction_utterance": [
            "Which reservations were made by CONRAD SELBIG?",
            "Which one has check in date Oct 23, 2010?",
            "Find the number of adults for this reservation."
        ],
        "interaction_query": [
            "SELECT * FROM Reservations WHERE FirstName  =  \"CONRAD\" AND LastName  =  \"SELBIG\";",
            "SELECT * FROM Reservations WHERE CheckIn  =  \"2010-10-23\" AND FirstName  =  \"CONRAD\" AND LastName  =  \"SELBIG\";",
            "SELECT Adults FROM Reservations WHERE CheckIn  =  \"2010-10-23\" AND FirstName  =  \"CONRAD\" AND LastName  =  \"SELBIG\";"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT Kids FROM Reservations WHERE CheckIn  =  \"2010-09-21\" AND FirstName  =  \"DAMIEN\" AND LastName  =  \"TRACHSEL\";",
        "final_utterance": "Return the number of kids for the room reserved and checked in by DAMIEN TRACHSEL on  Sep 21, 2010.",
        "interaction_utterance": [
            "Which reservations were made by DAMIEN TRACHSEL?",
            "Which one has check in date Sep 21, 2010?",
            "Find the number of kids for this reservation."
        ],
        "interaction_query": [
            "SELECT * FROM Reservations WHERE FirstName  =  \"DAMIEN\" AND LastName  =  \"TRACHSEL\";",
            "SELECT * FROM Reservations WHERE CheckIn  =  \"2010-09-21\" AND FirstName  =  \"DAMIEN\" AND LastName  =  \"TRACHSEL\";",
            "SELECT Kids FROM Reservations WHERE CheckIn  =  \"2010-09-21\" AND FirstName  =  \"DAMIEN\" AND LastName  =  \"TRACHSEL\";"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT sum(beds) FROM Rooms WHERE bedtype  =  'King';",
        "final_utterance": "Find the total number of king beds available.",
        "interaction_utterance": [
            "Return all the rooms with king beds.",
            "What is the total number of king beds?"
        ],
        "interaction_query": [
            "SELECT * FROM Rooms WHERE bedtype  =  'King';",
            "SELECT sum(beds) FROM Rooms WHERE bedtype  =  'King';"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT roomName ,  decor FROM Rooms WHERE bedtype  =  'King' ORDER BY basePrice;",
        "final_utterance": "What are the names and decor of rooms with a king bed? Sort them by their price",
        "interaction_utterance": [
            "Return all the rooms with king beds.",
            "What are the names and decor of these rooms?",
            "Sort the list by the room base price."
        ],
        "interaction_query": [
            "SELECT * FROM Rooms WHERE bedtype  =  'King'",
            "SELECT roomName ,  decor FROM Rooms WHERE bedtype  =  'King'",
            "SELECT roomName ,  decor FROM Rooms WHERE bedtype  =  'King' ORDER BY basePrice;"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT roomName ,  basePrice FROM Rooms ORDER BY basePrice ASC LIMIT 1;",
        "final_utterance": "What are the room name and base price of the room with the lowest base price?",
        "interaction_utterance": [
            "What is the base price of each room?",
            "Order the rooms by their base price.",
            "Report the room name and base price of the cheapest room."
        ],
        "interaction_query": [
            "SELECT basePrice FROM Rooms",
            "SELECT * FROM Rooms ORDER BY basePrice ASC",
            "SELECT roomName ,  basePrice FROM Rooms ORDER BY basePrice ASC LIMIT 1;"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT decor FROM Rooms WHERE roomName  =  \"Recluse and defiance\";",
        "final_utterance": "Return the decor of the room named \"Recluse and defiance\".",
        "interaction_utterance": [
            "Find the room with name \"Recluse and defiance\".",
            "What is its decor?"
        ],
        "interaction_query": [
            "SELECT * FROM Rooms WHERE roomName  =  \"Recluse and defiance\";",
            "SELECT decor FROM Rooms WHERE roomName  =  \"Recluse and defiance\";"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT bedType ,  avg(basePrice) FROM Rooms GROUP BY bedType;",
        "final_utterance": "For each bed type, find the average base price of different bed type.",
        "interaction_utterance": [
            "Group all the rooms by the bed type.",
            "For each bed type, find the average base price of different bed type."
        ],
        "interaction_query": [
            "SELECT * FROM Rooms GROUP BY bedType;",
            "SELECT bedType ,  avg(basePrice) FROM Rooms GROUP BY bedType;"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT sum(maxOccupancy) FROM Rooms WHERE decor  =  'modern';",
        "final_utterance": "How many people in total can stay in the modern rooms of this inn?",
        "interaction_utterance": [
            "For each modern room, find the maximum number of people who can stay in.",
            "What is the total number of people who can stay in the modern rooms of this inn?"
        ],
        "interaction_query": [
            "SELECT maxOccupancy FROM Rooms WHERE decor  =  'modern';",
            "SELECT sum(maxOccupancy) FROM Rooms WHERE decor  =  'modern';"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT T2.decor FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T2.decor ORDER BY count(T2.decor) ASC LIMIT 1;",
        "final_utterance": "What is the least popular kind of decor?",
        "interaction_utterance": [
            "Find the decor of each room",
            "For each type of decor, how many reservations were made?",
            "Which decor is the least popular?"
        ],
        "interaction_query": [
            "SELECT decor FROM Rooms",
            "SELECT count(T2.decor) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T2.decor",
            "SELECT T2.decor FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T2.decor ORDER BY count(T2.decor) ASC LIMIT 1;"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT count(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId WHERE T2.maxOccupancy  =  T1.Adults + T1.Kids;",
        "final_utterance": "How many times the number of adults and kids staying in a room reached the maximum capacity of the room?",
        "interaction_utterance": [
            "What is the maximum capacity of each room?",
            "What is the number of people who actually stayed for each room reservation? The number of people include adults and kids.",
            "How many times the number reached the maximum capacity?"
        ],
        "interaction_query": [
            "SELECT maxOccupancy FROM Rooms",
            "SELECT T1.Adults + T1.Kids FROM Reservations AS T1",
            "SELECT count(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId WHERE T2.maxOccupancy  =  T1.Adults + T1.Kids;"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT T1.firstname ,  T1.lastname FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId WHERE T1.Rate - T2.basePrice  >  0",
        "final_utterance": "What are the first and last names of people who payed more than the rooms' base prices?",
        "interaction_utterance": [
            "For each reservation, find the base price and the actual rate payed.",
            "How many times did the actual price exceeded the base price?",
            "What are the first and last names of people who payed more than the rooms' base prices?"
        ],
        "interaction_query": [
            "SELECT T1.Rate ,  T2.basePrice FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId",
            "SELECT count(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId WHERE T1.Rate - T2.basePrice  >  0",
            "SELECT T1.firstname ,  T1.lastname FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId WHERE T1.Rate - T2.basePrice  >  0"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT count(*) FROM Rooms;",
        "final_utterance": "What is the total number of rooms available in this inn?",
        "interaction_utterance": [
            "List all the rooms.",
            "Count the number of rooms."
        ],
        "interaction_query": [
            "SELECT * FROM Rooms;",
            "SELECT count(*) FROM Rooms;"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT count(*) FROM Rooms WHERE bedType  =  \"King\";",
        "final_utterance": "How many rooms have a king bed?",
        "interaction_utterance": [
            "Return all the rooms with king beds.",
            "What is the total number such rooms?"
        ],
        "interaction_query": [
            "SELECT * FROM Rooms WHERE bedtype  =  'King';",
            "SELECT count(*) FROM Rooms WHERE bedtype  =  'King';"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT bedType ,  count(*) FROM Rooms GROUP BY bedType;",
        "final_utterance": "What are the number of rooms for each bed type?",
        "interaction_utterance": [
            "Group all the rooms by the bed type",
            "For each bed type, count the number of rooms."
        ],
        "interaction_query": [
            "SELECT * FROM Rooms GROUP BY bedType;",
            "SELECT bedType ,  count(*) FROM Rooms GROUP BY bedType;"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT roomName FROM Rooms ORDER BY maxOccupancy DESC LIMIT 1;",
        "final_utterance": "What is the name of the room that can accommodate the most people?",
        "interaction_utterance": [
            "Sort all the rooms by the maximum occupancy.",
            "Which room has the largest capacity?",
            "Tell me the name of that room."
        ],
        "interaction_query": [
            "SELECT * FROM Rooms ORDER BY maxOccupancy DESC",
            "SELECT * FROM Rooms ORDER BY maxOccupancy DESC LIMIT 1;",
            "SELECT roomName FROM Rooms ORDER BY maxOccupancy DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT RoomId ,  roomName FROM Rooms ORDER BY basePrice DESC LIMIT 1;",
        "final_utterance": "Which room has the highest base price?",
        "interaction_utterance": [
            "List all the rooms in the descending order of the base price.",
            "Which room has the highest base price?",
            "Give me the id and name of this room."
        ],
        "interaction_query": [
            "SELECT * FROM Rooms ORDER BY basePrice DESC",
            "SELECT * FROM Rooms ORDER BY basePrice DESC LIMIT 1;",
            "SELECT RoomId ,  roomName FROM Rooms ORDER BY basePrice DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT roomName ,  bedType FROM Rooms WHERE decor = \"traditional\";",
        "final_utterance": "What are the bed type and name of all the rooms with traditional decor?",
        "interaction_utterance": [
            "Which rooms have traditional decor?",
            "What are the name and bed type of those rooms?"
        ],
        "interaction_query": [
            "SELECT * FROM Rooms WHERE decor = \"traditional\";",
            "SELECT roomName ,  bedType FROM Rooms WHERE decor = \"traditional\";"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT decor ,  count(*) FROM Rooms WHERE bedType = \"King\" GROUP BY decor;",
        "final_utterance": "How many rooms have king beds? Report the number for each decor type.",
        "interaction_utterance": [
            "Which rooms have king beds?",
            "Group all the rooms with king beds according to the decor type.",
            "Count the number of rooms for each decor type."
        ],
        "interaction_query": [
            "SELECT * FROM Rooms WHERE bedType = \"King\"",
            "SELECT * FROM Rooms WHERE bedType = \"King\" GROUP BY decor;",
            "SELECT decor ,  count(*) FROM Rooms WHERE bedType = \"King\" GROUP BY decor;"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT decor , avg(basePrice) ,  min(basePrice) FROM Rooms GROUP BY decor;",
        "final_utterance": "What is the average minimum and price of the rooms for each different decor.",
        "interaction_utterance": [
            "What is the average price of all the rooms?",
            "What about the minimum price?",
            "Tell me the average and minimum price of the rooms for each different decor."
        ],
        "interaction_query": [
            "SELECT avg(basePrice) FROM Rooms",
            "SELECT min(basePrice) FROM Rooms",
            "SELECT decor , avg(basePrice) ,  min(basePrice) FROM Rooms GROUP BY decor;"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT roomName FROM Rooms ORDER BY basePrice;",
        "final_utterance": "Sort all the rooms according to the price. Just report the room names.",
        "interaction_utterance": [
            "Sort all the rooms according to the price",
            "Just show the room names"
        ],
        "interaction_query": [
            "SELECT * FROM Rooms ORDER BY basePrice;",
            "SELECT roomName FROM Rooms ORDER BY basePrice;"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT decor , count(*) FROM Rooms WHERE basePrice  >  120 GROUP BY decor;",
        "final_utterance": "How many rooms cost more than 120, for each different decor?",
        "interaction_utterance": [
            "Show me all the rooms that cost more than 120.",
            "How many rooms?",
            "Tell me how many rooms cost more than 120, for each different decor."
        ],
        "interaction_query": [
            "SELECT * FROM Rooms WHERE basePrice  >  120",
            "SELECT count(*) FROM Rooms WHERE basePrice  >  120",
            "SELECT decor , count(*) FROM Rooms WHERE basePrice  >  120 GROUP BY decor;"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT bedType ,  avg(basePrice) FROM Rooms GROUP BY bedType;",
        "final_utterance": "What is the average base price of rooms, for each bed type?",
        "interaction_utterance": [
            "Tell me the average price of rooms.",
            "Report the average room price for each bed type."
        ],
        "interaction_query": [
            "SELECT avg(basePrice) FROM Rooms",
            "SELECT bedType ,  avg(basePrice) FROM Rooms GROUP BY bedType;"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT roomName FROM Rooms WHERE bedType  =  \"King\" OR bedType  =  \"Queen\";",
        "final_utterance": "What are the names of rooms that have either king or queen bed?",
        "interaction_utterance": [
            "Find all the rooms with a king bed.",
            "How about queen bed?",
            "Return the names of rooms that have either of them."
        ],
        "interaction_query": [
            "SELECT * FROM Rooms WHERE bedType  =  \"King\"",
            "SELECT * FROM Rooms WHERE bedType  =  \"Queen\";",
            "SELECT roomName FROM Rooms WHERE bedType  =  \"King\" OR bedType  =  \"Queen\";"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT count(DISTINCT bedType) FROM Rooms;",
        "final_utterance": "Find the number of distinct bed types available in this inn.",
        "interaction_utterance": [
            "Tell me the bed type for each room.",
            "How many distinct types of beds are there?"
        ],
        "interaction_query": [
            "SELECT bedType FROM Rooms;",
            "SELECT count(DISTINCT bedType) FROM Rooms;"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT RoomId ,  roomName FROM Rooms ORDER BY basePrice DESC LIMIT 3;",
        "final_utterance": "What are the name and id of the three highest priced rooms?",
        "interaction_utterance": [
            "Return a list of all the rooms sorted in the descending order of base prices.",
            "Return the top three.",
            "Just tell me the room id and name for these rooms."
        ],
        "interaction_query": [
            "SELECT * FROM Rooms ORDER BY basePrice DESC",
            "SELECT * FROM Rooms ORDER BY basePrice DESC LIMIT 3;",
            "SELECT RoomId ,  roomName FROM Rooms ORDER BY basePrice DESC LIMIT 3;"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT roomName FROM Rooms WHERE basePrice  >  ( SELECT avg(basePrice) FROM Rooms );",
        "final_utterance": "What are the name of rooms that cost more than the average.",
        "interaction_utterance": [
            "What is the average room price in this inn?",
            "Find all the rooms that cost more than that.",
            "What are their room names?"
        ],
        "interaction_query": [
            "SELECT avg(basePrice) FROM Rooms",
            "SELECT * FROM Rooms WHERE basePrice  >  ( SELECT avg(basePrice) FROM Rooms );",
            "SELECT roomName FROM Rooms WHERE basePrice  >  ( SELECT avg(basePrice) FROM Rooms );"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT count(*) FROM rooms WHERE roomid NOT IN (SELECT DISTINCT room FROM reservations)",
        "final_utterance": "How many rooms have not had any reservation yet?",
        "interaction_utterance": [
            "Find the ids of all the rooms that have been reserved before.",
            "Which rooms have not had any reservation yet?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT DISTINCT room FROM reservations",
            "SELECT * FROM rooms WHERE roomid NOT IN (SELECT DISTINCT room FROM reservations)",
            "SELECT count(*) FROM rooms WHERE roomid NOT IN (SELECT DISTINCT room FROM reservations)"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT T2.roomName ,  count(*) ,  T1.Room FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room",
        "final_utterance": "For each room, find its name and the number of times reservations were made for it.",
        "interaction_utterance": [
            "Group all the reservation record by the rooms.",
            "For each room, count how many times it was booked.",
            "Also report the name of each room."
        ],
        "interaction_query": [
            "SELECT * FROM Reservations GROUP BY Room",
            "SELECT count(*) FROM Reservations GROUP BY Room",
            "SELECT T2.roomName ,  count(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room HAVING count(*)  >  60",
        "final_utterance": "What are the names of rooms whose reservation frequency exceeds 60 times?",
        "interaction_utterance": [
            "For each room, count how many times it was booked.",
            "Which rooms have been booked more than 60 times?",
            "Give me the names of the rooms."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Reservations GROUP BY Room",
            "SELECT * FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room HAVING count(*)  >  60",
            "SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room HAVING count(*)  >  60"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT roomname FROM rooms WHERE baseprice BETWEEN 120 AND 150",
        "final_utterance": "Which rooms cost between 120 and 150? Give me the room names.",
        "interaction_utterance": [
            "Which rooms' base prices are between 120 and 150?",
            "Give me the names of these rooms."
        ],
        "interaction_query": [
            "SELECT * FROM rooms WHERE baseprice BETWEEN 120 AND 150",
            "SELECT roomname FROM rooms WHERE baseprice BETWEEN 120 AND 150"
        ]
    },
    {
        "db_id": "inn_1",
        "final_query": "SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId WHERE firstname LIKE '%ROY%'",
        "final_utterance": "What are the name of rooms booked by customers whose first name has \"ROY\" in part?",
        "interaction_utterance": [
            "Find the reservations made by customers whose first name has \"ROY\" in part.",
            "What rooms were booked by these customers?",
            "What are the names of these rooms?"
        ],
        "interaction_query": [
            "SELECT * FROM Reservations WHERE firstname LIKE '%ROY%'",
            "SELECT * FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId WHERE firstname LIKE '%ROY%'",
            "SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId WHERE firstname LIKE '%ROY%'"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT count(DISTINCT allergy) FROM Allergy_type",
        "final_utterance": "How many allergy entries are there?",
        "interaction_utterance": [
            "What are the different allergies?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT DISTINCT allergy FROM Allergy_type",
            "SELECT count(DISTINCT allergy) FROM Allergy_type"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT count(DISTINCT allergytype) FROM Allergy_type",
        "final_utterance": "How many distinct allergies are there?",
        "interaction_utterance": [
            "What are the different types of allergies?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT DISTINCT allergytype FROM Allergy_type",
            "SELECT count(DISTINCT allergytype) FROM Allergy_type"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT DISTINCT allergytype FROM Allergy_type",
        "final_utterance": "What are the different allergy types?",
        "interaction_utterance": [
            "Show all allergy information.",
            "What are the different allergy types?"
        ],
        "interaction_query": [
            "SELECT * FROM Allergy_type",
            "SELECT DISTINCT allergytype FROM Allergy_type"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT allergy ,  allergytype FROM Allergy_type",
        "final_utterance": "What are the allergies and their types?",
        "interaction_utterance": [
            "What are the allergies?",
            "What type is each one?"
        ],
        "interaction_query": [
            "SELECT allergy FROM Allergy_type",
            "SELECT allergy ,  allergytype FROM Allergy_type"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT DISTINCT allergy FROM Allergy_type WHERE allergytype  =  \"food\"",
        "final_utterance": "What are all the different food allergies?",
        "interaction_utterance": [
            "What are all the different allergy names?",
            "Which of those are food-related?"
        ],
        "interaction_query": [
            "SELECT DISTINCT allergy FROM Allergy_type",
            "SELECT DISTINCT allergy FROM Allergy_type WHERE allergytype  =  \"food\""
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT allergytype FROM Allergy_type WHERE allergy  =  \"Cat\"",
        "final_utterance": "What is allergy type of a cat allergy?",
        "interaction_utterance": [
            "What are the different types of allergies?",
            "Which one is a cat allergy?"
        ],
        "interaction_query": [
            "SELECT DISTINCT allergytype FROM Allergy_type",
            "SELECT allergytype FROM Allergy_type WHERE allergy  =  \"Cat\""
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT count(*) FROM Allergy_type WHERE allergytype  =  \"animal\"",
        "final_utterance": "How many animal type allergies exist?",
        "interaction_utterance": [
            "What are all the allergies?",
            "Which allergies are categorized as type animal?",
            "How many are there in that category?"
        ],
        "interaction_query": [
            "SELECT allergy FROM Allergy_type",
            "SELECT allergy FROM Allergy_type WHERE allergytype  =  \"animal\"",
            "SELECT count(*) FROM Allergy_type WHERE allergytype  =  \"animal\""
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT allergytype ,  count(*) FROM Allergy_type GROUP BY allergytype",
        "final_utterance": "What are the allergy types and how many allergies correspond to each one?",
        "interaction_utterance": [
            "What are the different allergy types?",
            "How many are in each category?"
        ],
        "interaction_query": [
            "SELECT DISTINCT allergytype FROM Allergy_type",
            "SELECT allergytype ,  count(*) FROM Allergy_type GROUP BY allergytype"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which allergy type is most common?",
        "interaction_utterance": [
            "What are all the different allergy types?",
            "Order them by number of allergies descendingly.",
            "Which one has the most?"
        ],
        "interaction_query": [
            "SELECT DISTINCT allergytype FROM Allergy_type",
            "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) DESC",
            "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) ASC LIMIT 1",
        "final_utterance": "Which allergy type is the least common?",
        "interaction_utterance": [
            "How many allergies exist for each allergy type?",
            "Which one has the fewest?"
        ],
        "interaction_query": [
            "SELECT count(*) ,  allergytype FROM Allergy_type GROUP BY allergytype",
            "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) ASC LIMIT 1"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT count(*) FROM Student",
        "final_utterance": "What is the total number of students?",
        "interaction_utterance": [
            "Who are all the students?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM Student",
            "SELECT count(*) FROM Student"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT Fname ,  Lname FROM Student",
        "final_utterance": "What are the full names of all students",
        "interaction_utterance": [
            "Who are all the students?",
            "What are their first names?",
            "And what about their last names?"
        ],
        "interaction_query": [
            "SELECT * FROM Student",
            "SELECT Fname FROM Student",
            "SELECT Lname FROM Student"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT count(DISTINCT advisor) FROM Student",
        "final_utterance": "How many advisors are there?",
        "interaction_utterance": [
            "Who are the students?",
            "Who are the distinct advisors?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM Student",
            "SELECT DISTINCT advisor FROM Student",
            "SELECT count(DISTINCT advisor) FROM Student"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT DISTINCT Major FROM Student",
        "final_utterance": "What are the different majors?",
        "interaction_utterance": [
            "Who are the students?",
            "What are their distinct majors?"
        ],
        "interaction_query": [
            "SELECT * FROM Student",
            "SELECT DISTINCT Major FROM Student"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT DISTINCT city_code FROM Student",
        "final_utterance": "What cities do students live in?",
        "interaction_utterance": [
            "Who are the students?",
            "What distinct cities are they from?"
        ],
        "interaction_query": [
            "SELECT * FROM Student",
            "SELECT DISTINCT city_code FROM Student"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT Fname ,  Lname ,  Age FROM Student WHERE Sex  =  'F'",
        "final_utterance": "What are the full names and ages for all female students whose sex is F?",
        "interaction_utterance": [
            "Who are the female students?",
            "What are their full names?",
            "How old are they?"
        ],
        "interaction_query": [
            "SELECT * FROM Student WHERE Sex  =  'F'",
            "SELECT Fname ,  Lname FROM Student WHERE Sex  =  'F'",
            "SELECT Age FROM Student WHERE Sex  =  'F'"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT StuID FROM Student WHERE Sex  =  'M'",
        "final_utterance": "What are the student ids for all male students?",
        "interaction_utterance": [
            "Which students are male?",
            "What are their student id numbers?"
        ],
        "interaction_query": [
            "SELECT * FROM Student WHERE Sex  =  'M'",
            "SELECT StuID FROM Student WHERE Sex  =  'M'"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT count(*) FROM Student WHERE age  =  18",
        "final_utterance": "How many students are 18 years old?",
        "interaction_utterance": [
            "Which students are 18?",
            "How many are there in total?"
        ],
        "interaction_query": [
            "SELECT * FROM Student WHERE age  =  18",
            "SELECT count(*) FROM Student WHERE age  =  18"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT StuID FROM Student WHERE age  >  20",
        "final_utterance": "What are the student ids for students over 20 years old?",
        "interaction_utterance": [
            "Who is older than 20?",
            "What are their student ids?"
        ],
        "interaction_query": [
            "SELECT * FROM Student WHERE age  >  20",
            "SELECT StuID FROM Student WHERE age  >  20"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT city_code FROM Student WHERE LName  =  \"Kim\"",
        "final_utterance": "Give the city that the student whose family name is Kim lives in.",
        "interaction_utterance": [
            "Which student has the last name Kim?",
            "Where does she or he live?"
        ],
        "interaction_query": [
            "SELECT * FROM Student WHERE LName  =  \"Kim\"",
            "SELECT city_code FROM Student WHERE LName  =  \"Kim\""
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT Advisor FROM Student WHERE StuID  =  1004",
        "final_utterance": "Who advises student 1004?",
        "interaction_utterance": [
            "Who's student id is 1004?",
            "Who is her advisor?"
        ],
        "interaction_query": [
            "SELECT * FROM Student WHERE StuID  =  1004",
            "SELECT Advisor FROM Student WHERE StuID  =  1004"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT count(*) FROM Student WHERE city_code  =  \"HKG\" OR city_code  =  \"CHI\"",
        "final_utterance": "Give the number of students living in either HKG or CHI.",
        "interaction_utterance": [
            "Who lives in HKG or CHI?",
            "How many is that?"
        ],
        "interaction_query": [
            "SELECT * FROM Student WHERE city_code  =  \"HKG\" OR city_code  =  \"CHI\"",
            "SELECT count(*) FROM Student WHERE city_code  =  \"HKG\" OR city_code  =  \"CHI\""
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT min(age) ,  avg(age) ,  max(age) FROM Student",
        "final_utterance": "What is the minimum, mean, and maximum age across all students?",
        "interaction_utterance": [
            "How old is the youngest student?",
            "What about the eldest?",
            "What is the average age?"
        ],
        "interaction_query": [
            "SELECT min(age) FROM Student",
            "SELECT max(age) FROM Student",
            "SELECT avg(age) FROM Student"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT LName FROM Student WHERE age  =  (SELECT min(age) FROM Student)",
        "final_utterance": "Provide the last name of the youngest student.",
        "interaction_utterance": [
            "What is the minimum age of the students?",
            "Who is the youngest student?",
            "What is his last name?"
        ],
        "interaction_query": [
            "SELECT min(age) FROM Student",
            "SELECT * FROM Student WHERE age  =  (SELECT min(age) FROM Student)",
            "SELECT LName FROM Student WHERE age  =  (SELECT min(age) FROM Student)"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT StuID FROM Student WHERE age  =  (SELECT max(age) FROM Student)",
        "final_utterance": "What student id corresponds to the oldest student?",
        "interaction_utterance": [
            "Who is the oldest student?",
            "What is their id?"
        ],
        "interaction_query": [
            "SELECT * FROM Student WHERE age  =  (SELECT max(age) FROM Student)",
            "SELECT StuID FROM Student WHERE age  =  (SELECT max(age) FROM Student)"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT major ,  count(*) FROM Student GROUP BY major",
        "final_utterance": "How many students are there for each major?",
        "interaction_utterance": [
            "What are the different majors?",
            "How many students are studying each subject?"
        ],
        "interaction_query": [
            "SELECT DISTINCT major FROM Student",
            "SELECT major ,  count(*) FROM Student GROUP BY major"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT major FROM Student GROUP BY major ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the largest major?",
        "interaction_utterance": [
            "What are the different majors?",
            "How many students does each major has?",
            "Which one has the most students?"
        ],
        "interaction_query": [
            "SELECT DISTINCT major FROM Student",
            "SELECT major ,  count(*) FROM Student GROUP BY major",
            "SELECT major FROM Student GROUP BY major ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT age ,  count(*) FROM Student GROUP BY age",
        "final_utterance": "How old is each student and how many students are each age?",
        "interaction_utterance": [
            "What are the different student ages?",
            "How many students are each age?"
        ],
        "interaction_query": [
            "SELECT DISTINCT age FROM Student",
            "SELECT age ,  count(*) FROM Student GROUP BY age"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT avg(age) ,  sex FROM Student GROUP BY sex",
        "final_utterance": "What are the average ages for male and female students?",
        "interaction_utterance": [
            "What are the different sex categories for students?",
            "How many are there for each category?",
            "What is the average age for each category?"
        ],
        "interaction_query": [
            "SELECT DISTINCT sex FROM Student",
            "SELECT count(*) ,  sex FROM Student GROUP BY sex",
            "SELECT avg(age) ,  sex FROM Student GROUP BY sex"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT city_code ,  count(*) FROM Student GROUP BY city_code",
        "final_utterance": "How many students live in each city?",
        "interaction_utterance": [
            "What are the different cities that students live in?",
            "How many students are from each one?"
        ],
        "interaction_query": [
            "SELECT DISTINCT city_code FROM Student",
            "SELECT city_code ,  count(*) FROM Student GROUP BY city_code"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT advisor ,  count(*) FROM Student GROUP BY advisor",
        "final_utterance": "How many students does each advisor have?",
        "interaction_utterance": [
            "Who are the different advisors?",
            "How many students does each one have?"
        ],
        "interaction_query": [
            "SELECT DISTINCT advisor FROM Student",
            "SELECT advisor ,  count(*) FROM Student GROUP BY advisor"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Give the advisor with the most students.",
        "interaction_utterance": [
            "Who are the advisors of the students?",
            "Order the advisors by the number of students they have.",
            "Who has the most?"
        ],
        "interaction_query": [
            "SELECT advisor FROM Student",
            "SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*)",
            "SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT count(*) FROM Has_allergy WHERE Allergy  =  \"Cat\"",
        "final_utterance": "How many students are affected by cat allergies?",
        "interaction_utterance": [
            "Who have allergies?",
            "Who has a cat allergy?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM Has_allergy",
            "SELECT * FROM Has_allergy WHERE Allergy  =  \"Cat\"",
            "SELECT count(*) FROM Has_allergy WHERE Allergy  =  \"Cat\""
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT StuID FROM Has_allergy GROUP BY StuID HAVING count(*)  >=  2",
        "final_utterance": "What are the students ids of students who have more than one allergy?",
        "interaction_utterance": [
            "Who has at least two allergies?",
            "What are their ids?"
        ],
        "interaction_query": [
            "SELECT * FROM Has_allergy GROUP BY StuID HAVING count(*)  >=  2",
            "SELECT StuID FROM Has_allergy GROUP BY StuID HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy",
        "final_utterance": "Which students are unaffected by allergies?",
        "interaction_utterance": [
            "What are all the student ids?",
            "Of these, which students ids correspond to students without allergies?"
        ],
        "interaction_query": [
            "SELECT StuID FROM Student",
            "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT count(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID WHERE T2.sex  =  \"F\" AND (T1.allergy  =  \"Milk\" OR T1.allergy  =  \"Eggs\")",
        "final_utterance": "How many students who are female are allergic to milk or eggs?",
        "interaction_utterance": [
            "How many studnets are allergic to milk?",
            "How many are allergic to that or to eggs?",
            "Of those, how many are female?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID WHERE T1.allergy  =  \"Milk\"",
            "SELECT count(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID WHERE T1.allergy  =  \"Milk\" OR T1.allergy  =  \"Eggs\"",
            "SELECT count(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID WHERE T2.sex  =  \"F\" AND T1.allergy  =  \"Milk\" OR T1.allergy  =  \"Eggs\""
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy  =  T2.allergy WHERE T2.allergytype  =  \"food\"",
        "final_utterance": "How many students are affected by food related allergies?",
        "interaction_utterance": [
            "How many allergy cases are there?",
            "Of those, for how many is it a food allergy?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM Has_allergy",
            "SELECT count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy  =  T2.allergy WHERE T2.allergytype  =  \"food\""
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which allergy is the most common?",
        "interaction_utterance": [
            "What are the different allergies?",
            "Which one has the most students affected?"
        ],
        "interaction_query": [
            "SELECT DISTINCT Allergy FROM Has_allergy",
            "SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT Allergy ,  count(*) FROM Has_allergy GROUP BY Allergy",
        "final_utterance": "How many students have each different allergy?",
        "interaction_utterance": [
            "What are all the different allergies?",
            "How many students does each of them affect?"
        ],
        "interaction_query": [
            "SELECT DISTINCT Allergy FROM Has_allergy",
            "SELECT Allergy ,  count(*) FROM Has_allergy GROUP BY Allergy"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT T2.allergytype ,  count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy  =  T2.allergy GROUP BY T2.allergytype",
        "final_utterance": "How many students are affected by each allergy type?",
        "interaction_utterance": [
            "What are the different allergy types?",
            "For each, how many students does it affect?"
        ],
        "interaction_query": [
            "SELECT DISTINCT allergytype FROM Allergy_type",
            "SELECT T2.allergytype ,  count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy  =  T2.allergy GROUP BY T2.allergytype"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT lname ,  age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Milk\" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Cat\")",
        "final_utterance": "What are the last names and ages of the students who are allergic to milk and cat?",
        "interaction_utterance": [
            "What are student ids who are allergic to milk?",
            "Of these, who also have allergy to cat?",
            "List their last name and age."
        ],
        "interaction_query": [
            "SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Milk\"",
            "SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Milk\" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Cat\"",
            "SELECT lname ,  age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Milk\" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Cat\")"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT T1.Allergy ,  T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy  =  T2.Allergy JOIN Student AS T3 ON T3.StuID  =  T2.StuID WHERE T3.Fname  =  \"Lisa\" ORDER BY T1.Allergy",
        "final_utterance": "What are the allergies the girl named Lisa has? And what are the types of them? Order the result by allergy names.",
        "interaction_utterance": [
            "What is the girl with first name Lisa allergic to?",
            "What type is each allergy?",
            "Order them by the name of allergies."
        ],
        "interaction_query": [
            "SELECT T1.Allergy FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy  =  T2.Allergy JOIN Student AS T3 ON T3.StuID  =  T2.StuID WHERE T3.Fname  =  \"Lisa\"",
            "SELECT T1.Allergy ,  T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy  =  T2.Allergy JOIN Student AS T3 ON T3.StuID  =  T2.StuID WHERE T3.Fname  =  \"Lisa\"",
            "SELECT T1.Allergy ,  T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy  =  T2.Allergy JOIN Student AS T3 ON T3.StuID  =  T2.StuID WHERE T3.Fname  =  \"Lisa\" ORDER BY T1.Allergy"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT fname ,  sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Milk\" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Cat\")",
        "final_utterance": "What are the first name and gender of the students who have allergy to milk but can put up with cats?",
        "interaction_utterance": [
            "Which students are allergic to cats?",
            "Which students are not?",
            "Of these, list the first name and sex of students who are allergic to milk."
        ],
        "interaction_query": [
            "SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Cat\"",
            "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Cat\"",
            "SELECT fname ,  sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Milk\" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Cat\")"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"food\" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"animal\")",
        "final_utterance": "How old are the students with allergies to food and animal types on average?",
        "interaction_utterance": [
            "Which students have allergies to food type?",
            "Which of them have also have allergies to animal type?",
            "Find the average age of them."
        ],
        "interaction_query": [
            "SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"food\"",
            "SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"food\" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"animal\"",
            "SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"food\" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"animal\")"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT fname ,  lname FROM Student WHERE StuID NOT IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"food\")",
        "final_utterance": "What is the full name of each student who is not allergic to any type of food.",
        "interaction_utterance": [
            "What are the first and last name of all the students?",
            "Of them, who are allergic to any type of food?",
            "And who are not?"
        ],
        "interaction_query": [
            "SELECT fname ,  lname FROM Student",
            "SELECT DISTINCT T3.fname ,  T3.lname FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy JOIN Student AS T3 ON T1.StuID  =  T3.StuID WHERE T2.allergytype  =  \"food\"",
            "SELECT fname ,  lname FROM Student WHERE StuID NOT IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"food\")"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT count(*) FROM Student WHERE sex  =  \"M\" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"food\")",
        "final_utterance": "How many male students (sex is 'M') are allergic to any type of food?",
        "interaction_utterance": [
            "Who are all the male students?",
            "Of these, who have allergies to food type?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM Student WHERE sex  =  'M'",
            "SELECT * FROM Student WHERE sex  =  \"M\" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"food\")",
            "SELECT count(*) FROM Student WHERE sex  =  \"M\" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"food\")"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT DISTINCT T1.fname ,  T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid  =  T2.stuid WHERE T2.Allergy  =  \"Milk\" OR T2.Allergy  =  \"Cat\"",
        "final_utterance": "What are the distinct first names and cities of the students who have allergy either to milk or to cat?",
        "interaction_utterance": [
            "What are the ids of the students who have any allergy?",
            "Of these, who are allergy to milk or cat?",
            "What are the different first names and city codes of them?"
        ],
        "interaction_query": [
            "SELECT StuID FROM Has_allergy",
            "SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Milk\" OR Allergy  =  \"Cat\"",
            "SELECT DISTINCT T1.fname ,  T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid  =  T2.stuid WHERE T2.Allergy  =  \"Milk\" OR T2.Allergy  =  \"Cat\""
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT count(*) FROM Student WHERE age  >  18 AND StuID NOT IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"food\" OR T2.allergytype  =  \"animal\")",
        "final_utterance": "How many students are over 18 and do not have allergy to food type or animal type?",
        "interaction_utterance": [
            "Which students are over 18?",
            "Of them, who are not allergic to food or animal?",
            "How many?"
        ],
        "interaction_query": [
            "SELECT * FROM Student WHERE age  >  18",
            "SELECT * FROM Student WHERE age  >  18 AND StuID NOT IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"food\" OR T2.allergytype  =  \"animal\")",
            "SELECT count(*) FROM Student WHERE age  >  18 AND StuID NOT IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"food\" OR T2.allergytype  =  \"animal\")"
        ]
    },
    {
        "db_id": "allergy_1",
        "final_query": "SELECT fname ,  major FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Soy\")",
        "final_utterance": "What are the first name and major of the students who are able to consume soy?",
        "interaction_utterance": [
            "Who have allergy to soy?",
            "Who have not?",
            "List their first name and major."
        ],
        "interaction_query": [
            "SELECT * FROM Has_allergy WHERE Allergy  =  \"Soy\"",
            "SELECT * FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Soy\")",
            "SELECT fname ,  major FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Soy\")"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT customer_name FROM customers",
        "final_utterance": "What are the names of all the customers?",
        "interaction_utterance": [
            "Return the information of all the customers.",
            "What are the name of the customers?"
        ],
        "interaction_query": [
            "SELECT * FROM customers",
            "SELECT customer_name FROM customers"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT count(*) FROM customers",
        "final_utterance": "Return the total number of distinct customers.",
        "interaction_utterance": [
            "List all the customers.",
            "Count the number of the customers."
        ],
        "interaction_query": [
            "SELECT * FROM customers",
            "SELECT count(*) FROM customers"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT avg(order_quantity) FROM order_items",
        "final_utterance": "Find the average order quantity per order.",
        "interaction_utterance": [
            "Find the order quantity for each order.",
            "What is the average order quantity?"
        ],
        "interaction_query": [
            "SELECT order_quantity FROM order_items",
            "SELECT avg(order_quantity) FROM order_items"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT customer_name FROM customers WHERE payment_method  =  \"Cash\"",
        "final_utterance": "Which customers use \"Cash\" for payment method? Return the customer names.",
        "interaction_utterance": [
            "Which customers' payment method is \"Cash\"?",
            "What are the names of those customers?"
        ],
        "interaction_query": [
            "SELECT * FROM customers WHERE payment_method  =  \"Cash\"",
            "SELECT customer_name FROM customers WHERE payment_method  =  \"Cash\""
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT date_became_customer FROM customers WHERE customer_id BETWEEN 10 AND 20",
        "final_utterance": "What are the dates when customers with ids between 10 and 20 became customers?",
        "interaction_utterance": [
            "List all the customers.",
            "What are the dates they became customers?",
            "For customer id between 10 and 20, what are the dates they became customers?"
        ],
        "interaction_query": [
            "SELECT * FROM customers",
            "SELECT date_became_customer FROM customers",
            "SELECT date_became_customer FROM customers WHERE customer_id BETWEEN 10 AND 20"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the payment method that is used most frequently.",
        "interaction_utterance": [
            "What is the payment method each customer uses?",
            "Group by the payment method, and return the frequency the method is used.",
            "Return the payment method that is used most frequently."
        ],
        "interaction_query": [
            "SELECT payment_method FROM customers",
            "SELECT count(*) FROM customers GROUP BY payment_method",
            "SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT customer_name FROM customers WHERE payment_method  =  (SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1)",
        "final_utterance": "Find the name of the customers who use the most frequently used payment method.",
        "interaction_utterance": [
            "For each payment method, count the number of customers who use it.",
            "What is the most frequently used payment method?",
            "Return the name of the customers who use this payment method."
        ],
        "interaction_query": [
            "SELECT count(*) FROM customers GROUP BY payment_method",
            "SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1",
            "SELECT customer_name FROM customers WHERE payment_method  =  (SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1)"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT DISTINCT payment_method FROM customers",
        "final_utterance": "Return all the distinct payment methods used by customers.",
        "interaction_utterance": [
            "What payment method does each customer use?",
            "Return all the distinct payment methods used."
        ],
        "interaction_query": [
            "SELECT payment_method FROM customers",
            "SELECT DISTINCT payment_method FROM customers"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT DISTINCT product_details FROM products",
        "final_utterance": "Return the the details of all products.",
        "interaction_utterance": [
            "What is the detail of each product?",
            "What are the distinct product details?"
        ],
        "interaction_query": [
            "SELECT product_details FROM products",
            "SELECT DISTINCT product_details FROM products"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT customer_name FROM customers WHERE customer_name LIKE \"%Alex%\"",
        "final_utterance": "Which customer's name contains \"Alex\"? Find the full name.",
        "interaction_utterance": [
            "Return customers whose name contains \"Alex\".",
            "What are the full names of these customers?"
        ],
        "interaction_query": [
            "SELECT * FROM customers WHERE customer_name LIKE \"%Alex%\"",
            "SELECT * FROM customers WHERE customer_name LIKE \"%Alex%\""
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT product_details FROM products WHERE product_details LIKE \"%Latte%\" OR product_details LIKE \"%Americano%\"",
        "final_utterance": "Which product's detail contains the word \"Latte\" or \"Americano\"? Return the full detail.",
        "interaction_utterance": [
            "Return products whose details contain the word \"Latte\" or \"Americano\".",
            "What are the full details for these products?"
        ],
        "interaction_query": [
            "SELECT * FROM products WHERE product_details LIKE \"%Latte%\" OR product_details LIKE \"%Americano%\"",
            "SELECT product_details FROM products WHERE product_details LIKE \"%Latte%\" OR product_details LIKE \"%Americano%\""
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT t3.address_content FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id WHERE t1.customer_name  =  \"Maudie Kertzmann\"",
        "final_utterance": "Return the address content for the customer whose name is \"Maudie Kertzmann\".",
        "interaction_utterance": [
            "Find the customer who is named \"Maudie Kertzmann\".",
            "What is the address id of this customer?",
            "What is the address content?"
        ],
        "interaction_query": [
            "SELECT * FROM customers WHERE customer_name  =  \"Maudie Kertzmann\"",
            "SELECT t2.address_id FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.customer_name  =  \"Maudie Kertzmann\"",
            "SELECT t3.address_content FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id WHERE t1.customer_name  =  \"Maudie Kertzmann\""
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT count(*) FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id WHERE t3.city  =  \"Lake Geovannyton\"",
        "final_utterance": "Find the number of customers who live in the city called Lake Geovannyton.",
        "interaction_utterance": [
            "Find all the address ids for the city called Lake Geovannyton.",
            "Find all the customers whose address is in this city.",
            "How many customers are living there?"
        ],
        "interaction_query": [
            "SELECT address_id FROM addresses WHERE city  =  \"Lake Geovannyton\"",
            "SELECT * FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id WHERE t3.city  =  \"Lake Geovannyton\"",
            "SELECT count(*) FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id WHERE t3.city  =  \"Lake Geovannyton\""
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id WHERE t3.state_province_county  =  \"Colorado\"",
        "final_utterance": "What are the names of customers who live in Colorado state?",
        "interaction_utterance": [
            "What are the ids of addresses in Colorado state?",
            "Tell me the ids of customers who live there.",
            "What are the names of these customers?"
        ],
        "interaction_query": [
            "SELECT address_id FROM addresses WHERE state_province_county  =  \"Colorado\"",
            "SELECT t2.customer_id FROM customer_addresses AS t2 JOIN addresses AS t3 ON t2.address_id  =  t3.address_id WHERE t3.state_province_county  =  \"Colorado\"",
            "SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id WHERE t3.state_province_county  =  \"Colorado\""
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT city FROM addresses WHERE city NOT IN ( SELECT DISTINCT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id)",
        "final_utterance": "What are the cities no customers live in?",
        "interaction_utterance": [
            "For each customer, find the city he or she lives in.",
            "What are all the distinct cities customers live in?",
            "What are the cities no customers live in?"
        ],
        "interaction_query": [
            "SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id",
            "SELECT DISTINCT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id",
            "SELECT city FROM addresses WHERE city NOT IN ( SELECT DISTINCT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id)"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id GROUP BY t3.city ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the city where the most customers live.",
        "interaction_utterance": [
            "List all the cities customers live in.",
            "Group by cities and count how many customers live there.",
            "Which city has the most customers?"
        ],
        "interaction_query": [
            "SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id",
            "SELECT count(*) FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id GROUP BY t3.city",
            "SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id GROUP BY t3.city ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT DISTINCT city FROM addresses",
        "final_utterance": "List all the distinct cities",
        "interaction_utterance": [
            "List all the addresses.",
            "What is the list of distinct cities?"
        ],
        "interaction_query": [
            "SELECT * FROM addresses",
            "SELECT DISTINCT city FROM addresses"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT city FROM addresses WHERE zip_postcode  =  255",
        "final_utterance": "Which city is post code 255 located in?",
        "interaction_utterance": [
            "Find the address with post code 255.",
            "Which city is this address in?"
        ],
        "interaction_query": [
            "SELECT * FROM addresses WHERE zip_postcode  =  255",
            "SELECT city FROM addresses WHERE zip_postcode  =  255"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT state_province_county ,  country FROM addresses WHERE zip_postcode LIKE \"4%\"",
        "final_utterance": "What are the state and country of all the cities that have post codes starting with 4.\\",
        "interaction_utterance": [
            "Find the address with post code starting with 4.",
            "What are the state and country of these addresses?"
        ],
        "interaction_query": [
            "SELECT * FROM addresses WHERE zip_postcode LIKE \"4%\"",
            "SELECT state_province_county ,  country FROM addresses WHERE zip_postcode LIKE \"4%\""
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT country FROM addresses GROUP BY country HAVING count(address_id)  >  4",
        "final_utterance": "For which countries are there more than four distinct addresses listed?",
        "interaction_utterance": [
            "Group all the addresses by the country.",
            "Which countries have more than four addresses listed?"
        ],
        "interaction_query": [
            "SELECT * FROM addresses GROUP BY country",
            "SELECT country FROM addresses GROUP BY country HAVING count(address_id)  >  4"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT channel_code FROM customer_contact_channels GROUP BY channel_code HAVING count(customer_id)  <  5",
        "final_utterance": "Which contact channel codes were used less than 5 times?",
        "interaction_utterance": [
            "List all the contact channel codes.",
            "For each contact channel code, return how many times it was used.",
            "Which contact channel codes were used less than 5 times?"
        ],
        "interaction_query": [
            "SELECT channel_code FROM customer_contact_channels",
            "SELECT count(customer_id) FROM customer_contact_channels GROUP BY channel_code",
            "SELECT channel_code FROM customer_contact_channels GROUP BY channel_code HAVING count(customer_id)  <  5"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT DISTINCT channel_code FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.customer_name  =  \"Tillman Ernser\"",
        "final_utterance": "Find the contact channel code that was used by the customer named \"Tillman Ernser\".",
        "interaction_utterance": [
            "Find the customer whose name is \"Tillman Ernser\".",
            "What are the channel codes used by this person?"
        ],
        "interaction_query": [
            "SELECT * FROM customers WHERE customer_name  =  \"Tillman Ernser\"",
            "SELECT DISTINCT channel_code FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.customer_name  =  \"Tillman Ernser\""
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT max(t2.active_to_date) FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.customer_name  =  \"Tillman Ernser\"",
        "final_utterance": "Return the the \"active to date\" of the latest contact channel used by the customer named \"Tillman Ernser\".",
        "interaction_utterance": [
            "What is the \"active to date\" for each customer?",
            "What is the latest \"active to date\" for each customer?",
            "Find that information for the customer named \"Tillman Ernser\"."
        ],
        "interaction_query": [
            "SELECT active_to_date FROM customer_contact_channels",
            "SELECT max(active_to_date) FROM customer_contact_channels GROUP BY customer_id",
            "SELECT max(t2.active_to_date) FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.customer_name  =  \"Tillman Ernser\""
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT avg(active_to_date - active_from_date) FROM customer_contact_channels",
        "final_utterance": "Compute the average active time span of contact channels.",
        "interaction_utterance": [
            "For each contact channel, find when it started and ended being active.",
            "What is the time span between the starting date and ending date?",
            "What is the average across all the channels?"
        ],
        "interaction_query": [
            "SELECT active_to_date ,  active_from_date FROM customer_contact_channels",
            "SELECT active_to_date - active_from_date FROM customer_contact_channels",
            "SELECT avg(active_to_date - active_from_date) FROM customer_contact_channels"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT channel_code ,  contact_number FROM customer_contact_channels WHERE active_to_date - active_from_date  =  (SELECT active_to_date - active_from_date FROM customer_contact_channels ORDER BY (active_to_date - active_from_date) DESC LIMIT 1)",
        "final_utterance": "Return the channel code and contact number of the customer contact channel whose active duration was the longest.",
        "interaction_utterance": [
            "Tell me the active duration for each customer contact channel.",
            "Among them, what is the longest active duration?",
            "What is the channel code and contact number of the customer contact channel whose active duration was the longest"
        ],
        "interaction_query": [
            "SELECT active_to_date - active_from_date FROM customer_contact_channels",
            "SELECT active_to_date - active_from_date FROM customer_contact_channels ORDER BY (active_to_date - active_from_date) DESC LIMIT 1",
            "SELECT channel_code ,  contact_number FROM customer_contact_channels WHERE active_to_date - active_from_date  =  (SELECT active_to_date - active_from_date FROM customer_contact_channels ORDER BY (active_to_date - active_from_date) DESC LIMIT 1)"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT t1.customer_name ,  t2.active_from_date FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id  =  t2.customer_id WHERE t2.channel_code  =  'Email'",
        "final_utterance": "What are the name and active date of the customers whose contact channel code is email?",
        "interaction_utterance": [
            "Which customers use email as the contact channel?",
            "What are the dates these customers became active?",
            "What are the name and active date of these customers?"
        ],
        "interaction_query": [
            "SELECT * FROM customer_contact_channels WHERE channel_code  =  'Email'",
            "SELECT active_from_date FROM customer_contact_channels WHERE channel_code  =  'Email'",
            "SELECT t1.customer_name ,  t2.active_from_date FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id  =  t2.customer_id WHERE t2.channel_code  =  'Email'"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id WHERE t3.order_quantity  =  ( SELECT max(order_quantity) FROM order_items)",
        "final_utterance": "Find the name of the customer who made the order of the largest amount of goods.",
        "interaction_utterance": [
            "What is the largest order quantity listed in the database?",
            "What is the name of the customer who made that order?"
        ],
        "interaction_query": [
            "SELECT max(order_quantity) FROM order_items",
            "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id WHERE t3.order_quantity  =  ( SELECT max(order_quantity) FROM order_items)"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id GROUP BY t1.customer_name ORDER BY sum(t3.order_quantity) DESC LIMIT 1",
        "final_utterance": "Give me the name of the customer who ordered the most items in total.",
        "interaction_utterance": [
            "Tell me the customer name for each order.",
            "What is the total quantity ordered by each customer?",
            "Give me the name of the customer who ordered the largest quantity in total."
        ],
        "interaction_query": [
            "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id",
            "SELECT sum(t3.order_quantity) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id GROUP BY t1.customer_name",
            "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id GROUP BY t1.customer_name ORDER BY sum(t3.order_quantity) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT t1.payment_method FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id GROUP BY t1.customer_name ORDER BY sum(t3.order_quantity) LIMIT 1",
        "final_utterance": "Tell me the payment method used by the customer who ordered the least amount of goods in total.",
        "interaction_utterance": [
            "What is the total quantity ordered by each customer?",
            "Return the customer who ordered the least quantity in total.",
            "What is that customer's payment method?"
        ],
        "interaction_query": [
            "SELECT sum(t3.order_quantity) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id GROUP BY t1.customer_name",
            "SELECT * FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id GROUP BY t1.customer_name ORDER BY sum(t3.order_quantity) LIMIT 1",
            "SELECT t1.payment_method FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id GROUP BY t1.customer_name ORDER BY sum(t3.order_quantity) LIMIT 1"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT count(DISTINCT product_id) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id WHERE t1.customer_name  =  \"Rodrick Heaney\"",
        "final_utterance": "Find the number of distinct products Rodrick Heaney has bought so far.",
        "interaction_utterance": [
            "Find the id of the product ordered in each order.",
            "What are the ids of products ordered by the customer named Rodrick Heaney?",
            "How many distinct products has he bought?"
        ],
        "interaction_query": [
            "SELECT product_id FROM order_items",
            "SELECT product_id FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id WHERE t1.customer_name  =  \"Rodrick Heaney\"",
            "SELECT count(DISTINCT product_id) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id WHERE t1.customer_name  =  \"Rodrick Heaney\""
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT sum(t3.order_quantity) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id WHERE t1.customer_name  =  \"Rodrick Heaney\"",
        "final_utterance": "Tell me the total quantity of products bought by the customer called \"Rodrick Heaney\".",
        "interaction_utterance": [
            "Find the id of product ordered in each order.",
            "What are the ids of products ordered by the customer named Rodrick Heaney?",
            "What is the total quantity of products bought by him?"
        ],
        "interaction_query": [
            "SELECT product_id FROM order_items",
            "SELECT product_id FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id WHERE t1.customer_name  =  \"Rodrick Heaney\"",
            "SELECT sum(t3.order_quantity) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id WHERE t1.customer_name  =  \"Rodrick Heaney\""
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT count(DISTINCT customer_id) FROM customer_orders WHERE order_status  =  \"Cancelled\"",
        "final_utterance": "Return the number of customers who have at least one order with \"Cancelled\" status.",
        "interaction_utterance": [
            "Which customer order have cancelled status?",
            "How many customers have cancelled status?"
        ],
        "interaction_query": [
            "SELECT * FROM customer_orders WHERE order_status  =  \"Cancelled\"",
            "SELECT count(DISTINCT customer_id) FROM customer_orders WHERE order_status  =  \"Cancelled\""
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT count(*) FROM customer_orders WHERE order_details  =  \"Second time\"",
        "final_utterance": "Tell me the number of orders with \"Second time\" as order detail.",
        "interaction_utterance": [
            "Which customer orders have \"Second time\" as order detail?",
            "How many?"
        ],
        "interaction_query": [
            "SELECT * FROM customer_orders WHERE order_details  =  \"Second time\"",
            "SELECT count(*) FROM customer_orders WHERE order_details  =  \"Second time\""
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT t1.customer_name ,  t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id WHERE order_status  =  \"Delivered\"",
        "final_utterance": "What are the customer name and date of the orders whose status is \"Delivered\".",
        "interaction_utterance": [
            "Find all the customer orders whose status is \"Delivered\".",
            "What are the customer name and date for those orders?"
        ],
        "interaction_query": [
            "SELECT * FROM customer_orders WHERE order_status  =  \"Delivered\"",
            "SELECT t1.customer_name ,  t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id WHERE order_status  =  \"Delivered\""
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id  =  t2.order_id WHERE t1.order_status  =  \"Cancelled\"",
        "final_utterance": "Find the total quantity of products associated with the orders in the \"Cancelled\" status.",
        "interaction_utterance": [
            "List all the customer orders in the \"Cancelled\" status.",
            "Find the order quantity for these orders.",
            "Find the total quantity of products associated with those orders."
        ],
        "interaction_query": [
            "SELECT * FROM customer_orders WHERE order_status  =  \"Cancelled\"",
            "SELECT t2.order_quantity FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id  =  t2.order_id WHERE t1.order_status  =  \"Cancelled\"",
            "SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id  =  t2.order_id WHERE t1.order_status  =  \"Cancelled\""
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id  =  t2.order_id WHERE t1.order_date  <  '2018-03-17 07:13:53'",
        "final_utterance": "What is the total amount of products purchased before 2018-03-17 07:13:53?",
        "interaction_utterance": [
            "Find all the customer orders that made before 2018-03-17 07:13:53.",
            "Compute the total quantity of items purchased in this order."
        ],
        "interaction_query": [
            "SELECT * FROM customer_orders WHERE order_date  <  '2018-03-17 07:13:53'",
            "SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id  =  t2.order_id WHERE t1.order_date  <  '2018-03-17 07:13:53'"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id ORDER BY t2.order_date DESC LIMIT 1",
        "final_utterance": "Find the name of the customer who made an order most recently.",
        "interaction_utterance": [
            "Order all the customer orders by the descending order date.",
            "What is the most recent order?",
            "Who made that order?"
        ],
        "interaction_query": [
            "SELECT * FROM customer_orders ORDER BY order_date DESC",
            "SELECT * FROM customer_orders ORDER BY order_date DESC LIMIT 1",
            "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id ORDER BY t2.order_date DESC LIMIT 1"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id  =  t2.product_id GROUP BY t1.product_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the most frequently ordered product? Tell me the detail of the product",
        "interaction_utterance": [
            "Count the number of times each product is ordered.",
            "What is the most frequently ordered product?",
            "Tell me the detail of the product."
        ],
        "interaction_query": [
            "SELECT count(*) FROM order_items GROUP BY product_id",
            "SELECT * FROM order_items GROUP BY product_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id  =  t2.product_id GROUP BY t1.product_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT t2.product_details ,  t2.product_id FROM order_items AS t1 JOIN products AS t2 ON t1.product_id  =  t2.product_id GROUP BY t1.product_id ORDER BY sum(t1.order_quantity) LIMIT 1",
        "final_utterance": "What are the name and ID of the product bought the most.",
        "interaction_utterance": [
            "Find the total quantity order for each product.",
            "What is the id of the product whose total order quantity is the largest?",
            "What are the name and ID of that product?"
        ],
        "interaction_query": [
            "SELECT sum(order_quantity) FROM order_items GROUP BY product_id",
            "SELECT product_id FROM order_items GROUP BY product_id ORDER BY sum(order_quantity) LIMIT 1",
            "SELECT t2.product_details ,  t2.product_id FROM order_items AS t1 JOIN products AS t2 ON t1.product_id  =  t2.product_id GROUP BY t1.product_id ORDER BY t1.order_quantity LIMIT 1"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT address_content FROM addresses WHERE city  =  \"East Julianaside\" AND state_province_county  =  \"Texas\" UNION SELECT address_content FROM addresses WHERE city  =  \"Gleasonmouth\" AND state_province_county  =  \"Arizona\"",
        "final_utterance": "What are all the addresses in East Julianaside, Texas or in Gleasonmouth, Arizona.",
        "interaction_utterance": [
            "List all addresses in East Julianaside, Texas.",
            "List all addresses in Gleasonmouth, Arizona.",
            "List all addresses in either of them."
        ],
        "interaction_query": [
            "SELECT address_content FROM addresses WHERE city  =  \"East Julianaside\" AND state_province_county  =  \"Texas\"",
            "SELECT address_content FROM addresses WHERE city  =  \"Gleasonmouth\" AND state_province_county  =  \"Arizona\"",
            "SELECT address_content FROM addresses WHERE city  =  \"East Julianaside\" AND state_province_county  =  \"Texas\" UNION SELECT address_content FROM addresses WHERE city  =  \"Gleasonmouth\" AND state_province_county  =  \"Arizona\""
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT customer_name FROM customers WHERE payment_method ! =  'Cash'",
        "final_utterance": "What is the name of customers who do not use Cash as payment method.",
        "interaction_utterance": [
            "List all the customers' payment method",
            "Which customer does not use Cash?",
            "What is the name of the customer?"
        ],
        "interaction_query": [
            "SELECT payment_method FROM customers",
            "SELECT * FROM customers WHERE payment_method ! =  'Cash'",
            "SELECT customer_name FROM customers WHERE payment_method ! =  'Cash'"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id JOIN products AS t4 ON t3.product_id  =  t4.product_id WHERE product_details  =  'Latte'",
        "final_utterance": "What are names of customers who never ordered product Latte.",
        "interaction_utterance": [
            "Find the names of all the customers.",
            "What are the names of customers who bought the product \"Latte\" before?",
            "Which customers never bought Latte\"?"
        ],
        "interaction_query": [
            "SELECT customer_name FROM customers",
            "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id JOIN products AS t4 ON t3.product_id  =  t4.product_id WHERE product_details  =  'Latte'",
            "SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id JOIN products AS t4 ON t3.product_id  =  t4.product_id WHERE product_details  =  'Latte'"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id",
        "final_utterance": "What are the names of customers who never made an order.",
        "interaction_utterance": [
            "List the names of all the customers.",
            "What are the names of customers who have made some orders before?",
            "Which customers never made an order?"
        ],
        "interaction_query": [
            "SELECT customer_name FROM customers",
            "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id",
            "SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id"
        ]
    },
    {
        "db_id": "customers_and_addresses",
        "final_query": "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id JOIN products AS t4 ON t3.product_id  =  t4.product_id WHERE product_details  =  'Latte' INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id JOIN products AS t4 ON t3.product_id  =  t4.product_id WHERE product_details  =  'Americano'",
        "final_utterance": "What are the names of customers who have purchased both products Latte and Americano?",
        "interaction_utterance": [
            "List the names of customers who have purchased Latte.",
            "Give me the names of customers who have purchased Americano.",
            "Which customers have ordered both?"
        ],
        "interaction_query": [
            "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id JOIN products AS t4 ON t3.product_id  =  t4.product_id WHERE product_details  =  'Latte'",
            "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id JOIN products AS t4 ON t3.product_id  =  t4.product_id WHERE product_details  =  'Americano'",
            "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id JOIN products AS t4 ON t3.product_id  =  t4.product_id WHERE product_details  =  'Latte' INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id JOIN products AS t4 ON t3.product_id  =  t4.product_id WHERE product_details  =  'Americano'"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT T1.first_name ,  T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id",
        "final_utterance": "What are the first name and department name of all employees?",
        "interaction_utterance": [
            "What are the first names of all employees?",
            "Also, what are their department names?"
        ],
        "interaction_query": [
            "SELECT first_name FROM employees",
            "SELECT T1.first_name ,  T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT first_name ,  last_name ,  salary FROM employees WHERE salary  <  6000",
        "final_utterance": "What are the full names and salaries for any employees earning less than 6000?",
        "interaction_utterance": [
            "Which employees earn less than 6000?",
            "What are their full names and salaries?"
        ],
        "interaction_query": [
            "SELECT * FROM employees WHERE salary  <  6000",
            "SELECT first_name ,  last_name ,  salary FROM employees WHERE salary  <  6000"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT first_name ,  department_id FROM employees WHERE last_name  =  'McEwen'",
        "final_utterance": "What are the first names and department numbers for employees with last name McEwen?",
        "interaction_utterance": [
            "List the first name and department id for all employees?",
            "Of these, include the ones for employees with last name McEwen."
        ],
        "interaction_query": [
            "SELECT first_name ,  department_id FROM employees",
            "SELECT first_name ,  department_id FROM employees WHERE last_name  =  'McEwen'"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT * FROM  departments WHERE department_name  =  'Marketing'",
        "final_utterance": "What is all the information about the Marketing department?",
        "interaction_utterance": [
            "What is all the information about all the departments?",
            "Of those, what is the information about the Marketing department?"
        ],
        "interaction_query": [
            "SELECT * FROM  departments",
            "SELECT * FROM  departments WHERE department_name  =  'Marketing'"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT hire_date FROM employees WHERE first_name NOT LIKE '%M%'",
        "final_utterance": "On what dates were employees without the letter M in their first names hired?",
        "interaction_utterance": [
            "What is all the information on employees?",
            "Of those, which do not have the letter M in their first names?",
            "What were their hire dates?"
        ],
        "interaction_query": [
            "SELECT * FROM employees",
            "SELECT * FROM employees WHERE first_name NOT LIKE '%M%'",
            "SELECT hire_date FROM employees WHERE first_name NOT LIKE '%M%'"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT first_name ,  last_name ,  hire_date ,  salary ,  department_id FROM employees WHERE first_name NOT LIKE '%M%'",
        "final_utterance": "What are the full name, hire date, salary, and department id for employees without the letter M in their first name?",
        "interaction_utterance": [
            "What is all the information on employees?",
            "Of those, which do not have the letter M in their first names?",
            "What were their full names, hire dates, salaries, and department numbers?"
        ],
        "interaction_query": [
            "SELECT * FROM employees",
            "SELECT * FROM employees WHERE first_name NOT LIKE '%M%'",
            "SELECT first_name ,  last_name ,  hire_date ,  salary ,  department_id FROM employees WHERE first_name NOT LIKE '%M%'"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT first_name ,  last_name ,  hire_date ,  salary ,  department_id FROM employees WHERE first_name NOT LIKE '%M%' ORDER BY department_id",
        "final_utterance": "What are the full name, hire data, salary and department id for employees without the letter M in their first name, ordered by ascending department id?",
        "interaction_utterance": [
            "Which employees do not have the letter M in their first names?",
            "What were their full names, hire dates, salaries, and department numbers?",
            "Order these by ascending department number."
        ],
        "interaction_query": [
            "SELECT * FROM employees WHERE first_name NOT LIKE '%M%'",
            "SELECT first_name ,  last_name ,  hire_date ,  salary ,  department_id FROM employees WHERE first_name NOT LIKE '%M%'",
            "SELECT first_name ,  last_name ,  hire_date ,  salary ,  department_id FROM employees WHERE first_name NOT LIKE '%M%' ORDER BY department_id"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT phone_number FROM employees WHERE salary BETWEEN 8000 AND 12000",
        "final_utterance": "Return the phone numbers of employees with salaries between 8000 and 12000.",
        "interaction_utterance": [
            "What are all the employees' phone numbers?",
            "Return only those for employees with salaries between 8000 and 12000."
        ],
        "interaction_query": [
            "SELECT phone_number FROM employees",
            "SELECT phone_number FROM employees WHERE salary BETWEEN 8000 AND 12000"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT first_name ,  last_name ,  salary FROM employees WHERE first_name LIKE '%m'",
        "final_utterance": "Return the full names and salaries for employees with first names that end with the letter m.",
        "interaction_utterance": [
            "What are all the employees with first names that end with m?",
            "What are their full names and salaries?"
        ],
        "interaction_query": [
            "SELECT * FROM employees WHERE first_name LIKE '%m'",
            "SELECT first_name ,  last_name ,  salary FROM employees WHERE first_name LIKE '%m'"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT job_id ,  hire_date FROM employees WHERE hire_date BETWEEN '2007-11-05' AND '2009-07-05'",
        "final_utterance": "What are the job ids and dates of hire for employees hired after November 5th, 2007 and before July 5th, 2009?",
        "interaction_utterance": [
            "Which employees were hired between November 5th, 2007 and July 5th, 2009?",
            "What are their job ids and hire dates?"
        ],
        "interaction_query": [
            "SELECT * FROM employees WHERE hire_date BETWEEN '2007-11-05' AND '2009-07-05'",
            "SELECT job_id ,  hire_date FROM employees WHERE hire_date BETWEEN '2007-11-05' AND '2009-07-05'"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT first_name ,  last_name FROM employees WHERE department_id  =  70 OR department_id  =  90",
        "final_utterance": "What are the full names of employees who with in department 70 or 90?",
        "interaction_utterance": [
            "What are the names of all employees?",
            "Of those, who are in department 70 or 90?"
        ],
        "interaction_query": [
            "SELECT first_name ,  last_name FROM employees",
            "SELECT first_name ,  last_name FROM employees WHERE department_id  =  70 OR department_id  =  90"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT * FROM employees WHERE hire_date  <  '2002-06-21'",
        "final_utterance": "What is all the information about employees hired before June 21, 2002?",
        "interaction_utterance": [
            "What is all the information about employees?",
            "Of those, which were hired before 2002-06-21?"
        ],
        "interaction_query": [
            "SELECT * FROM employees",
            "SELECT * FROM employees WHERE hire_date  <  '2002-06-21'"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT * FROM employees WHERE first_name LIKE '%D%' OR first_name LIKE '%S%' OR first_name LIKE '%N%' ORDER BY salary DESC",
        "final_utterance": "What is all the information about employees with D, S, or N in their first name, ordered by salary descending?",
        "interaction_utterance": [
            "What is all the information about employees with a D, S or N in their first name?",
            "Order those by decreasing salary."
        ],
        "interaction_query": [
            "SELECT * FROM employees WHERE first_name LIKE '%D%' OR first_name LIKE '%S%' OR first_name LIKE '%N%'",
            "SELECT * FROM employees WHERE first_name LIKE '%D%' OR first_name LIKE '%S%' OR first_name LIKE '%N%' ORDER BY salary DESC"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT * FROM employees WHERE hire_date  >  '1987-09-07'",
        "final_utterance": "Which employees were hired after September 7th, 1987?",
        "interaction_utterance": [
            "What is all the information about the employees?",
            "Of those, who was hired after September 7th, 1987?"
        ],
        "interaction_query": [
            "SELECT * FROM employees",
            "SELECT * FROM employees WHERE hire_date  >  '1987-09-07'"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT job_title FROM jobs WHERE min_salary  >  9000",
        "final_utterance": "Which job titles correspond to jobs with salaries over 9000?",
        "interaction_utterance": [
            "What are all the job titles?",
            "Of those, which correspond to jobs with salaries over 9000?"
        ],
        "interaction_query": [
            "SELECT job_title FROM jobs",
            "SELECT job_title FROM jobs WHERE min_salary  >  9000"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT job_title ,  max_salary - min_salary FROM jobs WHERE max_salary BETWEEN 12000 AND 18000",
        "final_utterance": "What are the job titles, and range of salaries for jobs with maximum salary between 12000 and 18000?",
        "interaction_utterance": [
            "What is all the information about jobs with max salary between 12000 and 18000?",
            "What are the job titles and differences between max and min salaries for those jobs?"
        ],
        "interaction_query": [
            "SELECT * FROM jobs WHERE max_salary BETWEEN 12000 AND 18000",
            "SELECT job_title ,  max_salary - min_salary FROM jobs WHERE max_salary BETWEEN 12000 AND 18000"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT employee_id ,  MAX(end_date) FROM job_history GROUP BY employee_id",
        "final_utterance": "What are the employee ids for each employee and final dates of employment at their last job?",
        "interaction_utterance": [
            "What is all the job history information?",
            "What are the unique employee ids?",
            "What are the latest end dates corresponding to each one?"
        ],
        "interaction_query": [
            "SELECT * FROM job_history",
            "SELECT employee_id FROM job_history GROUP BY employee_id",
            "SELECT employee_id ,  MAX(end_date) FROM job_history GROUP BY employee_id"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT department_id FROM employees GROUP BY department_id HAVING COUNT(commission_pct) > 10",
        "final_utterance": "What are the department ids for which more than 10 employees had a commission?",
        "interaction_utterance": [
            "What are the different department ids?",
            "Of these, which had more than 10 employees with commissions?"
        ],
        "interaction_query": [
            "SELECT department_id FROM employees GROUP BY department_id",
            "SELECT department_id FROM employees GROUP BY department_id HAVING COUNT(commission_pct) > 10"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT DISTINCT department_id FROM employees GROUP BY department_id ,  manager_id HAVING COUNT(employee_id)  >= 4",
        "final_utterance": "What are department ids for departments with managers managing more than 3 employees?",
        "interaction_utterance": [
            "What are the manager ids of managers who manage 4 or more employees?",
            "What are their department ids?"
        ],
        "interaction_query": [
            "SELECT manager_id FROM employees GROUP BY manager_id HAVING COUNT(employee_id)  >= 4",
            "SELECT DISTINCT department_id FROM employees GROUP BY department_id ,  manager_id HAVING COUNT(employee_id)  >= 4"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT country_id ,  COUNT(*) FROM locations GROUP BY country_id",
        "final_utterance": "Give the country id and corresponding count of cities in each country.",
        "interaction_utterance": [
            "How many cities are there?",
            "Count the cities by their country ids."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM locations",
            "SELECT country_id ,  COUNT(*) FROM locations GROUP BY country_id"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT job_id FROM job_history WHERE end_date - start_date  > 300 GROUP BY job_id HAVING COUNT(*) >= 2",
        "final_utterance": "What are the job ids for jobs done more than once for a period of more than 300 days?",
        "interaction_utterance": [
            "What are job ids for jobs that lasted more than 300 days?",
            "Of these, which have been done more than once?"
        ],
        "interaction_query": [
            "SELECT job_id FROM job_history WHERE end_date - start_date  > 300",
            "SELECT job_id FROM job_history WHERE end_date - start_date  > 300 GROUP BY job_id HAVING COUNT(*) >= 2"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*)  >= 2",
        "final_utterance": "What are the employee ids for employees who have held two or more jobs?",
        "interaction_utterance": [
            "What are all the different employee ids in the job history table?",
            "Of these, which have had two or more jobs?"
        ],
        "interaction_query": [
            "SELECT employee_id FROM job_history",
            "SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*)  >= 2"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT employee_id ,  country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id JOIN countries AS T4 ON T3.country_id  =  T4.country_id",
        "final_utterance": "What are all the employee ids and the names of the countries in which they work?",
        "interaction_utterance": [
            "What are all the employee ids?",
            "Also, what are the names of the countries that they work in?"
        ],
        "interaction_query": [
            "SELECT employee_id FROM employees",
            "SELECT employee_id ,  country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id JOIN countries AS T4 ON T3.country_id  =  T4.country_id"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT T2.department_name ,  COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id GROUP BY T2.department_name",
        "final_utterance": "Give the name of each department and the number of employees in each.",
        "interaction_utterance": [
            "How many employees are there?",
            "Group these counts by department name."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM employees",
            "SELECT T2.department_name ,  COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id GROUP BY T2.department_name"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT job_title ,  AVG(salary) FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id  =  T2.job_id GROUP BY T2.job_title",
        "final_utterance": "What is the average salary for each job title?",
        "interaction_utterance": [
            "What is the average salary for all employees?",
            "What are the average salaries by job title?"
        ],
        "interaction_query": [
            "SELECT AVG(salary) FROM employees",
            "SELECT job_title ,  AVG(salary) FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id  =  T2.job_id GROUP BY T2.job_title"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT first_name ,  last_name FROM employees WHERE salary  >  (SELECT salary FROM employees WHERE employee_id = 163 )",
        "final_utterance": "Provide the full names of employees earning more than the employee with id 163.",
        "interaction_utterance": [
            "What is the salary of employee with id 163?",
            "What is all employee information for employees making more than employee 163?",
            "What are the full names of these employees?"
        ],
        "interaction_query": [
            "SELECT salary FROM employees WHERE employee_id = 163",
            "SELECT * FROM employees WHERE salary  >  (SELECT salary FROM employees WHERE employee_id = 163 )",
            "SELECT first_name ,  last_name FROM employees WHERE salary  >  (SELECT salary FROM employees WHERE employee_id = 163 )"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT MIN(salary) ,  department_id FROM employees GROUP BY department_id",
        "final_utterance": "What is the minimum salary in each department?",
        "interaction_utterance": [
            "What is the lowest salary across all employees?",
            "What are these numbers by department id?"
        ],
        "interaction_query": [
            "SELECT MIN(salary) FROM employees",
            "SELECT MIN(salary) ,  department_id FROM employees GROUP BY department_id"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT first_name ,  last_name ,  department_id FROM employees WHERE salary IN (SELECT MIN(salary) FROM employees GROUP BY department_id)",
        "final_utterance": "What are the full names and department ids for the lowest paid employees across all departments.",
        "interaction_utterance": [
            "What is the lowest salary across all departments?",
            "What information is available for employees who make that much?",
            "What are their first and last names and department ids?"
        ],
        "interaction_query": [
            "SELECT MIN(salary) FROM employees GROUP BY department_id",
            "SELECT * FROM employees WHERE salary IN (SELECT MIN(salary) FROM employees GROUP BY department_id)",
            "SELECT first_name ,  last_name ,  department_id FROM employees WHERE salary IN (SELECT MIN(salary) FROM employees GROUP BY department_id)"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT employee_id FROM employees WHERE salary  >  (SELECT AVG(salary) FROM employees)",
        "final_utterance": "What are the employee ids for employees who make more than the average?",
        "interaction_utterance": [
            "What is the average salary across all employees?",
            "Which employees make more than that?",
            "What are their ids?"
        ],
        "interaction_query": [
            "SELECT AVG(salary) FROM employees",
            "SELECT * FROM employees WHERE salary  >  (SELECT AVG(salary) FROM employees)",
            "SELECT employee_id FROM employees WHERE salary  >  (SELECT AVG(salary) FROM employees)"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT employee_id ,  salary FROM employees WHERE manager_id  =  (SELECT employee_id FROM employees WHERE first_name  =  'Payam' )",
        "final_utterance": "What are the employee ids of employees who report to Payam, and what are their salaries?",
        "interaction_utterance": [
            "What are the id for the employee whose first name is Payam?",
            "Which employees' manager is him?",
            "What are their ids and salaries?"
        ],
        "interaction_query": [
            "SELECT employee_id FROM employees WHERE first_name  =  'Payam'",
            "SELECT * FROM employees WHERE manager_id  =  (SELECT employee_id FROM employees WHERE first_name  =  'Payam' )",
            "SELECT employee_id ,  salary FROM employees WHERE manager_id  =  (SELECT employee_id FROM employees WHERE first_name  =  'Payam' )"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT DISTINCT T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id",
        "final_utterance": "What are the names of departments that have at least one employee.",
        "interaction_utterance": [
            "Find the name of all departments.",
            "What about those that have at least one employee."
        ],
        "interaction_query": [
            "SELECT DISTINCT department_name FROM departments",
            "SELECT DISTINCT department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id WHERE T1.employee_id  =  T2.manager_id",
        "final_utterance": "What is all the information regarding employees who are managers?",
        "interaction_utterance": [
            "What are all the manager ids of the different departments?",
            "What is all the employee information regarding these managers?"
        ],
        "interaction_query": [
            "SELECT manager_id FROM departments",
            "SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id WHERE T1.employee_id  =  T2.manager_id"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT * FROM  departments WHERE department_name  =  'Marketing'",
        "final_utterance": "What is all the information about the Marketing department?",
        "interaction_utterance": [
            "What is all the information about all the departments?",
            "Of these, what information pertains to the Marketing department?"
        ],
        "interaction_query": [
            "SELECT * FROM  departments",
            "SELECT * FROM  departments WHERE department_name  =  'Marketing'"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*)  >= 2",
        "final_utterance": "What are the employee ids for those who had two or more jobs.",
        "interaction_utterance": [
            "What are the ids of employees who have job history available?",
            "Which of them have held two or more jobs?"
        ],
        "interaction_query": [
            "SELECT employee_id FROM job_history",
            "SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*)  >= 2"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT DISTINCT department_id FROM employees GROUP BY department_id ,  manager_id HAVING COUNT(employee_id)  >= 4",
        "final_utterance": "Give the distinct department ids of departments in which a manager is in charge of 4 or more employees?",
        "interaction_utterance": [
            "What are the manager ids for managers who are in charge of 4 or more employees?",
            "What are the distinct department ids for the departments they belong to?"
        ],
        "interaction_query": [
            "SELECT manager_id FROM employees GROUP BY manager_id HAVING COUNT(employee_id)  >= 4",
            "SELECT DISTINCT department_id FROM employees GROUP BY department_id ,  manager_id HAVING COUNT(employee_id)  >= 4"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT job_id FROM employees GROUP BY job_id HAVING AVG(salary) > 8000",
        "final_utterance": "What are the job ids corresponding to jobs with average salary above 8000?",
        "interaction_utterance": [
            "What is the average salary for each job?",
            "What are the job ids for jobs that average more than 8000?"
        ],
        "interaction_query": [
            "SELECT avg(salary) FROM employees GROUP BY job_id",
            "SELECT job_id FROM employees GROUP BY job_id HAVING AVG(salary) > 8000"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT T1.employee_id ,  T2.job_title FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id  =  T2.job_id WHERE T1.department_id = 80",
        "final_utterance": "what are the employee ids and job titles for employees in department 80?",
        "interaction_utterance": [
            "What are the employee ids for employees in department 80?",
            "Also, what are their job titles?"
        ],
        "interaction_query": [
            "SELECT employee_id FROM employees WHERE department_id = 80",
            "SELECT T1.employee_id ,  T2.job_title FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id  =  T2.job_id WHERE T1.department_id = 80"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT T1.first_name ,  T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id WHERE T2.department_name  =  'Finance'",
        "final_utterance": "Give the first name and job id for all employees in the Finance department.",
        "interaction_utterance": [
            "Who are the employees working in the Finance department?",
            "What are their first names and job ids?"
        ],
        "interaction_query": [
            "SELECT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id WHERE T2.department_name  =  'Finance'",
            "SELECT T1.first_name ,  T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id WHERE T2.department_name  =  'Finance'"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT * FROM employees WHERE salary BETWEEN (SELECT MIN(salary) FROM employees) AND 2500",
        "final_utterance": "What is all the information regarding employees with salaries above the minimum and under 2500?",
        "interaction_utterance": [
            "What is the lowest salary across all employees?",
            "Which employees make more than that?",
            "Of those, which make less than 2500?"
        ],
        "interaction_query": [
            "SELECT MIN(salary) FROM employees",
            "SELECT * FROM employees WHERE salary  >  (SELECT MIN(salary) FROM employees)",
            "SELECT * FROM employees WHERE salary BETWEEN (SELECT MIN(salary) FROM employees) AND 2500"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT * FROM employees WHERE department_id NOT IN (SELECT department_id FROM departments WHERE manager_id BETWEEN 100 AND 200)",
        "final_utterance": "What are the ids for employees who do not work in departments with managers that have ids between 100 and 200?",
        "interaction_utterance": [
            "What are the department ids with managers who have ids between 100 and 200?",
            "What is all the information about employees who do not work in those departments?"
        ],
        "interaction_query": [
            "SELECT department_id FROM departments WHERE manager_id BETWEEN 100 AND 200",
            "SELECT * FROM employees WHERE department_id NOT IN (SELECT department_id FROM departments WHERE manager_id BETWEEN 100 AND 200)"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT first_name ,  last_name ,  hire_date FROM employees WHERE department_id  =  (SELECT department_id FROM employees WHERE first_name  =  \"Clara\")",
        "final_utterance": "What are the full names and hire dates for employees in the same department as someone with the first name Clara?",
        "interaction_utterance": [
            "What are the department ids for departments that have someone with the first name Clara?",
            "What is all the information about employees in those departments?",
            "What are the full names and hire dates of those employees?"
        ],
        "interaction_query": [
            "SELECT department_id FROM employees WHERE first_name  =  \"Clara\"",
            "SELECT * FROM employees WHERE department_id  =  (SELECT department_id FROM employees WHERE first_name  =  \"Clara\")",
            "SELECT first_name ,  last_name ,  hire_date FROM employees WHERE department_id  =  (SELECT department_id FROM employees WHERE first_name  =  \"Clara\")"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT first_name ,  last_name ,  hire_date FROM employees WHERE department_id  =  ( SELECT department_id FROM employees WHERE first_name  =  \"Clara\") AND first_name ! =  \"Clara\"",
        "final_utterance": "What are the full names and hire dates for employees in the same department as someone with the first name Clara, not including Clara?",
        "interaction_utterance": [
            "What are the department ids for departments that have someone with the first name Clara?",
            "What is all the information about employees in those departments?",
            "What are the full names and hire dates of those employees?",
            "Of those, who does not have the first name Clara?"
        ],
        "interaction_query": [
            "SELECT department_id FROM employees WHERE first_name  =  \"Clara\"",
            "SELECT * FROM employees WHERE department_id  =  ( SELECT department_id FROM employees WHERE first_name  =  \"Clara\")",
            "SELECT first_name ,  last_name ,  hire_date FROM employees WHERE department_id  =  ( SELECT department_id FROM employees WHERE first_name  =  \"Clara\")",
            "SELECT first_name ,  last_name ,  hire_date FROM employees WHERE department_id  =  ( SELECT department_id FROM employees WHERE first_name  =  \"Clara\") AND first_name ! =  \"Clara\""
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT employee_id ,  first_name ,  last_name FROM employees WHERE department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%T%' )",
        "final_utterance": "What are the ids and full names for employees who work in a department that has someone with a first name that contains the letter T?",
        "interaction_utterance": [
            "What are the department ids for departments with employees who have the letter T in their first name?",
            "Who are the employees in those departments?",
            "What are their ids and full names?"
        ],
        "interaction_query": [
            "SELECT department_id FROM employees WHERE first_name LIKE '%T%'",
            "SELECT * FROM employees WHERE department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%T%' )",
            "SELECT employee_id ,  first_name ,  last_name FROM employees WHERE department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%T%' )"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT employee_id ,  first_name ,  last_name ,  salary FROM employees WHERE salary  >  ( SELECT AVG (salary) FROM employees ) AND department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%J%')",
        "final_utterance": "What are the ids, full names, and salaries for employees making more than average and who work in a department with employees who have the letter J in their first name?",
        "interaction_utterance": [
            "What is the average salary across all employees?",
            "Which employees make more than that?",
            "Of those, which work in departments with employees who have the letter J in their first name?",
            "What are their ids, full names and salaries?"
        ],
        "interaction_query": [
            "SELECT AVG (salary) FROM employees",
            "SELECT * FROM employees WHERE salary  >  ( SELECT AVG (salary) FROM employees )",
            "SELECT * FROM employees WHERE salary  >  ( SELECT AVG (salary) FROM employees ) AND department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%J%')",
            "SELECT employee_id ,  first_name ,  last_name ,  salary FROM employees WHERE salary  >  ( SELECT AVG (salary) FROM employees ) AND department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%J%')"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT employee_id ,  job_id FROM employees WHERE salary  <  ( SELECT min(salary) FROM employees WHERE job_id  =  'MK_MAN' )",
        "final_utterance": "What are the employee ids and job ids for employees who make less than the lowest earning employee with title MK_MAN?",
        "interaction_utterance": [
            "What is the lowest salary for someone with the title MK_MAN?",
            "Which employees make less than that?",
            "What are their employee ids and job ids?"
        ],
        "interaction_query": [
            "SELECT min(salary) FROM employees WHERE job_id  =  'MK_MAN'",
            "SELECT * FROM employees WHERE salary  <  ( SELECT min(salary) FROM employees WHERE job_id  =  'MK_MAN' )",
            "SELECT employee_id ,  job_id FROM employees WHERE salary  <  ( SELECT min(salary) FROM employees WHERE job_id  =  'MK_MAN' )"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT employee_id ,  first_name ,  last_name ,  job_id FROM employees WHERE salary  >  ( SELECT max(salary) FROM employees WHERE job_id  =  'PU_MAN' )",
        "final_utterance": "What are the employee ids, full names, and job ids for employees who make more than the highest earning employee with title PU_MAN?",
        "interaction_utterance": [
            "What is the highest salary for someone with the title PU_MAN?",
            "Which employees make more than that?",
            "What are their employee ids, full names, and job ids?"
        ],
        "interaction_query": [
            "SELECT max(salary) FROM employees WHERE job_id  =  'PU_MAN'",
            "SELECT * FROM employees WHERE salary  >  ( SELECT max(salary) FROM employees WHERE job_id  =  'PU_MAN' )",
            "SELECT employee_id ,  first_name ,  last_name ,  job_id FROM employees WHERE salary  >  ( SELECT max(salary) FROM employees WHERE job_id  =  'PU_MAN' )"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT department_id ,  SUM(salary) FROM employees GROUP BY department_id HAVING count(*)  >=  2",
        "final_utterance": "What are total salaries and department id for each department that has more than 2 employees?",
        "interaction_utterance": [
            "What are the department ids for departments which have more than 2 employees?",
            "What is the sum of the salaries within each of those departments?"
        ],
        "interaction_query": [
            "SELECT department_id FROM employees GROUP BY department_id HAVING count(*)  >=  2",
            "SELECT department_id ,  SUM(salary) FROM employees GROUP BY department_id HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT * FROM employees WHERE employee_id NOT IN (SELECT employee_id FROM job_history)",
        "final_utterance": "What is all the information about employees who have never had a job in the past?",
        "interaction_utterance": [
            "What are all the employee ids for employees who have had a job in the past?",
            "What is all the information for employees who are not a part of those?"
        ],
        "interaction_query": [
            "SELECT employee_id FROM job_history GROUP BY employee_id",
            "SELECT * FROM employees WHERE employee_id NOT IN (SELECT employee_id FROM job_history)"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT T1.first_name ,  T1.last_name ,  T2.department_name ,  T3.city ,  T3.state_province FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id",
        "final_utterance": "What are the full names, departments, cities, and state provinces for each employee?",
        "interaction_utterance": [
            "What are the first and last names for each employee?",
            "Also, what are their department names?",
            "Also, what are their city and state provinces?"
        ],
        "interaction_query": [
            "SELECT first_name ,  last_name FROM employees",
            "SELECT T1.first_name ,  T1.last_name ,  T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id",
            "SELECT T1.first_name ,  T1.last_name ,  T2.department_name ,  T3.city ,  T3.state_province FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT T1.first_name ,  T1.last_name ,  T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id WHERE T1.first_name LIKE '%z%'",
        "final_utterance": "What are the full names and cities of employees who have the letter Z in their first names?",
        "interaction_utterance": [
            "What are the full names of each employee?",
            "Also, what cities are their departments in?",
            "Of these, which have the letter Z in their first name?"
        ],
        "interaction_query": [
            "SELECT first_name ,  last_name FROM employees",
            "SELECT T1.first_name ,  T1.last_name ,  T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id",
            "SELECT T1.first_name ,  T1.last_name ,  T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id WHERE T1.first_name LIKE '%z%'"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT T1.department_name ,  T2.city ,  T2.state_province FROM departments AS T1 JOIN locations AS T2 ON T2.location_id  =  T1.location_id",
        "final_utterance": "What are the department names, cities, and state provinces for each department?",
        "interaction_utterance": [
            "What are the names of each department?",
            "Also, in what city and state province are they in?"
        ],
        "interaction_query": [
            "SELECT department_name FROM departments",
            "SELECT T1.department_name ,  T2.city ,  T2.state_province FROM departments AS T1 JOIN locations AS T2 ON T2.location_id  =  T1.location_id"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT first_name ,  last_name ,  employee_id ,  country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id JOIN countries AS T4 ON T3.country_id  =  T4.country_id",
        "final_utterance": "What the full names, ids of each employee and the name of the country they are in?",
        "interaction_utterance": [
            "What are the full names and ids for all employees?",
            "Also, what are the names of the countries that they work in?"
        ],
        "interaction_query": [
            "SELECT first_name ,  last_name ,  employee_id FROM employees",
            "SELECT first_name ,  last_name ,  employee_id ,  country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id JOIN countries AS T4 ON T3.country_id  =  T4.country_id"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT department_name ,  COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id GROUP BY department_name",
        "final_utterance": "What are the department names and how many employees work in each of them?",
        "interaction_utterance": [
            "What are the different department names?",
            "How many employees work in each one?"
        ],
        "interaction_query": [
            "SELECT department_name FROM departments",
            "SELECT department_name ,  COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id GROUP BY department_name"
        ]
    },
    {
        "db_id": "hr_1",
        "final_query": "SELECT first_name ,  last_name ,  salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN  locations AS T3 ON T2.location_id  =  T3.location_id WHERE  T3.city  =  'London'",
        "final_utterance": "What are full names and salaries of employees working in the city of London?",
        "interaction_utterance": [
            "Who are all the employees working in the city of London?",
            "What are their full names and salaries?"
        ],
        "interaction_query": [
            "SELECT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN  locations AS T3 ON T2.location_id  =  T3.location_id WHERE  T3.city  =  'London'",
            "SELECT first_name ,  last_name ,  salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN  locations AS T3 ON T2.location_id  =  T3.location_id WHERE  T3.city  =  'London'"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT count(*) FROM COURSE",
        "final_utterance": "Count the number of courses.",
        "interaction_utterance": [
            "What is all the course information?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM COURSE",
            "SELECT count(*) FROM COURSE"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT count(*) FROM COURSE WHERE Credits  >  2",
        "final_utterance": "Count the number of courses with more than 2 credits.",
        "interaction_utterance": [
            "What is all the information for courses with more than 2 credits?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM COURSE WHERE Credits  >  2",
            "SELECT count(*) FROM COURSE WHERE Credits  >  2"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT CName FROM COURSE WHERE Credits  =  1",
        "final_utterance": "What are the names of courses with 1 credit?",
        "interaction_utterance": [],
        "interaction_query": []
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT CName FROM COURSE WHERE Days  =  \"MTW\"",
        "final_utterance": "What are the course names for courses taught on MTW?",
        "interaction_utterance": [
            "What are all the course names?",
            "Of those, which are taught on the days MTW?"
        ],
        "interaction_query": [
            "SELECT CName FROM COURSE",
            "SELECT CName FROM COURSE WHERE Days  =  \"MTW\""
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT count(*) FROM DEPARTMENT WHERE Division  =  \"AS\"",
        "final_utterance": "How many departments are in the division AS?",
        "interaction_utterance": [
            "How many departments are there?",
            "Of those, how many are in the \"AS\" division?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM DEPARTMENT",
            "SELECT count(*) FROM DEPARTMENT WHERE Division  =  \"AS\""
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT DPhone FROM DEPARTMENT WHERE Room  =  268",
        "final_utterance": "Give the phones for departments in room 268.",
        "interaction_utterance": [
            "What is all the information about departments in room 268?",
            "What are their phones?"
        ],
        "interaction_query": [
            "SELECT * FROM DEPARTMENT WHERE Room  =  268",
            "SELECT DPhone FROM DEPARTMENT WHERE Room  =  268"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT COUNT(DISTINCT StuID) FROM ENROLLED_IN WHERE Grade  =  \"B\"",
        "final_utterance": "How many students have had at least one \"B\" grade?",
        "interaction_utterance": [
            "What are the distinct student ids for students who have gotten a \"B\" grade?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT DISTINCT StuID FROM ENROLLED_IN WHERE Grade  =  \"B\"",
            "SELECT COUNT(DISTINCT StuID) FROM ENROLLED_IN WHERE Grade  =  \"B\""
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT max(gradepoint) ,  min(gradepoint) FROM GRADECONVERSION",
        "final_utterance": "What are the maximum and minumum grade points?",
        "interaction_utterance": [
            "What is the maximum gradepoint?",
            "Also, what is the minimum gradepoint?"
        ],
        "interaction_query": [
            "SELECT max(gradepoint) FROM GRADECONVERSION",
            "SELECT max(gradepoint) ,  min(gradepoint) FROM GRADECONVERSION"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE '%a%'",
        "final_utterance": "What are the first names for students who have an \"a\" in their first name?",
        "interaction_utterance": [
            "What are all the distinct student first names?",
            "Of those, which contain the letter \"a\"?"
        ],
        "interaction_query": [
            "SELECT DISTINCT Fname FROM STUDENT",
            "SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE '%a%'"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT Fname ,  Lname FROM FACULTY WHERE sex  =  \"M\" AND Building  =  \"NEB\"",
        "final_utterance": "What are the full names of faculties with sex M and who live in building NEB?",
        "interaction_utterance": [
            "What are the full names of all the faculty?",
            "Of those, which have sex M?",
            "Of those, which are in building NEB?"
        ],
        "interaction_query": [
            "SELECT Fname ,  Lname FROM FACULTY",
            "SELECT Fname ,  Lname FROM FACULTY WHERE sex  =  \"M\"",
            "SELECT Fname ,  Lname FROM FACULTY WHERE sex  =  \"M\" AND Building  =  \"NEB\""
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT Room FROM FACULTY WHERE Rank  =  \"Professor\" AND Building  =  \"NEB\"",
        "final_utterance": "What are the rooms for members of the faculty who are professors and who live in building NEB?",
        "interaction_utterance": [
            "What are the rooms for all faculty with rank professor?",
            "Of those, which are for faculty who live in building NEB?"
        ],
        "interaction_query": [
            "SELECT Room FROM FACULTY WHERE Rank  =  \"Professor\"",
            "SELECT Room FROM FACULTY WHERE Rank  =  \"Professor\" AND Building  =  \"NEB\""
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT DName FROM DEPARTMENT WHERE Building  =  \"Mergenthaler\"",
        "final_utterance": "What is the name of the department in the Building Mergenthaler?",
        "interaction_utterance": [
            "What are the names of the departments?",
            "Which corresponds to the one in building Mergenthaler?"
        ],
        "interaction_query": [
            "SELECT DName FROM DEPARTMENT",
            "SELECT DName FROM DEPARTMENT WHERE Building  =  \"Mergenthaler\""
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT * FROM COURSE ORDER BY Credits",
        "final_utterance": "What is all the information about courses, ordered by credits ascending?",
        "interaction_utterance": [
            "What is all the information about credits?",
            "Order this in ascending order."
        ],
        "interaction_query": [
            "SELECT * FROM COURSE",
            "SELECT * FROM COURSE ORDER BY Credits"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT CName FROM COURSE ORDER BY Credits",
        "final_utterance": "What are the course names, ordered by credits?",
        "interaction_utterance": [
            "What are all the course names?",
            "Order them by credits."
        ],
        "interaction_query": [
            "SELECT CName FROM COURSE",
            "SELECT CName FROM COURSE ORDER BY Credits"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT Fname FROM STUDENT ORDER BY Age DESC",
        "final_utterance": "What are the first names of students, ordered by age from greatest to least?",
        "interaction_utterance": [
            "What is all the student information, ordered by age descending?",
            "What are their first names?"
        ],
        "interaction_query": [
            "SELECT * FROM STUDENT ORDER BY Age DESC",
            "SELECT Fname FROM STUDENT ORDER BY Age DESC"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT LName FROM STUDENT WHERE Sex  =  \"F\" ORDER BY Age DESC",
        "final_utterance": "What are the last names of female students, ordered by age descending?",
        "interaction_utterance": [
            "What are the last names of all the female students?",
            "Order this by age descending."
        ],
        "interaction_query": [
            "SELECT LName FROM STUDENT WHERE Sex  =  \"F\"",
            "SELECT LName FROM STUDENT WHERE Sex  =  \"F\" ORDER BY Age DESC"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT Lname FROM FACULTY WHERE Building  =  \"Barton\" ORDER BY Lname",
        "final_utterance": "What are the last names of faculty in building Barton, sorted by last name?",
        "interaction_utterance": [
            "What are the last names of faculty in building Barton?",
            "Order this alphabetically."
        ],
        "interaction_query": [
            "SELECT Lname FROM FACULTY WHERE Building  =  \"Barton\"",
            "SELECT Lname FROM FACULTY WHERE Building  =  \"Barton\" ORDER BY Lname"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT Fname FROM FACULTY WHERE Rank  =  \"Professor\" ORDER BY Fname",
        "final_utterance": "What are the first names for all faculty professors, ordered by first name?",
        "interaction_utterance": [
            "What are the first names of all the faculty?",
            "Of those, which are professors?",
            "Sort this in alphabetical order."
        ],
        "interaction_query": [
            "SELECT Fname FROM FACULTY",
            "SELECT Fname FROM FACULTY WHERE Rank  =  \"Professor\"",
            "SELECT Fname FROM FACULTY WHERE Rank  =  \"Professor\" ORDER BY Fname"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO  =  T2.DNO GROUP BY T2.DNO ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the name of the department with the most students minoring in it?",
        "interaction_utterance": [
            "What are all the department names?",
            "Order these descending by the number of students minoring in them.",
            "Which has the most?"
        ],
        "interaction_query": [
            "SELECT DName FROM DEPARTMENT",
            "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO  =  T2.DNO GROUP BY T2.DNO ORDER BY count(*) DESC",
            "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO  =  T2.DNO GROUP BY T2.DNO ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO  =  T2.DNO",
        "final_utterance": "What is the name of the department htat has no students minoring in it?",
        "interaction_utterance": [
            "What are the names of departments that have students minoring in them?",
            "What are all the other department names?"
        ],
        "interaction_query": [
            "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO  =  T2.DNO",
            "SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO  =  T2.DNO"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO  =  T2.DNO GROUP BY T2.DNO ORDER BY count(*) ASC LIMIT 1",
        "final_utterance": "What is the name of the department with the fewest members?",
        "interaction_utterance": [
            "What are all the department names?",
            "Order them by the number of members in each.",
            "Which has the fewest?"
        ],
        "interaction_query": [
            "SELECT DName FROM DEPARTMENT",
            "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO  =  T2.DNO GROUP BY T2.DNO ORDER BY count(*) ASC",
            "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO  =  T2.DNO GROUP BY T2.DNO ORDER BY count(*) ASC LIMIT 1"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT Rank FROM FACULTY GROUP BY Rank ORDER BY count(*) ASC LIMIT 1",
        "final_utterance": "What is the least common faculty rank?",
        "interaction_utterance": [
            "What are the different faculty ranks?",
            "Order them by the number of faculty in each rank.",
            "Which has the fewest?"
        ],
        "interaction_query": [
            "SELECT Rank FROM FACULTY GROUP BY Rank",
            "SELECT Rank FROM FACULTY GROUP BY Rank ORDER BY count(*) ASC",
            "SELECT Rank FROM FACULTY GROUP BY Rank ORDER BY count(*) ASC LIMIT 1"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT T2.Fname ,  T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor  =  T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 3",
        "final_utterance": "What are the full names of the 3 instructors who teach the most courses?",
        "interaction_utterance": [
            "What are the full names of all the faculty?",
            "Order them by the number of courses they teach, descending.",
            "Who are the top three?"
        ],
        "interaction_query": [
            "SELECT Fname ,  Lname FROM FACULTY",
            "SELECT T2.Fname ,  T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor  =  T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC",
            "SELECT T2.Fname ,  T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor  =  T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 3"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor  =  T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Give the building that the instructor who teaches the greatest number of courses lives in.",
        "interaction_utterance": [
            "What is all the information about all the faculty?",
            "Order this by the number of courses each faculty teaches, descending.",
            "What is the building that the one who teachest the most lives in?"
        ],
        "interaction_query": [
            "SELECT * FROM FACULTY",
            "SELECT * FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor  =  T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC",
            "SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor  =  T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT T1.CName FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID  =  T2.CID GROUP BY T2.CID HAVING COUNT(*)  >=  5",
        "final_utterance": "Give the names of the courses with at least five enrollments.",
        "interaction_utterance": [
            "What are all the course names?",
            "Of those, which have at least five students enrolled?"
        ],
        "interaction_query": [
            "SELECT CName FROM COURSE",
            "SELECT T1.CName FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID  =  T2.CID GROUP BY T2.CID HAVING COUNT(*)  >=  5"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT T2.Fname ,  T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor  =  T2.FacID WHERE T1.CName  =  \"COMPUTER LITERACY\"",
        "final_utterance": "What is the full name of the instructor who has a course named COMPUTER LITERACY?",
        "interaction_utterance": [
            "What are the full names of all faculty?",
            "Of those, which has a course named COMPUTER LITERACY?"
        ],
        "interaction_query": [
            "SELECT Fname ,  Lname FROM FACULTY",
            "SELECT T2.Fname ,  T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor  =  T2.FacID WHERE T1.CName  =  \"COMPUTER LITERACY\""
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT T2.Dname ,  T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO  =  T2.DNO WHERE T1.CName  =  \"INTRODUCTION TO COMPUTER SCIENCE\"",
        "final_utterance": "What are the department name and room for the course INTRODUCTION TO COMPUTER SCIENCE?",
        "interaction_utterance": [
            "What is all the information about the course INTRODUCTION TO COMPUTER SCIENCE?",
            "What room is it held in?",
            "Also, what is the department name for the department that offers it?"
        ],
        "interaction_query": [
            "SELECT * FROM COURSE WHERE CName  =  \"INTRODUCTION TO COMPUTER SCIENCE\"",
            "SELECT T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO  =  T2.DNO WHERE T1.CName  =  \"INTRODUCTION TO COMPUTER SCIENCE\"",
            "SELECT T2.Dname ,  T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO  =  T2.DNO WHERE T1.CName  =  \"INTRODUCTION TO COMPUTER SCIENCE\""
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT T3.Fname ,  T3.LName ,  T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade  =  T2.lettergrade AND T1.StuID  =  T3.StuID",
        "final_utterance": "What are the full names and gradepoints for all enrollments?",
        "interaction_utterance": [
            "What are the full names of all students?",
            "Also, what are the gradepoints for any classes they are enrolled in?"
        ],
        "interaction_query": [
            "SELECT Fname ,  LName FROM STUDENT",
            "SELECT T3.Fname ,  T3.LName ,  T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade  =  T2.lettergrade AND T1.StuID  =  T3.StuID"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT DISTINCT T3.Fname FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade  =  T2.lettergrade AND T1.StuID  =  T3.StuID WHERE T2.gradepoint  >=  3.8",
        "final_utterance": "What are the distinct first names for students with a grade point of 3.8 or above in at least one course?",
        "interaction_utterance": [
            "What are the distinct first names of students?",
            "Of those, which have a gradepoint of at least 3.8 in one course?"
        ],
        "interaction_query": [
            "SELECT DISTINCT Fname FROM STUDENT",
            "SELECT DISTINCT T3.Fname FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade  =  T2.lettergrade AND T1.StuID  =  T3.StuID WHERE T2.gradepoint  >=  3.8"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT T1.Fname ,  T1.Lname FROM FACULTY AS T1 JOIN MEMBER_OF AS T2 ON T1.FacID  =  T2.FacID WHERE T2.DNO  =  520",
        "final_utterance": "What are the full names of faculty members who are a part of department 520?",
        "interaction_utterance": [
            "What are the full names of all the faculty?",
            "Of those, which are a part of department 520?"
        ],
        "interaction_query": [
            "SELECT Fname ,  Lname FROM FACULTY",
            "SELECT T1.Fname ,  T1.Lname FROM FACULTY AS T1 JOIN MEMBER_OF AS T2 ON T1.FacID  =  T2.FacID WHERE T2.DNO  =  520"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT T2.Fname ,  T2.Lname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID  =  T2.StuID WHERE T1.DNO  =  140",
        "final_utterance": "What are the full names of students minoring in department 140?",
        "interaction_utterance": [
            "What are the full names of all students?",
            "Of those, which are minoring in the department with number 140?"
        ],
        "interaction_query": [
            "SELECT Fname ,  Lname FROM STUDENT",
            "SELECT T2.Fname ,  T2.Lname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID  =  T2.StuID WHERE T1.DNO  =  140"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT T2.Lname FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO  =  T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID  =  T3.FacID WHERE T1.DName  =  \"Computer Science\"",
        "final_utterance": "What are the last names of faculty who are part of the computer science department?",
        "interaction_utterance": [
            "What is all the information about faculty?",
            "Of those, which are in the computer science department?",
            "What are their last names?"
        ],
        "interaction_query": [
            "SELECT * FROM FACULTY",
            "SELECT * FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO  =  T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID  =  T3.FacID WHERE T1.DName  =  \"Computer Science\"",
            "SELECT T2.Lname FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO  =  T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID  =  T3.FacID WHERE T1.DName  =  \"Computer Science\""
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT avg(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade  =  T2.lettergrade AND T1.StuID  =  T3.StuID WHERE T3.LName  =  \"Smith\"",
        "final_utterance": "What is the average gradepoint for students with the last name Smith?",
        "interaction_utterance": [
            "What is the average gradepoint for any students enrolled in courses?",
            "What is this for students with last name Smith?"
        ],
        "interaction_query": [
            "SELECT avg(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade  =  T2.lettergrade AND T1.StuID  =  T3.StuID",
            "SELECT avg(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade  =  T2.lettergrade AND T1.StuID  =  T3.StuID WHERE T3.LName  =  \"Smith\""
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT max(T2.gradepoint) ,  min(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade  =  T2.lettergrade AND T1.StuID  =  T3.StuID WHERE T3.city_code  =  \"NYC\"",
        "final_utterance": "Give the maximum and minimum gradepoints for students living in NYC?",
        "interaction_utterance": [
            "What is all the information about students living in NYC?",
            "What are their gradepoints for the courses they are enrolled in?",
            "What are the maximum and minimum?"
        ],
        "interaction_query": [
            "SELECT * FROM STUDENT WHERE city_code  =  \"NYC\"",
            "SELECT T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade  =  T2.lettergrade AND T1.StuID  =  T3.StuID WHERE T3.city_code  =  \"NYC\"",
            "SELECT max(T2.gradepoint) ,  min(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade  =  T2.lettergrade AND T1.StuID  =  T3.StuID WHERE T3.city_code  =  \"NYC\""
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT CName FROM COURSE WHERE Credits  =  3 UNION SELECT CName FROM COURSE WHERE Credits  =  1 AND Hours  =  4",
        "final_utterance": "What are the names of courses that give either 3 credits, or 1 credit and 4 hours?",
        "interaction_utterance": [
            "What are the names of courses with 3 credits?",
            "What are the names of courses with 1 credit and 4 hours?",
            "What are the names of courses in either group?"
        ],
        "interaction_query": [
            "SELECT CName FROM COURSE WHERE Credits  =  3",
            "SELECT CName FROM COURSE WHERE Credits  =  1 AND Hours  =  4",
            "SELECT CName FROM COURSE WHERE Credits  =  3 UNION SELECT CName FROM COURSE WHERE Credits  =  1 AND Hours  =  4"
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT DName FROM DEPARTMENT WHERE Division  =  \"AS\" UNION SELECT DName FROM DEPARTMENT WHERE Division  =  \"EN\" AND Building  =  \"NEB\"",
        "final_utterance": "What are the names of departments either in division AS, or in division EN and in building NEB?",
        "interaction_utterance": [
            "What are the department names for departments in division AS?",
            "What are department names for departments in divison EN and building NEB?",
            "What are the names for departments in either group?"
        ],
        "interaction_query": [
            "SELECT DName FROM DEPARTMENT WHERE Division  =  \"AS\"",
            "SELECT DName FROM DEPARTMENT WHERE Division  =  \"EN\" AND Building  =  \"NEB\"",
            "SELECT DName FROM DEPARTMENT WHERE Division  =  \"AS\" UNION SELECT DName FROM DEPARTMENT WHERE Division  =  \"EN\" AND Building  =  \"NEB\""
        ]
    },
    {
        "db_id": "college_3",
        "final_query": "SELECT Fname FROM STUDENT WHERE StuID NOT IN (SELECT StuID FROM ENROLLED_IN)",
        "final_utterance": "What are the first names of all students that are not enrolled in courses?",
        "interaction_utterance": [
            "What are the student ids for each student?",
            "Of those, which are not enrolled in any courses?",
            "What are their first names?"
        ],
        "interaction_query": [
            "SELECT StuID FROM STUDENT",
            "SELECT StuID FROM STUDENT WHERE StuID NOT IN (SELECT StuID FROM ENROLLED_IN)",
            "SELECT Fname FROM STUDENT WHERE StuID NOT IN (SELECT StuID FROM ENROLLED_IN)"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT sum(enr) FROM College",
        "final_utterance": "How many students are enrolled in college?",
        "interaction_utterance": [
            "What can you tell me about college?",
            "What are the enrollment numbers for each college?",
            "What is the total enrollment number for all of the colleges?"
        ],
        "interaction_query": [
            "SELECT * FROM College",
            "SELECT enr FROM College",
            "SELECT SUM(enr) FROM College"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT avg(enr) FROM College",
        "final_utterance": "How many students, on average, does each college have enrolled?",
        "interaction_utterance": [
            "How many are enrolled for each college?",
            "What is the average number?"
        ],
        "interaction_query": [
            "SELECT enr FROM College",
            "SELECT AVG(enr) FROM College"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT COUNT(*) FROM College",
        "final_utterance": "How many different colleges are there?",
        "interaction_utterance": [
            "What is all the information on each college?",
            "How many different ones exist?"
        ],
        "interaction_query": [
            "SELECT * FROM College",
            "SELECT COUNT(*) FROM College"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT count(*) FROM Player WHERE HS  >  1000",
        "final_utterance": "How many different players trained for more than 1000 hours?",
        "interaction_utterance": [
            "What information do you have on players?",
            "Which of those refer to people who trained for more than 1000 hours?",
            "How many of them are there?"
        ],
        "interaction_query": [
            "SELECT * FROM Player",
            "SELECT pName FROM Player WHERE HS  >  1000",
            "SELECT count(*) FROM Player WHERE HS  >  1000"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT count(*) FROM College WHERE enr  >  15000",
        "final_utterance": "What is the number of colleges with a student population greater than 15000?",
        "interaction_utterance": [
            "What is all the information on colleges?",
            "Which of those have a student population greater than 15000?",
            "How many of them exist?"
        ],
        "interaction_query": [
            "SELECT * FROM College",
            "SELECT * FROM College WHERE enr  >  15000",
            "SELECT COUNT(*) FROM College WHERE enr  >  15000"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT avg(HS) FROM Player",
        "final_utterance": "How many hours do the players train on average?",
        "interaction_utterance": [
            "How many hours does each player train for?",
            "What is the average?"
        ],
        "interaction_query": [
            "SELECT pName ,  HS FROM Player",
            "SELECT avg(HS) FROM Player"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT pName ,  HS FROM Player WHERE HS  <  1500",
        "final_utterance": "What are the names and number of hours spent training for each player who trains for less than 1500 hours?",
        "interaction_utterance": [
            "What are the names of the players?",
            "Which of those practice for less than 1500 hours?",
            "Also, list the hours worked for each of them."
        ],
        "interaction_query": [
            "SELECT pName FROM Player",
            "SELECT pName FROM Player WHERE HS  <  1500",
            "SELECT pName ,  HS FROM Player WHERE HS  <  1500"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT count(DISTINCT cName) FROM tryout",
        "final_utterance": "How many different colleges were represented at tryouts?",
        "interaction_utterance": [
            "What is the name of the college each student trying out from?",
            "What are the different college names?",
            "How many different ones exist?"
        ],
        "interaction_query": [
            "SELECT cName FROM tryout",
            "SELECT DISTINCT cName FROM tryout",
            "SELECT count(DISTINCT cName) FROM tryout"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT count(DISTINCT pPos) FROM tryout",
        "final_utterance": "What are the different types of player positions?",
        "interaction_utterance": [
            "What are the different player positions?",
            "How many of them exist?"
        ],
        "interaction_query": [
            "SELECT DISTINCT pPos FROM tryout",
            "SELECT count(DISTINCT pPos) FROM tryout"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT count(*) FROM tryout WHERE decision  =  'yes'",
        "final_utterance": "How many students received a yes from tryouts?",
        "interaction_utterance": [
            "What were the decisions for each player?",
            "Which of the players received a yes?",
            "How many of them exist?"
        ],
        "interaction_query": [
            "SELECT T2.pNAME ,  decision FROM tryout AS T1 JOIN Player AS T2 ON T2.pID  =  T1.pID",
            "SELECT T2.pNAME FROM tryout AS T1 JOIN Player AS T2 ON T2.pID  =  T1.pID WHERE decision  =  'yes'",
            "SELECT count(*) FROM tryout WHERE decision  =  'yes'"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT count(*) FROM tryout WHERE pPos  =  'goalie'",
        "final_utterance": "What is the number of students playing as a goalie?",
        "interaction_utterance": [
            "What information exists for players tried for the position of goalie?",
            "How many of them tried out?"
        ],
        "interaction_query": [
            "SELECT * FROM tryout WHERE pPos  =  'goalie'",
            "SELECT count(*) FROM tryout WHERE pPos  =  'goalie'"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT avg(HS) ,  max(HS) ,  min(HS) FROM Player",
        "final_utterance": "What is the average, maximum, and minimum for the number of hours spent training?",
        "interaction_utterance": [
            "How many hours does each player spend training?",
            "What is the average?",
            "Also, what is the maximum and minimum?"
        ],
        "interaction_query": [
            "SELECT pNAME ,  HS FROM Player",
            "SELECT avg(HS) FROM Player",
            "SELECT avg(HS) ,  max(HS) ,  min(HS) FROM Player"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT avg(enr) FROM College WHERE state  =  'FL'",
        "final_utterance": "What is average number of students enrolled in Florida colleges?",
        "interaction_utterance": [
            "What is the number of students enrolled in each college?",
            "Of those, which refer to students enrolled in places in Florida?",
            "What is the average number enrolled for them?"
        ],
        "interaction_query": [
            "SELECT cName ,  enr FROM College",
            "SELECT cName ,  enr  FROM College WHERE state  =  'FL'",
            "SELECT avg(enr) FROM College WHERE state  =  'FL'"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT pName FROM Player WHERE HS BETWEEN 500 AND 1500",
        "final_utterance": "What are the names of players who train between 500 and 1500 hours?",
        "interaction_utterance": [
            "Give me all information about players who train between 500 and 1500 hours.",
            "What are their names?"
        ],
        "interaction_query": [
            "SELECT * FROM Player WHERE HS BETWEEN 500 AND 1500",
            "SELECT pName FROM Player WHERE HS BETWEEN 500 AND 1500"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT DISTINCT pName FROM Player WHERE pName LIKE '%a%'",
        "final_utterance": "Who are the players that have names containing the letter a?",
        "interaction_utterance": [
            "What information is there on players whose name contains the letter a?",
            "What are their names?",
            "What is a list of the unique names?"
        ],
        "interaction_query": [
            "SELECT * FROM Player WHERE pName LIKE '%a%'",
            "SELECT pName FROM Player WHERE pName LIKE '%a%'",
            "SELECT DISTINCT pName FROM Player WHERE pName LIKE '%a%'"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT cName ,  enr FROM College WHERE enr  >  10000 AND state = \"LA\"",
        "final_utterance": "What are the names and enrollment numbers for colleges that have more than 10000 enrolled and are located in Louisiana?",
        "interaction_utterance": [
            "What information you have on colleges that have more than 10000 students enrolled?",
            "Of those, which refer to colleges in the state of LA?",
            "What are these colleges' names and enrollment numbers?"
        ],
        "interaction_query": [
            "SELECT * FROM College WHERE enr  >  10000",
            "SELECT * FROM College WHERE enr  >  10000 AND state = \"LA\"",
            "SELECT cName ,  enr FROM College WHERE enr  >  10000 AND state = \"LA\""
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT * FROM College ORDER BY enr",
        "final_utterance": "What information do you have on colleges sorted by increasing enrollment numbers?",
        "interaction_utterance": [
            "What information do you have on the colleges?",
            "Sort the information by enrollment numbers."
        ],
        "interaction_query": [
            "SELECT * FROM College",
            "SELECT * FROM College ORDER BY enr"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT cName FROM College WHERE enr  >  18000 ORDER BY cName",
        "final_utterance": "What is the name of every college in alphabetical order that has more than 18000 students enrolled?",
        "interaction_utterance": [
            "What are the college names?",
            "Which of those have more than 18000 students enrolled?",
            "Order them alphabetically."
        ],
        "interaction_query": [
            "SELECT cName FROM College",
            "SELECT cName FROM College WHERE enr  >  18000",
            "SELECT cName FROM College WHERE enr  >  18000 ORDER BY cName"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT pName FROM Player WHERE yCard  =  'yes' ORDER BY HS DESC",
        "final_utterance": "What are the name of the players who received a card in descending order of the hours of training?",
        "interaction_utterance": [
            "What are the names of all the players?",
            "Which of those received a card?",
            "Set them in descending order of hours spent training."
        ],
        "interaction_query": [
            "SELECT pName FROM Player",
            "SELECT pName FROM Player WHERE yCard  =  'yes'",
            "SELECT pName FROM Player WHERE yCard  =  'yes' ORDER BY HS DESC"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT DISTINCT cName FROM tryout ORDER BY cName",
        "final_utterance": "What are the different names of the colleges involved in the tryout in alphabetical order?",
        "interaction_utterance": [
            "Order the information on tryouts by college name",
            "What are the names of the colleges?",
            "Make sure they are all unique."
        ],
        "interaction_query": [
            "SELECT * FROM tryout ORDER BY cName",
            "SELECT cName FROM tryout ORDER BY cName",
            "SELECT DISTINCT cName FROM tryout ORDER BY cName"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT pPos FROM tryout GROUP BY pPos ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What was the most popular position at tryouts?",
        "interaction_utterance": [
            "What information do you have for each position?",
            "How many players tried out for each position?",
            "What was the most popular one?"
        ],
        "interaction_query": [
            "SELECT * FROM tryout GROUP BY pPos",
            "SELECT pPos ,  count(*) FROM tryout GROUP BY pPos",
            "SELECT pPos FROM tryout GROUP BY pPos ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT count(*) ,  cName FROM tryout GROUP BY cName ORDER BY count(*) DESC",
        "final_utterance": "How many students participated in tryouts for each college by descennding count?",
        "interaction_utterance": [
            "How many students participated in tryouts for each college?",
            "Order them by number of participants.",
            "Make sure it is in descending order."
        ],
        "interaction_query": [
            "SELECT count(*) ,  cName FROM tryout GROUP BY cName",
            "SELECT count(*) ,  cName FROM tryout GROUP BY cName ORDER BY count(*)",
            "SELECT count(*) ,  cName FROM tryout GROUP BY cName ORDER BY count(*) DESC"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT min(T2.HS) ,   T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID GROUP BY T1.pPos",
        "final_utterance": "For each position, what is the minimum time students spent practicing?",
        "interaction_utterance": [
            "For each position, how much did each player practice?",
            "What is the minimum for each position?"
        ],
        "interaction_query": [
            "SELECT T2.HS ,   T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID GROUP BY T1.pPos",
            "SELECT min(T2.HS) ,   T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID GROUP BY T1.pPos"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT cName FROM college ORDER BY enr DESC LIMIT 3",
        "final_utterance": "What are the names of the schools with the top 3 largest class sizes?",
        "interaction_utterance": [
            "What are the names of each college?",
            "List them in order of descending class size.",
            "What are the top 3?"
        ],
        "interaction_query": [
            "SELECT cName FROM college",
            "SELECT cName FROM college ORDER BY enr DESC",
            "SELECT cName FROM college ORDER BY enr DESC LIMIT 3"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName",
        "final_utterance": "What are the different states that have students trying out?",
        "interaction_utterance": [
            "Which colleges have students trying out?",
            "What are the different state they are located in?"
        ],
        "interaction_query": [
            "SELECT T1.cName FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName",
            "SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.decision  =  'yes'",
        "final_utterance": "What are the different states that had students successfully try out?",
        "interaction_utterance": [
            "What are the name of the colleges that had students participate in tryouts?",
            "Of those colleges, which had students that received a yes?",
            "What are the different states those colleges are located in?"
        ],
        "interaction_query": [
            "SELECT T1.cName FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName",
            "SELECT T1.cName FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.decision  =  'yes'",
            "SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName  WHERE T2.decision  =  'yes'"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT T1.pName ,  T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'",
        "final_utterance": "What are the names of all the players who received a yes during tryouts, and also what are the names of their colleges?",
        "interaction_utterance": [
            "What are all the players names?",
            "Which of those players tried out and received a yes?",
            "Also, what colleges are they from?"
        ],
        "interaction_query": [
            "SELECT pName FROM player",
            "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'",
            "SELECT T1.pName ,  T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID ORDER BY T1.pName",
        "final_utterance": "What are the names of all students who tried out in alphabetical order?",
        "interaction_utterance": [
            "What are the players' names?",
            "Which of them tried out?",
            "Sort the list alphabetically."
        ],
        "interaction_query": [
            "SELECT pName FROM player",
            "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID",
            "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID ORDER BY T1.pName"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT T1.pName ,  T1.HS FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'",
        "final_utterance": "What are the names and hours spent practicing of every student who received a yes at tryouts?",
        "interaction_utterance": [
            "What are the names of all players who participated in tryouts?",
            "Which of those received a yes?",
            "How many hours did each of them practice for?"
        ],
        "interaction_query": [
            "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID",
            "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'",
            "SELECT T1.pName ,  T1.HS FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'striker'",
        "final_utterance": "What are the states of the colleges where students who tried out for the striker position attend?",
        "interaction_utterance": [
            "Which colleges did the students who tried out for the position of striker attend?",
            "What states are those colleges located in?"
        ],
        "interaction_query": [
            "SELECT T1.cName FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'striker'",
            "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'striker'"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes' AND T2.pPos  =  'striker'",
        "final_utterance": "What are the names of all students who successfully tried out for the position of striker?",
        "interaction_utterance": [
            "What is every player's name?",
            "Which of those tried out for the position of striker?",
            "Of those, who made the team?"
        ],
        "interaction_query": [
            "SELECT pName FROM player",
            "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.pPos  =  'striker'",
            "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID  WHERE T2.decision  =  'yes' AND T2.pPos  =  'striker'"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName JOIN player AS T3 ON T2.pID  =  T3.pID WHERE T3.pName  =  'Charles'",
        "final_utterance": "In which state is the college that Charles attends?",
        "interaction_utterance": [
            "What information is there on the player named Charles?",
            "What college is he attending?",
            "What state is that college located in?"
        ],
        "interaction_query": [
            "SELECT * FROM player WHERE pName  =  'Charles'",
            "SELECT T1.cNAME FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName JOIN player AS T3 ON T2.pID  =  T3.pID WHERE T3.pName  =  'Charles'",
            "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName JOIN player AS T3 ON T2.pID  =  T3.pID WHERE T3.pName  =  'Charles'"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT avg(T1.HS) ,  max(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'",
        "final_utterance": "What is the average and maximum number of hours students who made the team practiced?",
        "interaction_utterance": [
            "What are the player ids of all students who made the team?",
            "What is the maximum number of hours they spent practicing?",
            "What was the average?"
        ],
        "interaction_query": [
            "SELECT T1.pID FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'",
            "SELECT max(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'",
            "SELECT avg(T1.HS) ,  max(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT avg(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'no'",
        "final_utterance": "What is the average number of hours spent practicing for students who got rejected?",
        "interaction_utterance": [
            "Which players received a decision of no from tryouts?",
            "How many hours did they practice?",
            "What was the average?"
        ],
        "interaction_query": [
            "SELECT T1.pNAME FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'no'",
            "SELECT T1.pNAME ,  T1.HS FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'no'",
            "SELECT avg(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'no'"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT max(T1.HS) ,  pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T1.HS  >  1000 GROUP BY T2.pPos",
        "final_utterance": "For each position, what is the maximum number of  hours for students who spent more than 1000 hours training?",
        "interaction_utterance": [
            "What information is there on students who spent more than 1000 hours training?",
            "For each position, how many hours did each student spent training?",
            "What was the maximum time spent for each position?"
        ],
        "interaction_query": [
            "SELECT * FROM player WHERE HS  >  1000",
            "SELECT T1.HS ,  pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID GROUP BY T2.pPos",
            "SELECT max(T1.HS) ,  pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T1.HS  >  1000 GROUP BY T2.pPos"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT T1.cName FROM  tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID WHERE T2.pName LIKE 'D%'",
        "final_utterance": "Which colleges does each player with a name that starts with the letter D  who tried out go to?",
        "interaction_utterance": [
            "What are the player ids of every player whose name starts with D?",
            "Of those, who tried out?",
            "What college did they go to?"
        ],
        "interaction_query": [
            "SELECT pID FROM player WHERE pName LIKE 'D%'",
            "SELECT T1.pID FROM  tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID WHERE T2.pName LIKE 'D%'",
            "SELECT T1.cName FROM  tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID WHERE T2.pName LIKE 'D%'"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT cName FROM  tryout WHERE decision  =  'yes' AND pPos  =  'goalie'",
        "final_utterance": "What college has a student who successfully made the team in the role of a goalie?",
        "interaction_utterance": [
            "What can you tell me about the students who made the team?",
            "of those, who tried out for the position of goalie?",
            "What college do they attend?"
        ],
        "interaction_query": [
            "SELECT * FROM  tryout WHERE decision  =  'yes'",
            "SELECT * FROM tryout WHERE decision  =  'yes' AND pPos  =  'goalie'",
            "SELECT cName FROM  tryout WHERE decision  =  'yes' AND pPos  =  'goalie'"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT T2.pName FROM  tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID WHERE T1.cName  =  (SELECT cName FROM college ORDER BY enr DESC LIMIT 1) S: What IS the largest college?",
        "final_utterance": "What are the names of all tryout participants who are from the largest college?",
        "interaction_utterance": [
            "What are the names of players are from that college?",
            "Of those, who tried out for the team?"
        ],
        "interaction_query": [
            "SELECT T2.pName FROM tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID WHERE T1.cName  =  (SELECT cName FROM college ORDER BY enr DESC LIMIT 1)",
            "SELECT T2.pName FROM tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID WHERE T1.cName  =  (SELECT cName FROM college ORDER BY enr DESC LIMIT 1)"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT DISTINCT T1.state ,  T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.decision  =  'yes'",
        "final_utterance": "How many students are enrolled in colleges that have student accepted during tryouts, and in which states are those colleges?",
        "interaction_utterance": [
            "What are the names of colleges that have students who made the team?",
            "How many students are enrolled in each of them?",
            "Also, what are the different states in which those colleges reside?"
        ],
        "interaction_query": [
            "SELECT T1.cName FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.decision  =  'yes'",
            "SELECT T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.decision  =  'yes'",
            "SELECT DISTINCT T1.state ,  T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.decision  =  'yes'"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT cName FROM College WHERE enr  <  13000 AND state = \"AZ\" UNION SELECT cName FROM College WHERE enr  >  15000 AND state = \"LA\"",
        "final_utterance": "What are the names of colleges in LA that have more than 15,000 students and of colleges in AZ with less than 13,000 students?",
        "interaction_utterance": [
            "What are the names of colleges with less than 13,000 students?",
            "Which of those are in AZ?",
            "Combine that with colleges in LA that have more than 15,000 students?"
        ],
        "interaction_query": [
            "SELECT cName FROM College WHERE enr  <  13000",
            "SELECT cName FROM College WHERE enr  <  13000 AND state = \"AZ\"",
            "SELECT cName FROM College WHERE enr  <  13000 AND state = \"AZ\" UNION SELECT cName FROM College WHERE enr  >  15000 AND state = \"LA\""
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT cName FROM  tryout WHERE pPos  =  'goalie' INTERSECT SELECT cName FROM  tryout WHERE pPos  =  'mid'",
        "final_utterance": "What are the names of all schools that have students trying out for the position of goal and 'mid'-field.",
        "interaction_utterance": [
            "What are the names of colleges that have students who tried out for the goalie?",
            "Of those, which also have students who tried out for the position of mid-field?"
        ],
        "interaction_query": [
            "SELECT cName FROM  tryout WHERE pPos  =  'goalie'",
            "SELECT cName FROM  tryout WHERE pPos  =  'goalie' INTERSECT SELECT cName FROM  tryout WHERE pPos  =  'mid'"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid'",
        "final_utterance": "What are the names of the states that have some college students playing in the positions of goalie and mid-field?",
        "interaction_utterance": [
            "What are the names of colleges that have students who tried out for the goalie?",
            "What states are they located in?",
            "Of those states, which also have colleges where students tried out for mid-field?"
        ],
        "interaction_query": [
            "SELECT T1.cName FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie'",
            "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie'",
            "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName  WHERE T2.pPos  =  'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid'"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT COUNT(*) FROM (SELECT cName FROM  tryout WHERE pPos  =  'goalie' INTERSECT SELECT cName FROM  tryout WHERE pPos  =  'mid')",
        "final_utterance": "How many schools have students playing in goalie and mid-field positions?",
        "interaction_utterance": [
            "What are the names of colleges where students tried for the goalie position?",
            "Of those, which also had students that tried out for the mid position?",
            "How many of them are there?"
        ],
        "interaction_query": [
            "SELECT cName FROM  tryout WHERE pPos  =  'goalie'",
            "SELECT cName FROM  tryout WHERE pPos  =  'goalie' INTERSECT SELECT cName FROM  tryout WHERE pPos  =  'mid'",
            "SELECT COUNT(*) FROM (SELECT cName FROM tryout WHERE pPos  =  'goalie' INTERSECT SELECT cName FROM  tryout WHERE pPos  =  'mid')"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT cName FROM  tryout WHERE pPos  =  'mid' EXCEPT SELECT cName FROM  tryout WHERE pPos  =  'goalie'",
        "final_utterance": "What are the names of the schools with some players in the mid position but no goalies?",
        "interaction_utterance": [
            "What schools have players that tried out for goalies?",
            "What schools have players that tried out for the mid position?",
            "What are the names of schools that fit into the latter category but not the former?"
        ],
        "interaction_query": [
            "SELECT cName FROM  tryout WHERE pPos  =  'goalie'",
            "SELECT cName FROM  tryout WHERE pPos  =  'mid'",
            "SELECT cName FROM  tryout WHERE pPos  =  'mid' EXCEPT SELECT cName FROM  tryout WHERE pPos  =  'goalie'"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie'",
        "final_utterance": "What are the names of all the states with college students playing in the mid position but no goalies?",
        "interaction_utterance": [
            "What schools have players that tried out for goalies?",
            "What schools have players that tried out for the mid position?",
            "In which states are the schools that fit into the latter category but not the former?"
        ],
        "interaction_query": [
            "SELECT cName FROM tryout WHERE pPos  =  'goalie'",
            "SELECT cName FROM tryout WHERE pPos  =  'mid'",
            "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie'"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie')",
        "final_utterance": "What is the count of states with college students playing in the mid position but not as goalies?",
        "interaction_utterance": [
            "What schools have players that tried out for the mid position but not as goalies?",
            "In which states do those schools reside?",
            "How many of them exist?"
        ],
        "interaction_query": [
            "SELECT cName FROM tryout WHERE pPos  =  'mid' EXCEPT SELECT cName FROM tryout WHERE pPos  =  'goalie'",
            "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie'",
            "SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie')"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT cName FROM college WHERE enr  >  (SELECT max(enr) FROM college WHERE state  =  'FL')",
        "final_utterance": "What are the names of all colleges with a larger enrollment than the largest college in Florida?",
        "interaction_utterance": [
            "What information is there on colleges in Florida?",
            "What is their maximum enrollment size?",
            "What is the name of every college that is larger than that?"
        ],
        "interaction_query": [
            "SELECT * FROM college WHERE state  =  'FL'",
            "SELECT max(enr) FROM college WHERE state  =  'FL'",
            "SELECT cName FROM college WHERE enr  >  (SELECT max(enr) FROM college WHERE state  =  'FL')"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT sum(enr) FROM college WHERE cName NOT IN (SELECT cName FROM tryout WHERE pPos  =  \"goalie\")",
        "final_utterance": "What is the total number of students enrolled in schools without any goalies?",
        "interaction_utterance": [
            "What are the names of all colleges with students who tried out for the position of goalie?",
            "What is the number of people enrolled in all the other colleges?",
            "How many is that in total?"
        ],
        "interaction_query": [
            "SELECT cName FROM tryout WHERE pPos  =  \"goalie\"",
            "SELECT cNAME ,  enr FROM college WHERE cName NOT IN (SELECT cName FROM tryout WHERE pPos  =  \"goalie\")",
            "SELECT sum(enr) FROM college WHERE cName NOT IN (SELECT cName FROM tryout WHERE pPos  =  \"goalie\")"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT count(DISTINCT state) FROM college WHERE enr  >  (SELECT avg(enr) FROM college)",
        "final_utterance": "How many states have a college with more students than average?",
        "interaction_utterance": [
            "What is the average number of students enrolled per college?",
            "What are the states that have larger colleges than that?",
            "How many of them are there?"
        ],
        "interaction_query": [
            "SELECT avg(enr) FROM college",
            "SELECT DISTINCT state FROM college WHERE enr  >  (SELECT avg(enr) FROM college)",
            "SELECT count(DISTINCT state) FROM college WHERE enr  >  (SELECT avg(enr) FROM college)"
        ]
    },
    {
        "db_id": "soccer_2",
        "final_query": "SELECT count(DISTINCT state) FROM college WHERE enr  <  (SELECT avg(enr) FROM college)",
        "final_utterance": "How many states have smaller colleges than average?",
        "interaction_utterance": [
            "What is the average number of students per college?",
            "What states have colleges that are smaller than that?",
            "How many of them are there?"
        ],
        "interaction_query": [
            "SELECT avg(enr) FROM college",
            "SELECT DISTINCT state FROM college WHERE enr  <  (SELECT avg(enr) FROM college)",
            "SELECT count(DISTINCT state) FROM college WHERE enr  <  (SELECT avg(enr) FROM college)"
        ]
    },
    {
        "db_id": "scientist_1",
        "final_query": "SELECT name FROM projects ORDER BY hours DESC LIMIT 1",
        "final_utterance": "Find the name of project that continues for the longest time.",
        "interaction_utterance": [
            "show the name and hours for each project.",
            "how many projects are there?",
            "what is the average number of hours spent on each project?",
            "Find the name of project with the longest duration."
        ],
        "interaction_query": [
            "SELECT name, hours FROM projects",
            "SELECT count(*) FROM projects",
            "SELECT avg(hours) FROM projects",
            "SELECT name FROM projects ORDER BY hours DESC LIMIT 1"
        ]
    },
    {
        "db_id": "scientist_1",
        "final_query": "SELECT name FROM projects WHERE hours  >  (SELECT avg(hours) FROM projects)",
        "final_utterance": "List the name of all projects that are operated longer than the average working hours of all projects.",
        "interaction_utterance": [
            "what is average duration of all projects?",
            "what about the maximum and minimum duration?",
            "how many projects have operated longer than the average duration?",
            "what are their names?"
        ],
        "interaction_query": [
            "SELECT avg(hours) FROM projects",
            "SELECT max(hours), min(hours) FROM projects",
            "SELECT count(*) FROM projects WHERE hours  >  (SELECT avg(hours) FROM projects)",
            "SELECT name FROM projects WHERE hours  >  (SELECT avg(hours) FROM projects)"
        ]
    },
    {
        "db_id": "scientist_1",
        "final_query": "SELECT T1.name ,  T1.hours FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project GROUP BY T2.project ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the name and hours of project that has the most number of scientists.",
        "interaction_utterance": [
            "find the names of all projects.",
            "how many scientists were assigned to each of them?",
            "which one has the most scientists?",
            "show how much time has already been spent on it as well."
        ],
        "interaction_query": [
            "SELECT name FROM projects",
            "SELECT T1.name ,  count(*) FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project GROUP BY T2.project",
            "SELECT T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project GROUP BY T2.project ORDER BY count(*) DESC LIMIT 1",
            "SELECT T1.name ,  T1.hours FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project GROUP BY T2.project ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "scientist_1",
        "final_query": "SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T3.name LIKE '%Smith%'",
        "final_utterance": "Find the name of the project for which a scientist whose name contains \u2018Smith\u2019 is assigned to.",
        "interaction_utterance": [
            "show info of all scientists.",
            "find those scientists whose name contains \u2018Smith\u2019.",
            "Find the names of the projects that they are assigned to."
        ],
        "interaction_query": [
            "SELECT * FROM scientists",
            "SELECT * FROM scientists WHERE name LIKE '%Smith%'",
            "SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T3.name LIKE '%Smith%'"
        ]
    },
    {
        "db_id": "scientist_1",
        "final_query": "SELECT sum(T2.hours) FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T3.name  =  'Michael Rogers' OR T3.name  =  'Carol Smith'",
        "final_utterance": "Find the total hours of the projects that scientists named Michael Rogers or Carol Smith are assigned to.",
        "interaction_utterance": [
            "show the names of all scientists.",
            "find the ssn of scientists named Michael Rogers and Carol Smith.",
            "what are the names of projects that they are assigned to?",
            "how many hours in total have been spent on these projects?"
        ],
        "interaction_query": [
            "SELECT name FROM scientists",
            "SELECT ssn FROM scientists WHERE name  =  'Michael Rogers' OR name  =  'Carol Smith'",
            "SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T3.name  =  'Michael Rogers' OR T3.name  =  'Carol Smith'",
            "SELECT sum(T2.hours) FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T3.name  =  'Michael Rogers' OR T3.name  =  'Carol Smith'"
        ]
    },
    {
        "db_id": "scientist_1",
        "final_query": "SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T2.name  =  'Matter of Time' INTERSECT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T2.name  =  'A Puzzling Parallax'",
        "final_utterance": "Find the name of the scientist who worked on both a project named 'A Matter of Time' and a project named 'A Puzzling Parallax'.",
        "interaction_utterance": [
            "what is the number of hours spent on the project named 'Matter of Time\u2019?",
            "Find the names of the scientists who worked on this project.",
            "which of those scientists were also involved in the project named 'A Puzzling Parallax'?"
        ],
        "interaction_query": [
            "SELECT hours FROM projects WHERE name  =  'A Matter of Time'",
            "SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T2.name  =  'A Matter of Time'",
            "SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T2.name  =  'A Matter of Time' INTERSECT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T2.name  =  'A Puzzling Parallax'"
        ]
    },
    {
        "db_id": "scientist_1",
        "final_query": "SELECT count(*) ,  T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project GROUP BY T1.name",
        "final_utterance": "Find the number of scientists involved for each project name.",
        "interaction_utterance": [
            "how many scientists are in the table?",
            "how many projects are there\uff1f",
            "list all of the project names.",
            "Find the number of scientists involved in each of them."
        ],
        "interaction_query": [
            "SELECT count(*) FROM scientists",
            "SELECT count(*) FROM projects",
            "SELECT name FROM projects",
            "SELECT count(*) ,  T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project GROUP BY T1.name"
        ]
    },
    {
        "db_id": "scientist_1",
        "final_query": "SELECT count(*) ,  T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project WHERE T1.hours  >  300 GROUP BY T1.name",
        "final_utterance": "Find the number of scientists involved for the projects that require more than 300 hours.",
        "interaction_utterance": [
            "how many scientists are in the table?",
            "how many of them are assigned to a project?",
            "among them, how many are involved for the projects that require less than 1000 hours. List project names.",
            "how about for the projects that require more than 300 hours?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM scientists",
            "SELECT count(distinct Scientist) FROM assignedto",
            "SELECT count(*) ,  T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project WHERE T1.hours  < 1000 GROUP BY T1.name",
            "SELECT count(*) ,  T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project WHERE T1.hours  >  300 GROUP BY T1.name"
        ]
    },
    {
        "db_id": "scientist_1",
        "final_query": "SELECT count(*),  T1.name FROM scientists AS T1 JOIN assignedto AS T2 ON T1.ssn  =  T2.scientist GROUP BY T1.name",
        "final_utterance": "Find the number of projects which each scientist is working on and scientist's name.",
        "interaction_utterance": [
            "find the names of scientists who are assigned to any projects.",
            "Find the number of projects each of those scientists is working on."
        ],
        "interaction_query": [
            "SELECT T1.name FROM scientists AS T1 JOIN assignedto AS T2 ON T1.ssn  =  T2.scientist",
            "SELECT count(*),  T1.name FROM scientists AS T1 JOIN assignedto AS T2 ON T1.ssn  =  T2.scientist GROUP BY T1.name"
        ]
    },
    {
        "db_id": "scientist_1",
        "final_query": "SELECT T3.ssn ,  T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T2.hours  =  (SELECT max(hours) FROM projects)",
        "final_utterance": "Find the SSN and name of scientists who are assigned to the project with the longest hours.",
        "interaction_utterance": [
            "find the hours spent on the project that has continued for the longest time.",
            "what is the name of this project?",
            "Find the SSN and name of scientists who are assigned to it."
        ],
        "interaction_query": [
            "SELECT max(hours) FROM projects",
            "SELECT name FROM projects ORDER BY hours DESC LIMIT 1",
            "SELECT T3.ssn ,  T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T2.hours  =  (SELECT max(hours) FROM projects)"
        ]
    },
    {
        "db_id": "scientist_1",
        "final_query": "SELECT Name FROM Projects WHERE Code NOT IN (SELECT Project FROM AssignedTo)",
        "final_utterance": "Select the project names which are not assigned yet.",
        "interaction_utterance": [
            "how many projects are there?",
            "among them, how many are not assigned yet?",
            "what are the names of these projects?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM Projects",
            "SELECT count(*) FROM Projects WHERE Code NOT IN (SELECT Project FROM AssignedTo)",
            "SELECT Name FROM Projects WHERE Code NOT IN (SELECT Project FROM AssignedTo)"
        ]
    },
    {
        "db_id": "scientist_1",
        "final_query": "SELECT Name FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo)",
        "final_utterance": "Find the name of scientists who are not assigned to any project.",
        "interaction_utterance": [
            "list the name of all scientists.",
            "which of them are assigned to any project? List their names",
            "how many of those scientists are there?",
            "Find the names of those who are not assigned to a project yet."
        ],
        "interaction_query": [
            "SELECT Name FROM scientists",
            "SELECT Name FROM scientists WHERE ssn IN (SELECT scientist FROM AssignedTo)",
            "SELECT count(*) FROM scientists WHERE ssn IN (SELECT scientist FROM AssignedTo)",
            "SELECT Name FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo)"
        ]
    },
    {
        "db_id": "scientist_1",
        "final_query": "SELECT count(*) FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo)",
        "final_utterance": "Find the number of scientists who are not assigned to any project.",
        "interaction_utterance": [
            "find the names of scientists who are assigned to any project.",
            "how about those who are not involved in any project?",
            "count the number of those scientists."
        ],
        "interaction_query": [
            "SELECT Name FROM scientists WHERE ssn IN (SELECT scientist FROM AssignedTo)",
            "SELECT name FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo)",
            "SELECT count(*) FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo)"
        ]
    },
    {
        "db_id": "scientist_1",
        "final_query": "SELECT name FROM scientists EXCEPT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T2.hours  =  (SELECT max(hours) FROM projects)",
        "final_utterance": "Find the names of scientists who are not working on the project with the highest hours.",
        "interaction_utterance": [
            "find the name of the project that has taken the most time.",
            "how may hours have been spent on it?",
            "how many scientists are working on the project?",
            "what are their names?",
            "how about those who are not involved in it? List their names."
        ],
        "interaction_query": [
            "SELECT name FROM projects ORDER BY hours DESC LIMIT 1",
            "SELECT hours FROM projects ORDER BY hours DESC LIMIT 1",
            "SELECT count(*) FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T2.hours  =  (SELECT max(hours) FROM projects)",
            "SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T2.hours  =  (SELECT max(hours) FROM projects)",
            "SELECT name FROM scientists EXCEPT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T2.hours  =  (SELECT max(hours) FROM projects)"
        ]
    },
    {
        "db_id": "scientist_1",
        "final_query": "SELECT T1.Name ,  T3.Name ,  T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name,  T1.Name",
        "final_utterance": "List all the scientists' names, their projects' names, and the hours worked by that scientist on each project, in alphabetical order of project name, and then scientist name.",
        "interaction_utterance": [
            "List all the scientists' names and their projects' names",
            "show the hours worked by them on each project.",
            "list the results in alphabetical order of project name, and then scientist name."
        ],
        "interaction_query": [
            "SELECT T1.Name ,  T3.Name FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code",
            "SELECT T1.Name ,  T3.Name ,  T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code",
            "SELECT T1.Name ,  T3.Name ,  T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name,  T1.Name"
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT T1.product_name ,  T2.color_description ,  T1.product_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code  =  T2.color_code WHERE product_category_code  =  \"Herbs\"",
        "final_utterance": "List the names, color descriptions and product descriptions of products with category \"Herbs\".",
        "interaction_utterance": [
            "What categories of products are there?",
            "Show their typical buying and selling price as well.",
            "Show only for products with category \"Herbs\".",
            "Of these, just give the name and product description.",
            "Give the color descriptions as well."
        ],
        "interaction_query": [
            "SELECT product_category_code FROM products",
            "SELECT product_category_code, typical_buying_price, typical_selling_price FROM products",
            "SELECT product_category_code, typical_buying_price, typical_selling_price FROM products WHERE product_category_code = \"Herbs\"",
            "SELECT product_name, product_description FROM products WHERE product_category_code = \"Herbs\"",
            "SELECT T1.product_name ,  T2.color_description ,  T1.product_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code  =  T2.color_code WHERE product_category_code  =  \"Herbs\""
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT count(*) FROM products WHERE product_category_code  =  \"Spices\" AND typical_selling_price  >  1000",
        "final_utterance": "Find the number of products with category \"Spices\" and typically sold above 1000.",
        "interaction_utterance": [
            "Which products have category \"Herbs\"",
            "How about category \"Spices\" instead",
            "How many are these?",
            "Restrict the count of those to the ones typically bought below 100.",
            "Restrict to the ones typically sold above 1000 instead."
        ],
        "interaction_query": [
            "SELECT * FROM products WHERE product_category_code = \"Herbs\"",
            "SELECT * FROM products WHERE product_category_code = \"Spices\"",
            "SELECT count(*) FROM products WHERE product_category_code = \"Spices\"",
            "SELECT count(*) FROM products WHERE product_category_code = \"Spices\" AND typical_buying_price < 100",
            "SELECT count(*) FROM products WHERE product_category_code = \"Spices\" AND typical_selling_price > 1000"
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT T1.product_name FROM products AS T1 JOIN ref_colors AS T2 ON T1.color_code  =  T2.color_code WHERE T2.color_description  =  'yellow'",
        "final_utterance": "What is the name of the product with the color description 'yellow'?",
        "interaction_utterance": [
            "What are the product descriptions?",
            "What are the names of products with product description \"eius\"",
            "How about those with color description \"yellow\""
        ],
        "interaction_query": [
            "SELECT product_description FROM products",
            "SELECT product_name FROM products WHERE product_description = \"eius\"",
            "SELECT T1.product_name FROM products AS T1 JOIN ref_colors AS T2 ON T1.color_code  =  T2.color_code WHERE T2.color_description  =  'yellow'"
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT T1.product_category_description FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code  =  T2.product_category_code WHERE T2.product_description LIKE '%t%'",
        "final_utterance": "Find the category descriptions of the products whose descriptions include letter 't'.",
        "interaction_utterance": [
            "Which color descriptions contain the letter 't'?",
            "Give for product descriptions instead?",
            "What are the units of measure for these products?",
            "Give their category descriptions instead."
        ],
        "interaction_query": [
            "SELECT color_description FROM ref_colors WHERE color_description LIKE '%t%'",
            "SELECT product_description FROM products WHERE product_description LIKE '%t%'",
            "SELECT T1.unit_of_measure FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code  =  T2.product_category_code WHERE T2.product_description LIKE '%t%'",
            "SELECT T1.product_category_description FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code  =  T2.product_category_code WHERE T2.product_description LIKE '%t%'"
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code WHERE t1.product_name  =  \"catnip\"",
        "final_utterance": "What is the color description of the product with name \"catnip\"?",
        "interaction_utterance": [
            "What are the typical buying prices of the products?",
            "Give this for the product with name \"cumin\"",
            "How about for the name \"catnip\" instead?",
            "Give the color description instead."
        ],
        "interaction_query": [
            "SELECT typical_buying_price FROM products",
            "SELECT typical_buying_price FROM products WHERE product_name = \"basil\"",
            "SELECT typical_buying_price FROM products WHERE product_name = \"catnip\"",
            "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code WHERE t1.product_name  =  \"catnip\""
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT t1.color_code ,  t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code WHERE t1.product_name  =  \"chervil\"",
        "final_utterance": "What is the color code and description of the product named \"chervil\"?",
        "interaction_utterance": [
            "What are the product descriptions?",
            "For the one with the name \"chervil\"?",
            "Give the color description instead.",
            "Show the color code as well."
        ],
        "interaction_query": [
            "SELECT product_description FROM products",
            "SELECT product_description FROM products WHERE product_name = \"chervil\"",
            "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code WHERE t1.product_name  =  \"chervil\"",
            "SELECT t1.color_code ,  t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code WHERE t1.product_name  =  \"chervil\""
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT t1.product_id ,  t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code JOIN product_characteristics AS t3 ON t1.product_id  =  t3.product_id GROUP BY t1.product_id HAVING count(*)  >=  2",
        "final_utterance": "Find the id and color description of the products with at least 2 characteristics.",
        "interaction_utterance": [
            "What are the product characteristic?",
            "What are the names of the products that have only one product characteristic?",
            "Give their color descriptions and their product id instead.",
            "How about for those that have least 2 product characteristics."
        ],
        "interaction_query": [
            "SELECT * FROM product_characteristics",
            "SELECT t1.product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id GROUP BY t1.product_id HAVING count(*) = 1",
            "SELECT t1.product_id ,  t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code JOIN product_characteristics AS t3 ON t1.product_id  =  t3.product_id GROUP BY t1.product_id HAVING count(*) = 1",
            "SELECT t1.product_id ,  t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code JOIN product_characteristics AS t3 ON t1.product_id  =  t3.product_id GROUP BY t1.product_id HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT t1.product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code WHERE t2.color_description  =  \"white\"",
        "final_utterance": "List all the product names with the color description \"white\".",
        "interaction_utterance": [
            "What are the color descriptions?",
            "Show the corresponding product names.",
            "Filter for only the ones with color \"black\"",
            "Now for color \"white\" instead.",
            "Show only the product names instead."
        ],
        "interaction_query": [
            "SELECT color_description FROM ref_colors",
            "SELECT t1.product_name, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON  t1.color_code = t2.color_code",
            "SELECT t1.product_name, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON  t1.color_code = t2.color_code WHERE t2.color_description = \"black\"",
            "SELECT t1.product_name, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON  t1.color_code = t2.color_code WHERE t2.color_description = \"white\"",
            "SELECT t1.product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code WHERE t2.color_description  =  \"white\""
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT t1.product_name ,  t1.typical_buying_price ,  t1.typical_selling_price FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code WHERE t2.color_description  =  \"yellow\"",
        "final_utterance": "What are the name and typical buying and selling prices of the products that have color described as \"yellow\"?",
        "interaction_utterance": [
            "What are the names of products and their corresponding colors?",
            "Filter to show only the ones with \"green\" color.",
            "Show the ones that have \"yellow\" color instead.",
            "Instead of showing the color description, show their typical buying and selling prices."
        ],
        "interaction_query": [
            "SELECT t1.product_name, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code",
            "SELECT t1.product_name, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = \"green\"",
            "SELECT t1.product_name, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = \"yellow\"",
            "SELECT t1.product_name ,  t1.typical_buying_price ,  t1.typical_selling_price FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code WHERE t2.color_description  =  \"yellow\""
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id WHERE t1.product_name  =  \"sesame\"",
        "final_utterance": "How many characteristics does the product named \"sesame\" have?",
        "interaction_utterance": [
            "What is the selling price of the product named \"sesame\"?",
            "What is its color?",
            "What are its product characteristic values?",
            "Count how many there are."
        ],
        "interaction_query": [
            "SELECT typical_selling_price FROM products WHERE product_name = \"sesame\"",
            "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = \"sesame\"",
            "SELECT t2.product_characteristic_value FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = \"sesame\"",
            "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id WHERE t1.product_name  =  \"sesame\""
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT count(DISTINCT t3.characteristic_name) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  \"cumin\"",
        "final_utterance": "How many distinct characteristic names does the product \"cumin\" have?",
        "interaction_utterance": [
            "What is the buying price of the product named \"cumin\"?",
            "What are its product characteristic values?",
            "Show its characteristic names.",
            "Count how many distinct ones there are."
        ],
        "interaction_query": [
            "SELECT typical_buying_price FROM products WHERE product_name = \"cumin\"",
            "SELECT t2.product_characteristic_value FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = \"cumin\"",
            "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  \"cumin\"",
            "SELECT count(DISTINCT t3.characteristic_name) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  \"cumin\""
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  \"sesame\"",
        "final_utterance": "What are all the characteristic names of product \"sesame\"?",
        "interaction_utterance": [
            "What is the product category code for the product named \"ginger\"?",
            "Show the product characteristic value instead.",
            "How about the one with product named \"sesame\"",
            "Give its characteristic names."
        ],
        "interaction_query": [
            "SELECT product_category_code FROM products WHERE product_name = \"ginger\"",
            "SELECT t2.product_characteristic_value FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = \"ginger\"",
            "SELECT t2.product_characteristic_value FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = \"sesame\"",
            "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  \"sesame\""
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT t3.characteristic_name ,  t3.characteristic_data_type FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  \"cumin\"",
        "final_utterance": "List all the characteristic names and data types of product \"cumin\".",
        "interaction_utterance": [
            "What is the product description of the product named \"catnip\"?",
            "Show the product characteristic value instead.",
            "Now show its characteristic data type.",
            "Show this for the product name \"cumin\" instead.",
            "Give the characteristic name as well."
        ],
        "interaction_query": [
            "SELECT product_description FROM products WHERE product_name = \"catnip\"",
            "SELECT t2.product_characteristic_value FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = \"catnip\"",
            "SELECT t3.characteristic_data_type FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  \"catnip\"",
            "SELECT t3.characteristic_data_type FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  \"cumin\"",
            "SELECT t3.characteristic_name ,  t3.characteristic_data_type FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  \"cumin\""
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  \"sesame\" AND t3.characteristic_type_code  =  \"Grade\"",
        "final_utterance": "List all characteristics of product named \"sesame\" with type code \"Grade\".",
        "interaction_utterance": [
            "What are the selling prices of the products?",
            "What about for those that have product characteristic value \"high\"?",
            "What about for those that have characteristic type code \"Grade\"?",
            "Of those, filter down to those that are product name \"sesame\" as well.",
            "Give the characteristic names instead."
        ],
        "interaction_query": [
            "SELECT typical_selling_price FROM products",
            "SELECT t1.typical_selling_price FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t2.product_characteristic_value = \"high\"",
            "SELECT t1.typical_selling_price FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t3.characteristic_type_code = \"Grade\"",
            "SELECT t1.typical_selling_price FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  \"sesame\" AND t3.characteristic_type_code  =  \"Grade\"",
            "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  \"sesame\" AND t3.characteristic_type_code  =  \"Grade\""
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  \"laurel\"",
        "final_utterance": "How many characteristics does the product named \"laurel\" have?",
        "interaction_utterance": [
            "What are the product characteristic values of the product named \"laurel\"?",
            "Give the characteristic name instead.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT t2.product_characteristic_value FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = \"laurel\"",
            "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  \"laurel\"",
            "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  \"laurel\""
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  \"flax\"",
        "final_utterance": "Find the number of characteristics that the product \"flax\" has.",
        "interaction_utterance": [
            "What is the typical selling price of the product \"catnip\"?",
            "What about the product \"flax\"?",
            "What are its characteristics?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT typical_selling_price FROM products WHERE product_name = \"catnip\"",
            "SELECT typical_selling_price FROM products WHERE product_name = \"flax\"",
            "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  \"flax\"",
            "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t1.product_name  =  \"flax\""
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code  =  t4.color_code WHERE t4.color_description  =  \"red\" AND t3.characteristic_name  =  \"fast\"",
        "final_utterance": "Find the name of the products that have the color description \"red\" and have the characteristic name \"fast\".",
        "interaction_utterance": [
            "What is the name of products with selling price > 1000",
            "What about for products with characteristic name \"slow\"",
            "For characteristic name \"fast\" instead?",
            "Show the ones that also have color description red."
        ],
        "interaction_query": [
            "SELECT product_name FROM products WHERE typical_selling_price > 1000",
            "SELECT t1.product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t3.characteristic_name = \"slow\"",
            "SELECT t1.product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t3.characteristic_name = \"fast\"",
            "SELECT product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code  =  t4.color_code WHERE t4.color_description  =  \"red\" AND t3.characteristic_name  =  \"fast\""
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t3.characteristic_name  =  \"hot\"",
        "final_utterance": "How many products have the characteristic named \"hot\"?",
        "interaction_utterance": [
            "What are the names of the products with color \"red\"?",
            "How many are there?",
            "What about for those with characteristic named \"hot\" instead?"
        ],
        "interaction_query": [
            "SELECT product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = \"red\"",
            "SELECT count(*) FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = \"red\"",
            "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t3.characteristic_name  =  \"hot\""
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT DISTINCT t1.product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t3.characteristic_name  =  \"warm\"",
        "final_utterance": "List the all the distinct names of the products with the characteristic name 'warm'.",
        "interaction_utterance": [
            "What are the names of the products that have buying price < 100",
            "Show their distinct names.",
            "What about for those with color \"black\"?",
            "For the characteristic name \"warm\" instead?"
        ],
        "interaction_query": [
            "SELECT product_name FROM products WHERE typical_buying_price < 100",
            "SELECT DISTINCT product_name FROM products WHERE typical_buying_price < 100",
            "SELECT DISTINCT t1.product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = \"red\"",
            "SELECT DISTINCT t1.product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id WHERE t3.characteristic_name  =  \"warm\""
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code  =  t4.color_code WHERE t4.color_description  =  \"red\" AND t3.characteristic_name  =  \"slow\"",
        "final_utterance": "Find the number of the products that have their color described as \"red\" and have a characteristic named \"slow\".",
        "interaction_utterance": [
            "What are the buying prices of the products with selling price < 500?",
            "Show their names instead.",
            "Of those, narrow down to ones with color \"red\" as well.",
            "Remove the restriction of selling price.",
            "How many are there?",
            "Restrict also to those with characteristic named \"slow\" as well."
        ],
        "interaction_query": [
            "SELECT typical_buying_price FROM products WHERE typical_selling_price < 500",
            "SELECT product_name FROM products WHERE typical_selling_price < 500",
            "SELECT t1.product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE  t1.typical_selling_price < 500 AND t2.color_description = \"red\"",
            "SELECT t1.product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = \"red\"",
            "SELECT count(*) FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = \"red\"",
            "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code  =  t4.color_code WHERE t4.color_description  =  \"red\" AND t3.characteristic_name  =  \"slow\""
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code  =  t4.color_code WHERE t4.color_description  =  \"white\" OR t3.characteristic_name  =  \"hot\"",
        "final_utterance": "Count the products that have the color description \"white\" or have the characteristic name \"hot\".",
        "interaction_utterance": [
            "Show the names of products that have buying price > 100",
            "How many are there?",
            "What about for those with color description \"red\"?",
            "Show the ones with color description \"white\" instead.",
            "They can also be having the characteristic name \"hot\"."
        ],
        "interaction_query": [
            "SELECT product_name FROM products WHERE typical_buying_price > 100",
            "SELECT count(*) FROM products WHERE typical_buying_price > 100",
            "SELECT count(*) FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE  t2.color_description = \"red\"",
            "SELECT count(*) FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE  t2.color_description = \"white\"",
            "SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code  =  t4.color_code WHERE t4.color_description  =  \"white\" OR t3.characteristic_name  =  \"hot\""
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT t2.unit_of_measure FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code  =  t2.product_category_code WHERE t1.product_name  =  \"cumin\"",
        "final_utterance": "What is the unit of measurement of product named \"cumin\"?",
        "interaction_utterance": [
            "What is the typical selling price of the product named \"catnip\"?",
            "Show its color description instead.",
            "Give its unit of measurement instead."
        ],
        "interaction_query": [
            "SELECT typical_selling_price FROM products WHERE product_name = \"catnip\"",
            "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = \"catnip\"",
            "SELECT t2.unit_of_measure FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code  =  t2.product_category_code WHERE t1.product_name  =  \"cumin\""
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT t2.unit_of_measure ,  t2.product_category_code FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code  =  t2.product_category_code WHERE t1.product_name  =  \"chervil\"",
        "final_utterance": "Find the unit of measurement and product category code of product named \"chervil\".",
        "interaction_utterance": [
            "What is the color of the product named \"ginger\"?",
            "Show its unit of measurement instead.",
            "Give the product category code as well.",
            "Do this for the product named \"chervil\" instead."
        ],
        "interaction_query": [
            "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = \"ginger\"",
            "SELECT t2.unit_of_measure FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code  =  t2.product_category_code WHERE t1.product_name  =  \"ginger\"",
            "SELECT t2.unit_of_measure ,  t2.product_category_code FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code  =  t2.product_category_code WHERE t1.product_name  =  \"ginger\"",
            "SELECT t2.unit_of_measure ,  t2.product_category_code FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code  =  t2.product_category_code WHERE t1.product_name  =  \"chervil\""
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT t1.product_name FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code  =  t2.product_category_code JOIN ref_colors AS t3 ON t1.color_code  =  t3.color_code WHERE t3.color_description  =  \"white\" AND t2.unit_of_measure != \"Handful\"",
        "final_utterance": "Find the product names that are colored 'white' but do not have unit of measurement \"Handful\".",
        "interaction_utterance": [
            "What are the product names that are not product category code \"Herbs\"?",
            "Show the same, but for those with unit of measurement \"Handful\" instead.",
            "What about the opposite condition?",
            "Of these, show for the ones that are colored \"white\" too."
        ],
        "interaction_query": [
            "SELECT product_name FROM products WHERE product_category_code != \"Herbs\"",
            "SELECT t1.product_name FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code  =  t2.product_category_code WHERE t2.unit_of_measure = \"Handul\"",
            "SELECT t1.product_name FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code  =  t2.product_category_code WHERE t2.unit_of_measure != \"Handul\"",
            "SELECT t1.product_name FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code  =  t2.product_category_code JOIN ref_colors AS t3 ON t1.color_code  =  t3.color_code WHERE t3.color_description  =  \"white\" AND t2.unit_of_measure != \"Handful\""
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code GROUP BY t2.color_description ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the description of the color for most products?",
        "interaction_utterance": [
            "What are the product names in decreasing order of typical selling price?",
            "Order by decreasing order of color frequency instead.",
            "Show their respective color descriptions.",
            "Show only for the most frequent color description."
        ],
        "interaction_query": [
            "SELECT product_name FROM products ORDER BY typical_selling_price DESC",
            "SELECT t1.product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code GROUP BY t2.color_description ORDER BY count(*) DESC",
            "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code GROUP BY t2.color_description ORDER BY count(*) DESC",
            "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code GROUP BY t2.color_description ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code GROUP BY t2.color_description ORDER BY count(*) ASC LIMIT 1",
        "final_utterance": "What is the description of the color used by least products?",
        "interaction_utterance": [
            "What is the most frequent product category code of the products?",
            "What about the color description instead?",
            "Give the least frequent now."
        ],
        "interaction_query": [
            "SELECT product_category_code FROM products GROUP BY product_category_code ORDER BY count(*) DESC LIMIT 1",
            "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code GROUP BY t2.color_description ORDER BY count(*) DESC LIMIT 1",
            "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code GROUP BY t2.color_description ORDER BY count(*) ASC LIMIT 1"
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id GROUP BY t3.characteristic_name ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the characteristic name used by most number of the products?",
        "interaction_utterance": [
            "What are the product category codes used of the products?",
            "What is the ones used most frequently?",
            "What about for the characteristic name instead?"
        ],
        "interaction_query": [
            "SELECT product_category_code FROM products",
            "SELECT product_category_code FROM products GROUP BY product_category_code ORDER BY count(*) DESC LIMIT 1",
            "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id GROUP BY t3.characteristic_name ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT characteristic_name ,  other_characteristic_details ,  characteristic_data_type FROM CHARACTERISTICS EXCEPT SELECT t1.characteristic_name ,  t1.other_characteristic_details ,  t1.characteristic_data_type FROM CHARACTERISTICS AS t1 JOIN product_characteristics AS t2 ON t1.characteristic_id  =  t2.characteristic_id",
        "final_utterance": "What are the names, details and data types of the characteristics which are never used by any product?",
        "interaction_utterance": [
            "What are the names, details and data types of the characteristics?",
            "Show these for the ones used in products.",
            "Show the ones that are not used."
        ],
        "interaction_query": [
            "SELECT characteristic_name ,  other_characteristic_details ,  characteristic_data_type FROM characteristics",
            "SELECT characteristic_name ,  other_characteristic_details ,  characteristic_data_type FROM characteristics AS t1 JOIN product_characteristics AS t2 ON t1.characteristic_id = t2.characteristic_id",
            "SELECT characteristic_name ,  other_characteristic_details ,  characteristic_data_type FROM CHARACTERISTICS EXCEPT SELECT t1.characteristic_name ,  t1.other_characteristic_details ,  t1.characteristic_data_type FROM CHARACTERISTICS AS t1 JOIN product_characteristics AS t2 ON t1.characteristic_id  =  t2.characteristic_id"
        ]
    },
    {
        "db_id": "products_gen_characteristics",
        "final_query": "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id GROUP BY t3.characteristic_name HAVING count(*)  >= 2",
        "final_utterance": "What are characteristic names used at least twice across all products?",
        "interaction_utterance": [
            "What are the color descriptions?",
            "Which ones are used only once across all the products?",
            "How about for the characteristic names?",
            "Show the ones that are used at least twice."
        ],
        "interaction_query": [
            "SELECT color_description FROM ref_colors",
            "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description HAVING count(*) = 1",
            "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id GROUP BY t3.characteristic_name HAVING count(*)  = 1",
            "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id  =  t3.characteristic_id GROUP BY t3.characteristic_name HAVING count(*)  >= 2"
        ]
    },
    {
        "db_id": "program_share",
        "final_query": "SELECT OWNER FROM channel ORDER BY rating_in_percent DESC LIMIT 1",
        "final_utterance": "What is the owner of the channel that has the highest rating ratio?",
        "interaction_utterance": [
            "List all channel names.",
            "Order them by rating ratio from highest to lowest.",
            "Which one has the highest rating?",
            "Who is the owner?"
        ],
        "interaction_query": [
            "SELECT name FROM channel",
            "SELECT name FROM channel ORDER BY rating_in_percent DESC",
            "SELECT name FROM channel ORDER BY rating_in_percent DESC LIMIT 1",
            "SELECT OWNER FROM channel ORDER BY rating_in_percent DESC LIMIT 1"
        ]
    },
    {
        "db_id": "program_share",
        "final_query": "SELECT name FROM program ORDER BY launch DESC LIMIT 1",
        "final_utterance": "find the name of the program that was launched most recently.",
        "interaction_utterance": [
            "What are the program names?",
            "Order by launch date from most recent to least recent.",
            "Which one was launched most recently?"
        ],
        "interaction_query": [
            "SELECT name FROM program",
            "SELECT name FROM program ORDER BY launch DESC",
            "SELECT name FROM program ORDER BY launch DESC LIMIT 1"
        ]
    },
    {
        "db_id": "program_share",
        "final_query": "SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  'Morning'",
        "final_utterance": "Find the names of the channels that are broadcast in the morning.",
        "interaction_utterance": [
            "List all channel names.",
            "When are they broadcasted?",
            "Which ones are broadcasted in the morning?"
        ],
        "interaction_query": [
            "SELECT name FROM channel",
            "SELECT t1.name, t2.time_of_day FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id",
            "SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  'Morning'"
        ]
    },
    {
        "db_id": "program_share",
        "final_query": "SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  'Morning' INTERSECT SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  'Night'",
        "final_utterance": "what are the names of the channels that broadcast in both morning and night?",
        "interaction_utterance": [
            "Please list the names of all channels.",
            "Include the time of day that they are broadcasted.",
            "Which ones broadcast in the morning?",
            "Out of those channels, which ones also broadcast at night?"
        ],
        "interaction_query": [
            "SELECT name FROM channel",
            "SELECT t1.name, t2.time_of_day FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id",
            "SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  'Morning'",
            "SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  'Morning' INTERSECT SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  'Night'"
        ]
    },
    {
        "db_id": "program_share",
        "final_query": "SELECT name FROM program EXCEPT SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  \"Morning\"",
        "final_utterance": "Find the names of programs that are never broadcasted in the morning.",
        "interaction_utterance": [
            "What are the names of all programs?",
            "When are they broadcasted?",
            "Which ones are broadcasted in the morning?",
            "What about the ones that are not broadcasted in the morning?"
        ],
        "interaction_query": [
            "SELECT name FROM program",
            "SELECT t1.name, t2.time_of_day FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id",
            "SELECT t1.name, t2.time_of_day FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  \"Morning\"",
            "SELECT name FROM program EXCEPT SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  \"Morning\""
        ]
    },
    {
        "db_id": "program_share",
        "final_query": "SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  \"Morning\" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  \"Night\"",
        "final_utterance": "find the program owners that have some programs in both morning and night time.",
        "interaction_utterance": [
            "List the names of all programs.",
            "Include their broadcast times.",
            "Which ones are broadcasted in both morning and night?",
            "Who are the owners of these programs?"
        ],
        "interaction_query": [
            "SELECT name FROM program",
            "SELECT t1.name, t2.time_of_day FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id",
            "SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.time_of_day  =  'Morning' INTERSECT SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.time_of_day  =  'Night'",
            "SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  \"Morning\" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  \"Night\""
        ]
    },
    {
        "db_id": "program_share",
        "final_query": "SELECT name FROM channel WHERE OWNER  =  'CCTV' OR OWNER  =  'HBS'",
        "final_utterance": "What are the names of the channels owned by CCTV or HBS?",
        "interaction_utterance": [
            "List the names of all channels.",
            "Which channels are owned by CCTV?",
            "Include those owned by HBS."
        ],
        "interaction_query": [
            "SELECT name FROM channel",
            "SELECT name FROM channel WHERE OWNER  =  'CCTV'",
            "SELECT name FROM channel WHERE OWNER  =  'CCTV' OR OWNER  =  'HBS'"
        ]
    },
    {
        "db_id": "swimming",
        "final_query": "SELECT name FROM event ORDER BY YEAR DESC LIMIT 1",
        "final_utterance": "What is the name of the event that happened in the most recent year?",
        "interaction_utterance": [
            "How many events are there in the record?",
            "Show me their names.",
            "Which ones happened in the most recent year?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM event",
            "SELECT name FROM event",
            "SELECT name FROM event ORDER BY YEAR DESC LIMIT 1"
        ]
    },
    {
        "db_id": "swimming",
        "final_query": "SELECT name FROM stadium ORDER BY capacity DESC LIMIT 1",
        "final_utterance": "Find the name of the stadium that has the maximum capacity.",
        "interaction_utterance": [
            "How many stadiums are there in the system?",
            "What are their names?",
            "Show me the one with maximum capacity."
        ],
        "interaction_query": [
            "SELECT count(*) FROM stadium",
            "SELECT name FROM stadium",
            "SELECT name FROM stadium ORDER BY capacity DESC LIMIT 1"
        ]
    },
    {
        "db_id": "swimming",
        "final_query": "SELECT name FROM stadium WHERE capacity  <  (SELECT avg(capacity) FROM stadium)",
        "final_utterance": "Find the names of stadiums whose capacity is smaller than the average capacity.",
        "interaction_utterance": [
            "How many stadiums are there in the system?",
            "What are their names?",
            "Give me their capacities.",
            "What is the average capacity?",
            "Show me the stadiums whose capacity is smaller than that."
        ],
        "interaction_query": [
            "SELECT count(*) FROM stadium",
            "SELECT name FROM stadium",
            "SELECT name, capacity FROM stadium",
            "SELECT avg(capacity) FROM stadium",
            "SELECT name FROM stadium WHERE capacity  <  (SELECT avg(capacity) FROM stadium)"
        ]
    },
    {
        "db_id": "swimming",
        "final_query": "SELECT country FROM stadium GROUP BY country ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the country that has the most stadiums.",
        "interaction_utterance": [
            "How many stadiums are there in file?",
            "What about in terms of different countries?",
            "Show me the country with the most of them."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Stadium",
            "SELECT Country, count(*) FROM Stadium GROUP BY country",
            "SELECT country FROM stadium GROUP BY country ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "swimming",
        "final_query": "SELECT country FROM stadium GROUP BY country HAVING count(*)  <=  3",
        "final_utterance": "Which country has at most 3 stadiums listed?",
        "interaction_utterance": [
            "How many stadiums are there in file?",
            "What about in terms of different countries?",
            "Show me the countries with at most three."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Stadium",
            "SELECT Country, count(*) FROM Stadium GROUP BY country",
            "SELECT country FROM stadium GROUP BY country HAVING count(*)  <=  3"
        ]
    },
    {
        "db_id": "swimming",
        "final_query": "SELECT country FROM stadium WHERE capacity  >  60000 INTERSECT SELECT country FROM stadium WHERE capacity  <  50000",
        "final_utterance": "Which country has both stadiums with capacity greater than 60000 and stadiums with capacity less than 50000?",
        "interaction_utterance": [
            "How many stadiums are there in file?",
            "What about in terms of different countries?",
            "Show me the countries that have stadiums with capacity greater than 60000.",
            "Among them, which ones also have stadiums with capacity less than 50000."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Stadium",
            "SELECT Country, count(*) FROM Stadium GROUP BY country",
            "SELECT country FROM stadium WHERE capacity  >  60000",
            "SELECT country FROM stadium WHERE capacity  >  60000 INTERSECT SELECT country FROM stadium WHERE capacity  <  50000"
        ]
    },
    {
        "db_id": "swimming",
        "final_query": "SELECT country FROM stadium EXCEPT SELECT country FROM stadium WHERE opening_year  >  2006",
        "final_utterance": "Which countries do not have a stadium that was opened after 2006?",
        "interaction_utterance": [
            "Show me the name of all stadiums.",
            "What about their opening years?",
            "Only list those opened after 2006.",
            "Show me the countries which has any of those stadiums.",
            "What about the countries in file that are not among them."
        ],
        "interaction_query": [
            "SELECT Name FROM stadium",
            "SELECT Name,opening_year FROM stadium",
            "SELECT Name,opening_year FROM stadium WHERE opening_year > 2006",
            "SELECT country FROM stadium WHERE opening_year  >  2006",
            "SELECT country FROM stadium EXCEPT SELECT country FROM stadium WHERE opening_year  >  2006"
        ]
    },
    {
        "db_id": "swimming",
        "final_query": "SELECT nationality ,  count(*) FROM swimmer GROUP BY nationality HAVING count(*)  >  1",
        "final_utterance": "List countries that have more than one swimmer.",
        "interaction_utterance": [
            "How many swimmers are there in record?",
            "What about in terms of nationality?",
            "Show me the countries with more than one."
        ],
        "interaction_query": [
            "SELECT count(*) FROM swimmer",
            "SELECT nationality ,  count(*) FROM swimmer GROUP BY nationality",
            "SELECT nationality ,  count(*) FROM swimmer GROUP BY nationality HAVING count(*)  >  1"
        ]
    },
    {
        "db_id": "swimming",
        "final_query": "SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id  =  t2.swimmer_id WHERE RESULT  =  'Win'",
        "final_utterance": "Find the names of swimmers who has a result of \"win\".",
        "interaction_utterance": [
            "How many swimming records are there?",
            "How many of them have a result of win?",
            "Show me the swimmer ids in those records.",
            "What are their names?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM record",
            "SELECT count(*) FROM record WHERE result = 'Win'",
            "SELECT swimmer_id FROM record WHERE result = 'Win'",
            "SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id  =  t2.swimmer_id WHERE RESULT  =  'Win'"
        ]
    },
    {
        "db_id": "swimming",
        "final_query": "SELECT t1.name FROM stadium AS t1 JOIN event AS t2 ON t1.id  =  t2.stadium_id GROUP BY t2.stadium_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the name of the stadium which held the most events?",
        "interaction_utterance": [
            "How many events are there?",
            "What about in terms of stadiums?",
            "Give me the name of the one that held the most of them."
        ],
        "interaction_query": [
            "SELECT count(*) FROM event",
            "SELECT stadium_id,count(*) FROM event GROUP BY stadium_id",
            "SELECT t1.name FROM stadium AS t1 JOIN event AS t2 ON t1.id  =  t2.stadium_id GROUP BY t2.stadium_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "swimming",
        "final_query": "SELECT t1.name ,  t1.capacity FROM stadium AS t1 JOIN event AS t2 ON t1.id  =  t2.stadium_id WHERE t2.name  =  'World Junior'",
        "final_utterance": "Find the name and capacity of the stadium where the event named \"World Junior\" happened.",
        "interaction_utterance": [
            "How many events are there?",
            "What are their names?",
            "Show me the name of the stadium that held World Junior event."
        ],
        "interaction_query": [
            "SELECT count(*) FROM event",
            "SELECT Name FROM event",
            "SELECT t1.name ,  t1.capacity FROM stadium AS t1 JOIN event AS t2 ON t1.id  =  t2.stadium_id WHERE t2.name  =  'World Junior'"
        ]
    },
    {
        "db_id": "swimming",
        "final_query": "SELECT name FROM stadium WHERE id NOT IN (SELECT stadium_id FROM event)",
        "final_utterance": "Find the names of stadiums which have never had any event.",
        "interaction_utterance": [
            "How many events are there?",
            "Give me the id of stadiums that have held any of them.",
            "What about the stadium ids in file that are not among those?",
            "Show me their names."
        ],
        "interaction_query": [
            "SELECT count(*) FROM event",
            "SELECT stadium_id FROM event",
            "SELECT id FROM stadium WHERE id NOT IN (SELECT stadium_id FROM event)",
            "SELECT name FROM stadium WHERE id NOT IN (SELECT stadium_id FROM event)"
        ]
    },
    {
        "db_id": "swimming",
        "final_query": "SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id  =  t2.swimmer_id GROUP BY t2.swimmer_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the name of the swimmer who has the most records.",
        "interaction_utterance": [
            "How many swimming records are there in the system?",
            "What about that in terms of swimmer ids?",
            "Show me the one with the most of them.",
            "Give me that swimmer's name."
        ],
        "interaction_query": [
            "SELECT count(*) FROM record",
            "SELECT swimmer_id, count(*) FROM record GROUP BY swimmer_id",
            "SELECT swimmer_id FROM record GROUP BY swimmer_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id  =  t2.swimmer_id GROUP BY t2.swimmer_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "swimming",
        "final_query": "SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id  =  t2.swimmer_id GROUP BY t2.swimmer_id HAVING count(*)  >=  2",
        "final_utterance": "Find the name of the swimmer who has at least 2 records.",
        "interaction_utterance": [
            "How many swimming records are there in the system?",
            "What about that in terms of swimmer ids?",
            "Show me those with at least two.",
            "What about their names?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM record",
            "SELECT swimmer_id, count(*) FROM record GROUP BY swimmer_id",
            "SELECT swimmer_id FROM record GROUP BY swimmer_id HAVING count(*) >= 2",
            "SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id  =  t2.swimmer_id GROUP BY t2.swimmer_id HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "swimming",
        "final_query": "SELECT t1.name ,  t1.nationality FROM swimmer AS t1 JOIN record AS t2 ON t1.id  =  t2.swimmer_id WHERE RESULT  =  'Win' GROUP BY t2.swimmer_id HAVING count(*)  >  1",
        "final_utterance": "Find the name and nationality of the swimmer who has won (i.e., has a result of \"win\") more than 1 time.",
        "interaction_utterance": [
            "How many swimming records are there in the system?",
            "What about swimming records of a result Win?",
            "What about in terms of swimmer ids?",
            "Show me those with more than one.",
            "Show me their names and nationalities."
        ],
        "interaction_query": [
            "SELECT count(*) FROM record",
            "SELECT count(*) FROM record WHERE result = 'Win'",
            "SELECT swimmer_id, count(*) FROM record WHERE result = 'Win' GROUP BY swimmer_id",
            "SELECT swimmer_id FROM record WHERE result = 'Win' GROUP BY swimmer_id HAVING count(*) > 1",
            "SELECT t1.name ,  t1.nationality FROM swimmer AS t1 JOIN record AS t2 ON t1.id  =  t2.swimmer_id WHERE RESULT  =  'Win' GROUP BY t2.swimmer_id HAVING count(*)  >  1"
        ]
    },
    {
        "db_id": "swimming",
        "final_query": "SELECT name FROM swimmer WHERE id NOT IN (SELECT swimmer_id FROM record)",
        "final_utterance": "Find the names of the swimmers who have no record.",
        "interaction_utterance": [
            "How many swimming records are there?",
            "Show me the swimmer ids associated with any of those record.",
            "What about the swimmer ids that are not one of those?",
            "Show me those swimmers' names."
        ],
        "interaction_query": [
            "SELECT count(*) FROM record",
            "SELECT distinct swimmer_id FROM record",
            "SELECT id FROM swimmer WHERE id NOT IN (SELECT swimmer_id FROM record)",
            "SELECT name FROM swimmer WHERE id NOT IN (SELECT swimmer_id FROM record)"
        ]
    },
    {
        "db_id": "swimming",
        "final_query": "SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id  =  t2.swimmer_id WHERE RESULT  =  'Win' INTERSECT SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id  =  t2.swimmer_id WHERE RESULT  =  'Loss'",
        "final_utterance": "Find the names of the swimmers who have both \"win\" and \"loss\" results in the record.",
        "interaction_utterance": [
            "How many swimming records are there?",
            "What about records that have results \"Win\"?",
            "Show me the name of the swimmers who have any of those records.",
            "Among those swimmers, who also have any records with results \"Loss\"?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM record",
            "SELECT count(*) FROM record where RESULT = 'Win'",
            "SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id  =  t2.swimmer_id WHERE RESULT  =  'Win'",
            "SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id  =  t2.swimmer_id WHERE RESULT  =  'Win' INTERSECT SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id  =  t2.swimmer_id WHERE RESULT  =  'Loss'"
        ]
    },
    {
        "db_id": "swimming",
        "final_query": "SELECT t4.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id  =  t2.swimmer_id JOIN event AS t3 ON t2.event_id  =  t3.id JOIN stadium AS t4 ON t4.id  =  t3.stadium_id WHERE t1.nationality  =  'Australia'",
        "final_utterance": "Find the names of stadiums that some Australian swimmers have been to.",
        "interaction_utterance": [
            "How many stadiums are there?",
            "How many Australian swimmers are there in the record?",
            "Show me the stadiums any of those swimmers have been to."
        ],
        "interaction_query": [
            "SELECT count(*) FROM stadium",
            "SELECT count(*) FROM Swimmer where nationality = 'Australian'",
            "SELECT t4.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id  =  t2.swimmer_id JOIN event AS t3 ON t2.event_id  =  t3.id JOIN stadium AS t4 ON t4.id  =  t3.stadium_id WHERE t1.nationality  =  'Australia'"
        ]
    },
    {
        "db_id": "manufacturer",
        "final_query": "SELECT name ,  furniture_id FROM furniture ORDER BY market_rate DESC LIMIT 1",
        "final_utterance": "Return the name and id of the furniture with the highest market rate.",
        "interaction_utterance": [
            "What is the average market rate for furniture?",
            "Show each furniture id number and its corresponding market_rate.",
            "Which one has the lowest market_rate?",
            "Which one has the highest?",
            "Also show its name."
        ],
        "interaction_query": [
            "SELECT avg(market_rate) FROM furniture",
            "SELECT furniture_id, market_rate FROM furniture",
            "SELECT furniture_id, market_rate FROM furniture ORDER BY market_rate LIMIT 1",
            "SELECT furniture_id, market_rate FROM furniture ORDER BY market_rate DESC LIMIT 1",
            "SELECT name ,  furniture_id FROM furniture ORDER BY market_rate DESC LIMIT 1"
        ]
    },
    {
        "db_id": "manufacturer",
        "final_query": "SELECT sum(market_rate) FROM furniture ORDER BY market_rate DESC LIMIT 2",
        "final_utterance": "Find the total market rate of the furnitures that have the top 2 market shares.",
        "interaction_utterance": [
            "What are the names of the 5 furniture items with the highest market rates?",
            "How about the top 2?",
            "What are their market rates?",
            "How about the sum?"
        ],
        "interaction_query": [
            "SELECT name FROM furniture ORDER BY market_rate DESC LIMIT 5",
            "SELECT name FROM furniture ORDER BY market_rate DESC LIMIT 2",
            "SELECT name, market_rate FROM furniture ORDER BY market_rate DESC LIMIT 2",
            "SELECT sum(market_rate) FROM furniture ORDER BY market_rate DESC LIMIT 2"
        ]
    },
    {
        "db_id": "manufacturer",
        "final_query": "SELECT name ,  Num_of_Component FROM furniture ORDER BY market_rate LIMIT 1",
        "final_utterance": "Find the name and component amount of the least popular furniture.",
        "interaction_utterance": [
            "Show all information for the lowest market-rate furniture item.",
            "What is its id number?",
            "How many components does it have?",
            "Also show its name."
        ],
        "interaction_query": [
            "SELECT * FROM furniture ORDER BY market_rate LIMIT 1",
            "SELECT furniture_id FROM furniture ORDER BY market_rate LIMIT 1",
            "SELECT Num_of_Component FROM furniture ORDER BY market_rate LIMIT 1",
            "SELECT name ,  Num_of_Component FROM furniture ORDER BY market_rate LIMIT 1"
        ]
    },
    {
        "db_id": "manufacturer",
        "final_query": "SELECT t1.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID  =  t2.Furniture_ID WHERE t2.Price_in_Dollar  <  (SELECT max(Price_in_Dollar) FROM furniture_manufacte)",
        "final_utterance": "Find the names of furnitures whose prices are lower than the highest price.",
        "interaction_utterance": [
            "What is the highest dollar price among the furniture?",
            "Show manufacture information for items with a lower price than this.",
            "Show only their furniture_id numbers.",
            "What are the names of these items?"
        ],
        "interaction_query": [
            "SELECT max(Price_in_Dollar) FROM furniture_manufacte",
            "SELECT * FROM furniture_manufacte WHERE Price_in_Dollar < (SELECT max(Price_in_Dollar) FROM furniture_manufacte)",
            "SELECT furniture_id FROM furniture_manufacte WHERE Price_in_Dollar < (SELECT max(Price_in_Dollar) FROM furniture_manufacte)",
            "SELECT t1.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID  =  t2.Furniture_ID WHERE t2.Price_in_Dollar  <  (SELECT max(Price_in_Dollar) FROM furniture_manufacte)"
        ]
    },
    {
        "db_id": "manufacturer",
        "final_query": "SELECT open_year ,  name FROM manufacturer ORDER BY num_of_shops DESC LIMIT 1",
        "final_utterance": "Which manufacturer has the most number of shops? List its name and year of opening.",
        "interaction_utterance": [
            "What is the average number of shops for manufacturers?",
            "How about the minimum?",
            "Which manufacturer has the fewest shops?",
            "Only show the year it opened and the name of the manufacturer."
        ],
        "interaction_query": [
            "SELECT avg(Num_of_Shops) FROM manufacturer",
            "SELECT min(Num_of_Shops) FROM manufacturer",
            "SELECT * FROM manufacturer ORDER BY Num_of_Shops DESC LIMIT 1",
            "SELECT open_year ,  name FROM manufacturer ORDER BY num_of_shops DESC LIMIT 1"
        ]
    },
    {
        "db_id": "manufacturer",
        "final_query": "SELECT name ,  open_year FROM manufacturer WHERE num_of_shops  >  10 OR Num_of_Factories  <  10",
        "final_utterance": "Give me the name and year of opening of the manufacturers that have either less than 10 factories or more than 10 shops.",
        "interaction_utterance": [
            "How many different manufacturers are there?",
            "How many of them have fewer than 10 factories?",
            "Show their names and the years they opened.",
            "Also include those that have more than 10 shops."
        ],
        "interaction_query": [
            "SELECT count(*) FROM manufacturer",
            "SELECT count(*) FROM manufacturer WHERE num_of_shops < 10",
            "SELECT name, open_year FROM manufacturer WHERE num_of_shops < 10",
            "SELECT name, open_year FROM manufacturer WHERE num_of_shops < 10 OR num_of_shops > 10"
        ]
    },
    {
        "db_id": "manufacturer",
        "final_query": "SELECT max(num_of_shops) ,  avg(Num_of_Factories) FROM manufacturer WHERE open_year  <  1990",
        "final_utterance": "what is the average number of factories and maximum number of shops for manufacturers that opened before 1990.",
        "interaction_utterance": [
            "Show information for manufacturers that opened on or after 1990.",
            "How about before 1990?",
            "What is the maximim number of shops among these manufacturers?",
            "Also show the average number of factories for this group."
        ],
        "interaction_query": [
            "SELECT * FROM manufacturer WHERE open_year >= 1990",
            "SELECT * FROM manufacturer WHERE open_year < 1990",
            "SELECT max(num_of_shops) FROM manufacturer WHERE open_year  <  1990",
            "SELECT max(num_of_shops) ,  avg(Num_of_Factories) FROM manufacturer WHERE open_year  <  1990"
        ]
    },
    {
        "db_id": "manufacturer",
        "final_query": "SELECT t1.manufacturer_id ,  t1.num_of_shops FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id  =  t2.manufacturer_id ORDER BY t2.Price_in_Dollar DESC LIMIT 1",
        "final_utterance": "Find the id and number of shops for the company that produces the most expensive furniture.",
        "interaction_utterance": [
            "What is the furniture id number of the most expensive furniture?",
            "How about the manufacturer number?",
            "What is the name of the manufacturer?",
            "Also show how many shops they have."
        ],
        "interaction_query": [
            "SELECT furniture_id FROM furniture_manufacte ORDER BY Price_in_Dollar DESC 1",
            "SELECT manufacturer_id FROM furniture_manufacte ORDER BY Price_in_Dollar DESC 1",
            "SELECT t1.manufacturer_id FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id  =  t2.manufacturer_id ORDER BY t2.Price_in_Dollar DESC LIMIT 1",
            "SELECT t1.manufacturer_id ,  t1.num_of_shops FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id  =  t2.manufacturer_id ORDER BY t2.Price_in_Dollar DESC LIMIT 1"
        ]
    },
    {
        "db_id": "manufacturer",
        "final_query": "SELECT count(*) ,  t1.name FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id  =  t2.manufacturer_id GROUP BY t1.manufacturer_id",
        "final_utterance": "Find the number of funiture types produced by each manufacturer as well as the company names.",
        "interaction_utterance": [
            "How many distinct manufacturers are there?",
            "How many produce furniture?",
            "What are their names?",
            "Also show how many furniture types each manufacturer produces."
        ],
        "interaction_query": [
            "SELECT count(DISTINCT manufacturer_id) FROM manufacturer",
            "SELECT count(DISTINCT t1.manufacturer_id) FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id = t2.manufacturer_id",
            "SELECT DISTINCT t1.name FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id = t2.manufacturer_id",
            "SELECT count(*) ,  t1.name FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id  =  t2.manufacturer_id GROUP BY t1.manufacturer_id"
        ]
    },
    {
        "db_id": "manufacturer",
        "final_query": "SELECT Market_Rate ,  name FROM furniture WHERE Furniture_ID NOT IN (SELECT Furniture_ID FROM furniture_manufacte)",
        "final_utterance": "Find the market shares and names of furnitures which no any company is producing in our records.",
        "interaction_utterance": [
            "How many different furniture items are there?",
            "How many are sold by manufacturers in our records?",
            "Which furniture names are not in our records?",
            "Also show their market rates."
        ],
        "interaction_query": [
            "SELECT count(DISTINCT furniture_id) FROM furniture",
            "SELECT count(DISTINCT furniture_id) FROM furniture WHERE furniture_id IN (SELECT furniture_id FROM furniture_manufacte)",
            "SELECT name FROM furniture WHERE furniture_id NOT IN (SELECT furniture_id FROM furniture_manufacte)",
            "SELECT market_rate, name FROM furniture WHERE furniture_id NOT IN (SELECT furniture_id FROM furniture_manufacte)"
        ]
    },
    {
        "db_id": "school_bus",
        "final_query": "SELECT home_city FROM driver GROUP BY home_city ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Show the home city with the most number of drivers.",
        "interaction_utterance": [
            "How many drivers are there?",
            "How many drivers does each city have?",
            "Which city has the most drivers?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM driver",
            "SELECT home_city, count(*) FROM driver GROUP BY home_city",
            "SELECT home_city FROM driver GROUP BY home_city ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "school_bus",
        "final_query": "SELECT party FROM driver WHERE home_city  =  'Hartford' AND age  >  40",
        "final_utterance": "Show the party with drivers from Hartford and drivers older than 40.",
        "interaction_utterance": [
            "How many different parties are there?",
            "How many drivers are from Hartford?",
            "Among these drivers, how many of them are older than 40?",
            "Show their parites."
        ],
        "interaction_query": [
            "SELECT COUNT(DISTINCT party) FROM driver",
            "SELECT COUNT(*) FROM driver WHERE home_city  =  'Hartford'",
            "SELECT COUNT(*) FROM driver WHERE home_city  =  'Hartford' AND age  >  40",
            "SELECT party FROM driver WHERE home_city  =  'Hartford' AND age  >  40"
        ]
    },
    {
        "db_id": "school_bus",
        "final_query": "SELECT home_city FROM driver WHERE age  >  40 GROUP BY home_city HAVING count(*)  >=  2",
        "final_utterance": "Show home city where at least two drivers older than 40 are from.",
        "interaction_utterance": [
            "How many drivers are older than 30?",
            "How many are older than 40?",
            "Show their home cities.",
            "Among these cities, which one has at least two drivers older than 40?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM driver WHERE age  >  30",
            "SELECT COUNT(*) FROM driver WHERE age  >  40",
            "SELECT home_city FROM driver WHERE age  >  40",
            "SELECT home_city FROM driver WHERE age  >  40 GROUP BY home_city HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "school_bus",
        "final_query": "SELECT home_city FROM driver EXCEPT SELECT home_city FROM driver WHERE age  >  40",
        "final_utterance": "Show all home cities except for those having a driver older than 40.",
        "interaction_utterance": [
            "Show the hometowns of the drivers who are older than 40.",
            "How many different cities are there?",
            "What are the cities that do not have a driver older than 40?"
        ],
        "interaction_query": [
            "SELECT home_city FROM driver WHERE age  >  40",
            "SELECT COUNT(DISTINCT home_city) FROM driver",
            "SELECT home_city FROM driver EXCEPT SELECT home_city FROM driver WHERE age  >  40"
        ]
    },
    {
        "db_id": "school_bus",
        "final_query": "SELECT name FROM driver WHERE driver_id NOT IN (SELECT driver_id FROM school_bus)",
        "final_utterance": "Show the names of the drivers without a school bus.",
        "interaction_utterance": [
            "How many drivers are there that have a school bus?",
            "How about the number of drivers without a school bus?",
            "Show these drivers' names."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM driver WHERE driver_id IN (SELECT driver_id FROM school_bus)",
            "SELECT COUNT(*) FROM driver WHERE driver_id NOT IN (SELECT driver_id FROM school_bus)",
            "SELECT name FROM driver WHERE driver_id NOT IN (SELECT driver_id FROM school_bus)"
        ]
    },
    {
        "db_id": "school_bus",
        "final_query": "SELECT TYPE FROM school GROUP BY TYPE HAVING count(*)  =  2",
        "final_utterance": "Show the types of schools that have two schools.",
        "interaction_utterance": [
            "How many different types of schools are there?",
            "For each type, how many schools are there?",
            "Which types have two schools?"
        ],
        "interaction_query": [
            "SELECT COUNT(DISTINCT TYPE) FROM school",
            "SELECT TYPE, COUNT(*) FROM school GROUP BY TYPE",
            "SELECT TYPE FROM school GROUP BY TYPE HAVING count(*)  =  2"
        ]
    },
    {
        "db_id": "school_bus",
        "final_query": "SELECT T2.school ,  T3.name FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id JOIN driver AS T3 ON T1.driver_id  =  T3.driver_id",
        "final_utterance": "Show the school name and driver name for all school buses.",
        "interaction_utterance": [
            "How many different schools are there?",
            "Which schools have school buses?",
            "Please also show the names of the drivers."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM school",
            "SELECT T2.school FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id",
            "SELECT T2.school ,  T3.name FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id JOIN driver AS T3 ON T1.driver_id  =  T3.driver_id"
        ]
    },
    {
        "db_id": "school_bus",
        "final_query": "SELECT max(years_working) ,  min(years_working) ,  avg(years_working) FROM school_bus",
        "final_utterance": "What is the maximum, minimum and average years spent working on a school bus?",
        "interaction_utterance": [
            "What are the top 3 number of years spent working on a school bus?",
            "What is the maximum years spent working on a school bus?",
            "Please also show the minimum and average years."
        ],
        "interaction_query": [
            "SELECT years_working FROM school_bus ORDER BY years_working DESC LIMIT 3",
            "SELECT max(years_working) FROM school_bus",
            "SELECT max(years_working) ,  min(years_working) ,  avg(years_working) FROM school_bus"
        ]
    },
    {
        "db_id": "school_bus",
        "final_query": "SELECT school ,  TYPE FROM school WHERE school_id NOT IN (SELECT school_id FROM school_bus)",
        "final_utterance": "Show the school name and type for schools without a school bus.",
        "interaction_utterance": [
            "How many schools do not have a school bus?",
            "What are the names of these schools?",
            "Please also show the school types."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM school WHERE school_id NOT IN (SELECT school_id FROM school_bus)",
            "SELECT school FROM school WHERE school_id NOT IN (SELECT school_id FROM school_bus)",
            "SELECT school ,  TYPE FROM school WHERE school_id NOT IN (SELECT school_id FROM school_bus)"
        ]
    },
    {
        "db_id": "school_bus",
        "final_query": "SELECT T2.type ,  count(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id GROUP BY T2.type",
        "final_utterance": "Show the type of school and the number of buses for each type.",
        "interaction_utterance": [
            "How many schools have a school bus?",
            "How many school buses does each school type have?",
            "Please also show the types."
        ],
        "interaction_query": [
            "SELECT count(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id",
            "SELECT count(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id GROUP BY T2.type",
            "SELECT T2.type ,  count(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id GROUP BY T2.type"
        ]
    },
    {
        "db_id": "school_bus",
        "final_query": "SELECT count(*) FROM driver WHERE home_city  =  'Hartford' OR age  <  40",
        "final_utterance": "How many drivers are from Hartford city or younger than 40?",
        "interaction_utterance": [
            "How many drivers are older than 40?",
            "How about the number younger than 40?",
            "Please add the number of drivers that are from Hartford."
        ],
        "interaction_query": [
            "SELECT count(*) FROM driver WHERE age  >  40",
            "SELECT count(*) FROM driver WHERE age  <  40",
            "SELECT count(*) FROM driver WHERE home_city  =  'Hartford' OR age  <  40"
        ]
    },
    {
        "db_id": "school_bus",
        "final_query": "SELECT name FROM driver WHERE home_city  =  'Hartford' AND age  <  40",
        "final_utterance": "List names for drivers from Hartford city and younger than 40.",
        "interaction_utterance": [
            "How many drivers are from Hartford?",
            "Among these drivers, how many of them are younger than 40?",
            "Show their names."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM driver WHERE home_city  =  'Hartford'",
            "SELECT COUNT(*) FROM driver WHERE home_city  =  'Hartford' AND age  <  40",
            "SELECT name FROM driver WHERE home_city  =  'Hartford' AND age  <  40"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT count(*) FROM Ref_calendar",
        "final_utterance": "How many calendar items do we have?",
        "interaction_utterance": [
            "Show information for all calendar items.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM Ref_calendar",
            "SELECT count(*) FROM Ref_calendar"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT calendar_date ,  day_Number FROM Ref_calendar",
        "final_utterance": "Show all calendar dates and day Numbers.",
        "interaction_utterance": [
            "Show all calendar items.",
            "Only show the calendar dates and day numbers for them."
        ],
        "interaction_query": [
            "SELECT * FROM Ref_calendar",
            "SELECT calendar_date ,  day_Number FROM Ref_calendar"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT count(*) FROM Ref_document_types",
        "final_utterance": "Show the number of document types.",
        "interaction_utterance": [
            "Show all document types.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM Ref_document_types",
            "SELECT count(*) FROM Ref_document_types"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT document_type_code ,  document_type_name FROM Ref_document_types",
        "final_utterance": "List all document type codes and document type names.",
        "interaction_utterance": [
            "Show all document type information.",
            "What are their document type codes and names?"
        ],
        "interaction_query": [
            "SELECT * FROM Ref_document_types",
            "SELECT document_type_code ,  document_type_name FROM Ref_document_types"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT document_type_name ,  document_type_description FROM Ref_document_types WHERE document_type_code  =  \"RV\"",
        "final_utterance": "What is the name and description for document type code RV?",
        "interaction_utterance": [
            "Show the name and description for all document types.",
            "Filter the results for only those with code RV."
        ],
        "interaction_query": [
            "SELECT document_type_name ,  document_type_description FROM Ref_document_types",
            "SELECT document_type_name ,  document_type_description FROM Ref_document_types WHERE document_type_code  =  \"RV\""
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT document_type_code FROM Ref_document_types WHERE document_type_name  =  \"Paper\"",
        "final_utterance": "What is the document type code for document type \"Paper\"?",
        "interaction_utterance": [
            "Show all the document type codes.",
            "What is the code for the document type named \"Paper\"?"
        ],
        "interaction_query": [
            "SELECT document_type_code FROM Ref_document_types",
            "SELECT document_type_code FROM Ref_document_types WHERE document_type_name  =  \"Paper\""
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT count(*) FROM All_documents WHERE document_type_code  =  \"CV\" OR document_type_code  =  \"BK\"",
        "final_utterance": "Show the number of documents with document type code CV or BK.",
        "interaction_utterance": [
            "How many documents are there in total?",
            "How about the number for those with document type code CV?",
            "How about CV or BK?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM All_documents",
            "SELECT count(*) FROM All_documents WHERE document_type_code  =  \"CV\"",
            "SELECT count(*) FROM All_documents WHERE document_type_code  =  \"CV\" OR document_type_code  =  \"BK\""
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT date_stored FROM All_documents WHERE Document_name  =  \"Marry CV\"",
        "final_utterance": "What is the date when the document \"Marry CV\" was stored?",
        "interaction_utterance": [
            "Show the info for all documents.",
            "How about those with name \"Marry CV\"?",
            "Show its date stored."
        ],
        "interaction_query": [
            "SELECT * FROM All_documents",
            "SELECT * FROM All_documents WHERE Document_name  =  \"Marry CV\"",
            "SELECT date_stored FROM All_documents WHERE Document_name  =  \"Marry CV\""
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT T2.day_Number ,  T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored  =  T2.calendar_date",
        "final_utterance": "What is the day Number and date of all the documents?",
        "interaction_utterance": [
            "Show date stored for all the documents.",
            "Also show their day numbers."
        ],
        "interaction_query": [
            "SELECT Date_Stored FROM All_documents",
            "SELECT T2.day_Number ,  T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored  =  T2.calendar_date"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code  =  T2.document_type_code WHERE T1.document_name  =  \"How to read a book\"",
        "final_utterance": "What is the document type name for the document with name \"How to read a book\"?",
        "interaction_utterance": [
            "Show all document names.",
            "For each of them, show the document type name.",
            "What is the type name for the document named \"How to read a book\"?"
        ],
        "interaction_query": [
            "select document_name FROM All_documents",
            "SELECT T2.document_type_name, T1.document_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code  =  T2.document_type_code",
            "SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code  =  T2.document_type_code WHERE T1.document_name  =  \"How to read a book\""
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT count(*) FROM Ref_locations",
        "final_utterance": "Show the number of locations.",
        "interaction_utterance": [
            "Show all locations.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM Ref_locations",
            "SELECT count(*) FROM Ref_locations"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT location_code ,  location_name FROM Ref_locations",
        "final_utterance": "List all location codes and location names.",
        "interaction_utterance": [
            "List the names of all locations.",
            "Also show their location codes."
        ],
        "interaction_query": [
            "SELECT location_name FROM Ref_locations",
            "SELECT location_code ,  location_name FROM Ref_locations"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT location_name ,  location_description FROM Ref_locations WHERE location_code  =  \"x\"",
        "final_utterance": "What are the name and description for location code x?",
        "interaction_utterance": [
            "Show the names of all locations.",
            "What is name for the one with code x?",
            "Also show its description."
        ],
        "interaction_query": [
            "SELECT location_name FROM Ref_locations",
            "SELECT location_name FROM Ref_locations WHERE location_code  =  \"x\"",
            "SELECT location_name ,  location_description FROM Ref_locations WHERE location_code  =  \"x\""
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT location_code FROM Ref_locations WHERE location_name  =  \"Canada\"",
        "final_utterance": "What is the location code for the country \"Canada\"?",
        "interaction_utterance": [
            "Show the code for all locations.",
            "How about the one named \"Canada\"?"
        ],
        "interaction_query": [
            "SELECT location_code FROM Ref_locations",
            "SELECT location_code FROM Ref_locations"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT count(*) FROM ROLES",
        "final_utterance": "How many roles are there?",
        "interaction_utterance": [
            "Show all roles.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM ROLES",
            "SELECT count(*) FROM ROLES"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT role_code ,  role_name ,  role_description FROM ROLES",
        "final_utterance": "List all role codes, role names, and role descriptions.",
        "interaction_utterance": [
            "Show the names of all roles.",
            "Also show their codes and descriptions."
        ],
        "interaction_query": [
            "SELECT  role_name  FROM ROLES",
            "SELECT role_code ,  role_name ,  role_description FROM ROLES"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT role_name ,  role_description FROM ROLES WHERE role_code  =  \"MG\"",
        "final_utterance": "What are the name and description for role code \"MG\"?",
        "interaction_utterance": [
            "Show the name for all roles.",
            "What about the role with code \"MG\"?",
            "Also show its description."
        ],
        "interaction_query": [
            "SELECT role_name  FROM ROLES",
            "SELECT role_name  FROM ROLES WHERE role_code  =  \"MG\"",
            "SELECT role_name ,  role_description FROM ROLES WHERE role_code  =  \"MG\""
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT role_description FROM ROLES WHERE role_name  =  \"Proof Reader\"",
        "final_utterance": "Show the description for role name \"Proof Reader\".",
        "interaction_utterance": [
            "Show the descriptions of all roles.",
            "What is the description for the one named \"Proof Reader\"?"
        ],
        "interaction_query": [
            "SELECT role_description FROM ROLES",
            "SELECT role_description FROM ROLES WHERE role_name  =  \"Proof Reader\""
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT count(*) FROM Employees",
        "final_utterance": "How many employees do we have?",
        "interaction_utterance": [
            "Show information for all employees.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM Employees",
            "SELECT count(*) FROM Employees"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT employee_name ,  role_code ,  date_of_birth FROM Employees WHERE employee_Name  =  'Armani'",
        "final_utterance": "Show the name, role code, and date of birth for the employee with name 'Armani'.",
        "interaction_utterance": [
            "Show the names of all employee.",
            "Show the name, code, and date of birth for the employee named 'Armani'."
        ],
        "interaction_query": [
            "SELECT employee_name FROM Employees",
            "SELECT employee_name ,  role_code ,  date_of_birth FROM Employees WHERE employee_Name  =  'Armani'"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT employee_ID FROM Employees WHERE employee_name  =  \"Ebba\"",
        "final_utterance": "What is the id for the employee called Ebba?",
        "interaction_utterance": [
            "Show the id and name for all employees.",
            "What is the id for the employee called Ebba?"
        ],
        "interaction_query": [
            "SELECT employee_ID, employee_name FROM Employees",
            "SELECT employee_ID FROM Employees WHERE employee_name  =  \"Ebba\""
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT employee_name FROM Employees WHERE role_code  =  \"HR\"",
        "final_utterance": "Show the names of all the employees with role \"HR\".",
        "interaction_utterance": [
            "Show the names and role code of all the employees.",
            "Show names for those with \"HR\" as their role."
        ],
        "interaction_query": [
            "SELECT employee_name , role_code FROM Employees",
            "SELECT employee_name FROM Employees WHERE role_code  =  \"HR\""
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT role_code ,  count(*) FROM Employees GROUP BY role_code",
        "final_utterance": "Show all role codes and the number of employees in each role.",
        "interaction_utterance": [
            "Show the role code for all employees.",
            "For each of them, also show the number of employees in each role."
        ],
        "interaction_query": [
            "SELECT role_code FROM Employees",
            "SELECT role_code ,  count(*) FROM Employees GROUP BY role_code"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the role code with the largest number of employees?",
        "interaction_utterance": [
            "Show the role code for all employees.",
            "Count the number of employees with each role code.",
            "Sort the codes by the count in descending order.",
            "Which of them has the largest number of employees?"
        ],
        "interaction_query": [
            "SELECT role_code FROM Employees",
            "SELECT role_code, count(*) FROM Employees GROUP BY role_code",
            "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) DESC",
            "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT role_code FROM Employees GROUP BY role_code HAVING count(*)  >=  3",
        "final_utterance": "Show all role codes with at least 3 employees.",
        "interaction_utterance": [
            "Show role codes for all employees.",
            "Count the number of employees for each of them.",
            "Which of them have at least 3?"
        ],
        "interaction_query": [
            "SELECT role_code FROM Employees",
            "SELECT role_code, count(*) FROM Employees GROUP BY role_code",
            "SELECT role_code FROM Employees GROUP BY role_code HAVING count(*)  >=  3"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC LIMIT 1",
        "final_utterance": "Show the role code with the least employees.",
        "interaction_utterance": [
            "Show the role code for all employees.",
            "For each of them, count the number of employees.",
            "Sort the codes by this count.",
            "Which code has the least?"
        ],
        "interaction_query": [
            "SELECT role_code FROM Employees",
            "SELECT role_code, count(*) FROM Employees GROUP BY role_code",
            "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC",
            "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC LIMIT 1"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT T2.role_name ,  T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code WHERE T1.employee_name  =  \"Ebba\"",
        "final_utterance": "What is the role name and role description for employee called Ebba?",
        "interaction_utterance": [
            "Show the names of all employees.",
            "Also show their role name and role description.",
            "What is the role name and role description for the employee named Ebba?"
        ],
        "interaction_query": [
            "SELECT employee_name FROM Employees",
            "SELECT T1.employee_name , T2.role_name ,  T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code",
            "SELECT T2.role_name ,  T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code WHERE T1.employee_name  =  \"Ebba\""
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code WHERE T2.role_name  =  \"Editor\"",
        "final_utterance": "Show the names of employees with role name Editor.",
        "interaction_utterance": [
            "Show the name for all employees.",
            "Also show their role names.",
            "Who has \"Editor\" as their role?"
        ],
        "interaction_query": [
            "SELECT employee_name FROM Employees",
            "SELECT T1.employee_name, T2.role_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code",
            "SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code WHERE T2.role_name  =  \"Editor\""
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code WHERE T2.role_name  =  \"Human Resource\" OR T2.role_name  =  \"Manager\"",
        "final_utterance": "Show the employee ids for all employees with role name \"Human Resource\" or \"Manager\".",
        "interaction_utterance": [
            "Show the ids for all employees.",
            "Also show their role names.",
            "Which employees have \"Human Resources\" as their role?",
            "Also show the employee ids with the role \"Manager\"."
        ],
        "interaction_query": [
            "SELECT employee_id FROM Employees",
            "SELECT T1.employee_id , T2.role_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code",
            "SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code WHERE T2.role_name  =  \"Human Resource\"",
            "SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code WHERE T2.role_name  =  \"Human Resource\" OR T2.role_name  =  \"Manager\""
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT DISTINCT location_code FROM Document_locations",
        "final_utterance": "What are the different location codes for documents?",
        "interaction_utterance": [
            "Show locations for all documents.",
            "Show all distinct locations among them."
        ],
        "interaction_query": [
            "SELECT location_code FROM Document_locations",
            "SELECT DISTINCT location_code FROM Document_locations"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id  =  T2.document_id JOIN Ref_locations AS T3 ON T2.location_code  =  T3.location_code WHERE T1.document_name  =  \"Robin CV\"",
        "final_utterance": "Show the location name for document \"Robin CV\".",
        "interaction_utterance": [
            "Show all document names.",
            "Also show their location name.",
            "What is the location for the document titled \"Robin CV\"?"
        ],
        "interaction_query": [
            "SELECT document_name FROM All_documents",
            "SELECT T1.document_name, T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id  =  T2.document_id JOIN Ref_locations AS T3 ON T2.location_code  =  T3.location_code",
            "SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id  =  T2.document_id JOIN Ref_locations AS T3 ON T2.location_code  =  T3.location_code WHERE T1.document_name  =  \"Robin CV\""
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT location_code ,  date_in_location_from ,  date_in_locaton_to FROM Document_locations",
        "final_utterance": "Show the location code, the starting date and ending date in that location for all the documents.",
        "interaction_utterance": [
            "Show the location code for all the document locations.",
            "Also show their their starting and ending dates."
        ],
        "interaction_query": [
            "SELECT location_code FROM Document_locations",
            "SELECT location_code ,  date_in_location_from ,  date_in_locaton_to FROM Document_locations"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT T1.date_in_location_from ,  T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id  =  T2.document_id WHERE T2.document_name  =  \"Robin CV\"",
        "final_utterance": "What is \"the date in location from\" and \"the date in location to\" for the document with name \"Robin CV\"?",
        "interaction_utterance": [
            "Show the document names.",
            "Also show the to and from dates for them.",
            "What are these values for the document named \"Robin CV\"?"
        ],
        "interaction_query": [
            "SELECT document_name FROM All_documents",
            "SELECT T2.document_name, T1.date_in_location_from ,  T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id  =  T2.document_id",
            "SELECT T1.date_in_location_from ,  T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id  =  T2.document_id WHERE T2.document_name  =  \"Robin CV\""
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT location_code ,  count(*) FROM Document_locations GROUP BY location_code",
        "final_utterance": "Show the location codes and the number of documents in each location.",
        "interaction_utterance": [
            "Show the codes for all document locations.",
            "For each code, show the corresponding count of documents."
        ],
        "interaction_query": [
            "SELECT location_code FROM Document_locations",
            "SELECT location_code ,  count(*) FROM Document_locations GROUP BY location_code"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the location code with the most documents?",
        "interaction_utterance": [
            "Show the location codes.",
            "For each of them, what is the count of associated documents?",
            "Sort codes in descending order by these counts.",
            "Which has the most?"
        ],
        "interaction_query": [
            "SELECT location_code FROM Document_locations",
            "SELECT location_code , count(*) FROM Document_locations GROUP BY location_code",
            "SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count(*) DESC",
            "SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT location_code FROM Document_locations GROUP BY location_code HAVING count(*)  >=  3",
        "final_utterance": "Show the location codes with at least 3 documents.",
        "interaction_utterance": [
            "Show all location codes.",
            "For each of them, count the number of corresponding documents.",
            "Which of them have at least 3?"
        ],
        "interaction_query": [
            "SELECT location_code FROM Document_locations",
            "SELECT location_code, count(*) FROM Document_locations GROUP BY location_code",
            "SELECT location_code FROM Document_locations GROUP BY location_code HAVING count(*)  >=  3"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT T2.location_name ,  T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code  =  T2.location_code GROUP BY T1.location_code ORDER BY count(*) ASC LIMIT 1",
        "final_utterance": "Show the location name and code with the least documents.",
        "interaction_utterance": [
            "Show the location codes for all documents.",
            "Also show their locations.",
            "How many documents come from each location?",
            "Which location has the fewest?"
        ],
        "interaction_query": [
            "SELECT location_code FROM Document_locations",
            "SELECT T2.location_name ,  T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code  =  T2.location_code",
            "SELECT T2.location_name ,  T1.location_code, count(*) FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code  =  T2.location_code GROUP BY T1.location_code",
            "SELECT T2.location_name ,  T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code  =  T2.location_code GROUP BY T1.location_code ORDER BY count(*) ASC LIMIT 1"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT T2.employee_name ,  T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id",
        "final_utterance": "What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents?",
        "interaction_utterance": [
            "Show all employee names.",
            "What are the names of the employees who authorized document destruction.",
            "Also show the names for those who destroyed the corresponding documents."
        ],
        "interaction_query": [
            "SELECT employee_name from Employees",
            "SELECT T2.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id",
            "SELECT T2.employee_name ,  T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT Destruction_Authorised_by_Employee_ID ,  count(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID",
        "final_utterance": "Show the id of each employee and the number of document destruction authorised by that employee.",
        "interaction_utterance": [
            "Show the id of each employee who has authorized document destruction.",
            "For each of them, count the number of destroyed documents they authorized."
        ],
        "interaction_query": [
            "SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed",
            "SELECT Destruction_Authorised_by_Employee_ID ,  count(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT Destroyed_by_Employee_ID ,  count(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID",
        "final_utterance": "Show the employee ids and the number of documents destroyed by each employee.",
        "interaction_utterance": [
            "Show the employee ids having destroyed some documents.",
            "For each employee, how many documents did they destroy?"
        ],
        "interaction_query": [
            "SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed",
            "SELECT Destroyed_by_Employee_ID ,  count(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed",
        "final_utterance": "Show the ids of the employees who don't authorize destruction for any document.",
        "interaction_utterance": [
            "Show the ids of the employees having authorized any document destruction.",
            "How about those who didn't?"
        ],
        "interaction_query": [
            "SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed",
            "SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT DISTINCT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed",
        "final_utterance": "Show the ids of all employees who have authorized destruction.",
        "interaction_utterance": [
            "Show the id of all authorizing employees for documents to be destroyed.",
            "Show only distinct ids."
        ],
        "interaction_query": [
            "SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed",
            "SELECT DISTINCT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT DISTINCT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed",
        "final_utterance": "Show the ids of all employees who have destroyed a document.",
        "interaction_utterance": [
            "Show ids for employees who destroyed a document.",
            "What are the distinct results?"
        ],
        "interaction_query": [
            "SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed",
            "SELECT DISTINCT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed"
        ]
    },
    {
        "db_id": "cre_Doc_Tracking_DB",
        "final_query": "SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed",
        "final_utterance": "Show the ids of all employees who don't destroy any document.",
        "interaction_utterance": [
            "Show all employee ids.",
            "Show all employee ids who have destroyed a document.",
            "How about those who haven't?"
        ],
        "interaction_query": [
            "SELECT employee_id FROM Employees",
            "SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed",
            "SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed"
        ]
    },
    {
        "db_id": "book_2",
        "final_query": "SELECT Publisher FROM publication ORDER BY Price DESC LIMIT 1",
        "final_utterance": "List the publisher of the publication with the highest price.",
        "interaction_utterance": [
            "I want to know the information of all the publications.",
            "Just tell me publishers from the tables above.",
            "Thanks. Could you tell me who is the richest?"
        ],
        "interaction_query": [
            "SELECT * FROM publication",
            "SELECT Publisher FROM publication",
            "SELECT Publisher FROM publication ORDER BY Price DESC LIMIT 1"
        ]
    },
    {
        "db_id": "book_2",
        "final_query": "SELECT Publication_Date FROM publication ORDER BY Price ASC LIMIT 3",
        "final_utterance": "List the publication dates of publications with 3 lowest prices.",
        "interaction_utterance": [
            "What's the price of the publication published by Wiley?",
            "How about Pearson's?",
            "Okay. I want to know the publication dates of publications with 3 lowest prices now."
        ],
        "interaction_query": [
            "SELECT Price FROM publication WHERE Publisher = \"Wiley\"",
            "SELECT Price FROM publication WHERE Publisher = \"Pearson\"",
            "SELECT Publication_Date FROM publication ORDER BY Price ASC LIMIT 3"
        ]
    },
    {
        "db_id": "book_2",
        "final_query": "SELECT T1.Writer FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID  =  T2.Book_ID WHERE T2.Price  >  4000000",
        "final_utterance": "Show writers who have published a book with price more than 4000000.",
        "interaction_utterance": [
            "Could you tell me the book with published price more than 4000000?",
            "Who were their writers?"
        ],
        "interaction_query": [
            "SELECT T1.Title FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID  =  T2.Book_ID WHERE T2.Price  >  4000000",
            "SELECT T1.Writer FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID  =  T2.Book_ID WHERE T2.Price  >  4000000"
        ]
    },
    {
        "db_id": "book_2",
        "final_query": "SELECT T1.Title FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID  =  T2.Book_ID ORDER BY T2.Price DESC",
        "final_utterance": "Show the titles of books in descending order of publication price.",
        "interaction_utterance": [
            "I want to know the publication price of the book with title \"Cyberella\"?",
            "Could you show me all the books' publication price?",
            "Okay. I want all the books' titles in descending order of publication price."
        ],
        "interaction_query": [
            "SELECT T2.Price FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID  =  T2.Book_ID WHERE T1.Title = \"Cyberella\"",
            "SELECT T2.Price FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID  =  T2.Book_ID",
            "SELECT T1.Title FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID  =  T2.Book_ID ORDER BY T2.Price DESC"
        ]
    },
    {
        "db_id": "book_2",
        "final_query": "SELECT Publisher FROM publication GROUP BY Publisher HAVING COUNT(*)  >  1",
        "final_utterance": "Show publishers that have more than one publication.",
        "interaction_utterance": [
            "Tell me the publisher of the book Bloody Mary : Lady Liberty.",
            "How many publications does this publisher have?",
            "Tell me the publishers that have more than one publication."
        ],
        "interaction_query": [
            "SELECT T2.Publisher FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID  =  T2.Book_ID WHERE T1.Title = \"Bloody Mary : Lady Liberty\"",
            "SELECT COUNT(*) FROM publication WHERE Publisher = (SELECT T2.Publisher FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID  =  T2.Book_ID WHERE T1.Title = \"Bloody Mary : Lady Liberty\")",
            "SELECT Publisher FROM publication GROUP BY Publisher HAVING COUNT(*)  >  1"
        ]
    },
    {
        "db_id": "book_2",
        "final_query": "SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Please show the most common publication date.",
        "interaction_utterance": [
            "Tell me the publication date of the book\ufeffDead Corps.",
            "How about the book Cyberella?",
            "Okay, please show me the most common publication date."
        ],
        "interaction_query": [
            "SELECT T2.Publication_Date FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID  =  T2.Book_ID WHERE T1.Title = \"Dead Corps\"",
            "SELECT T2.Publication_Date FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID  =  T2.Book_ID WHERE T1.Title = \"Cyberella\"",
            "SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "book_2",
        "final_query": "SELECT Writer FROM book GROUP BY Writer HAVING COUNT(*)  >  1",
        "final_utterance": "List the writers who have written more than one book.",
        "interaction_utterance": [
            "Tell me the writer of\ufeff Gemini Blood.",
            "Tell me all the books he wrote.",
            "Okay, show me the writers who have written more than one book."
        ],
        "interaction_query": [
            "SELECT Writer FROM book WHERE Title = \"Gemini Blood\"",
            "SELECT Title FROM book WHERE Writer = (SELECT Writer FROM book WHERE Title = \"Gemini Blood\")",
            "SELECT Writer FROM book GROUP BY Writer HAVING COUNT(*)  >  1"
        ]
    },
    {
        "db_id": "book_2",
        "final_query": "SELECT Title FROM book WHERE Book_ID NOT IN (SELECT Book_ID FROM publication)",
        "final_utterance": "List the titles of books that are not published.",
        "interaction_utterance": [
            "Tell me the publisher of the book Bloody Mary : Lady Liberty.",
            "How about the publisher of the book with title Gemini Blood?",
            "Tell me the books that are not published."
        ],
        "interaction_query": [
            "SELECT T2.Publisher FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID  =  T2.Book_ID WHERE T1.Title = \"Bloody Mary : Lady Liberty\"",
            "SELECT T2.Publisher FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID  =  T2.Book_ID WHERE T1.Title = \"Gemini Blood\"",
            "SELECT Title FROM book WHERE Book_ID NOT IN (SELECT Book_ID FROM publication)"
        ]
    },
    {
        "db_id": "book_2",
        "final_query": "SELECT Publisher FROM publication WHERE Price  >  10000000 INTERSECT SELECT Publisher FROM publication WHERE Price  <  5000000",
        "final_utterance": "Show the publishers that have publications with price higher than 10000000 and publications with price lower than 5000000.",
        "interaction_utterance": [
            "Tell me the publishers that have publications with price higher than 10000000.",
            "Tell me the publishers that have publications with price lower than 5000000.",
            "Okay. Show me the people in both lists."
        ],
        "interaction_query": [
            "SELECT Publisher FROM publication WHERE Price  >  10000000",
            "SELECT Publisher FROM publication WHERE Price  <  5000000",
            "SELECT Publisher FROM publication WHERE Price  >  10000000 INTERSECT SELECT Publisher FROM publication WHERE Price  <  5000000"
        ]
    },
    {
        "db_id": "performance_attendance",
        "final_query": "SELECT count(*) FROM performance",
        "final_utterance": "How many performances are there?",
        "interaction_utterance": [
            "What are the dates of the performances?",
            "How about the locations?",
            "How many performances are there?"
        ],
        "interaction_query": [
            "SELECT Date FROM performance",
            "SELECT Location FROM performance",
            "SELECT count(*) FROM performance"
        ]
    },
    {
        "db_id": "performance_attendance",
        "final_query": "SELECT HOST FROM performance ORDER BY Attendance ASC",
        "final_utterance": "List the hosts of performances in ascending order of attendance.",
        "interaction_utterance": [
            "Who are the members of the performances?",
            "How about the hosts?",
            "Order the result by ascending order of attendance."
        ],
        "interaction_query": [
            "SELECT Name from member",
            "SELECT Host FROM performance",
            "SELECT HOST FROM performance ORDER BY Attendance ASC"
        ]
    },
    {
        "db_id": "performance_attendance",
        "final_query": "SELECT Date ,  LOCATION FROM performance",
        "final_utterance": "What are the dates and locations of performances?",
        "interaction_utterance": [
            "How many people attended the performances?",
            "On what dates are they held?",
            "Add the locations to the result."
        ],
        "interaction_query": [
            "SELECT Attendance FROM performance",
            "SELECT Date FROM performance",
            "SELECT Date, Location FROM performance"
        ]
    },
    {
        "db_id": "performance_attendance",
        "final_query": "SELECT Attendance FROM performance WHERE LOCATION  =  \"TD Garden\" OR LOCATION  =  \"Bell Centre\"",
        "final_utterance": "Show the attendances of the performances at location \"TD Garden\" or \"Bell Centre\"",
        "interaction_utterance": [
            "Show me the dates of the performances.",
            "How about the attendances?",
            "Among the results, which are performed at \"TD Garden\" or \"Bell Centre\"?"
        ],
        "interaction_query": [
            "SELECT Date FROM performance",
            "SELECT Attendance FROM performance",
            "SELECT Attendance FROM performance WHERE LOCATION  =  \"TD Garden\" OR LOCATION  =  \"Bell Centre\""
        ]
    },
    {
        "db_id": "performance_attendance",
        "final_query": "SELECT avg(Attendance) FROM performance",
        "final_utterance": "What is the average number of attendees for performances?",
        "interaction_utterance": [
            "What is the maximum number of attendees for performances?",
            "How about the total sum?",
            "What is the average number of attendees for performances?"
        ],
        "interaction_query": [
            "SELECT max(Attendance) FROM performance",
            "SELECT sum(Attendance) FROM performance",
            "SELECT avg(Attendance) FROM performance"
        ]
    },
    {
        "db_id": "performance_attendance",
        "final_query": "SELECT Date FROM performance ORDER BY Attendance DESC LIMIT 1",
        "final_utterance": "What is the date of the performance with the highest number of attendees?",
        "interaction_utterance": [
            "Where are the performances?",
            "On what date are they held?",
            "Among the result, show me the one with the lowest number of attendees.",
            "What about highest number of attendees?"
        ],
        "interaction_query": [
            "SELECT Location FROM performance",
            "SELECT Date FROM performance",
            "SELECT Date FROM performance ORDER BY Attendance ASC LIMIT 1",
            "SELECT Date FROM performance ORDER BY Attendance DESC LIMIT 1"
        ]
    },
    {
        "db_id": "performance_attendance",
        "final_query": "SELECT LOCATION ,  COUNT(*) FROM performance GROUP BY LOCATION",
        "final_utterance": "Show different locations and the number of performances at each location.",
        "interaction_utterance": [
            "How many attendees are there for the performances?",
            "What are the distinct locations of each performance?",
            "How many performances are there at each location?"
        ],
        "interaction_query": [
            "SELECT Attendance FROM performance",
            "SELECT LOCATION FROM performance GROUP BY LOCATION",
            "SELECT LOCATION ,  COUNT(*) FROM performance GROUP BY LOCATION"
        ]
    },
    {
        "db_id": "performance_attendance",
        "final_query": "SELECT LOCATION FROM performance GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the most common location of performances.",
        "interaction_utterance": [
            "Show different locations and the number of performances at each location.",
            "Which is the least common location?",
            "How about the most common one?"
        ],
        "interaction_query": [
            "SELECT LOCATION ,  COUNT(*) FROM performance GROUP BY LOCATION",
            "SELECT LOCATION FROM performance GROUP BY LOCATION ORDER BY COUNT(*) ASC LIMIT 1",
            "SELECT LOCATION FROM performance GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "performance_attendance",
        "final_query": "SELECT LOCATION FROM performance GROUP BY LOCATION HAVING COUNT(*)  >=  2",
        "final_utterance": "Show the locations that have at least two performances.",
        "interaction_utterance": [
            "What are the locations of the performances?",
            "Show me the number of performances at each location.",
            "Which locations have at least two performances?"
        ],
        "interaction_query": [
            "SELECT LOCATION FROM performance",
            "SELECT COUNT(*) FROM performance GROUP BY LOCATION",
            "SELECT LOCATION FROM performance GROUP BY LOCATION HAVING COUNT(*)  >=  2"
        ]
    },
    {
        "db_id": "performance_attendance",
        "final_query": "SELECT LOCATION FROM performance WHERE Attendance  >  2000 INTERSECT SELECT LOCATION FROM performance WHERE Attendance  <  1000",
        "final_utterance": "Show the locations that have both performances with more than 2000 attendees and performances with less than 1000 attendees.",
        "interaction_utterance": [
            "What are the locations of performances?",
            "How about locations of performances with less than 1000 attendees?",
            "What about those with more than 2000 attendees?",
            "Show the locations that have both performances with more than 2000 attendees and performances with less than 1000 attendees."
        ],
        "interaction_query": [
            "SELECT LOCATION FROM performance",
            "SELECT LOCATION FROM performance WHERE Attendance  <  1000",
            "SELECT LOCATION FROM performance WHERE Attendance  >  2000",
            "SELECT LOCATION FROM performance WHERE Attendance  >  2000 INTERSECT SELECT LOCATION FROM performance WHERE Attendance  <  1000"
        ]
    },
    {
        "db_id": "performance_attendance",
        "final_query": "SELECT T2.Name ,  T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID  =  T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID  =  T3.Performance_ID",
        "final_utterance": "Show the names of members and the location of the performances they attended.",
        "interaction_utterance": [
            "What is the role of each member?",
            "How about their names?",
            "Show me in addition the location of the performances they attended."
        ],
        "interaction_query": [
            "SELECT Role FROM member",
            "SELECT Name FROM member",
            "SELECT T2.Name ,  T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID  =  T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID  =  T3.Performance_ID"
        ]
    },
    {
        "db_id": "performance_attendance",
        "final_query": "SELECT T2.Name ,  T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID  =  T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID  =  T3.Performance_ID ORDER BY T2.Name ASC",
        "final_utterance": "Show the names of members and the location of performances they attended in ascending alphabetical order of their names.",
        "interaction_utterance": [
            "Show me the names of the members.",
            "Sort the result in ascending alphabetical order.",
            "Also provide the locations of the performances they attended?"
        ],
        "interaction_query": [
            "SELECT Name FROM member",
            "SELECT Name FROM member ORDER BY Name ASC",
            "SELECT T2.Name ,  T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID  =  T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID  =  T3.Performance_ID ORDER BY T2.Name ASC"
        ]
    },
    {
        "db_id": "performance_attendance",
        "final_query": "SELECT T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID  =  T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID  =  T3.Performance_ID WHERE T2.Role  =  \"Violin\"",
        "final_utterance": "Show the dates of performances with attending members whose roles are \"Violin\".",
        "interaction_utterance": [
            "Who are the attending members whose roles are \"Viola\"?",
            "How about Violin?",
            "Show me the dates of performances in which members in the result attended."
        ],
        "interaction_query": [
            "SELECT Name from member WHERE Role  =  \"Viola\"",
            "SELECT Name from member WHERE Role  =  \"Violin\"",
            "SELECT T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID  =  T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID  =  T3.Performance_ID WHERE T2.Role  =  \"Violin\""
        ]
    },
    {
        "db_id": "performance_attendance",
        "final_query": "SELECT T2.Name ,  T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID  =  T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID  =  T3.Performance_ID ORDER BY T3.Attendance DESC",
        "final_utterance": "Show the names of members and the dates of performances they attended in descending order of attendance of the performances.",
        "interaction_utterance": [
            "Show me all about the members.",
            "What are the dates of performances that each of them attended? Show name and date.",
            "Sort the result in descending order of attendance of the performances."
        ],
        "interaction_query": [
            "SELECT * FROM member",
            "SELECT T2.Name , T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID  =  T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID  =  T3.Performance_ID",
            "SELECT T2.Name ,  T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID  =  T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID  =  T3.Performance_ID ORDER BY T3.Attendance DESC"
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id WHERE Firstname  =  \"Solveig\"",
        "final_utterance": "Find all the stage positions of the musicians with first name \"Solveig\"",
        "interaction_utterance": [
            "Show me all musicians with first name \"Solveig\".",
            "Show me their stage positions."
        ],
        "interaction_query": [
            "SELECT * FROM Band WHERE Firstname = \"Solveig\"",
            "SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id WHERE Firstname  =  \"Solveig\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T2.Lastname  =  \"Heilo\"",
        "final_utterance": "Find all the songs performed by artist with last name \"Heilo\"",
        "interaction_utterance": [
            "Show me all artists with last name \"Heilo\"",
            "Find all the songs they have performed."
        ],
        "interaction_query": [
            "SELECT * FROM Band WHERE Lastname = \"Heilo\"",
            "SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T2.Lastname  =  \"Heilo\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT count(*) FROM performance AS T1 JOIN band AS T2 ON T1.bandmate  =  T2.id JOIN songs AS T3 ON T3.songId  =  T1.songId WHERE T3.Title  =  \"Flash\"",
        "final_utterance": "How many musicians performed in the song \"Flash\"?",
        "interaction_utterance": [
            "Show me all the musicians who performed in the song \"Flash\".",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM performance AS T1 JOIN band as T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.Lastname = \"Flash\"",
            "SELECT count(*) FROM performance AS T1 JOIN band AS T2 ON T1.bandmate  =  T2.id JOIN songs AS T3 ON T3.songId  =  T1.songId WHERE T3.Title  =  \"Flash\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T2.Firstname  =  \"Marianne\"",
        "final_utterance": "Find all the songs produced by artists with first name \"Marianne\".",
        "interaction_utterance": [
            "Show me all artists with first name \"Marianne\"",
            "How many songs have they produced in total?",
            "Show me the names of those songs."
        ],
        "interaction_query": [
            "SELECT * FROM Band WHERE Firstname = \"Marianne\"",
            "SELECT count(*) FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T2.Firstname  =  \"Marianne\"",
            "SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T2.Firstname  =  \"Marianne\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT T2.firstname ,  T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T3.Title  =  \"Badlands\"",
        "final_utterance": "Who performed the song named \"Badlands\"? Show the first name and the last name.",
        "interaction_utterance": [
            "Show me all songs containing the word \"Badlands\".",
            "How about a song exactly named \"Badlands\"?",
            "Who performed it? Show me the first and last names."
        ],
        "interaction_query": [
            "SELECT * FROM Songs WHERE Title LIKE \"%Badlands%\"",
            "SELECT * FROM Songs WHERE Title = \"Badlands\"",
            "SELECT T2.firstname ,  T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T3.Title  =  \"Badlands\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT T2.firstname ,  T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T3.Title  =  \"Badlands\" AND T1.StagePosition  =  \"back\"",
        "final_utterance": "Who is performing in the back stage position for the song \"Badlands\"? Show the first name and the last name.",
        "interaction_utterance": [
            "Show me all songs containing the word \"Badlands\".",
            "How about a song exactly named \"Badlands\"?",
            "Who performed it in the back stage position? Show me the first and last names."
        ],
        "interaction_query": [
            "SELECT * FROM Songs WHERE Title LIKE \"%Badlands%\"",
            "SELECT * FROM Songs WHERE Title = \"Badlands\"",
            "SELECT T2.firstname ,  T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T3.Title  =  \"Badlands\" AND T1.StagePosition  =  \"back\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT label FROM albums GROUP BY label ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the label that has the most albums?",
        "interaction_utterance": [
            "Show me all the labels of each album.",
            "Among those, which one has the most albums?"
        ],
        "interaction_query": [
            "SELECT label FROM albums",
            "SELECT label FROM albums GROUP BY label ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the last name of the musician that have produced the most number of songs?",
        "interaction_utterance": [
            "What is the first name of the musician that have produced the least number of songs?",
            "How about the musician who have produced the most number of songs?"
        ],
        "interaction_query": [
            "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId GROUP BY lastname ORDER BY count(*) ASC LIMIT 1",
            "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id WHERE stageposition  =  \"back\" GROUP BY lastname ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the last name of the musician that has been at the back position the most?",
        "interaction_utterance": [
            "Show me last names of all the musicians who have been at the back position.",
            "Who has been at the back position the most?"
        ],
        "interaction_query": [
            "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id WHERE stageposition  =  \"back\"",
            "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id WHERE stageposition  =  \"back\" GROUP BY lastname ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT title FROM songs WHERE title LIKE '% the %'",
        "final_utterance": "Find all the songs whose name contains the word \"the\".",
        "interaction_utterance": [
            "Find all the songs whose name starts with the word \"the\".",
            "Find all songs that contains that word."
        ],
        "interaction_query": [
            "SELECT title FROM songs WHERE title LIKE 'the %'",
            "SELECT title FROM songs WHERE title LIKE '% the %'"
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId JOIN Instruments AS T4 ON T4.songid  =  T3.songid AND T4.bandmateid  =  T2.id WHERE T2.lastname  =  \"Heilo\" AND T3.title  =  \"Le Pop\"",
        "final_utterance": "What instrument did the musician with last name \"Heilo\" use in the song \"Le Pop\"?",
        "interaction_utterance": [
            "Find me the id of the song called \"Le Pop\".",
            "Which instruments were used in that song?",
            "Which instrument did the musician with last name \"Heilo\" play?"
        ],
        "interaction_query": [
            "SELECT SongId from Songs WHERE Title = \"Le Pop\"",
            "SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId JOIN Instruments AS T4 ON T4.songid  =  T3.songid AND T4.bandmateid  =  T2.id WHERE T3.title  =  \"Le Pop\"",
            "SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId JOIN Instruments AS T4 ON T4.songid  =  T3.songid AND T4.bandmateid  =  T2.id WHERE T2.lastname  =  \"Heilo\" AND T3.title  =  \"Le Pop\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT instrument FROM instruments GROUP BY instrument ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the most used instrument?",
        "interaction_utterance": [
            "How many times was each instrument used?",
            "Which instrument was the most used?"
        ],
        "interaction_query": [
            "SELECT instrument, count(*) FROM instruments GROUP BY instrument",
            "SELECT instrument FROM instruments GROUP BY instrument ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  \"Le Pop\"",
        "final_utterance": "What instruments does the song \"Le Pop\" use?",
        "interaction_utterance": [
            "How many instruments does the song \"Le Pop\" use?",
            "List them."
        ],
        "interaction_query": [
            "SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  \"Le Pop\"",
            "SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  \"Le Pop\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  \"Le Pop\"",
        "final_utterance": "How many instruments does the song \"Le Pop\" use?",
        "interaction_utterance": [
            "What instruments does the song \"Le Pop\" use?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  \"Le Pop\"",
            "SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  \"Le Pop\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid  =  T2.id WHERE T2.lastname  =  \"Heilo\"",
        "final_utterance": "How many instrument does the musician with last name \"Heilo\" use?",
        "interaction_utterance": [
            "What instruments does the musician with last name \"Heilo\" use?",
            "How many instruments are used?"
        ],
        "interaction_query": [
            "SELECT DISTINCT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid  =  T2.id WHERE T2.lastname  =  \"Heilo\"",
            "SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid  =  T2.id WHERE T2.lastname  =  \"Heilo\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid  =  T2.id WHERE T2.lastname  =  \"Heilo\"",
        "final_utterance": "Find all the instruments ever used by the musician with last name \"Heilo\"?",
        "interaction_utterance": [
            "How many instruments have the musician with last name \"Heilo\" ever use?",
            "List those instruments"
        ],
        "interaction_query": [
            "SELECT count(instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid  =  T2.id WHERE T2.lastname  =  \"Heilo\"",
            "SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid  =  T2.id WHERE T2.lastname  =  \"Heilo\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT title FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid GROUP BY T1.songid ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which song has the most vocals?",
        "interaction_utterance": [
            "Show me how many vocals each song uses.",
            "Which one has the most? Show me the song title."
        ],
        "interaction_query": [
            "SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid GROUP BY T1.songid",
            "SELECT title FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid GROUP BY T1.songid ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which vocal type is the most frequently appearing type?",
        "interaction_utterance": [
            "Show me all vocal types.",
            "Show me the 5 least frequently appearing types among those.",
            "Show me the most frequently appearing type."
        ],
        "interaction_query": [
            "SELECT TYPE FROM vocals GROUP BY TYPE",
            "SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY count(*) ASC LIMIT 5",
            "SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate  =  T2.id WHERE lastname  =  \"Heilo\" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which vocal type has the band mate with last name \"Heilo\" played the most?",
        "interaction_utterance": [
            "Show me all vocal types played by the band mate with last name \"Heilo\".",
            "Which one did they play the most?"
        ],
        "interaction_query": [
            "SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate  =  T2.id WHERE lastname  =  \"Heilo\" GROUP BY TYPE",
            "SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate  =  T2.id WHERE lastname  =  \"Heilo\" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  \"Le Pop\"",
        "final_utterance": "What are the vocal types used in song \"Le Pop\"?",
        "interaction_utterance": [
            "Show me songs named \"Le Pop\".",
            "Which vocal type is used in that song?"
        ],
        "interaction_query": [
            "SELECT * FROM songs WHERE title  =  \"Le Pop\"",
            "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  \"Le Pop\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  \"Demon Kitty Rag\"",
        "final_utterance": "Find the number of vocal types used in song \"Demon Kitty Rag\"?",
        "interaction_utterance": [
            "What vocal types are used in song \"Demon Kitty Rag\"?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  \"Demon Kitty Rag\"",
            "SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  \"Demon Kitty Rag\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE TYPE  =  \"lead\"",
        "final_utterance": "How many songs have a lead vocal?",
        "interaction_utterance": [
            "How many songs are there?",
            "Show me the ones with a lead vocal.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT count(DISTINCT title) FROM songs",
            "SELECT DISTINCT title FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE TYPE  =  \"lead\"",
            "SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE TYPE  =  \"lead\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid JOIN band AS T3 ON T1.bandmate  =  T3.id WHERE T3.firstname  =  \"Solveig\" AND T2.title  =  \"A Bar In Amsterdam\"",
        "final_utterance": "Which vocal type did the musician with first name \"Solveig\" played in the song with title \"A Bar in Amsterdam\"?",
        "interaction_utterance": [
            "Which vocal type does the musician with first name \"Solveig\" play?",
            "Which one did that musician play in a song called \"A Bar in Amsterdam\"?"
        ],
        "interaction_query": [
            "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid JOIN band AS T3 ON T1.bandmate  =  T3.id WHERE T3.firstname  =  \"Solveig\"",
            "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid JOIN band AS T3 ON T1.bandmate  =  T3.id WHERE T3.firstname  =  \"Solveig\" AND T2.title  =  \"A Bar In Amsterdam\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid WHERE TYPE  =  \"lead\"",
        "final_utterance": "Find all the songs that do not have a lead vocal.",
        "interaction_utterance": [
            "Find songs that have a lead vocal.",
            "Find all other songs."
        ],
        "interaction_query": [
            "SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid WHERE TYPE  =  \"lead\"",
            "SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid WHERE TYPE  =  \"lead\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT T2.firstname ,  T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T3.Title  =  \"Le Pop\"",
        "final_utterance": "Who performed the song named \"Le Pop\"?",
        "interaction_utterance": [
            "Find me id of the song named \"Le Pop\".",
            "Who performed that song?"
        ],
        "interaction_query": [
            "SELECT SongId FROM Songs WHERE Title = \"Le Pop\"",
            "SELECT T2.firstname ,  T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T3.Title  =  \"Le Pop\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId JOIN Instruments AS T4 ON T4.songid  =  T3.songid AND T4.bandmateid  =  T2.id WHERE T2.lastname  =  \"Heilo\" AND T3.title  =  \"Badlands\"",
        "final_utterance": "What instrument did the musician with last name \"Heilo\" use in the song \"Badlands\"?",
        "interaction_utterance": [
            "What instrument is used in the song \"Badlands\"?",
            "Which instrument did the musician with last name \"Heilo\" use in that song?"
        ],
        "interaction_query": [
            "SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId JOIN Instruments AS T4 ON T4.songid  =  T3.songid AND T4.bandmateid  =  T2.id WHERE T3.title  =  \"Badlands\"",
            "SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId JOIN Instruments AS T4 ON T4.songid  =  T3.songid AND T4.bandmateid  =  T2.id WHERE T2.lastname  =  \"Heilo\" AND T3.title  =  \"Badlands\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  \"Badlands\"",
        "final_utterance": "How many instruments does the song \"Badlands\" use?",
        "interaction_utterance": [
            "Show me all distinct instruments used in the song \"Badlands\".",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT DISTINCT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  \"Badlands\"",
            "SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  \"Badlands\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  \"Badlands\"",
        "final_utterance": "What are the vocal types used in song \"Badlands\"?",
        "interaction_utterance": [
            "Show me all the bandmates in song \"Badlands\"",
            "Show me all vocal types used in song \"Badlands\"."
        ],
        "interaction_query": [
            "SELECT Bandmate FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  \"Badlands\"",
            "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  \"Badlands\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  \"Le Pop\"",
        "final_utterance": "Find the number of vocal types used in song \"Le Pop\"",
        "interaction_utterance": [
            "Show me all vocal types used in song \"Le Pop\".",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  \"Le Pop\"",
            "SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  \"Le Pop\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE TYPE  =  \"shared\"",
        "final_utterance": "How many songs have a shared vocal?",
        "interaction_utterance": [
            "Show me all songs with shared vocals.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT DISTINCT title FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE TYPE  =  \"shared\"",
            "SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE TYPE  =  \"shared\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid WHERE TYPE  =  \"back\"",
        "final_utterance": "Find all the songs that do not have a back vocal.",
        "interaction_utterance": [
            "How many songs do not have a back vocal?",
            "Show me the titles of those songs."
        ],
        "interaction_query": [
            "SELECT count(DISTINCT title) FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid WHERE TYPE  =  \"back\"",
            "SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid WHERE TYPE  =  \"back\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate  =  T2.id WHERE firstname  =  \"Solveig\" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which vocal type has the band mate with first name \"Solveig\" played the most?",
        "interaction_utterance": [
            "Show me all vocal types played by a bandmate with first name \"Solveig\".",
            "Which one is played the most?"
        ],
        "interaction_query": [
            "SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate  =  T2.id WHERE firstname  =  \"Solveig\" GROUP BY TYPE",
            "SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate  =  T2.id WHERE firstname  =  \"Solveig\" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid JOIN band AS T3 ON T1.bandmate  =  T3.id WHERE T3.lastname  =  \"Heilo\" AND T2.title  =  \"Der Kapitan\"",
        "final_utterance": "Which vocal type did the musician with last name \"Heilo\" played in the song with title \"Der Kapitan\"?",
        "interaction_utterance": [
            "Which vocal type is played in the song \"Der Kapitan\"?",
            "Which vocal type did the musician with last name \"Heilo\" play?"
        ],
        "interaction_query": [
            "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid JOIN band AS T3 ON T1.bandmate  =  T3.id WHERE T2.title  =  \"Der Kapitan\"",
            "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid JOIN band AS T3 ON T1.bandmate  =  T3.id WHERE T3.lastname  =  \"Heilo\" AND T2.title  =  \"Der Kapitan\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT t2.firstname FROM Performance AS t1 JOIN Band AS t2 ON t1.bandmate  =  t2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId GROUP BY firstname ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the first name of the band mate that has performed in most songs.",
        "interaction_utterance": [
            "Which band mate performed in most songs? Show me the last name.",
            "Show the first name."
        ],
        "interaction_query": [
            "SELECT t2.lastname FROM Performance AS t1 JOIN Band AS t2 ON t1.bandmate  =  t2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId GROUP BY firstname ORDER BY count(*) DESC LIMIT 1",
            "SELECT t2.firstname FROM Performance AS t1 JOIN Band AS t2 ON t1.bandmate  =  t2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId GROUP BY firstname ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate  =  T2.id WHERE firstname  =  \"Marianne\" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which vocal type has the band mate with first name \"Marianne\" played the most?",
        "interaction_utterance": [
            "Which vocal type has the band mate with first name \"Marianne\" played?",
            "Which one did she play the most?"
        ],
        "interaction_query": [
            "SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate  =  T2.id WHERE firstname  =  \"Marianne\" GROUP BY TYPE",
            "SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate  =  T2.id WHERE firstname  =  \"Marianne\" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT T2.firstname ,  T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T3.Title  =  \"Der Kapitan\" AND T1.StagePosition  =  \"back\"",
        "final_utterance": "Who is performing in the back stage position for the song \"Der Kapitan\"? Show the first name and last name.",
        "interaction_utterance": [
            "Which bandmates are performing in the song \"Der Kapitan\"? Show the first name and last name.",
            "Who plays in the back stage position? Show first and last names."
        ],
        "interaction_query": [
            "SELECT T2.firstname ,  T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T3.Title  =  \"Der Kapitan\"",
            "SELECT T2.firstname ,  T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T3.Title  =  \"Der Kapitan\" AND T1.StagePosition  =  \"back\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid  =  T2.albumid JOIN songs AS T3 ON T2.songid  =  T3.songid WHERE T1.title  =  \"A Kiss Before You Go: Live in Hamburg\"",
        "final_utterance": "What are the songs in album \"A Kiss Before You Go: Live in Hamburg\"?",
        "interaction_utterance": [
            "How many songs are there in album \"A Kiss Before You Go: Live in Hamburg\"?",
            "What are those songs? Show me the title."
        ],
        "interaction_query": [
            "SELECT count(T3.title) FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid  =  T2.albumid JOIN songs AS T3 ON T2.songid  =  T3.songid WHERE T1.title  =  \"A Kiss Before You Go: Live in Hamburg\"",
            "SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid  =  T2.albumid JOIN songs AS T3 ON T2.songid  =  T3.songid WHERE T1.title  =  \"A Kiss Before You Go: Live in Hamburg\""
        ]
    },
    {
        "db_id": "music_2",
        "final_query": "SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid  =  T2.albumid JOIN songs AS T3 ON T2.songid  =  T3.songid WHERE t1.label  =  \"Universal Music Group\"",
        "final_utterance": "What are all the songs in albums under label \"Universal Music Group\"?",
        "interaction_utterance": [
            "How many songs are in albums under label \"Universal Music Group\"?",
            "Show me the titles of those songs."
        ],
        "interaction_query": [
            "SELECT count(T3.title) FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid  =  T2.albumid JOIN songs AS T3 ON T2.songid  =  T3.songid WHERE t1.label  =  \"Universal Music Group\"",
            "SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid  =  T2.albumid JOIN songs AS T3 ON T2.songid  =  T3.songid WHERE t1.label  =  \"Universal Music Group\""
        ]
    },
    {
        "db_id": "soccer_1",
        "final_query": "SELECT count(*) FROM Country AS T1 JOIN League AS T2 ON T1.id  =  T2.country_id WHERE T1.name  =  \"England\"",
        "final_utterance": "How many leagues are there in England?",
        "interaction_utterance": [
            "Tell me the country of the league named \"France Ligue 1\".",
            "How about that of the league named \"Poland Ekstraklasa\"",
            "How many leagues are there in England?"
        ],
        "interaction_query": [
            "SELECT T1.name FROM Country AS T1 JOIN League AS T2 ON T1.id  =  T2.country_id WHERE T2.name  =  \"France Ligue 1\"",
            "SELECT T1.name FROM Country AS T1 JOIN League AS T2 ON T1.id  =  T2.country_id WHERE T2.name  =  \"Poland Ekstraklasa\"",
            "SELECT count(*) FROM Country AS T1 JOIN League AS T2 ON T1.id  =  T2.country_id WHERE T1.name  =  \"England\""
        ]
    },
    {
        "db_id": "soccer_1",
        "final_query": "SELECT max(weight) ,  min(weight) FROM Player",
        "final_utterance": "What is the maximum and minimum weight of all players?",
        "interaction_utterance": [
            "Tell me the birthday of the player named Aaron Hunt.",
            "How about his weight?",
            "tell me the maximum and minimum weight of all players."
        ],
        "interaction_query": [
            "SELECT birthday FROM Player WHERE player_name = \"Aaron Hunt\"",
            "SELECT weight FROM Player WHERE player_name = \"Aaron Hunt\"",
            "SELECT max(weight) ,  min(weight) FROM Player"
        ]
    },
    {
        "db_id": "soccer_1",
        "final_query": "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating  >  ( SELECT avg(overall_rating) FROM Player_Attributes )",
        "final_utterance": "List all player names who have an overall rating higher than the average.",
        "interaction_utterance": [
            "Tell me the potential of the player named \"Abasse Ba\".",
            "How about his finishing times?",
            "list all player names who have an overall rating higher than the average."
        ],
        "interaction_query": [
            "SELECT T2.potential FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T1.player_name = \"Abasse Ba\"",
            "SELECT T2.finishing FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T1.player_name = \"Abasse Ba\"",
            "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating  >  ( SELECT avg(overall_rating) FROM Player_Attributes )"
        ]
    },
    {
        "db_id": "soccer_1",
        "final_query": "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.dribbling  =  ( SELECT max(dribbling) FROM Player_Attributes)",
        "final_utterance": "What are the names of players who have the best dribbling?",
        "interaction_utterance": [
            "What are the names of players who have the best crossing?",
            "What are the names of players who have the best short passing?",
            "What are the names of players who have the best dribbling?"
        ],
        "interaction_query": [
            "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.crossing  =  ( SELECT max(crossing) FROM Player_Attributes)",
            "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.short_passing  =  ( SELECT max(short_passing) FROM Player_Attributes)",
            "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.dribbling  =  ( SELECT max(dribbling) FROM Player_Attributes)"
        ]
    },
    {
        "db_id": "soccer_1",
        "final_query": "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.crossing  >  90 AND T2.preferred_foot  =  \"right\"",
        "final_utterance": "List the names of all players who have a crossing score higher than 90 and prefer their right foot.",
        "interaction_utterance": [
            "Tell me all the players whose defensive work rate is high.",
            "How about players whose attacking work rate is high?",
            "Tell me the names of all players who have a crossing score higher than 90 and prefer their right foot."
        ],
        "interaction_query": [
            "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.defensive_work_rate = \"high\"",
            "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.defensive_work_rate = \"high\" AND T2.attacking_work_rate = \"high\"",
            "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.crossing  >  90 AND T2.preferred_foot  =  \"right\""
        ]
    },
    {
        "db_id": "soccer_1",
        "final_query": "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.preferred_foot  =  \"left\" AND T2.overall_rating  >=  85 AND T2.overall_rating  <=  90",
        "final_utterance": "List the names of all left-footed players who have overall rating between 85 and 90.",
        "interaction_utterance": [
            "Tell me the names of players who have an overall rating larger than 80.",
            "Tell me their preferred foot.",
            "tell me the names of all left-footed players who have overall rating between 85 and 90."
        ],
        "interaction_query": [
            "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating  >  80",
            "SELECT DISTINCT T1.player_name, T2.preferred_foot FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating  >  80",
            "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.preferred_foot  =  \"left\" AND T2.overall_rating  >=  85 AND T2.overall_rating  <=  90"
        ]
    },
    {
        "db_id": "soccer_1",
        "final_query": "SELECT preferred_foot ,  count(*) FROM Player_Attributes WHERE overall_rating  >  80 GROUP BY preferred_foot",
        "final_utterance": "Of all players with an overall rating greater than 80, how many are right-footed and left-footed?",
        "interaction_utterance": [
            "How many players have an overall rating of 60 or greater?",
            "How many players have potential of 80 or greater?",
            "Of all players with an overall rating greater than 80, how many are right-footed and left-footed?"
        ],
        "interaction_query": [
            "SELECT COUNT(DISTINCT T1.player_name) FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating  >=  60",
            "SELECT COUNT(DISTINCT T1.player_name) FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.potential  >=  80",
            "SELECT preferred_foot ,  count(*) FROM Player_Attributes WHERE overall_rating  >  80 GROUP BY preferred_foot"
        ]
    },
    {
        "db_id": "soccer_1",
        "final_query": "SELECT player_api_id FROM Player WHERE height  >=  180 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE overall_rating  >  85",
        "final_utterance": "List all of the player ids with a height of at least 180cm and an overall rating higher than 85.",
        "interaction_utterance": [
            "What is the height of the player named Abdoulaye Toure?",
            "What is his overall rating?",
            "Tell me all of the player ids with a height of at least 180cm and an overall rating higher than 85."
        ],
        "interaction_query": [
            "SELECT height FROM Player WHERE player_name = \"Abdoulaye Toure\"",
            "SELECT T2.overall_rating FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T1.player_name = \"Abdoulaye Toure\"",
            "SELECT player_api_id FROM Player WHERE height  >=  180 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE overall_rating  >  85"
        ]
    },
    {
        "db_id": "soccer_1",
        "final_query": "SELECT player_api_id FROM Player WHERE height  >=  180 AND height  <=  190 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE preferred_foot  =  \"left\"",
        "final_utterance": "List all of the ids for left-footed players with a height between 180cm and 190cm.",
        "interaction_utterance": [
            "Tell me the birthday of the player named \"Aaron Hunt\".",
            "What is his preferred foot?",
            "List all of the ids for left-footed players with a height between 180cm and 190cm."
        ],
        "interaction_query": [
            "SELECT birthday FROM Player WHERE player_name = \"Aaron Hunt\"",
            "SELECT T2.preferred_foot FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T1.player_name = \"Aaron Hunt\"",
            "SELECT player_api_id FROM Player WHERE height  >=  180 AND height  <=  190 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE preferred_foot  =  \"left\""
        ]
    },
    {
        "db_id": "soccer_1",
        "final_query": "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id  =  T2.player_api_id ORDER BY overall_rating DESC LIMIT 3",
        "final_utterance": "Who are the top 3 players in terms of overall rating?",
        "interaction_utterance": [
            "How many players have heading accuracy larger than 70?",
            "Tell me the top three of these?",
            "Who are the top 3 players in terms of overall rating?"
        ],
        "interaction_query": [
            "SELECT COUNT(DISTINCT T1.player_name) FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id  =  T2.player_api_id WHERE T2.heading_accuracy > 70",
            "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id  =  T2.player_api_id WHERE T2.heading_accuracy > 70 ORDER BY overall_rating DESC LIMIT 3",
            "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id  =  T2.player_api_id ORDER BY overall_rating DESC LIMIT 3"
        ]
    },
    {
        "db_id": "customer_deliveries",
        "final_query": "SELECT t1.product_name ,   t1.product_price FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id  =  t2.product_id GROUP BY t2.product_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the name and price of the product that has been ordered the greatest number of times.",
        "interaction_utterance": [
            "How many different products are available to order?",
            "Order them by the number of times they have been ordered.",
            "Which has been ordered the greatest number of times?",
            "Only show the name and price."
        ],
        "interaction_query": [
            "SELECT count(DISTINCT product_id) FROM products",
            "SELECT * FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id = t2.product_id GROUP BY t2.product_id ORDER BY count(*)",
            "SELECT * FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id = t2.product_id GROUP BY t2.product_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT t1.product_name ,   t1.product_price FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id  =  t2.product_id GROUP BY t2.product_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "customer_deliveries",
        "final_query": "SELECT product_name FROM products ORDER BY product_price DESC LIMIT 1",
        "final_utterance": "Find the name of the most expensive product.",
        "interaction_utterance": [
            "What is the average price of all products?",
            "Which of the procucts cost more than this?",
            "Which is the name of the most expensive product?"
        ],
        "interaction_query": [
            "SELECT avg(product_price) FROM products",
            "SELECT * FROM products WHERE product_price > (SELECT avg(product_price) FROM products)",
            "SELECT product_name FROM products ORDER BY product_price DESC LIMIT 1"
        ]
    },
    {
        "db_id": "customer_deliveries",
        "final_query": "SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id WHERE t3.state_province_county  =  'California'",
        "final_utterance": "Find the names of customers who are not living in the state of California.",
        "interaction_utterance": [
            "How many customers have addresses on file?",
            "What different states are they from?",
            "Show all information for customers living in the state of California.",
            "Show the names of all customers except these."
        ],
        "interaction_query": [
            "SELECT count(DISTINCT customer_id) FROM customer_addresses AS t1 JOIN addresses AS t2 ON t1.address_id = t2.address_id",
            "SELECT DISTINCT state_province_county FROM addresses",
            "SELECT * FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'California'",
            "SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id WHERE t3.state_province_county  =  'California'"
        ]
    },
    {
        "db_id": "customer_deliveries",
        "final_query": "SELECT t1.customer_name ,  t1.customer_phone FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id WHERE t3.state_province_county  =  'California'",
        "final_utterance": "Find the names and phone numbers of customers living in California state.",
        "interaction_utterance": [
            "What state or province are the most customer addresses located?",
            "How many customers have addresses in the state of California",
            "What are their names and phone numbers?"
        ],
        "interaction_query": [
            "SELECT state_province_county, count(*) FROM customer_addresses AS t1 JOIN addresses AS t2 ON t1.address_id = t2.address_id GROUP BY state_province_county ORDER BY count(*) DESC LIMIT 1",
            "SELECT count(*) FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id WHERE t3.state_province_county  =  'California'",
            "SELECT t1.customer_name , t1.customer_phone FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id  =  t2.customer_id JOIN addresses AS t3 ON t2.address_id  =  t3.address_id WHERE t3.state_province_county  =  'California'"
        ]
    },
    {
        "db_id": "customer_deliveries",
        "final_query": "SELECT state_province_county FROM addresses WHERE address_id NOT IN (SELECT employee_address_id FROM employees)",
        "final_utterance": "Find the states which do not have any employee in their record.",
        "interaction_utterance": [
            "What are all the different employee address details?",
            "At which adresses do no employees live?",
            "What states or provinces are they in?"
        ],
        "interaction_query": [
            "SELECT DISTINCT address_details FROM addresses AS t1 JOIN employees AS t2 ON t1.address_id = t2.employee_address_id",
            "SELECT * FROM addresses WHERE address_id NOT IN (SELECT employee_address_id FROM employees)",
            "SELECT state_province_county FROM addresses WHERE address_id NOT IN (SELECT employee_address_id FROM employees)"
        ]
    },
    {
        "db_id": "customer_deliveries",
        "final_query": "SELECT customer_name FROM customers ORDER BY date_became_customer LIMIT 5",
        "final_utterance": "Find the name of the first 5 customers.",
        "interaction_utterance": [
            "What is the customer ID of the person who became a customer most recently?",
            "What is their name?",
            "How about the earliest 5 customers?"
        ],
        "interaction_query": [
            "SELECT customer_id FROM customers ORDER BY date_became_customer DESC LIMIT 1",
            "SELECT customer_name FROM customers ORDER BY date_became_customer DESC LIMIT 1",
            "SELECT customer_name FROM customers ORDER BY date_became_customer LIMIT 5"
        ]
    },
    {
        "db_id": "customer_deliveries",
        "final_query": "SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the payment method that is used most frequently.",
        "interaction_utterance": [
            "Order all customer payment methods alphabetically.",
            "Which is last alphabetically?",
            "Which appears most often?"
        ],
        "interaction_query": [
            "SELECT payment_method FROM customers ORDER BY payment_method",
            "SELECT payment_method FROM customers ORDER BY payment_method DESC LIMIT 1",
            "SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "customer_deliveries",
        "final_query": "SELECT t1.route_name FROM delivery_routes AS t1 JOIN delivery_route_locations AS t2 ON t1.route_id  =  t2.route_id GROUP BY t1.route_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the name of route that has the highest number of deliveries.",
        "interaction_utterance": [
            "What are all location codes for the delivery locations?",
            "Which route has had the fewest orders delivered?",
            "Which route has the highest number of delivery locations?"
        ],
        "interaction_query": [
            "SELECT location_code FROM delivery_route_locations",
            "SELECT route_id FROM order_deliveries AS t1 JOIN delivery_route_locations AS t2 ON t1.location_code = t2.location_code ORDER BY t2.route_id LIMIT 1",
            "SELECT t1.route_name FROM delivery_routes AS t1 JOIN delivery_route_locations AS t2 ON t1.route_id  =  t2.route_id GROUP BY t1.route_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "document_management",
        "final_query": "SELECT document_name ,  access_count FROM documents ORDER BY document_name",
        "final_utterance": "Find the name and access counts of all documents, in alphabetic order of the document name.",
        "interaction_utterance": [
            "What are all the documents?",
            "Show the name and access counts of them in alphabetic order of the name."
        ],
        "interaction_query": [
            "SELECT * FROM documents",
            "SELECT document_name ,  access_count FROM documents ORDER BY document_name"
        ]
    },
    {
        "db_id": "document_management",
        "final_query": "SELECT document_name ,  access_count FROM documents ORDER BY access_count DESC LIMIT 1",
        "final_utterance": "Find the name of the document that has been accessed the greatest number of times, as well as the count of how many times it has been accessed?",
        "interaction_utterance": [
            "What are the names and access counts of all the documents?",
            "Which one has been accessed the greatest number of times?"
        ],
        "interaction_query": [
            "SELECT document_name, access_count FROM documents",
            "SELECT document_name ,  access_count FROM documents ORDER BY access_count DESC LIMIT 1"
        ]
    },
    {
        "db_id": "document_management",
        "final_query": "SELECT document_type_code FROM documents GROUP BY document_type_code HAVING count(*)  >  4",
        "final_utterance": "Find the types of documents with more than 4 documents.",
        "interaction_utterance": [
            "What are all the documents?",
            "Which document types are there?",
            "Which types have more than 4 documents?"
        ],
        "interaction_query": [
            "SELECT * FROM documents",
            "SELECT document_type_code FROM documents GROUP BY document_type_code",
            "SELECT document_type_code FROM documents GROUP BY document_type_code HAVING count(*)  >  4"
        ]
    },
    {
        "db_id": "document_management",
        "final_query": "SELECT sum(access_count) FROM documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the total access count of all documents in the most popular document type.",
        "interaction_utterance": [
            "What are all the documents?",
            "What are the total access counts of documents in terms of document type?",
            "Which is the largest among them?"
        ],
        "interaction_query": [
            "SELECT * FROM documents",
            "SELECT sum(access_count) FROM documents GROUP BY document_type_code",
            "SELECT sum(access_count) FROM documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "document_management",
        "final_query": "SELECT avg(access_count) FROM documents",
        "final_utterance": "What is the average access count of documents?",
        "interaction_utterance": [
            "What are access counts all the documents?",
            "Show their average."
        ],
        "interaction_query": [
            "SELECT access_count FROM documents",
            "SELECT avg(access_count) FROM documents"
        ]
    },
    {
        "db_id": "document_management",
        "final_query": "SELECT document_type_code FROM documents WHERE document_name  =  \"David CV\"",
        "final_utterance": "What is the type of the document named \"David CV\"?",
        "interaction_utterance": [
            "What are all the documents?",
            "Show the type of the one named \"David CV\"."
        ],
        "interaction_query": [
            "SELECT * FROM documents",
            "SELECT document_type_code FROM documents WHERE document_name  =  \"David CV\""
        ]
    },
    {
        "db_id": "document_management",
        "final_query": "SELECT document_type_code FROM documents GROUP BY document_type_code HAVING sum(access_count)  >  10000",
        "final_utterance": "What document types do have more than 10000 total access number.",
        "interaction_utterance": [
            "What are all the documents?",
            "Which document types have more than 10000 total access number?"
        ],
        "interaction_query": [
            "SELECT * FROM documents",
            "SELECT document_type_code FROM documents GROUP BY document_type_code HAVING sum(access_count)  >  10000"
        ]
    },
    {
        "db_id": "document_management",
        "final_query": "SELECT t2.section_title FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code  =  t2.document_code WHERE t1.document_name  =  \"David CV\"",
        "final_utterance": "What are all the section titles of the document named \"David CV\"?",
        "interaction_utterance": [
            "What is the document named \"David CV\"?",
            "What are all the section titils of it?"
        ],
        "interaction_query": [
            "SELECT * FROM documents WHERE document_name  =  \"David CV\"",
            "SELECT t2.section_title FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code  =  t2.document_code WHERE t1.document_name  =  \"David CV\""
        ]
    },
    {
        "db_id": "document_management",
        "final_query": "SELECT document_name FROM documents WHERE document_code NOT IN (SELECT document_code FROM document_sections)",
        "final_utterance": "Find all the name of documents without any sections.",
        "interaction_utterance": [
            "What are all the documents?",
            "Show those without any sections."
        ],
        "interaction_query": [
            "SELECT * FROM documents",
            "SELECT document_name FROM documents WHERE document_code NOT IN (SELECT document_code FROM document_sections)"
        ]
    },
    {
        "db_id": "document_management",
        "final_query": "SELECT avg(t1.access_count) FROM documents AS t1 JOIN document_functional_areas AS t2 ON t1.document_code  =  t2.document_code JOIN functional_areas AS t3 ON t2.functional_area_code  =  t3.functional_area_code WHERE t3.functional_area_description  =  \"Acknowledgement\"",
        "final_utterance": "Find the average access counts of documents with functional area \"Acknowledgement\".",
        "interaction_utterance": [
            "What are all the documents with functional area \"Acknowledgement\"?",
            "Show the average access counts for each of them."
        ],
        "interaction_query": [
            "SELECT * FROM documents AS t1 JOIN document_functional_areas AS t2 ON t1.document_code  =  t2.document_code JOIN functional_areas AS t3 ON t2.functional_area_code  =  t3.functional_area_code WHERE t3.functional_area_description  =  \"Acknowledgement\"",
            "SELECT avg(t1.access_count) FROM documents AS t1 JOIN document_functional_areas AS t2 ON t1.document_code  =  t2.document_code JOIN functional_areas AS t3 ON t2.functional_area_code  =  t3.functional_area_code WHERE t3.functional_area_description  =  \"Acknowledgement\""
        ]
    },
    {
        "db_id": "document_management",
        "final_query": "SELECT document_name FROM documents EXCEPT SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code  =  t2.document_code JOIN document_sections_images AS t3 ON t2.section_id  =  t3.section_id",
        "final_utterance": "Find names of the document without any images.",
        "interaction_utterance": [
            "What are all the documents?",
            "Show those without any images."
        ],
        "interaction_query": [
            "SELECT * FROM documents",
            "SELECT document_name FROM documents EXCEPT SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code  =  t2.document_code JOIN document_sections_images AS t3 ON t2.section_id  =  t3.section_id"
        ]
    },
    {
        "db_id": "document_management",
        "final_query": "SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code  =  t2.document_code GROUP BY t1.document_code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the name of the document with the most number of sections?",
        "interaction_utterance": [
            "What are all the documents?",
            "Show their names in the order of number of sections.",
            "What is the name of the one with the most number of sections?"
        ],
        "interaction_query": [
            "SELECT * FROM documents",
            "SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code  =  t2.document_code GROUP BY t1.document_code ORDER BY count(*)",
            "SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code  =  t2.document_code GROUP BY t1.document_code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "document_management",
        "final_query": "SELECT document_name FROM documents WHERE document_name LIKE \"%CV%\"",
        "final_utterance": "List all the document names which contains \"CV\".",
        "interaction_utterance": [
            "What are the names of all the documents?",
            "Show those that contain \"CV\"."
        ],
        "interaction_query": [
            "SELECT document_name FROM documents",
            "SELECT document_name FROM documents WHERE document_name LIKE \"%CV%\""
        ]
    },
    {
        "db_id": "document_management",
        "final_query": "SELECT count(*) FROM users WHERE user_login  =  1",
        "final_utterance": "How many users are logged in?",
        "interaction_utterance": [
            "Who are all the users?",
            "Show those who are logged in."
        ],
        "interaction_query": [
            "SELECT * FROM users",
            "SELECT count(*) FROM users WHERE user_login  =  1"
        ]
    },
    {
        "db_id": "document_management",
        "final_query": "SELECT role_description FROM ROLES WHERE role_code  =  (SELECT role_code FROM users WHERE user_login  =  1 GROUP BY role_code ORDER BY count(*) DESC LIMIT 1)",
        "final_utterance": "Find the description of the most popular role among the users that have logged in.",
        "interaction_utterance": [
            "What are all the users that have logged in?",
            "Among those users, which role is the most popular one?",
            "Show the description of that role."
        ],
        "interaction_query": [
            "SELECT * FROM users WHERE user_login = 1",
            "SELECT role_code FROM users WHERE user_login  =  1 GROUP BY role_code ORDER BY count(*) DESC LIMIT 1",
            "SELECT role_description FROM ROLES WHERE role_code  =  (SELECT role_code FROM users WHERE user_login  =  1 GROUP BY role_code ORDER BY count(*) DESC LIMIT 1)"
        ]
    },
    {
        "db_id": "document_management",
        "final_query": "SELECT avg(access_count) FROM documents GROUP BY document_structure_code ORDER BY count(*) ASC LIMIT 1",
        "final_utterance": "Find the average access count of documents with the least popular structure.",
        "interaction_utterance": [
            "What are all the documents?",
            "What are the average access counts in terms of each document structure?",
            "Show the one with the least popular structure."
        ],
        "interaction_query": [
            "SELECT * FROM documents",
            "SELECT avg(access_count) FROM documents GROUP BY document_structure_code",
            "SELECT avg(access_count) FROM documents GROUP BY document_structure_code ORDER BY count(*) ASC LIMIT 1"
        ]
    },
    {
        "db_id": "document_management",
        "final_query": "SELECT image_name ,  image_url FROM images ORDER BY image_name",
        "final_utterance": "List all the image name and URLs in the order of their names.",
        "interaction_utterance": [
            "Show all the images.",
            "Show their names and URLs in the order of their names."
        ],
        "interaction_query": [
            "SELECT * FROM images",
            "SELECT image_name ,  image_url FROM images ORDER BY image_name"
        ]
    },
    {
        "db_id": "document_management",
        "final_query": "SELECT count(*) ,  role_code FROM users GROUP BY role_code",
        "final_utterance": "Find the number of users in each role.",
        "interaction_utterance": [
            "What are all the users?",
            "What are the different kinds of roles among them?",
            "Show the number of users in each role."
        ],
        "interaction_query": [
            "SELECT * FROM users",
            "SELECT role_code FROM users GROUP BY role_code",
            "SELECT count(*) ,  role_code FROM users GROUP BY role_code"
        ]
    },
    {
        "db_id": "insurance_fnol",
        "final_query": "SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which policy type has the most records in the database?",
        "interaction_utterance": [
            "Show me all the policy types.",
            "Show me the type with most records in the database."
        ],
        "interaction_query": [
            "SELECT policy_type_code FROM available_policies",
            "SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "insurance_fnol",
        "final_query": "SELECT customer_phone FROM available_policies WHERE policy_type_code  =  (SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1)",
        "final_utterance": "What are all the customer phone numbers under the most popular policy type?",
        "interaction_utterance": [
            "What is the most popular policy type?",
            "Show me all the customer phone numbers associated with it."
        ],
        "interaction_query": [
            "SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1",
            "SELECT customer_phone FROM available_policies WHERE policy_type_code  =  (SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1)"
        ]
    },
    {
        "db_id": "insurance_fnol",
        "final_query": "SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING count(*)  >  4",
        "final_utterance": "Find the policy type used by more than 4 customers.",
        "interaction_utterance": [
            "Show me the policy type used by more than 3 customers.",
            "Show me the same for more than 4 customers."
        ],
        "interaction_query": [
            "SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING count(*)  >  3",
            "SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING count(*)  >  4"
        ]
    },
    {
        "db_id": "insurance_fnol",
        "final_query": "SELECT sum(settlement_amount) ,  avg(settlement_amount) FROM settlements",
        "final_utterance": "Find the total and average amount of settlements.",
        "interaction_utterance": [
            "What is the maximum amount of settlements?",
            "What is the total amount of settlements?",
            "What is the average?"
        ],
        "interaction_query": [
            "SELECT max(settlement_amount) FROM settlements",
            "SELECT sum(settlement_amount) FROM settlements",
            "SELECT avg(settlement_amount) FROM settlements"
        ]
    },
    {
        "db_id": "insurance_fnol",
        "final_query": "SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id  =  t2.service_id GROUP BY t1.service_id HAVING count(*)  >  2",
        "final_utterance": "Find the name of services that have been used for more than 2 times in first notification of loss.",
        "interaction_utterance": [
            "Find the name of services that have been used in first notification of loss.",
            "Find services used more than twice in first notification of loss."
        ],
        "interaction_query": [
            "SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id  =  t2.service_id GROUP BY t1.service_id HAVING count(*)  >  0",
            "SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id  =  t2.service_id GROUP BY t1.service_id HAVING count(*)  >  2"
        ]
    },
    {
        "db_id": "insurance_fnol",
        "final_query": "SELECT t1.Effective_Date FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id  =  t2.claim_id GROUP BY t1.claim_id ORDER BY sum(t2.settlement_amount) DESC LIMIT 1",
        "final_utterance": "What is the effective date of the claim that has the largest amount of total settlement?",
        "interaction_utterance": [
            "What is the ID of the claim that has the smallest amount of total settlement?",
            "What is its effective date?",
            "Show me the same for the effective date of claim with largest amount of total sum."
        ],
        "interaction_query": [
            "SELECT t1.Claim_ID FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id  =  t2.claim_id GROUP BY t1.claim_id ORDER BY sum(t2.settlement_amount) ASC LIMIT 1",
            "SELECT t1.Effective_Date FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id  =  t2.claim_id GROUP BY t1.claim_id ORDER BY sum(t2.settlement_amount) ASC LIMIT 1",
            "SELECT t1.Effective_Date FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id  =  t2.claim_id GROUP BY t1.claim_id ORDER BY sum(t2.settlement_amount) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "insurance_fnol",
        "final_query": "SELECT count(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.customer_name  =  \"Dayana Robel\"",
        "final_utterance": "How many policies are listed for the customer named \"Dayana Robel\"?",
        "interaction_utterance": [
            "Show me the policies listed for the customer named \"Dayana Robel\".",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.customer_name  =  \"Dayana Robel\"",
            "SELECT count(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.customer_name  =  \"Dayana Robel\""
        ]
    },
    {
        "db_id": "insurance_fnol",
        "final_query": "SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the name of the customer who has the most policies listed?",
        "interaction_utterance": [
            "What is the name of the customer who has the least policies listed?",
            "How about the most policies listed?"
        ],
        "interaction_query": [
            "SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) ASC LIMIT 1",
            "SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "insurance_fnol",
        "final_query": "SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id JOIN available_policies AS t3 ON t2.policy_id  =  t3.policy_id WHERE t1.customer_name  =  \"Dayana Robel\"",
        "final_utterance": "What are all the policy types of the customer named \"Dayana Robel\"?",
        "interaction_utterance": [
            "What is the phone number of the customer named \"Dayana Robel\"?",
            "Show me all the policy types associated with that phone number."
        ],
        "interaction_query": [
            "SELECT DISTINCT t3.customer_phone FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id JOIN available_policies AS t3 ON t2.policy_id  =  t3.policy_id WHERE t1.customer_name  =  \"Dayana Robel\"",
            "SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id JOIN available_policies AS t3 ON t2.policy_id  =  t3.policy_id WHERE t1.customer_name  =  \"Dayana Robel\""
        ]
    },
    {
        "db_id": "insurance_fnol",
        "final_query": "SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id JOIN available_policies AS t3 ON t2.policy_id  =  t3.policy_id WHERE t1.customer_name  =  (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1)",
        "final_utterance": "What are all the policy types of the customer that has the most policies listed?",
        "interaction_utterance": [
            "What is the name of the customer who has the most policies listed?",
            "How many policy types has the customer listed?",
            "List all of them please."
        ],
        "interaction_query": [
            "SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1",
            "SELECT DISTINCT count(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id JOIN available_policies AS t3 ON t2.policy_id  =  t3.policy_id WHERE t1.customer_name  =  (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1)",
            "SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id JOIN available_policies AS t3 ON t2.policy_id  =  t3.policy_id WHERE t1.customer_name  =  (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1)"
        ]
    },
    {
        "db_id": "insurance_fnol",
        "final_query": "SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id",
        "final_utterance": "Find the names of users who do not have a first notification of loss record.",
        "interaction_utterance": [
            "Find the ids of customers without first notification of loss record.",
            "Show me their names."
        ],
        "interaction_query": [
            "SELECT customer_id FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id",
            "SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id"
        ]
    },
    {
        "db_id": "insurance_fnol",
        "final_query": "SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t3.service_name  =  \"Close a policy\" OR t3.service_name  =  \"Upgrade a policy\"",
        "final_utterance": "Find the names of customers who have used either the service \"Close a policy\" or the service \"Upgrade a policy\".",
        "interaction_utterance": [
            "Find me names of customers who have used the service \"Close a policy\".",
            "Find me names of customers who have also used the service \"Upgrade a policy\".",
            "Find me names of customers who have used either of the two services."
        ],
        "interaction_query": [
            "SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t3.service_name  =  \"Close a policy\"",
            "SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t3.service_name  =  \"Close a policy\" AND t3.service_name = \"Upgrade a policy\"",
            "SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t3.service_name  =  \"Close a policy\" OR t3.service_name  =  \"Upgrade a policy\""
        ]
    },
    {
        "db_id": "insurance_fnol",
        "final_query": "SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t3.service_name  =  \"Close a policy\" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t3.service_name  =  \"New policy application\"",
        "final_utterance": "Find the names of customers who have used both the service \"Close a policy\" and the service \"New policy application\".",
        "interaction_utterance": [
            "Find the names of customers who have used both the service \"Close a policy\" or the service \"Upgrade a policy\".",
            "How about customers who have used both \"Close a policy\" and \"New policy application\"?"
        ],
        "interaction_query": [
            "SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t3.service_name  =  \"Close a policy\" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t3.service_name  =  \"Upgrade a policy\"",
            "SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t3.service_name  =  \"Close a policy\" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t3.service_name  =  \"New policy application\""
        ]
    },
    {
        "db_id": "insurance_fnol",
        "final_query": "SELECT customer_id FROM customers WHERE customer_name LIKE \"%Diana%\"",
        "final_utterance": "Find the IDs of customers whose name contains \"Diana\".",
        "interaction_utterance": [
            "How many customers are there whose name contains \"Diana\"?",
            "Show me their IDs"
        ],
        "interaction_query": [
            "SELECT count(*) FROM customers WHERE customer_name LIKE \"%Diana%\"",
            "SELECT customer_id FROM customers WHERE customer_name LIKE \"%Diana%\""
        ]
    },
    {
        "db_id": "insurance_fnol",
        "final_query": "SELECT max(settlement_amount) ,  min(settlement_amount) FROM settlements",
        "final_utterance": "What are the maximum and minimum settlement amount on record?",
        "interaction_utterance": [
            "What is the average settlement amount on record?",
            "What are the maximum and minimum?"
        ],
        "interaction_query": [
            "SELECT avg(settlement_amount) FROM settlements",
            "SELECT max(settlement_amount) ,  min(settlement_amount) FROM settlements"
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT Name FROM WINE ORDER BY Score DESC LIMIT 1",
        "final_utterance": "What is the name of the highest rated wine?",
        "interaction_utterance": [
            "show all info of wines.",
            "what is their average rated score?",
            "find the name of the lowest rated wine.",
            "what about the highest rated one?"
        ],
        "interaction_query": [
            "SELECT * FROM WINE",
            "SELECT avg(Score) FROM WINE",
            "SELECT Name FROM WINE ORDER BY Score LIMIT 1",
            "SELECT Name FROM WINE ORDER BY Score DESC LIMIT 1"
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT Winery FROM WINE ORDER BY SCORE DESC LIMIT 1",
        "final_utterance": "Which winery is the wine that has the highest score from?",
        "interaction_utterance": [
            "what is the name of the highest rated wine?",
            "Which winery is it from?"
        ],
        "interaction_query": [
            "SELECT Name FROM WINE ORDER BY Score DESC LIMIT 1",
            "SELECT Winery FROM WINE ORDER BY SCORE DESC LIMIT 1"
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  \"Red\"",
        "final_utterance": "List the names of all distinct wines that are made of red color grape.",
        "interaction_utterance": [
            "how many wines are there?",
            "how many are made of red color grape?",
            "only show their names."
        ],
        "interaction_query": [
            "SELECT count(*) FROM WINE",
            "SELECT count(*) FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  \"Red\"",
            "SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  \"Red\""
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT DISTINCT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.Area  =  \"North Coast\"",
        "final_utterance": "Find the names of all distinct wines that have appellations in North Coast area.",
        "interaction_utterance": [
            "what are all appellations?",
            "which of them are in the North Coast area?",
            "Find the names of all distinct wines from those appellations."
        ],
        "interaction_query": [
            "SELECT Appelation FROM APPELLATIONS",
            "SELECT Appelation FROM APPELLATIONS WHERE Area  =  \"North Coast\"",
            "SELECT DISTINCT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.Area  =  \"North Coast\""
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT AVG(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  \"Sonoma\"",
        "final_utterance": "Give me the average prices of wines that are produced by appellations in Sonoma County.",
        "interaction_utterance": [
            "what appellations does Sonoma County have?",
            "Give me the name of wines that are produced by them.",
            "what is their average price?"
        ],
        "interaction_query": [
            "SELECT Appelation FROM APPELLATIONS WHERE County  =  \"Sonoma\"",
            "SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  \"Sonoma\"",
            "SELECT AVG(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  \"Sonoma\""
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT T2.Name, T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  \"White\"",
        "final_utterance": "What are the names and scores of wines that are made of white color grapes?",
        "interaction_utterance": [
            "what are all the different colors of grapes?",
            "What are the names of wines that are made of white color grapes?",
            "also show their scores."
        ],
        "interaction_query": [
            "SELECT distinct Color FROM GRAPES",
            "SELECT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  \"White\"",
            "SELECT T2.Name, T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  \"White\""
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT max(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.Area  =  \"Central Coast\" AND T2.year  <  2005",
        "final_utterance": "Find the maximum price of wines from the appelations in Central Coast area and produced before the year of 2005.",
        "interaction_utterance": [
            "how many wines were produced before the year of 2005?",
            "how many of them were made by appelations in the Central Coast area?",
            "what is the maximum price among them?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM WINE WHERE year  <  2005",
            "SELECT count(*) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.Area  =  \"Central Coast\" AND T2.year  <  2005",
            "SELECT max(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.Area  =  \"Central Coast\" AND T2.year  <  2005"
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT DISTINCT T1.Grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  \"White\" AND T2.score  >  90",
        "final_utterance": "Find the different white color grapes that produced wines with scores higher than 90.",
        "interaction_utterance": [
            "show the name of the wines with scores higher than 90.",
            "among them, which are made from white grapes?",
            "what different grape varieties were they made from?"
        ],
        "interaction_query": [
            "SELECT Name FROM WINE WHERE Score > 90",
            "SELECT T2.name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  \"White\" AND T2.score  >  90",
            "SELECT DISTINCT T1.Grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  \"White\" AND T2.score  >  90"
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  \"Red\" AND T2.price  >  50",
        "final_utterance": "What are the wines that have prices higher than 50 and made of Red color grapes?",
        "interaction_utterance": [
            "how many wines are there?",
            "how many of them have a price higher than 50?",
            "find their names.",
            "which are made from red colored grapes?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM WINE",
            "SELECT count(*) FROM WINE WHERE price > 50",
            "SELECT name FROM WINE WHERE price > 50",
            "SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  \"Red\" AND T2.price  >  50"
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  \"Monterey\" AND T2.price  <  50",
        "final_utterance": "What are the wines that have prices lower than 50 and have appelations in Monterey county?",
        "interaction_utterance": [
            "Find the name of the wines that have prices lower than 50.",
            "which ones have appellations from Monterey county?"
        ],
        "interaction_query": [
            "SELECT name FROM WINE WHERE price < 50",
            "SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  \"Monterey\" AND T2.price  <  50"
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT DISTINCT Name FROM WINE WHERE Price  >  (SELECT min(Price) FROM wine WHERE Winery  =  \"John Anthony\")",
        "final_utterance": "Find the distinct names of all wines that have prices higher than some wines from John Anthony winery.",
        "interaction_utterance": [
            "find the lowest price of all wines.",
            "how about among those from John Anthony winery?",
            "Find the distinct names of all wines that have prices higher than that."
        ],
        "interaction_query": [
            "SELECT min(Price) FROM WINE",
            "SELECT min(Price) FROM wine WHERE Winery  =  \"John Anthony\"",
            "SELECT DISTINCT Name FROM WINE WHERE Price  >  (SELECT min(Price) FROM wine WHERE Winery  =  \"John Anthony\")"
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT T1.Area FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation GROUP BY T2.Appelation HAVING T2.year  <  2010 ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the area of the appelation that produces the highest number of wines before the year of 2010?",
        "interaction_utterance": [
            "how many wines were produced before the year of 2010?",
            "which appellation produced the highest number of these?",
            "What is the area where that appellation is from?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM WINE WHERE year  <  2010",
            "SELECT Appelation FROM WINE WHERE year  <  2010 GROUP BY Appelation ORDER BY count(*) DESC LIMIT 1",
            "SELECT T1.Area FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation GROUP BY T2.Appelation HAVING T2.year  <  2010 ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT T1.Color FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape GROUP BY T2.Grape ORDER BY AVG(Price) DESC LIMIT 1",
        "final_utterance": "What is the color of the grape whose wine products have the highest average price?",
        "interaction_utterance": [
            "what are all different colors of grapes?",
            "which one produces the wines with the highest average price?"
        ],
        "interaction_query": [
            "SELECT distinct Color FROM GRAPES",
            "SELECT T1.Color FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape GROUP BY T2.Grape ORDER BY AVG(Price) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT DISTINCT Name FROM WINE WHERE YEAR  <  2000 OR YEAR  >  2010",
        "final_utterance": "Find the distinct names of wines produced before the year of 2000 or after the year of 2010.",
        "interaction_utterance": [
            "Find the distinct names of wines produced before the year of 2000.",
            "also list the different names of wines produced after 2010."
        ],
        "interaction_query": [
            "SELECT DISTINCT Name FROM WINE WHERE YEAR  <  2000",
            "SELECT DISTINCT Name FROM WINE WHERE YEAR  <  2000 OR YEAR  >  2010"
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT AVG(Price) ,  AVG(Cases) FROM WINE WHERE YEAR  =  2009 AND Grape  =  \"Zinfandel\"",
        "final_utterance": "What are the average prices and cases of wines produced in the year of 2009 and made of Zinfandel grape?",
        "interaction_utterance": [
            "how many wines are made from Zinfandel grapes?",
            "What are the average prices and number of cases for these wines?",
            "only show numbers for the ones produced in 2009."
        ],
        "interaction_query": [
            "SELECT count(*) FROM WINE WHERE Grape  =  \"Zinfandel\"",
            "SELECT AVG(Price) ,  AVG(Cases) FROM WINE WHERE Grape  =  \"Zinfandel\"",
            "SELECT AVG(Price) ,  AVG(Cases) FROM WINE WHERE YEAR  =  2009 AND Grape  =  \"Zinfandel\""
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT max(Price) ,  max(Score) FROM WINE WHERE Appelation  =  \"St. Helena\"",
        "final_utterance": "What are the maximum price and score of wines produced by St. Helena appelation?",
        "interaction_utterance": [
            "find the names of all wines produced by the St. Helena appelation.",
            "which one is the most expensive?",
            "what is its price?",
            "also show the best score earned by these wines."
        ],
        "interaction_query": [
            "SELECT name FROM WINE WHERE Appelation  =  \"St. Helena\"",
            "SELECT name FROM WINE WHERE Appelation  =  \"St. Helena\" ORDER BY price DESC LIMIT 1",
            "SELECT max(Price) FROM WINE WHERE Appelation  =  \"St. Helena\"",
            "SELECT max(Price) ,  max(Score) FROM WINE WHERE Appelation  =  \"St. Helena\""
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT max(Price) ,  max(Score) ,  YEAR FROM WINE GROUP BY YEAR",
        "final_utterance": "What are the maximum price and score of wines in each year?",
        "interaction_utterance": [
            "how many wines were produced in each year?",
            "What are the maximum price and score of wines in each year?"
        ],
        "interaction_query": [
            "SELECT count(*), YEAR FROM WINE GROUP BY YEAR",
            "SELECT max(Price) ,  max(Score) ,  YEAR FROM WINE GROUP BY YEAR"
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT avg(Price) ,  avg(Score) ,  Appelation FROM WINE GROUP BY Appelation",
        "final_utterance": "What are the average price and score of wines grouped by appelation?",
        "interaction_utterance": [
            "how many different appellations are there?",
            "what is the average price for wines from each of them?",
            "what are their average scores too?"
        ],
        "interaction_query": [
            "SELECT count(DISTINCT Appelation) FROM APPELLATIONS",
            "SELECT avg(Price), Appelation FROM WINE GROUP BY Appelation",
            "SELECT avg(Price) ,  avg(Score) ,  Appelation FROM WINE GROUP BY Appelation"
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT Winery FROM WINE GROUP BY Winery HAVING count(*)  >=  4",
        "final_utterance": "Find the wineries that have at least four wines.",
        "interaction_utterance": [
            "what are all the different wineries?",
            "how many are there?",
            "show those that have at least four wines."
        ],
        "interaction_query": [
            "SELECT distinct Winery FROM WINE",
            "SELECT count(distinct Winery) FROM WINE",
            "SELECT Winery FROM WINE GROUP BY Winery HAVING count(*)  >=  4"
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation GROUP BY T2.Appelation HAVING count(*)  <=  3",
        "final_utterance": "Find the country of all appelations who have at most three wines.",
        "interaction_utterance": [
            "find the appellations that have more three wines.",
            "how about those that have at most three?",
            "find the countries of these appellations."
        ],
        "interaction_query": [
            "SELECT Appelation FROM WINE GROUP BY Appelation HAVING count(*) > 3",
            "SELECT Appelation FROM WINE GROUP BY Appelation HAVING count(*) <= 3",
            "SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation GROUP BY T2.Appelation HAVING count(*)  <=  3"
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT Name FROM WINE WHERE YEAR  <  (SELECT min(YEAR) FROM WINE WHERE Winery  =  \"Brander\")",
        "final_utterance": "What are the names of wines whose production year are before the year of all wines by Brander winery?",
        "interaction_utterance": [
            "show the name and year of all wines by Brander winery.",
            "which one was made the earliest?",
            "What are the names of all wines that were produced before this year?"
        ],
        "interaction_query": [
            "SELECT name, year FROM WINE WHERE Winery  =  \"Brander\"",
            "SELECT name, year FROM WINE WHERE Winery  =  \"Brander\" ORDER BY year LIMIT 1",
            "SELECT Name FROM WINE WHERE YEAR  <  (SELECT min(YEAR) FROM WINE WHERE Winery  =  \"Brander\")"
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT Name FROM WINE WHERE Price  >  (SELECT max(Price) FROM WINE WHERE YEAR  =  2006)",
        "final_utterance": "What are the names of wines that are more expensive than all wines made in the year 2006?",
        "interaction_utterance": [
            "what are the names of wines made during the year 2006?",
            "which one is the most expensive?",
            "what is the price?",
            "What are the names of wines that are more expensive than that?"
        ],
        "interaction_query": [
            "SELECT name FROM WINE WHERE YEAR  =  2006",
            "SELECT name FROM WINE WHERE YEAR  =  2006 ORDER BY price DESC LIMIT 1",
            "SELECT max(Price) FROM WINE WHERE YEAR  =  2006",
            "SELECT Name FROM WINE WHERE Price  >  (SELECT max(Price) FROM WINE WHERE YEAR  =  2006)"
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE  =  T2.GRAPE WHERE T1.Color  =  \"White\" GROUP BY T2.Winery ORDER BY count(*) DESC LIMIT 3",
        "final_utterance": "Find the top 3 wineries with the greatest number of wines made of white color grapes.",
        "interaction_utterance": [
            "how many wines are made of white colored grapes?",
            "which winery produced the greatest number of these wines?",
            "how the top 3 wineries?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE  =  T2.GRAPE WHERE T1.Color  =  \"White\"",
            "SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE  =  T2.GRAPE WHERE T1.Color  =  \"White\" GROUP BY T2.Winery ORDER BY count(*) DESC LIMIT 1",
            "SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE  =  T2.GRAPE WHERE T1.Color  =  \"White\" GROUP BY T2.Winery ORDER BY count(*) DESC LIMIT 3"
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT Grape ,  Winery ,  YEAR FROM WINE WHERE Price  >   100 ORDER BY YEAR",
        "final_utterance": "List the grape, winery and year of the wines whose price is bigger than 100 ordered by year.",
        "interaction_utterance": [
            "how many wines cost more than 100?",
            "List the grape, winery and year of these wines.",
            "order them by their produce year."
        ],
        "interaction_query": [
            "SELECT count(*) FROM WINE WHERE Price  >   100",
            "SELECT Grape ,  Winery ,  YEAR FROM WINE WHERE Price  >   100",
            "SELECT Grape ,  Winery ,  YEAR FROM WINE WHERE Price  >   100 ORDER BY YEAR"
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT Grape ,  Appelation ,  Name FROM WINE WHERE Score  >  93 ORDER BY Name",
        "final_utterance": "List the grape, appelation and name of wines whose score is higher than 93 ordered by Name.",
        "interaction_utterance": [
            "list all info for wines ordered by their names.",
            "only show those whose score is higher than 93.",
            "show their name only.",
            "also give me their grapes and appellations."
        ],
        "interaction_query": [
            "SELECT * FROM WINE ORDER BY Name",
            "SELECT * FROM WINE WHERE Score  >  93 ORDER BY Name",
            "SELECT name FROM WINE WHERE Score  >  93 ORDER BY Name",
            "SELECT Grape ,  Appelation ,  Name FROM WINE WHERE Score  >  93 ORDER BY Name"
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT Appelation FROM WINE WHERE YEAR  >  2008 EXCEPT SELECT Appelation FROM APPELLATIONS WHERE Area  =  \"Central Coast\"",
        "final_utterance": "Find the appelations that produce wines after the year of 2008 but not in Central Coast area.",
        "interaction_utterance": [
            "how many wines were made after the year 2008?",
            "what are their appellations?",
            "which of them are not in the Central Coast area?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM WINE WHERE YEAR  >  2008",
            "SELECT Appelation FROM WINE WHERE YEAR  >  2008",
            "SELECT Appelation FROM WINE WHERE YEAR  >  2008 EXCEPT SELECT Appelation FROM APPELLATIONS WHERE Area  =  \"Central Coast\""
        ]
    },
    {
        "db_id": "wine_1",
        "final_query": "SELECT avg(price) FROM wine WHERE Appelation NOT IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  'Sonoma')",
        "final_utterance": "Find the average price of wines that are not produced from Sonoma county.",
        "interaction_utterance": [
            "Find the average price of wines.",
            "how about for the wines with appellations from Sonoma county?",
            "what is the average for wines that are not produced from there?"
        ],
        "interaction_query": [
            "SELECT avg(price) FROM wine",
            "SELECT avg(t2.price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  'Sonoma'",
            "SELECT avg(price) FROM wine WHERE Appelation NOT IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  'Sonoma')"
        ]
    },
    {
        "db_id": "company_office",
        "final_query": "SELECT max(Sales_billion) ,  min(Sales_billion) FROM Companies WHERE Industry != \"Banking\"",
        "final_utterance": "What are the maximum and minimum sales of the companies whose industries are not \"Banking\".",
        "interaction_utterance": [
            "Show me the sales for each company!",
            "Also, include the industry they are in!",
            "Which ones are not in the Banking industry?",
            "What are the minimum and maximum sales?"
        ],
        "interaction_query": [
            "SELECT id, sales_billion FROM Companies",
            "SELECT id, sales_billion, industry FROM Companies",
            "SELECT id, sales_billion, industry FROM Companies WHERE Industry != \"Banking\"",
            "SELECT max(Sales_billion) ,  min(Sales_billion) FROM Companies WHERE Industry != \"Banking\""
        ]
    },
    {
        "db_id": "company_office",
        "final_query": "SELECT Stories FROM buildings ORDER BY Height DESC LIMIT 1",
        "final_utterance": "Find the stories of the building with the largest height.",
        "interaction_utterance": [
            "Show me the heights of each building.",
            "What is the average height?",
            "How about the max height?",
            "How many stories does the building with this height have?"
        ],
        "interaction_query": [
            "SELECT id, height FROM buildings",
            "SELECT avg(height) FROM buildings",
            "SELECT height FROM buildings ORDER BY Height DESC LIMIT 1",
            "SELECT Stories FROM buildings ORDER BY Height DESC LIMIT 1"
        ]
    },
    {
        "db_id": "company_office",
        "final_query": "SELECT T3.name ,  T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id",
        "final_utterance": "List the name of a building along with the name of a company whose office is in the building.",
        "interaction_utterance": [
            "What are names of all the companies?",
            "How many of them have office locations?",
            "Which are they?",
            "Also, provide the names all the office locations for each!"
        ],
        "interaction_query": [
            "SELECT name FROM companies",
            "SELECT count(*) FROM Office_locations AS T1 JOIN Companies AS T2 ON T1.company_id  =  T2.id",
            "SELECT T2.name FROM Office_locations AS T1 JOIN Companies AS T2 ON T1.company_id  =  T2.id",
            "SELECT T3.name ,  T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id"
        ]
    },
    {
        "db_id": "company_office",
        "final_query": "SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id GROUP BY T1.building_id HAVING COUNT(*)  >  1",
        "final_utterance": "Show the names of the buildings that have more than one company offices.",
        "interaction_utterance": [
            "What are the names of all the buildings?",
            "Which ones have at least one company office?",
            "How about at least two?"
        ],
        "interaction_query": [
            "SELECT name FROM buildings",
            "SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id",
            "SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id GROUP BY T1.building_id HAVING COUNT(*)  >  1"
        ]
    },
    {
        "db_id": "company_office",
        "final_query": "SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the name of the building that has the most company offices.",
        "interaction_utterance": [
            "What are the buildings with at least one company office?",
            "How many offices do they each have?",
            "Which one has the most?",
            "What is its name?"
        ],
        "interaction_query": [
            "SELECT * FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id",
            "SELECT T1.building_id, count(*) FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id GROUP BY T1.building_id",
            "SELECT * FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1",
            "SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "company_office",
        "final_query": "SELECT name FROM buildings WHERE Status  =  \"on-hold\" ORDER BY Stories ASC",
        "final_utterance": "Please show the names of the buildings whose status is \"on-hold\", in ascending order of stories.",
        "interaction_utterance": [
            "List the names of the buildings that have a status on-hold.",
            "Also, list their height and number of stories.",
            "Actually just show the names and number of stories for each!",
            "Can you just show the names sorted by number of stories FROM least to greatest?"
        ],
        "interaction_query": [
            "SELECT name FROM buildings WHERE Status  =  \"on-hold\"",
            "SELECT name, height, stories FROM buildings WHERE Status  =  \"on-hold\"",
            "SELECT name, stories FROM buildings WHERE Status  =  \"on-hold\"",
            "SELECT name FROM buildings WHERE Status  =  \"on-hold\" ORDER BY Stories ASC"
        ]
    },
    {
        "db_id": "company_office",
        "final_query": "SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC",
        "final_utterance": "Please show the industries of companies in descending order of the number of companies.",
        "interaction_utterance": [
            "Show each company id and its industry.",
            "Show how many companies are in each industry.",
            "Sort industries by the number of companies in a descending order!",
            "Actually, can you just show the industries!"
        ],
        "interaction_query": [
            "SELECT id, industry FROM companies",
            "SELECT Industry, count(*) FROM Companies GROUP BY Industry",
            "SELECT Industry, count(*) FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC",
            "SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC"
        ]
    },
    {
        "db_id": "company_office",
        "final_query": "SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "List the industry shared by the most companies.",
        "interaction_utterance": [
            "How many different company industries are there?",
            "What are they?",
            "Which one has the least number of companies?",
            "How about the most?"
        ],
        "interaction_query": [
            "SELECT count(distinct industry) FROM companies",
            "SELECT distinct Industry FROM Companies",
            "SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) ASC LIMIT 1",
            "SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "company_office",
        "final_query": "SELECT name FROM buildings WHERE id NOT IN (SELECT building_id FROM Office_locations)",
        "final_utterance": "List the names of buildings that have no company office.",
        "interaction_utterance": [
            "How many buildings are there?",
            "How many have a company office?",
            "What are their building names?",
            "What are the names of the buildings other than those?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM buildings",
            "SELECT count(distinct building_id) FROM Office_locations",
            "SELECT T2.name FROM Office_locations as T1 join buildings as T2 on T1.building_id = T2.id group by T2.id",
            "SELECT name FROM buildings WHERE id NOT IN (SELECT building_id FROM Office_locations)"
        ]
    },
    {
        "db_id": "company_office",
        "final_query": "SELECT Industry FROM Companies WHERE Headquarters  =  \"USA\" INTERSECT SELECT Industry FROM Companies WHERE Headquarters  =  \"China\"",
        "final_utterance": "Show the industries shared by companies whose headquarters are \"USA\" and companies whose headquarters are \"China\".",
        "interaction_utterance": [
            "How many different industries have companies have headquarters in USA?",
            "headquarters in China?",
            "how about both?",
            "Which ones?"
        ],
        "interaction_query": [
            "SELECT count(distinct Industry) FROM companies where Headquarters  =  \"USA\"",
            "SELECT count(distinct Industry) FROM companies where Headquarters  =  \"China\"",
            "SELECT count(*) FROM (SELECT Industry FROM Companies WHERE Headquarters  =  \"USA\" INTERSECT SELECT Industry FROM Companies WHERE Headquarters  =  \"China\")",
            "SELECT Industry FROM Companies WHERE Headquarters  =  \"USA\" INTERSECT SELECT Industry FROM Companies WHERE Headquarters  =  \"China\""
        ]
    },
    {
        "db_id": "company_office",
        "final_query": "SELECT count(*) FROM Companies WHERE Industry  =  \"Banking\" OR Industry  =  \"Conglomerate\"",
        "final_utterance": "Find the number of companies whose industry is \"Banking\" or \"Conglomerate\",",
        "interaction_utterance": [
            "What industry is each company in?",
            "How many companies are in Banking industry?",
            "How about in the industry Conglomerate?",
            "How many in total are in either one?"
        ],
        "interaction_query": [
            "SELECT id, industry FROM companies",
            "SELECT count(*) FROM Companies WHERE Industry  =  \"Banking\"",
            "SELECT count(*) FROM Companies WHERE Industry  =  \"Conglomerate\"",
            "SELECT count(*) FROM Companies WHERE Industry  =  \"Banking\" OR Industry  =  \"Conglomerate\""
        ]
    },
    {
        "db_id": "theme_gallery",
        "final_query": "SELECT count(*) FROM artist",
        "final_utterance": "How many artists do we have?",
        "interaction_utterance": [
            "Show all info about artists.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM artist",
            "SELECT count(*) FROM artist"
        ]
    },
    {
        "db_id": "theme_gallery",
        "final_query": "SELECT name ,  age ,  country FROM artist ORDER BY Year_Join",
        "final_utterance": "Show all artist name, age, and country ordered by the year they joined.",
        "interaction_utterance": [
            "Show all info about artists",
            "Can you just give me their name and age?",
            "Ohh also add their country.",
            "Sort them by the year they joined."
        ],
        "interaction_query": [
            "SELECT * FROM artist",
            "SELECT name ,  age  FROM artist",
            "SELECT name ,  age ,  country FROM artist",
            "SELECT name ,  age ,  country FROM artist ORDER BY Year_Join"
        ]
    },
    {
        "db_id": "theme_gallery",
        "final_query": "SELECT DISTINCT country FROM artist",
        "final_utterance": "What are all distinct country for artists?",
        "interaction_utterance": [
            "Show all artists.",
            "What are their countries?",
            "Just give me distinct ones."
        ],
        "interaction_query": [
            "SELECT * FROM artist",
            "SELECT country FROM artist",
            "SELECT DISTINCT country FROM artist"
        ]
    },
    {
        "db_id": "theme_gallery",
        "final_query": "SELECT name ,  year_join FROM artist WHERE country != 'United States'",
        "final_utterance": "Show all artist names and the year joined who are not from United States.",
        "interaction_utterance": [
            "Show all artists.",
            "What are their names and year they joined?",
            "Oh please just consider those who are not from United States."
        ],
        "interaction_query": [
            "SELECT * FROM artist",
            "SELECT name ,  year_join FROM artist",
            "SELECT name ,  year_join FROM artist WHERE country != 'United States'"
        ]
    },
    {
        "db_id": "theme_gallery",
        "final_query": "SELECT count(*) FROM artist WHERE age  >  46 AND year_join  >  1990",
        "final_utterance": "How many artists are above age 46 and joined after 1990?",
        "interaction_utterance": [
            "Which artists have an age above 46?",
            "Which artists have an age above 46 and joined after 1990?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM artist WHERE age  >  46",
            "SELECT * FROM artist WHERE age  >  46 AND year_join  >  1990",
            "SELECT count(*) FROM artist WHERE age  >  46 AND year_join  >  1990"
        ]
    },
    {
        "db_id": "theme_gallery",
        "final_query": "SELECT avg(age) ,  min(age) FROM artist WHERE country  =  'United States'",
        "final_utterance": "What is the average and minimum age of all artists from United States.",
        "interaction_utterance": [
            "Show all artists.",
            "Just show those from United States.",
            "What is their average age?",
            "Also show their minimum age."
        ],
        "interaction_query": [
            "SELECT * FROM artist",
            "SELECT * FROM artist WHERE country  =  'United States'",
            "SELECT avg(age)  FROM artist WHERE country  =  'United States'",
            "SELECT avg(age) ,  min(age) FROM artist WHERE country  =  'United States'"
        ]
    },
    {
        "db_id": "theme_gallery",
        "final_query": "SELECT name FROM artist ORDER BY year_join DESC LIMIT 1",
        "final_utterance": "What is the name of the artist who joined latest?",
        "interaction_utterance": [
            "What is the year each artist joined?",
            "Can you order artists by the year they joined?",
            "What is the name of the artist who joined latest?"
        ],
        "interaction_query": [
            "SELECT year_join FROM artist",
            "SELECT * FROM artist ORDER BY year_join",
            "SELECT name FROM artist ORDER BY year_join DESC LIMIT 1"
        ]
    },
    {
        "db_id": "theme_gallery",
        "final_query": "SELECT count(*) FROM exhibition WHERE YEAR  >=  2005",
        "final_utterance": "How many exhibition are there in year 2005 or after?",
        "interaction_utterance": [
            "Show all info about exhibition.",
            "Hmm just show those that took place after year 2005.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM exhibition",
            "SELECT * FROM exhibition WHERE YEAR  >=  2005",
            "SELECT count(*) FROM exhibition WHERE YEAR  >=  2005"
        ]
    },
    {
        "db_id": "theme_gallery",
        "final_query": "SELECT theme ,  YEAR FROM exhibition WHERE ticket_price  <  15",
        "final_utterance": "Show theme and year for all exhibitions with ticket prices lower than 15.",
        "interaction_utterance": [
            "Show all info about exhibition.",
            "What are their themes and years?",
            "Which themes and years had ticket prices lower than 15?"
        ],
        "interaction_query": [
            "SELECT * FROM exhibition",
            "SELECT theme ,  YEAR FROM exhibition",
            "SELECT theme ,  YEAR FROM exhibition WHERE ticket_price  <  15"
        ]
    },
    {
        "db_id": "theme_gallery",
        "final_query": "SELECT T2.name ,  count(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id GROUP BY T1.artist_id",
        "final_utterance": "Show all artist names and the number of exhibitions for each artist.",
        "interaction_utterance": [
            "Show all artist names.",
            "Show all exhibitions.",
            "Count exhibitions for each artist.",
            "Show all artist names and the number of exhibitions for each artist."
        ],
        "interaction_query": [
            "SELECT name from artist",
            "SELECT * FROM exhibition",
            "SELECT count(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id GROUP BY T1.artist_id",
            "SELECT T2.name ,  count(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id GROUP BY T1.artist_id"
        ]
    },
    {
        "db_id": "theme_gallery",
        "final_query": "SELECT T2.name , T2.country FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id GROUP BY T1.artist_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the name and country for the artist with most number of exhibitions?",
        "interaction_utterance": [
            "Count exhibitions for each artist.",
            "Which artist has the most exhibitions?",
            "Give me his or her name and country."
        ],
        "interaction_query": [
            "SELECT count(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id GROUP BY T1.artist_id",
            "SELECT * FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id GROUP BY T1.artist_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT T2.name , T2.country FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id GROUP BY T1.artist_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "theme_gallery",
        "final_query": "SELECT name FROM artist WHERE artist_id NOT IN (SELECT artist_id FROM exhibition)",
        "final_utterance": "Show names for artists without any exhibition.",
        "interaction_utterance": [
            "Show all artist ids involved in an exhibition.",
            "Which artists did not have any exhibition?",
            "What are their names?"
        ],
        "interaction_query": [
            "SELECT artist_id FROM exhibition",
            "SELECT * FROM artist WHERE artist_id NOT IN (SELECT artist_id FROM exhibition)",
            "SELECT name FROM artist WHERE artist_id NOT IN (SELECT artist_id FROM exhibition)"
        ]
    },
    {
        "db_id": "theme_gallery",
        "final_query": "SELECT T1.theme ,  T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id WHERE T1.ticket_price  >  (SELECT avg(ticket_price) FROM exhibition)",
        "final_utterance": "What is the theme and artist name for the exhibition with a ticket price higher than the average?",
        "interaction_utterance": [
            "Show all exhibitions.",
            "What is the average ticket price?",
            "Which exhibitions have a ticket price higher than the average?",
            "What are the themes and artist names for the exhibitions with a ticket price higher than the average?"
        ],
        "interaction_query": [
            "SELECT * FROM exhibition",
            "SELECT avg(ticket_price) FROM exhibition",
            "SELECT * FROM exhibition WHERE ticket_price  >  (SELECT avg(ticket_price) FROM exhibition)",
            "SELECT T1.theme ,  T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id WHERE T1.ticket_price  >  (SELECT avg(ticket_price) FROM exhibition)"
        ]
    },
    {
        "db_id": "theme_gallery",
        "final_query": "SELECT avg(ticket_price) ,  min(ticket_price) ,  max(ticket_price) FROM exhibition WHERE YEAR  <  2009",
        "final_utterance": "Show the average, minimum, and maximum ticket prices for exhibitions for all years before 2009.",
        "interaction_utterance": [
            "Show all info about exhibitions.",
            "Which exhibitions were before year 2009?",
            "What are their average ticket prices?",
            "Can you also show their minimum, and maximum ticket prices?"
        ],
        "interaction_query": [
            "SELECT * FROM exhibition",
            "SELECT * FROM exhibition WHERE YEAR  <  2009",
            "SELECT avg(ticket_price) FROM exhibition WHERE YEAR  <  2009",
            "SELECT avg(ticket_price) ,  min(ticket_price) ,  max(ticket_price) FROM exhibition WHERE YEAR  <  2009"
        ]
    },
    {
        "db_id": "theme_gallery",
        "final_query": "SELECT theme ,  YEAR FROM exhibition ORDER BY ticket_price DESC",
        "final_utterance": "Show theme and year for all exhibitions in a descending order of ticket price.",
        "interaction_utterance": [
            "What is the ticket price of each exhibition?",
            "Sort exhibitions in a descending order of ticket price.",
            "Can you show the theme and year of exhibitions?"
        ],
        "interaction_query": [
            "SELECT ticket_price FROM exhibition",
            "SELECT * FROM exhibition ORDER BY ticket_price DESC",
            "SELECT theme ,  YEAR FROM exhibition ORDER BY ticket_price DESC"
        ]
    },
    {
        "db_id": "theme_gallery",
        "final_query": "SELECT T2.theme ,  T1.date ,  T1.attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T2.year  =  2004",
        "final_utterance": "What is the theme, date, and attendance for the exhibition in year 2004?",
        "interaction_utterance": [
            "Which exhibitions were held in year 2004?",
            "What were the themes for each?",
            "Can you also the dates, and attendances?"
        ],
        "interaction_query": [
            "SELECT * FROM exhibition WHERE year  =  2004",
            "SELECT theme FROM exhibition WHERE year  =  2004",
            "SELECT T2.theme ,  T1.date ,  T1.attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T2.year  =  2004"
        ]
    },
    {
        "db_id": "theme_gallery",
        "final_query": "SELECT name FROM artist EXCEPT SELECT T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id WHERE T1.year  =  2004",
        "final_utterance": "Show all artist names who didn't have an exhibition in 2004.",
        "interaction_utterance": [
            "Show all exhibitions in 2004.",
            "Show all artists.",
            "Show all the names of the artists who didn't have an exhibition in 2004."
        ],
        "interaction_query": [
            "select * from exhibition where year  =  2004",
            "SELECT name FROM artist",
            "SELECT name FROM artist EXCEPT SELECT T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id WHERE T1.year  =  2004"
        ]
    },
    {
        "db_id": "theme_gallery",
        "final_query": "SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  <  100 INTERSECT SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  >  500",
        "final_utterance": "Show the theme for exhibitions with both records of an attendance below 100 and above 500.",
        "interaction_utterance": [
            "Show the theme of each exhibition.",
            "How about of each exhibition with an attendance below 100?",
            "How about of each exhibition with an attendance below 100 or above 500?"
        ],
        "interaction_query": [
            "SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id",
            "SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  <  100",
            "SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  <  100 INTERSECT SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  >  500"
        ]
    },
    {
        "db_id": "theme_gallery",
        "final_query": "SELECT count(*) FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  >  100 OR T2.ticket_price  <  10",
        "final_utterance": "How many exhibitions have a attendance more than 100 or have a ticket price below 10?",
        "interaction_utterance": [
            "Which exhibition has an attendance more than 100?",
            "How about those with an attendance of more than 100 or a ticket price below 10?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  >  100",
            "SELECT * FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  >  100 OR T2.ticket_price  <  10",
            "SELECT count(*) FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  >  100 OR T2.ticket_price  <  10"
        ]
    },
    {
        "db_id": "county_public_safety",
        "final_query": "SELECT min(Crime_rate) ,  max(Crime_rate) FROM county_public_safety",
        "final_utterance": "What are the minimum and maximum crime rate of counties?",
        "interaction_utterance": [
            "How many counties are there?",
            "What is the average crime rate of counties?",
            "How about the minimum and maximum?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM county_public_safety",
            "SELECT avg(Crime_rate) FROM county_public_safety",
            "SELECT min(Crime_rate) ,  max(Crime_rate) FROM county_public_safety"
        ]
    },
    {
        "db_id": "county_public_safety",
        "final_query": "SELECT Name FROM county_public_safety ORDER BY Population DESC LIMIT 1",
        "final_utterance": "List the name of the county with the largest population.",
        "interaction_utterance": [
            "What is the average population?",
            "What is the maximum population?",
            "What is the name of its county?"
        ],
        "interaction_query": [
            "SELECT AVG(Population) FROM county_public_safety",
            "SELECT Population FROM county_public_safety ORDER BY Population DESC LIMIT 1",
            "SELECT Name FROM county_public_safety ORDER BY Population DESC LIMIT 1"
        ]
    },
    {
        "db_id": "county_public_safety",
        "final_query": "SELECT Name FROM city ORDER BY White DESC LIMIT 5",
        "final_utterance": "List the names of the city with the top 5 white percentages.",
        "interaction_utterance": [
            "What is the minimum white percentage of the counties?",
            "How about the largest 5 white percentages?",
            "List the names of their cities."
        ],
        "interaction_query": [
            "SELECT White FROM city ORDER BY White ASC LIMIT 1",
            "SELECT White FROM city ORDER BY White DESC LIMIT 5",
            "SELECT Name FROM city ORDER BY White DESC LIMIT 5"
        ]
    },
    {
        "db_id": "county_public_safety",
        "final_query": "SELECT name FROM city WHERE county_ID  =  (SELECT county_ID FROM county_public_safety ORDER BY Police_officers DESC LIMIT 1)",
        "final_utterance": "Show the name of cities in the county that has the largest number of police officers.",
        "interaction_utterance": [
            "What is the average number of police officers of all counties?",
            "Which county has largest number of police officers? Show its county_ID.",
            "Which cities are located in this county?"
        ],
        "interaction_query": [
            "SELECT AVG(Police_officers) FROM county_public_safety",
            "SELECT county_ID FROM county_public_safety ORDER BY Police_officers DESC LIMIT 1",
            "SELECT name FROM city WHERE county_ID  =  (SELECT county_ID FROM county_public_safety ORDER BY Police_officers DESC LIMIT 1)"
        ]
    },
    {
        "db_id": "county_public_safety",
        "final_query": "SELECT count(*) FROM city WHERE county_ID IN (SELECT county_ID FROM county_public_safety WHERE population  >  20000)",
        "final_utterance": "Show the number of cities in counties that have a population more than 20000.",
        "interaction_utterance": [
            "What is the average population of all counties?",
            "How many counties have a population more than 20000?",
            "How many cities are located in these counties?"
        ],
        "interaction_query": [
            "SELECT AVG(population) FROM county_public_safety",
            "SELECT COUNT(*) FROM county_public_safety WHERE population  >  20000",
            "SELECT count(*) FROM city WHERE county_ID IN (SELECT county_ID FROM county_public_safety WHERE population  >  20000)"
        ]
    },
    {
        "db_id": "county_public_safety",
        "final_query": "SELECT T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID  =  T2.County_ID WHERE T1.White  >  90",
        "final_utterance": "Show the crime rate of counties with a city having white percentage more than 90.",
        "interaction_utterance": [
            "What is the laargest white percentage among all cities?",
            "How many cities have a white percentage of more than 90?",
            "What is the id of the county this city is located in?",
            "What is this county's crime rate?"
        ],
        "interaction_query": [
            "SELECT max(White) FROM city",
            "SELECT COUNT(*) FROM city WHERE White  >  90",
            "SELECT County_ID FROM city WHERE White  >  90",
            "SELECT T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID  =  T2.County_ID WHERE T1.White  >  90"
        ]
    },
    {
        "db_id": "county_public_safety",
        "final_query": "SELECT LOCATION FROM county_public_safety GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "What is the location shared by most counties?",
        "interaction_utterance": [
            "How many different locations are there?",
            "What is the location shared by the fewest counties?",
            "How about the one shared by most counties?"
        ],
        "interaction_query": [
            "SELECT COUNT(DISTINCT LOCATION) FROM county_public_safety",
            "SELECT LOCATION FROM county_public_safety GROUP BY LOCATION ORDER BY COUNT(*) ASC LIMIT 1",
            "SELECT LOCATION FROM county_public_safety GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "county_public_safety",
        "final_query": "SELECT Name FROM county_public_safety WHERE County_ID NOT IN (SELECT County_ID FROM city)",
        "final_utterance": "List the names of counties that do not have any cities.",
        "interaction_utterance": [
            "How many cities does each county have?",
            "Could you order the results by the number of cities?",
            "Which counties do not have any cities? List their names."
        ],
        "interaction_query": [
            "SELECT County_ID, COUNT(*) FROM city GROUP BY County_ID",
            "SELECT County_ID, COUNT(*) FROM city GROUP BY County_ID ORDER BY COUNT(*) DESC",
            "SELECT Name FROM county_public_safety WHERE County_ID NOT IN (SELECT County_ID FROM city)"
        ]
    },
    {
        "db_id": "county_public_safety",
        "final_query": "SELECT Police_force FROM county_public_safety WHERE LOCATION  =  \"East\" INTERSECT SELECT Police_force FROM county_public_safety WHERE LOCATION  =  \"West\"",
        "final_utterance": "Show the police force shared by counties with location on the east and west.",
        "interaction_utterance": [
            "How many counties with location on the east?",
            "How about the number of counties with location on the west?",
            "Please show the police forces in counties with location on the east.",
            "How about the police forces shared by counties with location on the east and west?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM county_public_safety WHERE LOCATION  =  \"East\"",
            "SELECT COUNT(*) FROM county_public_safety WHERE LOCATION  =  \"West\"",
            "SELECT Police_force FROM county_public_safety WHERE LOCATION  =  \"East\"",
            "SELECT Police_force FROM county_public_safety WHERE LOCATION  =  \"East\" INTERSECT SELECT Police_force FROM county_public_safety WHERE LOCATION  =  \"West\""
        ]
    },
    {
        "db_id": "medicine_enzyme_interaction",
        "final_query": "SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id  =  T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id  =  T3.id WHERE T3.name  =  'Amisulpride' AND T2.interaction_type  =  'inhibitor'",
        "final_utterance": "What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'?",
        "interaction_utterance": [
            "What is the id of the medicine 'Amisulpride'?",
            "What are the enzyme ids that interact as inhibitor with medicine 'Amisulpride'?",
            "What is the name of this enzyme?"
        ],
        "interaction_query": [
            "SELECT id from medicine WHERE name = 'Amisulpride'",
            "SELECT T2.enzyme_id from medicine as T1 JOIN medicine_enzyme_interaction as T2 ON T1.id = T2.medicine_id WHERE T1.name = 'Amisulpride' AND T2.interaction_type = 'inhibitor'",
            "SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id  =  T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id  =  T3.id WHERE T3.name  =  'Amisulpride' AND T2.interaction_type  =  'inhibitor'"
        ]
    },
    {
        "db_id": "medicine_enzyme_interaction",
        "final_query": "SELECT T1.id ,  T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id HAVING count(*)  >=  2",
        "final_utterance": "What are the ids and names of the medicine that can interact with two or more enzymes?",
        "interaction_utterance": [
            "What are the ids of medicines that interact with at least one enzyme?",
            "Give their names, too.",
            "Only show that information for medicines with at least two interactions."
        ],
        "interaction_query": [
            "SELECT DISTINCT medicine_id from medicine_enzyme_interaction",
            "SELECT T1.id ,  T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id",
            "SELECT T1.id ,  T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "medicine_enzyme_interaction",
        "final_query": "SELECT T1.id ,  T1.Name ,  T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id ORDER BY count(*) DESC",
        "final_utterance": "What are the ids, names and FDA approval status of medicines in descending order of the number of enzymes that it can interact with.",
        "interaction_utterance": [
            "Show the id, name, and FDA approval for medicines.",
            "Only ones that have some interaction with an enzyme.",
            "Order that by descending order of number of enzymes the medicine interacts with."
        ],
        "interaction_query": [
            "SELECT id, name, FDA_approved from medicine",
            "SELECT id, name, FDA_approved from medicine WHERE id in (SELECT medicine_id from medicine_enzyme_interaction)",
            "SELECT T1.id ,  T1.Name ,  T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id ORDER BY count(*) DESC"
        ]
    },
    {
        "db_id": "medicine_enzyme_interaction",
        "final_query": "SELECT T1.id ,  T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id  =  T2.enzyme_id WHERE T2.interaction_type  =  'activitor' GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the id and name of the enzyme with most number of medicines that can interact as 'activator'?",
        "interaction_utterance": [
            "What are the ids of enzymes that interact with at least one enzyme?",
            "Give their names, too.",
            "Which of those can interact as an 'activator'?",
            "Which of those interacts as 'activator' with the most number of medicines?"
        ],
        "interaction_query": [
            "SELECT DISTINCT enzyme_id from medicine_enzyme_interaction",
            "SELECT T1.id ,  T1.Name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id  =  T1.id GROUP BY T1.id",
            "SELECT T1.id ,  T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id  =  T2.enzyme_id WHERE T2.interaction_type  =  'activitor' GROUP BY T1.id",
            "SELECT T1.id ,  T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id  =  T2.enzyme_id WHERE T2.interaction_type  =  'activitor' GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "medicine_enzyme_interaction",
        "final_query": "SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id  =  T2.id JOIN enzyme AS T3 ON T1.enzyme_id  =  T3.id WHERE T3.name  =  'ALA synthase' AND T2.name  =  'Aripiprazole'",
        "final_utterance": "What is the interaction type of the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'?",
        "interaction_utterance": [
            "What is the enzyme id of 'ALA synthase'?",
            "How about for the medicine named 'Aripiprazole'?",
            "Show where those two ids index into the interaction table together.",
            "Just give the interaction type for that entry."
        ],
        "interaction_query": [
            "SELECT id from enzyme WHERE name = 'ALA synthase'",
            "SELECT id from medicine WHERE name = 'Aripiprazole'",
            "SELECT * FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id  =  T2.id JOIN enzyme AS T3 ON T1.enzyme_id  =  T3.id WHERE T3.name  =  'ALA synthase' AND T2.name  =  'Aripiprazole'",
            "SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id  =  T2.id JOIN enzyme AS T3 ON T1.enzyme_id  =  T3.id WHERE T3.name  =  'ALA synthase' AND T2.name  =  'Aripiprazole'"
        ]
    },
    {
        "db_id": "medicine_enzyme_interaction",
        "final_query": "SELECT interaction_type ,  count(*) FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the most common interaction type between enzymes and medicine? And how many are there?",
        "interaction_utterance": [
            "Show the interaction types in decreasing order of frequency.",
            "Show the counts, too.",
            "Only show the most frequent."
        ],
        "interaction_query": [
            "SELECT interaction_type FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY count(*) DESC",
            "SELECT interaction_type ,  count(*) FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY count(*) DESC",
            "SELECT interaction_type ,  count(*) FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "medicine_enzyme_interaction",
        "final_query": "SELECT count(*) FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction );",
        "final_utterance": "How many enzymes do not have any interactions?",
        "interaction_utterance": [
            "Which enzyme ids have interactions?",
            "Which ids do not?",
            "Count that."
        ],
        "interaction_query": [
            "SELECT DISTINCT enzyme_id FROM medicine_enzyme_interaction",
            "SELECT id FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction );",
            "SELECT count(*) FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction );"
        ]
    },
    {
        "db_id": "medicine_enzyme_interaction",
        "final_query": "SELECT T1.id ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id HAVING COUNT(*)  >=  3",
        "final_utterance": "What is the id and trade name of the medicines can interact with at least 3 enzymes?",
        "interaction_utterance": [
            "Which medicine ids interact with at least three enzymes?",
            "Also give the trade name for that medicine."
        ],
        "interaction_query": [
            "SELECT medicine_id from medicine_enzyme_interaction GROUP BY medicine_id HAVING count(*) >= 3",
            "SELECT T1.id ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id HAVING COUNT(*)  >=  3"
        ]
    },
    {
        "db_id": "medicine_enzyme_interaction",
        "final_query": "SELECT DISTINCT T1.name ,  T1.location ,  T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id  =  T1.id WHERE T2.interaction_type  =  'inhibitor'",
        "final_utterance": "What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction?",
        "interaction_utterance": [
            "Which enzyme ids have any 'inhibitor' interaction?",
            "For those enzyme, give the name, location and products."
        ],
        "interaction_query": [
            "SELECT DISTINCT enzyme_id from medicine_enzyme_interaction WHERE interaction_type = 'inhibitor'",
            "SELECT DISTINCT T1.name ,  T1.location ,  T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id  =  T1.id WHERE T2.interaction_type  =  'inhibitor'"
        ]
    },
    {
        "db_id": "medicine_enzyme_interaction",
        "final_query": "SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id WHERE interaction_type  =  'inhibitor' INTERSECT SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id WHERE interaction_type  =  'activitor'",
        "final_utterance": "List the medicine name and trade name which can both interact as 'inhibitor' and 'activitor' with enzymes.",
        "interaction_utterance": [
            "Which medicine id can interact both as 'inhibitor' and as 'activitor'?",
            "Give the medicine name and trade name for those."
        ],
        "interaction_query": [
            "SELECT medicine_id from medicine_enzyme_interaction WHERE interaction_type = 'inhibitor' INTERSECT SELECT medicine_id from medicine_enzyme_interaction WHERE interaction_type = 'activitor'",
            "SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id WHERE interaction_type  =  'inhibitor' INTERSECT SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id WHERE interaction_type  =  'activitor'"
        ]
    },
    {
        "db_id": "medicine_enzyme_interaction",
        "final_query": "SELECT name ,  trade_name FROM medicine EXCEPT SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id JOIN enzyme AS T3 ON T3.id  =  T2.enzyme_id WHERE T3.product  =  'Protoporphyrinogen IX'",
        "final_utterance": "Show the medicine names and trade names that cannot interact with the enzyme with product 'Protoporphyrinogen IX'.",
        "interaction_utterance": [
            "Which medicine ids can interact with enzyme with product 'Protoporphyrinogen IX'?",
            "Which ones can not?",
            "Give the name and trade names for those."
        ],
        "interaction_query": [
            "SELECT medicine_id FROM medicine_enzyme_interaction AS T1 JOIN enzyme AS T2 ON T2.id  =  T1.enzyme_id WHERE T2.product  =  'Protoporphyrinogen IX'",
            "SELECT id from medicine WHERE id not in (SELECT medicine_id FROM medicine_enzyme_interaction AS T1 JOIN enzyme AS T2 ON T2.id  =  T1.enzyme_id WHERE T2.product  =  'Protoporphyrinogen IX')",
            "SELECT name ,  trade_name FROM medicine EXCEPT SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id JOIN enzyme AS T3 ON T3.id  =  T2.enzyme_id WHERE T3.product  =  'Protoporphyrinogen IX'"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT first_name FROM actor GROUP BY first_name ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the most popular first name of the actors?",
        "interaction_utterance": [
            "Tell me the films which Nick participated in.",
            "How many are there?",
            "And what is the most popular first name of the actors?"
        ],
        "interaction_query": [
            "SELECT T2.title FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id JOIN actor AS T3 ON T1.actor_id = T3.actor_id WHERE T3.first_name = \"NICK\"",
            "SELECT COUNT(T2.title) FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id JOIN actor AS T3 ON T1.actor_id = T3.actor_id WHERE T3.first_name = \"NICK\"",
            "SELECT first_name FROM actor GROUP BY first_name ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT first_name ,  last_name FROM actor GROUP BY first_name ,  last_name ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the most popular full name of the actors?",
        "interaction_utterance": [
            "Tell the last name of the actor with first name ED.",
            "How about that of the actor with first name GRACE?",
            "tell me the most popular full name of the actors."
        ],
        "interaction_query": [
            "SELECT last_name FROM actor WHERE first_name = \"ED\"",
            "SELECT last_name FROM actor WHERE first_name = \"GRACE\"",
            "SELECT first_name ,  last_name FROM actor GROUP BY first_name ,  last_name ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT district FROM address GROUP BY district HAVING count(*)  >=  2",
        "final_utterance": "Which districts have at least two addresses?",
        "interaction_utterance": [
            "Tell me the city of address \"47 MySakila Drive\".",
            "What is the district of this address?",
            "Which districts have at least two addresses?"
        ],
        "interaction_query": [
            "SELECT T2.city FROM address AS T1 JOIN city AS T2 ON T1.city_id  =  T2.city_id WHERE T1.address = \"47 MySakila Drive\"",
            "SELECT district FROM address WHERE address = \"47 MySakila Drive\"",
            "SELECT district FROM address GROUP BY district HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT T2.city ,  count(*) ,  T1.city_id FROM address AS T1 JOIN city AS T2 ON T1.city_id  =  T2.city_id GROUP BY T1.city_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which city has the most addresses? List the city name, number of addresses, and city id.",
        "interaction_utterance": [
            "What is the district of \"1913 Hanoi Way?\"",
            "Tell me the city of this address.",
            "Which city has the most addresses? List the city name, number of addresses, and city id"
        ],
        "interaction_query": [
            "SELECT district FROM address WHERE address = \"1913 Hanoi Way\"",
            "SELECT T2.city FROM address AS T1 JOIN city AS T2 ON T1.city_id  =  T2.city_id WHERE T1.address = \"1913 Hanoi Way\"",
            "SELECT T2.city ,  count(*) ,  T1.city_id FROM address AS T1 JOIN city AS T2 ON T1.city_id  =  T2.city_id GROUP BY T1.city_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT title ,  film_id FROM film WHERE rental_rate  =  0.99 INTERSECT SELECT T1.title ,  T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id  =  T2.film_id GROUP BY T1.film_id HAVING count(*)  <  3",
        "final_utterance": "Which film is rented at a fee of 0.99 and has less than 3 in the inventory? List the film title and id.",
        "interaction_utterance": [
            "Tell me the actors' first name in the film \"ACE GOLDFINGER\".",
            "What is the rental fee of this film?",
            "Which film is rented at a fee of 0.99 and has less than 3 in the inventory? List the film title and id."
        ],
        "interaction_query": [
            "SELECT T3.first_name FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id JOIN actor AS T3 ON T1.actor_id = T3.actor_id WHERE T2.title = \"ACE GOLDFINGER\"",
            "SELECT rental_rate FROM film WHERE title = \"ACE GOLDFINGER\"",
            "SELECT title ,  film_id FROM film WHERE rental_rate  =  0.99 INTERSECT SELECT T1.title ,  T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id  =  T2.film_id GROUP BY T1.film_id HAVING count(*)  <  3"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT count(*) FROM city AS T1 JOIN country AS T2 ON T1.country_id  =  T2.country_id WHERE T2.country  =  'Australia'",
        "final_utterance": "How many cities are there in Australia?",
        "interaction_utterance": [
            "Tell me the city of address \"1913 Hanoi Way\".",
            "What is the country of this address?",
            "And how many cities are there in Australia?"
        ],
        "interaction_query": [
            "SELECT T2.city FROM address AS T1 JOIN city AS T2 ON T1.city_id  =  T2.city_id WHERE T1.address = \"1913 Hanoi Way\"",
            "SELECT T3.country FROM address AS T1 JOIN city AS T2 ON T1.city_id  =  T2.city_id JOIN country AS T3 ON T2.country_id  =  T3.country_id WHERE T1.address = \"1913 Hanoi Way\"",
            "SELECT count(*) FROM city AS T1 JOIN country AS T2 ON T1.country_id  =  T2.country_id WHERE T2.country  =  'Australia'"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT T2.country FROM city AS T1 JOIN country AS T2 ON T1.country_id  =  T2.country_id GROUP BY T2.country_id HAVING count(*)  >=  3",
        "final_utterance": "Which countries have at least 3 cities?",
        "interaction_utterance": [
            "Tell me the phones in the city \"Acua\".",
            "How about that of the the city \"Bag\"?",
            "Which countries have at least 3 cities?"
        ],
        "interaction_query": [
            "SELECT T1.phone FROM address AS T1 JOIN city AS T2 ON T1.city_id  =  T2.city_id WHERE T2.city = \"Acua\"",
            "SELECT T1.phone FROM address AS T1 JOIN city AS T2 ON T1.city_id  =  T2.city_id WHERE T2.city = \"Bag\"",
            "SELECT T2.country FROM city AS T1 JOIN country AS T2 ON T1.country_id  =  T2.country_id GROUP BY T2.country_id HAVING count(*)  >=  3"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT payment_date FROM payment WHERE amount  >  10 UNION SELECT T1.payment_date FROM payment AS T1 JOIN staff AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.first_name  =  'Elsa'",
        "final_utterance": "Find all the payment dates for the payments with an amount larger than 10 and the payments handled by a staff person with the first name Elsa.",
        "interaction_utterance": [
            "Tell me the payment amount for the payment id 4.",
            "How about its date?",
            "Tell me all the payment dates for the payments with an amount larger than 10 and the payments handled by a staff person with the first name Elsa."
        ],
        "interaction_query": [
            "SELECT amount FROM payment WHERE payment_id = 4",
            "SELECT payment_date FROM payment WHERE payment_id = 4",
            "SELECT payment_date FROM payment WHERE amount  >  10 UNION SELECT T1.payment_date FROM payment AS T1 JOIN staff AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.first_name  =  'Elsa'"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT title ,  rental_rate FROM film ORDER BY rental_rate DESC LIMIT 1",
        "final_utterance": "Which film has the highest rental rate? And what is the rate?",
        "interaction_utterance": [
            "Tell me the category of the film \"ADAPTATION HOLES\".",
            "How about the rental rate of this film?",
            "tell me which film has the highest rental rate? What is that rate?"
        ],
        "interaction_query": [
            "SELECT T2.title FROM film_category AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id JOIN category AS T3 on T1.category_id = T3.category_id WHERE T2.title = \"ADAPTATION HOLES\"",
            "SELECT rental_rate FROM film WHERE title = \"ADAPTATION HOLES\"",
            "SELECT title ,  rental_rate FROM film ORDER BY rental_rate DESC LIMIT 1"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT T2.title ,  T2.film_id ,  T2.description FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id GROUP BY T2.film_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which film has the most number of actors or actresses? List the film name, film id and description.",
        "interaction_utterance": [
            "Tell me the films which BETTE participated in.",
            "How about the films which JOE starred in?",
            "Which film has the most number of actors or actresses? List the film name, film id and description."
        ],
        "interaction_query": [
            "SELECT T2.title FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id JOIN actor AS T3 ON T1.actor_id = T3.actor_id WHERE T3.first_name = \"BETTE\"",
            "SELECT T2.title FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id JOIN actor AS T3 ON T1.actor_id = T3.actor_id WHERE T3.first_name = \"JOE\"",
            "SELECT T2.title ,  T2.film_id ,  T2.description FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id GROUP BY T2.film_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT T2.first_name ,  T2.last_name ,  T2.actor_id FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id  =  T2.actor_id GROUP BY T2.actor_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which film actor (actress) starred the most films? List his or her first name, last name and actor id.",
        "interaction_utterance": [
            "Tell me the description of the film titled \"AIRPORT POLLOCK\".",
            "Who are the actors in this film? Give the first and last name.",
            "And which film actor (actress) starred in the most films? List his or her first name, last name and actor id."
        ],
        "interaction_query": [
            "SELECT description FROM film WHERE title = \"AIRPORT POLLOCK\"",
            "SELECT T3.first_name, T3.last_name FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id JOIN actor AS T3 ON T1.actor_id = T3.actor_id WHERE T2.title = \"ACE GOLDFINGER\"",
            "SELECT T2.first_name ,  T2.last_name ,  T2.actor_id FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id  =  T2.actor_id GROUP BY T2.actor_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT T2.first_name ,  T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id  =  T2.actor_id GROUP BY T2.actor_id HAVING count(*)  >  30",
        "final_utterance": "Which film actors (actresses) played a role in more than 30 films? List his or her first name and last name.",
        "interaction_utterance": [
            "Tell me the release year of the film titled \"ALI FOREVER\".",
            "tell me the last name of the actors in it.",
            "Tell me which film actors (actresses) played a role in more than 30 films? List his or her first name and last name."
        ],
        "interaction_query": [
            "SELECT release_year FROM film WHERE title = \"ALI FOREVER\"",
            "SELECT T3.first_name, T3.last_name FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id JOIN actor AS T3 ON T1.actor_id = T3.actor_id WHERE T2.title = \"ALI FOREVER\"",
            "SELECT T2.first_name ,  T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id  =  T2.actor_id GROUP BY T2.actor_id HAVING count(*)  >  30"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT store_id FROM inventory GROUP BY store_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which store owns most items?",
        "interaction_utterance": [
            "Tell me the number of items in the inventory for the film titled \"ALI FOREVER\".",
            "Which film has the most items?",
            "Which store owns most items?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM inventory AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id WHERE T2.title = \"ALI FOREVER\"",
            "SELECT title FROM inventory AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT store_id FROM inventory GROUP BY store_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT T1.first_name ,  T1.last_name ,  T1.customer_id FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY sum(amount) ASC LIMIT 1",
        "final_utterance": "Which customer, who has made at least one payment, has spent the least money? List his or her first name, last name, and the id.",
        "interaction_utterance": [
            "Tell me the email of customer with first name PATRICIA.",
            "Tell me all the information about the payments they made.",
            "tell me which customer, who has made at least one payment, has spent the least money. List his or her first name, last name, and the id."
        ],
        "interaction_query": [
            "SELECT email FROM customer WHERE first_name = \"PATRICIA\"",
            "SELECT * FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id WHERE T1.first_name = \"PATRICIA\"",
            "SELECT T1.first_name ,  T1.last_name ,  T1.customer_id FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY sum(amount) ASC LIMIT 1"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT T1.name FROM category AS T1 JOIN film_category AS T2 ON T1.category_id  =  T2.category_id JOIN film AS T3 ON T2.film_id  =  T3.film_id WHERE T3.title  =  'HUNGER ROOF'",
        "final_utterance": "What is the genre name of the film HUNGER ROOF?",
        "interaction_utterance": [
            "What are the actors in the film titled ALONE TRIP?",
            "How about that of the film titled HUNGER ROOF?",
            "What's the genre name of this film?"
        ],
        "interaction_query": [
            "SELECT T3.first_name, T3.last_name FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id JOIN actor AS T3 ON T1.actor_id = T3.actor_id WHERE T2.title = \"ALONE TRIP\"",
            "SELECT T3.first_name, T3.last_name FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id JOIN actor AS T3 ON T1.actor_id = T3.actor_id WHERE T2.title = \"HUNGER ROOF\"",
            "SELECT T1.name FROM category AS T1 JOIN film_category AS T2 ON T1.category_id  =  T2.category_id JOIN film AS T3 ON T2.film_id  =  T3.film_id WHERE T3.title  =  'HUNGER ROOF'"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT T2.name ,  T1.category_id ,  count(*) FROM film_category AS T1 JOIN category AS T2 ON T1.category_id  =  T2.category_id GROUP BY T1.category_id",
        "final_utterance": "How many films are there in each category? List the genre name, genre id and the count.",
        "interaction_utterance": [
            "Tell me about the special features of the film titled ACADEMY DINOSAUR.",
            "What is its category?",
            "How many films are there in each category?"
        ],
        "interaction_query": [
            "SELECT special_features FROM film WHERE title = \"ACADEMY DINOSAUR\"",
            "SELECT T1.name FROM category AS T1 JOIN film_category AS T2 ON T1.category_id  =  T2.category_id JOIN film AS T3 ON T2.film_id  =  T3.film_id WHERE T3.title  =  'ACADEMY DINOSAUR'",
            "SELECT T2.name ,  T1.category_id ,  count(*) FROM film_category AS T1 JOIN category AS T2 ON T1.category_id  =  T2.category_id GROUP BY T1.category_id"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT T1.title ,  T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id  =  T2.film_id GROUP BY T1.film_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which film has the most copies in the inventory? List both title and id.",
        "interaction_utterance": [
            "Tell me the rating of the film titled AGENT TRUMAN.",
            "Tell me the number of its copies in the inventory.",
            "And which film has the most copies in the inventory? Tell me both title and id."
        ],
        "interaction_query": [
            "SELECT rating FROM film WHERE title = \"AGENT TRUMAN\"",
            "SELECT COUNT(*) FROM film AS T1 JOIN inventory AS T2 ON T1.film_id  =  T2.film_id WHERE T1.title = \"AGENT TRUMAN\"",
            "SELECT T1.title ,  T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id  =  T2.film_id GROUP BY T1.film_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT T1.title ,  T2.inventory_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id  =  T2.film_id JOIN rental AS T3 ON T2.inventory_id  =  T3.inventory_id GROUP BY T2.inventory_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the film title and inventory id of the item in the inventory which was rented most frequently?",
        "interaction_utterance": [
            "What is the rental rate of film titled ALAMO VIDEOTAPE?",
            "How about the number of times it was rented.",
            "What is the film title and inventory id of the item in the inventory which was rented most frequently?"
        ],
        "interaction_query": [
            "SELECT rental_rate FROM film WHERE title = \"ALAMO VIDEOTAPE\"",
            "SELECT COUNT(*) FROM film AS T1 JOIN inventory AS T2 ON T1.film_id  =  T2.film_id JOIN rental AS T3 ON T2.inventory_id  =  T3.inventory_id GROUP BY T2.inventory_id WHERE T1.title = \"ALAMO VIDEOTAPE\"",
            "SELECT T1.title ,  T2.inventory_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id  =  T2.film_id JOIN rental AS T3 ON T2.inventory_id  =  T3.inventory_id GROUP BY T2.inventory_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT T2.address FROM store AS T1 JOIN address AS T2 ON T1.address_id  =  T2.address_id WHERE store_id  =  1",
        "final_utterance": "Where is store 1 located?",
        "interaction_utterance": [
            "Tell me the number of items in store 2.",
            "Tell me that of store 1.",
            "And where is store 1 located?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM inventory WHERE store_id = 2",
            "SELECT COUNT(*) FROM inventory WHERE store_id = 1",
            "SELECT T2.address FROM store AS T1 JOIN address AS T2 ON T1.address_id  =  T2.address_id WHERE store_id  =  1"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT T1.first_name ,  T1.last_name ,  T1.staff_id FROM staff AS T1 JOIN payment AS T2 ON T1.staff_id  =  T2.staff_id GROUP BY T1.staff_id ORDER BY count(*) ASC LIMIT 1",
        "final_utterance": "Which staff handled least number of payments? List the full name and the id.",
        "interaction_utterance": [
            "Tell me the date of payment with id 3.",
            "How about its staff name? Give the first name and last name.",
            "tell me which staff handled the least number of payments? List the full name and the id."
        ],
        "interaction_query": [
            "SELECT payment_date FROM payment WHERE payment_id = 3",
            "SELECT T1.first_name ,  T1.last_name FROM staff AS T1 JOIN payment AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.payment_id = 3",
            "SELECT T1.first_name ,  T1.last_name ,  T1.staff_id FROM staff AS T1 JOIN payment AS T2 ON T1.staff_id  =  T2.staff_id GROUP BY T1.staff_id ORDER BY count(*) ASC LIMIT 1"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT T2.name FROM film AS T1 JOIN LANGUAGE AS T2 ON T1.language_id  =  T2.language_id WHERE T1.title  =  'AIRPORT POLLOCK'",
        "final_utterance": "Which language does the film AIRPORT POLLOCK use? List the language name.",
        "interaction_utterance": [
            "What is the length of the film titled AIRPORT POLLOCK?",
            "How about its rental duration?",
            "And which language does the film AIRPORT POLLOCK use? List the language name."
        ],
        "interaction_query": [
            "SELECT length FROM film WHERE title  =  'AIRPORT POLLOCK'",
            "SELECT rental_duration FROM film WHERE title  =  'AIRPORT POLLOCK'",
            "SELECT T2.name FROM film AS T1 JOIN LANGUAGE AS T2 ON T1.language_id  =  T2.language_id WHERE T1.title  =  'AIRPORT POLLOCK'"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT title FROM film WHERE special_features LIKE '%Deleted Scenes%'",
        "final_utterance": "Which movies have 'Deleted Scenes' as a substring in the special feature?",
        "interaction_utterance": [
            "Tell me the movies in which the actor named ZERO played a role in.",
            "What are the special features of this film?",
            "Which movies have 'Deleted Scenes' as a substring in the special feature?"
        ],
        "interaction_query": [
            "SELECT T2.title FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id JOIN actor AS T3 ON T1.actor_id = T3.actor_id WHERE T3.first_name = \"ZERO\"",
            "SELECT T2.special_features FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id JOIN actor AS T3 ON T1.actor_id = T3.actor_id WHERE T3.first_name = \"ZERO\"",
            "SELECT title FROM film WHERE special_features LIKE '%Deleted Scenes%'"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT payment_date FROM payment ORDER BY payment_date ASC LIMIT 1",
        "final_utterance": "When did the first payment happen?",
        "interaction_utterance": [
            "What are the payments of the customer named LINDA?",
            "What are the dates of these payments?",
            "And when did the first payment happen?"
        ],
        "interaction_query": [
            "SELECT * FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id WHERE T1.first_name = \"LINDA\"",
            "SELECT T2.payment_date FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id WHERE T1.first_name = \"LINDA\"",
            "SELECT payment_date FROM payment ORDER BY payment_date ASC LIMIT 1"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT T2.address ,  T1.email FROM customer AS T1 JOIN address AS T2 ON T2.address_id  =  T1.address_id WHERE T1.first_name  =  'LINDA'",
        "final_utterance": "Where does the customer with the first name Linda live? And what is her email?",
        "interaction_utterance": [
            "How many payments did LINDA make?",
            "Tell me all the information about the largest one.",
            "tell me where she lives, and also her email."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id WHERE T1.first_name = \"LINDA\"",
            "SELECT * FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id WHERE T1.first_name = \"LINDA\" ORDER BY T2.amount DESC LIMIT 1",
            "SELECT T2.address ,  T1.email FROM customer AS T1 JOIN address AS T2 ON T2.address_id  =  T1.address_id WHERE T1.first_name  =  'LINDA'"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT title FROM film WHERE LENGTH  >  100 OR rating  =  'PG' EXCEPT SELECT title FROM film WHERE replacement_cost  >  200",
        "final_utterance": "Find all the films longer than 100 minutes, or rated PG, except those who cost more than 200 for replacement. List the titles.",
        "interaction_utterance": [
            "Tell me the release year of the film titleed ACE GOLDFINGER.",
            "What is the rating of this film?",
            "tell me all the films longer than 100 minutes, or rated PG, except those who cost more than 200 for replacement."
        ],
        "interaction_query": [
            "SELECT release_year FROM film WHERE title = \"ACE GOLDFINGER\"",
            "SELECT rating FROM film WHERE title = \"ACE GOLDFINGER\"",
            "SELECT title FROM film WHERE LENGTH  >  100 OR rating  =  'PG' EXCEPT SELECT title FROM film WHERE replacement_cost  >  200"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT T1.first_name ,  T1.last_name FROM customer AS T1 JOIN rental AS T2 ON T1.customer_id  =  T2.customer_id ORDER BY T2.rental_date ASC LIMIT 1",
        "final_utterance": "What is the first name and the last name of the customer who made the earliest rental?",
        "interaction_utterance": [
            "Tell me the email of the customer named MARIA.",
            "Tell me all the information about her rentals.",
            "What is the first name and the last name of the customer who made the earliest rental?"
        ],
        "interaction_query": [
            "SELECT email FROM customer WHERE first_name = \"MARIA\"",
            "SELECT * FROM customer AS T1 JOIN rental AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.first_name = \"MARIA\"",
            "SELECT T1.first_name ,  T1.last_name FROM customer AS T1 JOIN rental AS T2 ON T1.customer_id  =  T2.customer_id ORDER BY T2.rental_date ASC LIMIT 1"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT DISTINCT T1.first_name ,  T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id  =  T2.staff_id JOIN customer AS T3 ON T2.customer_id  =  T3.customer_id WHERE T3.first_name  =  'APRIL' AND T3.last_name  =  'BURNS'",
        "final_utterance": "What is the full name of the staff member who has rented a film to a customer with the first name April and the last name Burns?",
        "interaction_utterance": [
            "Tell me the customer of rental with id 2.",
            "How about its return date?",
            "What is the full name of the staff member who has rented a film to a customer with the first name April and the last name Burns?"
        ],
        "interaction_query": [
            "SELECT T1.first_name, T1.last_name FROM customer AS T1 JOIN rental AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.rental_id = 2",
            "SELECT return_date FROM rental WHERE rental_id = 2",
            "SELECT DISTINCT T1.first_name ,  T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id  =  T2.staff_id JOIN customer AS T3 ON T2.customer_id  =  T3.customer_id WHERE T3.first_name  =  'APRIL' AND T3.last_name  =  'BURNS'"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT store_id FROM customer GROUP BY store_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which store has most the customers?",
        "interaction_utterance": [
            "Tell me all the information about the stores.",
            "Tell me how many items are in store 3.",
            "Which store has the most customers?"
        ],
        "interaction_query": [
            "SELECT * FROM store",
            "SELECT COUNT(*) FROM inventory WHERE store_id = 3",
            "SELECT store_id FROM customer GROUP BY store_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT amount FROM payment ORDER BY amount DESC LIMIT 1",
        "final_utterance": "What is the largest payment amount?",
        "interaction_utterance": [
            "Tell me all the information about Lisa's payments.",
            "What's the largest one among those? Give the payment amount.",
            "What's the largest one among all the payments?"
        ],
        "interaction_query": [
            "SELECT * FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id WHERE T1.first_name = \"Lisa\"",
            "SELECT T2.amount FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id WHERE T1.first_name = \"Lisa\" ORDER BY T2.amount DESC LIMIT 1",
            "SELECT amount FROM payment ORDER BY amount DESC LIMIT 1"
        ]
    },
    {
        "db_id": "sakila_1",
        "final_query": "SELECT T2.address FROM staff AS T1 JOIN address AS T2 ON T1.address_id  =  T2.address_id WHERE T1.first_name  =  'Elsa'",
        "final_utterance": "Where does the staff member with the first name Elsa live?",
        "interaction_utterance": [
            "Tell me the store in which the staff member with first name \"Elsa\" works.",
            "Tell me her email.",
            "Where does she live?"
        ],
        "interaction_query": [
            "SELECT * FROM staff AS T1 JOIN store AS T2 ON T1.store_id  =  T2.store_id WHERE T1.first_name  =  'Elsa'",
            "SELECT email FROM staff WHERE first_name  =  'Elsa'",
            "SELECT T2.address FROM staff AS T1 JOIN address AS T2 ON T1.address_id  =  T2.address_id WHERE T1.first_name  =  'Elsa'"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT account_id ,  date_account_opened ,  account_name ,  other_account_details FROM Accounts",
        "final_utterance": "Show the id, the date of account opened, the account name, and other account detail for all accounts.",
        "interaction_utterance": [
            "Show the id for all accounts.",
            "Also show the date the account opened and the account name.",
            "Also show account details."
        ],
        "interaction_query": [
            "SELECT account_id  FROM Accounts",
            "SELECT account_id ,  date_account_opened ,  account_name  FROM Accounts",
            "SELECT account_id ,  date_account_opened ,  account_name ,  other_account_details FROM Accounts"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT T1.account_id ,  T1.date_account_opened ,  T1.account_name ,  T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  'Meaghan'",
        "final_utterance": "Show the id, the account name, and other account details for all accounts by the customer with first name 'Meaghan'.",
        "interaction_utterance": [
            "Show the account id for all accounts.",
            "Also show the customer first name for these accounts.",
            "What are the ids for the accounts owned by the customer with first name 'Meaghan'?",
            "Also show the account name, and other account details for these accounts."
        ],
        "interaction_query": [
            "SELECT account_id FROM Accounts",
            "SELECT T1.account_id, T2.customer_first_name  FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id",
            "SELECT T1.account_id  FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  'Meaghan'",
            "SELECT T1.account_id ,  T1.date_account_opened ,  T1.account_name ,  T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  'Meaghan'"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT T1.account_name ,  T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  \"Meaghan\" AND T2.customer_last_name  =  \"Keeling\"",
        "final_utterance": "Show the account name and other account detail for all accounts by the customer with first name Meaghan and last name Keeling.",
        "interaction_utterance": [
            "Show the account name and other account details for all accounts.",
            "How about those accounts by the customer with first name Meaghan and last name Keeling?"
        ],
        "interaction_query": [
            "SELECT account_name ,  other_account_details FROM Accounts",
            "SELECT T1.account_name ,  T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  \"Meaghan\" AND T2.customer_last_name  =  \"Keeling\""
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT T2.customer_first_name ,  T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.account_name  =  \"900\"",
        "final_utterance": "Show the first name and last name for the customer with account name 900.",
        "interaction_utterance": [
            "Show the first name and last name for all customers.",
            "Also show their account names.",
            "Who has the account with name 900?"
        ],
        "interaction_query": [
            "SELECT customer_first_name ,  customer_last_name FROM Customers",
            "SELECT T2.customer_first_name ,  T2.customer_last_name, T1.account_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id",
            "SELECT T2.customer_first_name ,  T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.account_name  =  \"900\""
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT DISTINCT T1.customer_first_name ,  T1.customer_last_name ,  T1.phone_number FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id  =  T2.customer_id",
        "final_utterance": "Show the unique first names, last names, and phone numbers for all customers with any account.",
        "interaction_utterance": [
            "Show the first name, last name, and phone number for all customers.",
            "How about those with an account?",
            "Show their distinct information."
        ],
        "interaction_query": [
            "SELECT customer_first_name ,  customer_last_name ,  phone_number FROM Customers",
            "SELECT T1.customer_first_name ,  T1.customer_last_name ,  T1.phone_number FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id  =  T2.customer_id",
            "SELECT DISTINCT T1.customer_first_name ,  T1.customer_last_name ,  T1.phone_number FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id  =  T2.customer_id"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT customer_id FROM Customers EXCEPT SELECT customer_id FROM Accounts",
        "final_utterance": "Show customer ids who don't have an account.",
        "interaction_utterance": [
            "Show customer ids for all customers.",
            "Show ids for those who have an account.",
            "How about those who don't?"
        ],
        "interaction_query": [
            "SELECT customer_id FROM Customers",
            "SELECT customer_id FROM Accounts",
            "SELECT customer_id FROM Customers EXCEPT SELECT customer_id FROM Accounts"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT count(*) ,  customer_id FROM Accounts GROUP BY customer_id",
        "final_utterance": "How many accounts does each customer have? List the number and customer id.",
        "interaction_utterance": [
            "Show the id for all customers with an account.",
            "How many accounts do each of them have?"
        ],
        "interaction_query": [
            "SELECT customer_id FROM Accounts",
            "SELECT count(*) ,  customer_id FROM Accounts GROUP BY customer_id"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT T1.customer_id ,  T2.customer_first_name ,  T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the customer id, first and last name with most number of accounts.",
        "interaction_utterance": [
            "Show the customer id for all customers with an account.",
            "Also show their first and last name.",
            "Order them by the number of accounts in descending order.",
            "Who has the most?"
        ],
        "interaction_query": [
            "SELECT customer_id FROM Accounts",
            "SELECT T1.customer_id ,  T2.customer_first_name ,  T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id",
            "SELECT T1.customer_id ,  T2.customer_first_name ,  T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC",
            "SELECT T1.customer_id ,  T2.customer_first_name ,  T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT T1.customer_id ,  T2.customer_first_name ,  T2.customer_last_name ,  count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id",
        "final_utterance": "Show id, first name and last name for all customers and the number of accounts.",
        "interaction_utterance": [
            "Show the first name and last name for all customers.",
            "Also show the number of accounts owned by each of them.",
            "Also show their customer ids."
        ],
        "interaction_query": [
            "SELECT customer_first_name ,  customer_last_name from Customers",
            "SELECT T2.customer_first_name ,  T2.customer_last_name ,  count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id",
            "SELECT T1.customer_id ,  T2.customer_first_name ,  T2.customer_last_name ,  count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT T2.customer_first_name ,  T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >=  2",
        "final_utterance": "Show first name and id for all customers with at least 2 accounts.",
        "interaction_utterance": [
            "Show the first name and id for all customers with an accout.",
            "For each of them, also count the number of accounts.",
            "Show the first name and id for those with at least 2 accounts."
        ],
        "interaction_query": [
            "SELECT T2.customer_first_name ,  T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id",
            "SELECT T2.customer_first_name ,  T1.customer_id , count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id",
            "SELECT T2.customer_first_name ,  T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT gender ,  count(*) FROM Customers GROUP BY gender",
        "final_utterance": "Show the number of customers for each gender.",
        "interaction_utterance": [
            "Show the total number of customers.",
            "Break down this number by gender."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Customers",
            "SELECT gender ,  count(*) FROM Customers GROUP BY gender"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT count(*) FROM Financial_transactions",
        "final_utterance": "How many transactions do we have?",
        "interaction_utterance": [
            "Show the information for all financial transactions.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM Financial_transactions",
            "SELECT count(*) FROM Financial_transactions"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT count(*) ,  account_id FROM Financial_transactions",
        "final_utterance": "How many transaction does each account have? Show the number and account id.",
        "interaction_utterance": [
            "Show the id of accounts with a financial transaction.",
            "For each of them, count the number of financial transactions."
        ],
        "interaction_query": [
            "SELECT account_id FROM Financial_transactions",
            "SELECT count(*) ,  account_id FROM Financial_transactions GROUP BY account_id"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT count(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id  =  T2.account_id WHERE T2.account_name  =  \"337\"",
        "final_utterance": "How many transaction does account with name 337 have?",
        "interaction_utterance": [
            "Show the transaction id for each financial transaction.",
            "Also show the account name for each of them.",
            "Limit the results to transactions from accounts with the account name 337.",
            "How many of those are there?"
        ],
        "interaction_query": [
            "select transaction_id FROM Financial_transactions",
            "SELECT T1.transaction_id ,  T2.account_name FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id  =  T2.account_id",
            "SELECT T1.transaction_id ,  T2.account_name FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id  =  T2.account_id WHERE T2.account_name  =  \"337\"",
            "SELECT count(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id  =  T2.account_id WHERE T2.account_name  =  \"337\""
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT avg(transaction_amount) ,  min(transaction_amount) ,  max(transaction_amount) ,   sum(transaction_amount) FROM Financial_transactions",
        "final_utterance": "What is the average, minimum, maximum, and total transaction amount?",
        "interaction_utterance": [
            "Show the transaction amount for each transaction.",
            "What is the average?",
            "Also show the minimum, maximum, and total."
        ],
        "interaction_query": [
            "SELECT transaction_amount FROM Financial_transactions",
            "SELECT avg(transaction_amount) FROM Financial_transactions",
            "SELECT avg(transaction_amount) ,  min(transaction_amount) ,  max(transaction_amount) ,   sum(transaction_amount) FROM Financial_transactions"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT transaction_id FROM Financial_transactions WHERE transaction_amount  >  (SELECT avg(transaction_amount) FROM Financial_transactions)",
        "final_utterance": "Show ids for all transactions whose amounts are greater than the average.",
        "interaction_utterance": [
            "Show ids for all transactions.",
            "What is the average transaction amount?",
            "What are the ids of transactions whose amount is greater than it?"
        ],
        "interaction_query": [
            "SELECT transaction_id FROM Financial_transactions",
            "SELECT avg(transaction_amount) FROM Financial_transactions",
            "SELECT transaction_id FROM Financial_transactions WHERE transaction_amount  >  (SELECT avg(transaction_amount) FROM Financial_transactions)"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT transaction_type ,  sum(transaction_amount) FROM Financial_transactions GROUP BY transaction_type",
        "final_utterance": "Show the transaction types and the total amount of transactions.",
        "interaction_utterance": [
            "Show the transaction type for each transaction.",
            "For each type, what is the total amount of transactions?"
        ],
        "interaction_query": [
            "SELECT transaction_type FROM Financial_transactions",
            "SELECT transaction_type ,  sum(transaction_amount) FROM Financial_transactions GROUP BY transaction_type"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT T2.account_name ,  T1.account_id ,  count(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id  =  T2.account_id GROUP BY T1.account_id",
        "final_utterance": "Show the account name, id and the number of transactions for each account.",
        "interaction_utterance": [
            "Show the account id for each transaction.",
            "Also show the account name for each.",
            "For each account, show the number of transactions."
        ],
        "interaction_query": [
            "SELECT account_id FROM Financial_transactions",
            "SELECT T2.account_name ,  T1.account_id FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id  =  T2.account_id",
            "SELECT T2.account_name ,  T1.account_id ,  count(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id  =  T2.account_id GROUP BY T1.account_id"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT account_id FROM Financial_transactions GROUP BY account_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Show the account id with most number of transactions.",
        "interaction_utterance": [
            "Show the account id for each transaction.",
            "For each of them, show the number of transactions.",
            "Order the ids in descending order of the number of transactions.",
            "Which id has the most?"
        ],
        "interaction_query": [
            "SELECT account_id FROM Financial_transactions",
            "SELECT account_id, count(*) FROM Financial_transactions GROUP BY account_id",
            "SELECT account_id FROM Financial_transactions GROUP BY account_id ORDER BY count(*) DESC",
            "SELECT account_id FROM Financial_transactions GROUP BY account_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT T1.account_id ,  T2.account_name FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id  =  T2.account_id GROUP BY T1.account_id HAVING count(*)  >=  4",
        "final_utterance": "Show the account id and name with at least 4 transactions.",
        "interaction_utterance": [
            "Show the account id and name for each account with a transaction.",
            "Also count the number of transactions for each of them.",
            "Which of them have at least 4 transactions?"
        ],
        "interaction_query": [
            "SELECT T1.account_id ,  T2.account_name FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id  =  T2.account_id",
            "SELECT T1.account_id ,  T2.account_name , count(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id  =  T2.account_id GROUP BY T1.account_id",
            "SELECT T1.account_id ,  T2.account_name FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id  =  T2.account_id GROUP BY T1.account_id HAVING count(*)  >=  4"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT DISTINCT product_size FROM Products",
        "final_utterance": "Show all product sizes.",
        "interaction_utterance": [
            "Show information for all products.",
            "What are their sizes?",
            "Only show distinct sizes."
        ],
        "interaction_query": [
            "SELECT * FROM Products",
            "SELECT product_size FROM Products",
            "SELECT DISTINCT product_size FROM Products"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT DISTINCT product_color FROM Products",
        "final_utterance": "Show all product colors.",
        "interaction_utterance": [
            "Show info for all products.",
            "Show their distinct colors."
        ],
        "interaction_query": [
            "SELECT * FROM Products",
            "SELECT DISTINCT product_color FROM Products"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT invoice_number ,  count(*) FROM Financial_transactions GROUP BY invoice_number",
        "final_utterance": "Show the invoice number and the number of transactions for each invoice.",
        "interaction_utterance": [
            "Show the invoice number for each transaction.",
            "For each of them, show the number of transactions."
        ],
        "interaction_query": [
            "SELECT invoice_number FROM Financial_transactions",
            "SELECT invoice_number ,  count(*) FROM Financial_transactions GROUP BY invoice_number"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT T2.invoice_number ,  T2.invoice_date FROM Financial_transactions AS T1 JOIN Invoices AS T2 ON T1.invoice_number  =  T2.invoice_number GROUP BY T1.invoice_number ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the invoice number and invoice date for the invoice with most number of transactions?",
        "interaction_utterance": [
            "Show the invoice number of each transaction.",
            "Also show the invoice date.",
            "Also show the number of transactions for each of them.",
            "Which one has the most transactions?"
        ],
        "interaction_query": [
            "SELECT invoice_number from Financial_transactions",
            "SELECT T2.invoice_number ,  T2.invoice_date FROM Financial_transactions AS T1 JOIN Invoices AS T2 ON T1.invoice_number  =  T2.invoice_number",
            "SELECT T2.invoice_number ,  T2.invoice_date, count(*) FROM Financial_transactions AS T1 JOIN Invoices AS T2 ON T1.invoice_number  =  T2.invoice_number GROUP BY T1.invoice_number",
            "SELECT T2.invoice_number ,  T2.invoice_date FROM Financial_transactions AS T1 JOIN Invoices AS T2 ON T1.invoice_number  =  T2.invoice_number GROUP BY T1.invoice_number ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT count(*) FROM Invoices",
        "final_utterance": "How many invoices do we have?",
        "interaction_utterance": [
            "Show the information for all invoices.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM Invoices",
            "SELECT count(*) FROM Invoices"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT T1.invoice_date ,  T1.order_id ,  T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id  =  T2.order_id",
        "final_utterance": "Show invoice dates and order id and details for all invoices.",
        "interaction_utterance": [
            "Show the invoice date for all invoices.",
            "Also show their order ids.",
            "Also show their order details."
        ],
        "interaction_query": [
            "SELECT invoice_date from Invoices",
            "SELECT invoice_date ,  order_id FROM Invoices",
            "SELECT T1.invoice_date ,  T1.order_id ,  T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id  =  T2.order_id"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT order_id ,  count(*) FROM Invoices GROUP BY order_id",
        "final_utterance": "Show the order ids and the number of invoices for each order.",
        "interaction_utterance": [
            "Show the order id for each invoice.",
            "What is the number of invoices for each order?"
        ],
        "interaction_query": [
            "SELECT order_id FROM Invoices",
            "SELECT order_id ,  count(*) FROM Invoices GROUP BY order_id"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT T2.order_id ,  T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id  =  T2.order_id GROUP BY T2.order_id HAVING count(*)  >  2",
        "final_utterance": "What is the order id and order details for the order more than two invoices.",
        "interaction_utterance": [
            "Show the order id and order details for all orders.",
            "For each of them, count the number of invoices as well.",
            "Which of them have more than two?"
        ],
        "interaction_query": [
            "SELECT order_id ,  order_details FROM Orders",
            "SELECT T2.order_id ,  T2.order_details, count(*) FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id  =  T2.order_id GROUP BY T2.order_id",
            "SELECT T2.order_id ,  T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id  =  T2.order_id GROUP BY T2.order_id HAVING count(*)  >  2"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT T2.customer_last_name ,  T1.customer_id ,  T2.phone_number FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the customer last name, id and phone number with most number of orders?",
        "interaction_utterance": [
            "Show the last name, id, and phone number for all customers.",
            "For each of them, show the number of orders as well.",
            "Sort them in descending order of the number of orders.",
            "Who has the most?"
        ],
        "interaction_query": [
            "SELECT customer_last_name ,  customer_id ,  phone_number FROM Customers",
            "SELECT T2.customer_last_name ,  T1.customer_id ,  T2.phone_number , count(*) FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id",
            "SELECT T2.customer_last_name ,  T1.customer_id ,  T2.phone_number FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC",
            "SELECT T2.customer_last_name ,  T1.customer_id ,  T2.phone_number FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT product_name FROM Products EXCEPT SELECT T1.product_name FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id  =  T2.product_id",
        "final_utterance": "Show all product names without an order.",
        "interaction_utterance": [
            "Show all product names",
            "Which of them has an order?",
            "Which of them don't?"
        ],
        "interaction_query": [
            "SELECT product_name FROM Products",
            "SELECT T1.product_name FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id  =  T2.product_id",
            "SELECT product_name FROM Products EXCEPT SELECT T1.product_name FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id  =  T2.product_id"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT T2.product_name ,  sum(T1.product_quantity) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id  =  T2.product_id GROUP BY T2.product_name",
        "final_utterance": "Show all product names and the total quantity ordered for each product name.",
        "interaction_utterance": [
            "Show all product names",
            "Also show the quantity ordered for each order of a product.",
            "What is the total quantity ordered for each product name?"
        ],
        "interaction_query": [
            "SELECT product_name FROM Products",
            "SELECT T2.product_name ,  T1.product_quantity FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id  =  T2.product_id",
            "SELECT T2.product_name ,  sum(T1.product_quantity) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id  =  T2.product_id GROUP BY T2.product_name"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT order_id ,  count(*) FROM Order_items GROUP BY order_id",
        "final_utterance": "Show the order ids and the number of items in each order.",
        "interaction_utterance": [
            "Show the order id for each order item.",
            "For each of those ids, how many items were ordered?"
        ],
        "interaction_query": [
            "SELECT order_id FROM Order_items",
            "SELECT order_id ,  count(*) FROM Order_items GROUP BY order_id"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT product_id ,  count(DISTINCT order_id) FROM Order_items GROUP BY product_id",
        "final_utterance": "Show the product ids and the number of unique orders containing each product.",
        "interaction_utterance": [
            "Show the product id for all orders.",
            "Also show the order id.",
            "For each of those product ids, what is the number of unique orders containing each product?"
        ],
        "interaction_query": [
            "SELECT product_id FROM Order_items",
            "SELECT product_id, order_id FROM Order_items",
            "SELECT product_id ,  count(DISTINCT order_id) FROM Order_items GROUP BY product_id"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT T2.product_name ,  count(*) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id  =  T2.product_id JOIN Orders AS T3 ON T3.order_id  =  T1.order_id GROUP BY T2.product_name",
        "final_utterance": "Show all product names and the number of order items on each product.",
        "interaction_utterance": [
            "Show all product names.",
            "For each of them, what is the number of order items on each?"
        ],
        "interaction_query": [
            "SELECT product_name FROM Products",
            "SELECT T2.product_name ,  count(*) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id  =  T2.product_id JOIN Orders AS T3 ON T3.order_id  =  T1.order_id GROUP BY T2.product_name"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT order_id ,  count(DISTINCT product_id) FROM Order_items GROUP BY order_id",
        "final_utterance": "Show order ids and the number of products in each order.",
        "interaction_utterance": [
            "Show the order id for all order items.",
            "Also show the product id.",
            "For each order, show the number of products."
        ],
        "interaction_query": [
            "SELECT order_id FROM Order_items",
            "SELECT order_id,  product_id FROM Order_items",
            "SELECT order_id ,  count(DISTINCT product_id) FROM Order_items GROUP BY order_id"
        ]
    },
    {
        "db_id": "customers_and_invoices",
        "final_query": "SELECT order_id ,  sum(product_quantity) FROM Order_items GROUP BY order_id",
        "final_utterance": "Show order ids and the total quantity in each order.",
        "interaction_utterance": [
            "Show the order id for each order item.",
            "For each of those items, also show the product quantities.",
            "For each order, what is the total quantity?"
        ],
        "interaction_query": [
            "SELECT order_id FROM Order_items",
            "SELECT order_id ,  product_quantity FROM Order_items",
            "SELECT order_id ,  sum(product_quantity) FROM Order_items GROUP BY order_id"
        ]
    },
    {
        "db_id": "department_management",
        "final_query": "SELECT count(*) FROM head WHERE age  >  56",
        "final_utterance": "How many heads of the departments are older than 56 ?",
        "interaction_utterance": [
            "Show all information about department heads.",
            "How many heads of departments are there?",
            "How many heads of department are older than 56?"
        ],
        "interaction_query": [
            "SELECT * FROM head",
            "SELECT count(*) FROM head",
            "SELECT count(*) FROM head WHERE age  >  56"
        ]
    },
    {
        "db_id": "department_management",
        "final_query": "SELECT name ,  born_state ,  age FROM head ORDER BY age",
        "final_utterance": "List the name, born state and age of the heads of departments ordered by age.",
        "interaction_utterance": [
            "Show the names of the heads of departments.",
            "Show the state where each department head was born.",
            "Show the age of the heads of departments.",
            "Please order this information by heads' ages."
        ],
        "interaction_query": [
            "SELECT name FROM head",
            "SELECT born_state FROM head",
            "SELECT age FROM head",
            "SELECT name ,  born_state ,  age FROM head ORDER BY age"
        ]
    },
    {
        "db_id": "department_management",
        "final_query": "SELECT creation ,  name ,  budget_in_billions FROM department",
        "final_utterance": "List the creation year, name and budget of each department.",
        "interaction_utterance": [
            "List the creation year of each department.",
            "List the name of each department.",
            "List the budget of each department.",
            "List the creation year, name and budget of each department."
        ],
        "interaction_query": [
            "SELECT creation FROM department",
            "SELECT name FROM department",
            "SELECT budget_in_billions FROM department",
            "SELECT creation ,  name ,  budget_in_billions FROM department"
        ]
    },
    {
        "db_id": "department_management",
        "final_query": "SELECT max(budget_in_billions) ,  min(budget_in_billions) FROM department",
        "final_utterance": "What are the maximum and minimum budget of the departments?",
        "interaction_utterance": [
            "List the budget of each department.",
            "What are the maximum and minimum budget of the departments?"
        ],
        "interaction_query": [
            "SELECT budget_in_billions FROM department",
            "SELECT max(budget_in_billions) ,  min(budget_in_billions) FROM department"
        ]
    },
    {
        "db_id": "department_management",
        "final_query": "SELECT avg(num_employees) FROM department WHERE ranking BETWEEN 10 AND 15",
        "final_utterance": "What is the average number of employees of the departments whose rank is between 10 and 15?",
        "interaction_utterance": [
            "How many employees does each department have?",
            "What is the number of employees of the departments whose rank is between 10 and 15?",
            "What is the average number of employees of these departments?"
        ],
        "interaction_query": [
            "SELECT num_employees FROM department",
            "SELECT num_employees FROM department WHERE ranking BETWEEN 10 AND 15",
            "SELECT avg(num_employees) FROM department WHERE ranking BETWEEN 10 AND 15"
        ]
    },
    {
        "db_id": "department_management",
        "final_query": "SELECT name FROM head WHERE born_state != 'California'",
        "final_utterance": "What are the names of the heads who are born outside the California state?",
        "interaction_utterance": [
            "Show all the names of the department heads.",
            "Among these department heads, who was born outside California?"
        ],
        "interaction_query": [
            "SELECT name FROM head",
            "SELECT name FROM head WHERE born_state != 'California'"
        ]
    },
    {
        "db_id": "department_management",
        "final_query": "SELECT DISTINCT T1.creation FROM department AS T1 JOIN management AS T2 ON T1.department_id  =  T2.department_id JOIN head AS T3 ON T2.head_id  =  T3.head_id WHERE T3.born_state  =  'Alabama'",
        "final_utterance": "What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'?",
        "interaction_utterance": [
            "What are the creation years of the departments?",
            "Which secretaries were born in Alabama?",
            "What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'?"
        ],
        "interaction_query": [
            "SELECT creation FROM department",
            "SELECT * FROM head WHERE born_state  =  'Alabama'",
            "SELECT DISTINCT T1.creation FROM department AS T1 JOIN management AS T2 ON T1.department_id  =  T2.department_id JOIN head AS T3 ON T2.head_id  =  T3.head_id WHERE T3.born_state  =  'Alabama'"
        ]
    },
    {
        "db_id": "department_management",
        "final_query": "SELECT born_state FROM head GROUP BY born_state HAVING count(*)  >=  3",
        "final_utterance": "What are the names of the states where at least 3 heads were born?",
        "interaction_utterance": [
            "What are the names of the states where department heads were born?",
            "How many heads were born in each state?",
            "What are the names of the states where at least 3 heads were born?"
        ],
        "interaction_query": [
            "SELECT born_state FROM head",
            "SELECT born_state, count(*) FROM head GROUP BY born_state",
            "SELECT born_state FROM head GROUP BY born_state HAVING count(*)  >=  3"
        ]
    },
    {
        "db_id": "department_management",
        "final_query": "SELECT creation FROM department GROUP BY creation ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "In which year were most departments established?",
        "interaction_utterance": [
            "What are the years in which departments were established?",
            "In which year were the most departments established?"
        ],
        "interaction_query": [
            "SELECT creation FROM department GROUP BY creation",
            "SELECT creation FROM department GROUP BY creation ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "department_management",
        "final_query": "SELECT T1.name ,  T1.num_employees FROM department AS T1 JOIN management AS T2 ON T1.department_id  =  T2.department_id WHERE T2.temporary_acting  =  'Yes'",
        "final_utterance": "Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes'?",
        "interaction_utterance": [
            "Show the names and number of employees of each department.",
            "Who are the department heads whose temporary acting value is \"Yes\"?",
            "Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes'."
        ],
        "interaction_query": [
            "SELECT name , num_employees FROM department",
            "SELECT * FROM management WHERE temporary_acting  =  'Yes'",
            "SELECT T1.name ,  T1.num_employees FROM department AS T1 JOIN management AS T2 ON T1.department_id  =  T2.department_id WHERE T2.temporary_acting  =  'Yes'"
        ]
    },
    {
        "db_id": "department_management",
        "final_query": "SELECT count(DISTINCT temporary_acting) FROM management",
        "final_utterance": "How many acting statuses are there?",
        "interaction_utterance": [
            "List the acting statuses.",
            "How many acting statuses are there?"
        ],
        "interaction_query": [
            "SELECT temporary_acting FROM management",
            "SELECT count(DISTINCT temporary_acting) FROM management"
        ]
    },
    {
        "db_id": "department_management",
        "final_query": "SELECT count(*) FROM department WHERE department_id NOT IN (SELECT department_id FROM management);",
        "final_utterance": "How many departments are led by heads who are not mentioned?",
        "interaction_utterance": [
            "How many departments are there?",
            "How many departments are led by heads who are mentioned in the database?",
            "How many departments are led by heads who are not mentioned?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM department",
            "SELECT count(*) FROM department WHERE department_id IN (SELECT department_id FROM management);",
            "SELECT count(*) FROM department WHERE department_id NOT IN (SELECT department_id FROM management);"
        ]
    },
    {
        "db_id": "department_management",
        "final_query": "SELECT DISTINCT T1.age FROM management AS T2 JOIN head AS T1 ON T1.head_id  =  T2.head_id WHERE T2.temporary_acting  =  'Yes'",
        "final_utterance": "What are the distinct ages of the heads who are acting?",
        "interaction_utterance": [
            "What are the dictinct ages of the department heads?",
            "List the ages of the heads who are acting."
        ],
        "interaction_query": [
            "SELECT DISTINCT T1.age FROM management AS T2 JOIN head AS T1 ON T1.head_id  =  T2.head_id",
            "SELECT DISTINCT T1.age FROM management AS T2 JOIN head AS T1 ON T1.head_id  =  T2.head_id WHERE T2.temporary_acting  =  'Yes'"
        ]
    },
    {
        "db_id": "department_management",
        "final_query": "SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id  =  T2.department_id JOIN head AS T3 ON T2.head_id  =  T3.head_id WHERE T1.name  =  'Treasury' INTERSECT SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id  =  T2.department_id JOIN head AS T3 ON T2.head_id  =  T3.head_id WHERE T1.name  =  'Homeland Security'",
        "final_utterance": "List the states where both the secretary of 'Treasury' department and the secretary of 'Homeland Security' were born.",
        "interaction_utterance": [
            "List the states where each secretary was born.",
            "List the information of the secretary of 'Treasury' department and the secretary of 'Homeland Security' department.",
            "List the states where both the secretary of 'Treasury' department and the secretary of 'Homeland Security' were born."
        ],
        "interaction_query": [
            "SELECT DISTINCT born_state FROM head",
            "SELECT T3.name, T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id  =  T2.department_id JOIN head AS T3 ON T2.head_id  =  T3.head_id WHERE T1.name  =  'Treasury' or T1.name  =  'Homeland Security'",
            "SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id  =  T2.department_id JOIN head AS T3 ON T2.head_id  =  T3.head_id WHERE T1.name  =  'Treasury' INTERSECT SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id  =  T2.department_id JOIN head AS T3 ON T2.head_id  =  T3.head_id WHERE T1.name  =  'Homeland Security'"
        ]
    },
    {
        "db_id": "department_management",
        "final_query": "SELECT T1.department_id ,  T1.name ,  count(*) FROM management AS T2 JOIN department AS T1 ON T1.department_id  =  T2.department_id GROUP BY T1.department_id HAVING count(*)  >  1",
        "final_utterance": "Which department has more than 1 head at a time? List the id, name and the number of heads.",
        "interaction_utterance": [
            "How many heads does each department have?",
            "Which department has more than 1 head at a time?",
            "List the id, name and the number of heads of these departments."
        ],
        "interaction_query": [
            "SELECT T1.name ,  count(*) FROM management AS T2 JOIN department AS T1 ON T1.department_id  =  T2.department_id GROUP BY T1.department_id",
            "SELECT T1.department_id ,  T1.name FROM management AS T2 JOIN department AS T1 ON T1.department_id  =  T2.department_id GROUP BY T1.department_id HAVING count(*)  >  1",
            "SELECT T1.department_id ,  T1.name ,  count(*) FROM management AS T2 JOIN department AS T1 ON T1.department_id  =  T2.department_id GROUP BY T1.department_id HAVING count(*)  >  1"
        ]
    },
    {
        "db_id": "city_record",
        "final_query": "SELECT host_city FROM hosting_city ORDER BY YEAR DESC LIMIT 1",
        "final_utterance": "What is id of the city that hosted events in the most recent year?",
        "interaction_utterance": [
            "How many cities are there",
            "How many cities have hosted events?",
            "Wihch city hosted events in the most recent year?",
            "Show its id."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM City",
            "SELECT count(DISTINCT city) FROM City as T1 JOIN Hosting_City as T2 on T1.City_ID = T2.Host_City",
            "SELECT T1.City FROM City as T1 JOIN Hosting_City as T2 on T1.City_ID = T2.Host_City ORDER BY YEAR DESC LIMIT 1",
            "SELECT host_city FROM hosting_city ORDER BY YEAR DESC LIMIT 1"
        ]
    },
    {
        "db_id": "city_record",
        "final_query": "SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year  >  2010",
        "final_utterance": "Find the cities which were once a host city after 2010?",
        "interaction_utterance": [
            "Show the names of the cities.",
            "Which of them were a host city after 2008?",
            "How about the cities that were a host city after 2010?"
        ],
        "interaction_query": [
            "SELECT City FROM City",
            "SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year  >  2008",
            "SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year  >  2010"
        ]
    },
    {
        "db_id": "city_record",
        "final_query": "SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city GROUP BY T2.host_city ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which city has hosted the most events?",
        "interaction_utterance": [
            "How many cities have hosted events?",
            "For each city, how many events has it hosted?",
            "Which city has hosted the most events?"
        ],
        "interaction_query": [
            "SELECT COUNT(DISTINCT city) FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city",
            "SELECT T1.city, COUNT(*) FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city GROUP BY T2.host_city",
            "SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city GROUP BY T2.host_city ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "city_record",
        "final_query": "SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = \"Nanjing ( Jiangsu )\" AND T3.competition = \"1994 FIFA World Cup qualification\"",
        "final_utterance": "What is the venue of the competition \"1994 FIFA World Cup qualification\" hosted by \"Nanjing ( Jiangsu )\"?",
        "interaction_utterance": [
            "How many events has \"Nanjing ( Jiangsu )\" hosted?",
            "What is the date of the competition \"1994 FIFA World Cup qualification\" hosted by \"Nanjing ( Jiangsu )\"?",
            "How about the venue?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city WHERE City = \"Nanjing ( Jiangsu )\"",
            "SELECT T3.Date FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = \"Nanjing ( Jiangsu )\" AND T3.competition = \"1994 FIFA World Cup qualification\"",
            "SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = \"Nanjing ( Jiangsu )\" AND T3.competition = \"1994 FIFA World Cup qualification\""
        ]
    },
    {
        "db_id": "city_record",
        "final_query": "SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = \"Shanghai\"",
        "final_utterance": "Give me the temperature of Shanghai in January.",
        "interaction_utterance": [
            "How many events has \"Shanghai\" hosted?",
            "Give me the temperature of Shanghai in March.",
            "How about the temperature in January?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city WHERE City = \"Shanghai\"",
            "SELECT T2.Mar FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = \"Shanghai\"",
            "SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = \"Shanghai\""
        ]
    },
    {
        "db_id": "city_record",
        "final_query": "SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city WHERE T1.city  =  \"Taizhou ( Zhejiang )\"",
        "final_utterance": "What is the host year of city \"Taizhou ( Zhejiang )\"?",
        "interaction_utterance": [
            "How many events has \"Taizhou ( Zhejiang )\" hosted?",
            "What event did it host?",
            "What is the host year of this city?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city WHERE City = \"Taizhou ( Zhejiang )\"",
            "SELECT T3.Competition FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city JOIN match AS T3 ON T2.MATCH_ID = T3.MATCH_ID WHERE T1.city  =  \"Taizhou ( Zhejiang )\"",
            "SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city WHERE T1.city  =  \"Taizhou ( Zhejiang )\""
        ]
    },
    {
        "db_id": "city_record",
        "final_query": "SELECT city FROM city ORDER BY regional_population DESC LIMIT 3",
        "final_utterance": "Which three cities have the largest regional population?",
        "interaction_utterance": [
            "What is the average regional population?",
            "Which city has the largest regional population?",
            "What are the top three cities with the largest regional population?"
        ],
        "interaction_query": [
            "SELECT AVG(regional_population) FROM city",
            "SELECT city FROM city ORDER BY regional_population DESC LIMIT 1",
            "SELECT city FROM city ORDER BY regional_population DESC LIMIT 3"
        ]
    },
    {
        "db_id": "city_record",
        "final_query": "SELECT city ,  GDP FROM city ORDER BY GDP LIMIT 1",
        "final_utterance": "Which city has the lowest GDP? Please list the city name and its GDP.",
        "interaction_utterance": [
            "What is the average GDP among all cities?",
            "What is the minimum GDP?",
            "Please also list the city name."
        ],
        "interaction_query": [
            "SELECT AVG(GDP) FROM city",
            "SELECT GDP FROM city ORDER BY GDP LIMIT 1",
            "SELECT city ,  GDP FROM city ORDER BY GDP LIMIT 1"
        ]
    },
    {
        "db_id": "city_record",
        "final_query": "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id ORDER BY T2.Feb DESC LIMIT 1",
        "final_utterance": "Which city has the highest temperature in February?",
        "interaction_utterance": [
            "What is the average temperature in March?",
            "How about February?",
            "In this month, which city has the highest temperature?"
        ],
        "interaction_query": [
            "SELECT AVG(MAR) FROM temperature",
            "SELECT AVG(FEB) FROM temperature",
            "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id ORDER BY T2.Feb DESC LIMIT 1"
        ]
    },
    {
        "db_id": "city_record",
        "final_query": "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Jul OR T2.Mar  >  T2.Oct",
        "final_utterance": "Give me a list of cities whose temperature in March is lower than that in July or higher than that in Oct?",
        "interaction_utterance": [
            "What is the average temperature of all cities in October?",
            "How many cities are there whose temperature in March is lower than that in July ?",
            "What are the city names?",
            "Please also show cities whose temperature in March is higher than that in Oct."
        ],
        "interaction_query": [
            "SELECT AVG(OCT) FROM temperature",
            "SELECT COUNT(*) FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Jul",
            "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Jul",
            "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Jul OR T2.Mar  >  T2.Oct"
        ]
    },
    {
        "db_id": "city_record",
        "final_query": "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city",
        "final_utterance": "Give me a list of cities whose temperature in Mar is lower than that in July and which have also served as host cities?",
        "interaction_utterance": [
            "Which cities have hosted events?",
            "What is the average temperature in March of these cities?",
            "Among these cities, whose temperature in Mar is lower than that in July?"
        ],
        "interaction_query": [
            "SELECT City FROM City AS T1 JOIN Hosting_City AS T2 on T1.City_ID = T2.Host_City",
            "SELECT AVG(MAR) FROM City AS T1 JOIN Hosting_City AS T2 on T1.City_ID = T2.Host_City JOIN Temperature AS T3 ON T3.City_ID = T2.Host_City",
            "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city"
        ]
    },
    {
        "db_id": "city_record",
        "final_query": "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city",
        "final_utterance": "Give me a list of cities whose temperature in Mar is lower than that in Dec and which have never been host cities.",
        "interaction_utterance": [
            "Which cities have never hosted an event?",
            "What is the average temperature in Dec of these cities?",
            "How about the cities whose temperature in Mar is lower than that in Dec?"
        ],
        "interaction_query": [
            "SELECT City FROM City EXCEPT SELECT City FROM City AS T1 JOIN Hosting_City AS T2 on T1.City_ID = T2.Host_City",
            "SELECT AVG(DEC) FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city",
            "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city"
        ]
    },
    {
        "db_id": "city_record",
        "final_query": "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Feb  >  T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city",
        "final_utterance": "Give me a list of cities whose temperature in Feb is higher than that in Jun or cities that were once host cities?",
        "interaction_utterance": [
            "How many cities are there that were once host cities?",
            "How many cities are there whose temperature in Feb is higher than that in Jun?",
            "Please list the city names of the above results."
        ],
        "interaction_query": [
            "SELECT COUNT(DISTINCT T1.city) FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city",
            "SELECT Count(*) FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Feb  >  T2.Jun",
            "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Feb  >  T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city"
        ]
    },
    {
        "db_id": "city_record",
        "final_query": "SELECT city FROM city WHERE regional_population  >  8000000 UNION SELECT city FROM city WHERE regional_population  <  5000000",
        "final_utterance": "Please give me a list of cities whose regional population is over 8000000 or under 5000000.",
        "interaction_utterance": [
            "Which city has the smallest regional population?",
            "How many cities are there that have a regional population over 8000000 or under 5000000?",
            "Please show the names of these cities."
        ],
        "interaction_query": [
            "SELECT City FROM CITY ORDER BY regional_population ASC LIMIT 1",
            "SELECT COUNT(*) FROM city WHERE regional_population  >  8000000 OR regional_population  <  5000000",
            "SELECT city FROM city WHERE regional_population  >  8000000 UNION SELECT city FROM city WHERE regional_population  <  5000000"
        ]
    },
    {
        "db_id": "city_record",
        "final_query": "SELECT gdp FROM city ORDER BY Regional_Population DESC LIMIT 1",
        "final_utterance": "what is the GDP of the city with the largest population.",
        "interaction_utterance": [
            "Which city has the smallest GDP?",
            "Which city has the largest population?",
            "What is its GDP?"
        ],
        "interaction_query": [
            "SELECT City FROM CITY ORDER BY gdp ASC LIMIT 1",
            "SELECT CITY FROM city ORDER BY Regional_Population DESC LIMIT 1",
            "SELECT gdp FROM city ORDER BY Regional_Population DESC LIMIT 1"
        ]
    },
    {
        "db_id": "shop_membership",
        "final_query": "SELECT count(*) FROM branch WHERE membership_amount  >  (SELECT avg(membership_amount) FROM branch)",
        "final_utterance": "How many branches where have more than average number of memberships are there?",
        "interaction_utterance": [
            "How many branches are there?",
            "What is their average membership amounts?",
            "How many branches have more membership than that?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM branch",
            "SELECT avg(membership_amount) FROM branch",
            "SELECT count(*) FROM branch WHERE membership_amount  >  (SELECT avg(membership_amount) FROM branch)"
        ]
    },
    {
        "db_id": "shop_membership",
        "final_query": "SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3",
        "final_utterance": "What are names for top three branches with most number of membership?",
        "interaction_utterance": [
            "How many branches are there?",
            "How many membership does each of them have?",
            "Show me the top three of them.",
            "Give me only the name."
        ],
        "interaction_query": [
            "SELECT count(*) FROM branch",
            "SELECT name, membership_amount FROM branch",
            "SELECT name, membership_amount FROM branch ORDER BY membership_amount DESC LIMIT 3",
            "SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3"
        ]
    },
    {
        "db_id": "shop_membership",
        "final_query": "SELECT open_year FROM branch GROUP BY open_year HAVING count(*)  >=  2",
        "final_utterance": "List all open years when at least two shops are opened.",
        "interaction_utterance": [
            "Give me the name of all branches.",
            "Show me all open years when any of them were opened.",
            "Among them, during which years, at least two shops were opened?"
        ],
        "interaction_query": [
            "SELECT name FROM branch",
            "SELECT open_year FROM branch GROUP BY open_year",
            "SELECT open_year FROM branch GROUP BY open_year HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "shop_membership",
        "final_query": "SELECT min(membership_amount) ,  max(membership_amount) FROM branch WHERE open_year  =  2011 OR city  =  'London'",
        "final_utterance": "Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.",
        "interaction_utterance": [
            "How many branches are there?",
            "What about opened in 2011 or located at London?",
            "Show me the amount of memberships for them.",
            "What are the minimum and maximum among them?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM branch",
            "SELECT count(*) FROM branch WHERE open_year  =  2011 OR city  =  'London'",
            "SELECT membership_amount FROM branch WHERE open_year  =  2011 OR city  =  'London'",
            "SELECT min(membership_amount) ,  max(membership_amount) FROM branch WHERE open_year  =  2011 OR city  =  'London'"
        ]
    },
    {
        "db_id": "shop_membership",
        "final_query": "SELECT city ,  count(*) FROM branch WHERE open_year  <  2010 GROUP BY city",
        "final_utterance": "Show the city and the number of branches opened before 2010 for each city.",
        "interaction_utterance": [
            "How many branches are there?",
            "What about before 2010?",
            "Can you show me those for each city?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM branch",
            "SELECT count(*) FROM branch WHERE open_year < 2010",
            "SELECT city, count(*) FROM branch WHERE open_year  <  2010 GROUP BY city"
        ]
    },
    {
        "db_id": "shop_membership",
        "final_query": "SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Show the membership level with most number of members.",
        "interaction_utterance": [
            "How many different membership levels are there?",
            "How many members are there in the record?",
            "Which membership level has the most number of members?"
        ],
        "interaction_query": [
            "SELECT LEVEL FROM member GROUP BY LEVEL",
            "SELECT count(*) FROM member",
            "SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "shop_membership",
        "final_query": "SELECT T3.name ,  T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id JOIN member AS T3 ON T1.member_id  =  T3.member_id ORDER BY T1.register_year",
        "final_utterance": "Show all member names and registered branch names sorted by register year.",
        "interaction_utterance": [
            "How many membership registrations are there in file?",
            "Show me the member names and branch names associated with them.",
            "List them in order of their register years."
        ],
        "interaction_query": [
            "SELECT count(*) FROM membership_register_branch",
            "SELECT T3.name ,  T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id JOIN member AS T3 ON T1.member_id  =  T3.member_id",
            "SELECT T3.name ,  T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id JOIN member AS T3 ON T1.member_id  =  T3.member_id ORDER BY T1.register_year"
        ]
    },
    {
        "db_id": "shop_membership",
        "final_query": "SELECT T2.name ,  count(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id WHERE T1.register_year  >  2015 GROUP BY T2.branch_id",
        "final_utterance": "Show all branch names with the number of members in each branch registered after 2015.",
        "interaction_utterance": [
            "How many membership registrations are there in file?",
            "How many of those were registered after 2015?",
            "What about for each branch?",
            "Show me the name for each branch instead of id."
        ],
        "interaction_query": [
            "SELECT count(*) FROM membership_register_branch",
            "SELECT count(*) FROM membership_register_branch WHERE register_year > 2015",
            "SELECT branch_id, count(*) FROM membership_register_branch WHERE register_year > 2015 GROUP BY branch_id",
            "SELECT T2.name ,  count(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id WHERE T1.register_year  >  2015 GROUP BY T2.branch_id"
        ]
    },
    {
        "db_id": "shop_membership",
        "final_query": "SELECT name FROM member WHERE member_id NOT IN (SELECT member_id FROM membership_register_branch)",
        "final_utterance": "Show member names without any registered branch.",
        "interaction_utterance": [
            "How many membership registrations are there in file?",
            "Show me the id of members in any of them.",
            "Give me the name of members who are not one of those."
        ],
        "interaction_query": [
            "SELECT count(*) FROM membership_register_branch",
            "SELECT member_id FROM membership_register_branch",
            "SELECT name FROM member WHERE member_id NOT IN (SELECT member_id FROM membership_register_branch)"
        ]
    },
    {
        "db_id": "shop_membership",
        "final_query": "SELECT name ,  city FROM branch WHERE branch_id NOT IN (SELECT branch_id FROM membership_register_branch)",
        "final_utterance": "List the branch name and city without any registered members.",
        "interaction_utterance": [
            "How many membership registrations are there in file?",
            "Show me the id of branches in any of them.",
            "Give me the name of branches which are not one of those.",
            "What about their cities?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM membership_register_branch",
            "SELECT branch_id FROM membership_register_branch",
            "SELECT name FROM branch WHERE branch_id NOT IN (SELECT branch_id FROM membership_register_branch)",
            "SELECT name ,  city FROM branch WHERE branch_id NOT IN (SELECT branch_id FROM membership_register_branch)"
        ]
    },
    {
        "db_id": "shop_membership",
        "final_query": "SELECT T2.name ,  T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id WHERE T1.register_year  =  2016 GROUP BY T2.branch_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the name and open year for the branch with most number of memberships registered in 2016?",
        "interaction_utterance": [
            "How many membership registrations are there in 2016?",
            "What about for each branch?",
            "Show me the name of branch with the most of them.",
            "What about its open year?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM membership_register_branch WHERE register_year = 2016",
            "SELECT branch_id, COUNT(*) FROM membership_register_branch WHERE register_year = 2016 GROUP BY branch_id",
            "SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id WHERE T1.register_year  =  2016 GROUP BY T2.branch_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT T2.name ,  T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id WHERE T1.register_year  =  2016 GROUP BY T2.branch_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "shop_membership",
        "final_query": "SELECT T2.name ,  T2.hometown FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id  =  T2.member_id WHERE T1.register_year  =  2016",
        "final_utterance": "Show the member name and hometown who registered a branch in 2016.",
        "interaction_utterance": [
            "How many membership registrations are there in 2016?",
            "Show me the name of members in them.",
            "Also include their hometowns."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM membership_register_branch WHERE register_year = 2016",
            "SELECT T2.name FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id  =  T2.member_id WHERE T1.register_year  =  2016",
            "SELECT T2.name ,  T2.hometown FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id  =  T2.member_id WHERE T1.register_year  =  2016"
        ]
    },
    {
        "db_id": "shop_membership",
        "final_query": "SELECT city FROM branch WHERE open_year  =  2001 AND membership_amount  >  100",
        "final_utterance": "Show all city with a branch opened in 2001 and a branch with more than 100 membership.",
        "interaction_utterance": [
            "How many branches were opened in 2001?",
            "Among them, how many also have more than 100 membership?",
            "Show me all cities with any of those branches."
        ],
        "interaction_query": [
            "SELECT count(*) FROM branch WHERE open_year = 2001",
            "SELECT count(*) FROM branch WHERE open_year = 2001 AND membership_amount  >  100",
            "SELECT city FROM branch WHERE open_year  =  2001 AND membership_amount  >  100"
        ]
    },
    {
        "db_id": "shop_membership",
        "final_query": "SELECT city FROM branch EXCEPT SELECT city FROM branch WHERE membership_amount  >  100",
        "final_utterance": "Show all cities without a branch having more than 100 memberships.",
        "interaction_utterance": [
            "How many branches have more than 100 memberships?",
            "Give me all cities with any of those branches.",
            "What about cities without any of those branches?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM branch WHERE membership_amount > 100",
            "SELECT city FROM branch WHERE membership_amount  >  100",
            "SELECT city FROM branch EXCEPT SELECT city FROM branch WHERE membership_amount  >  100"
        ]
    },
    {
        "db_id": "shop_membership",
        "final_query": "SELECT sum(total_pounds) FROM purchase AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id WHERE T2.city  =  'London' AND T1.year  =  2018",
        "final_utterance": "What is the sum of total pounds of purchase in year 2018 for all branches in London?",
        "interaction_utterance": [
            "How many purchases are there in 2018?",
            "How many of them were made through any branch in London?",
            "Show me the sum of total pounds of them."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM purchase WHERE year = 2018",
            "SELECT COUNT(*) FROM purchase AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id WHERE T2.city  =  'London' AND T1.year  =  2018",
            "SELECT sum(total_pounds) FROM purchase AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id WHERE T2.city  =  'London' AND T1.year  =  2018"
        ]
    },
    {
        "db_id": "shop_membership",
        "final_query": "SELECT count(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id  =  T2.member_id WHERE T2.level  =  6",
        "final_utterance": "What is the total number of purchases for members with level 6?",
        "interaction_utterance": [
            "How many purchases are there in file?",
            "Show me the id of members with level 6.",
            "How many purchases are for any of those members?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM purchase",
            "SELECT MEMBER_ID FROM member WHERE LEVEL = 6",
            "SELECT count(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id  =  T2.member_id WHERE T2.level  =  6"
        ]
    },
    {
        "db_id": "shop_membership",
        "final_query": "SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id JOIN member AS T3 ON T1.member_id  =  T3.member_id WHERE T3.Hometown  =  'Louisville ,  Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id JOIN member AS T3 ON T1.member_id  =  T3.member_id WHERE T3.Hometown  =  'Hiram ,  Georgia'",
        "final_utterance": "Find the name of branches where have some members whose hometown is in Louisville, Kentucky and some in Hiram, Georgia.",
        "interaction_utterance": [
            "How many members' hometown is in Louisville, Kentucky?",
            "Show me the name of branches with any of those members.",
            "Among them, which ones also have members from Hiram, Georgia?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM MEMBER WHERE hometown = 'Louisville ,  Kentucky'",
            "SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id JOIN member AS T3 ON T1.member_id  =  T3.member_id WHERE T3.Hometown  =  'Louisville, Kentucky'",
            "SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id JOIN member AS T3 ON T1.member_id  =  T3.member_id WHERE T3.Hometown  =  'Louisville ,  Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id JOIN member AS T3 ON T1.member_id  =  T3.member_id WHERE T3.Hometown  =  'Hiram, Georgia'"
        ]
    },
    {
        "db_id": "perpetrator",
        "final_query": "SELECT count(*) FROM perpetrator;",
        "final_utterance": "How many perpetrators are there?",
        "interaction_utterance": [
            "Show me all about perpetrator.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM perpetrator;",
            "SELECT count(*) FROM perpetrator;"
        ]
    },
    {
        "db_id": "perpetrator",
        "final_query": "SELECT Date FROM perpetrator ORDER BY Killed DESC;",
        "final_utterance": "List the date of perpetrators in descending order of the number of people killed.",
        "interaction_utterance": [
            "Show me the number of people killed by each perpetrator.",
            "List the date for each in descending order of the number of people killed."
        ],
        "interaction_query": [
            "SELECT Killed FROM perpetrator;",
            "SELECT Date FROM perpetrator ORDER BY Killed DESC;"
        ]
    },
    {
        "db_id": "perpetrator",
        "final_query": "SELECT Injured FROM perpetrator ORDER BY Injured ASC;",
        "final_utterance": "List the number of people injured by perpetrators in ascending order.",
        "interaction_utterance": [
            "How many people has each perpetrator killed?",
            "How about injured?",
            "Sort the result in ascending order."
        ],
        "interaction_query": [
            "SELECT Killed FROM perpetrator;",
            "SELECT Injured FROM perpetrator;",
            "SELECT Injured FROM perpetrator ORDER BY Injured ASC;"
        ]
    },
    {
        "db_id": "perpetrator",
        "final_query": "SELECT avg(Injured) FROM perpetrator;",
        "final_utterance": "What is the average number of people injured by all perpetrators?",
        "interaction_utterance": [
            "How many people are injured in total by all perpetrators?",
            "How many perpetrators are there?",
            "What is the average number of people injured by all perpetrators?"
        ],
        "interaction_query": [
            "SELECT sum(Injured) FROM perpetrator;",
            "SELECT count(*) FROM perpetrator;",
            "SELECT avg(Injured) FROM perpetrator;"
        ]
    },
    {
        "db_id": "perpetrator",
        "final_query": "SELECT LOCATION FROM perpetrator ORDER BY Killed DESC LIMIT 1;",
        "final_utterance": "What is the location of the perpetrator with the largest kills.",
        "interaction_utterance": [
            "Show me the number of people killed by each perpetrator.",
            "Order the result in descending order.",
            "What's the location for the one who killed the most people?"
        ],
        "interaction_query": [
            "SELECT Killed FROM perpetrator;",
            "SELECT Killed FROM perpetrator ORDER BY Killed DESC ;",
            "SELECT LOCATION FROM perpetrator ORDER BY Killed DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "perpetrator",
        "final_query": "SELECT Name FROM People ORDER BY Height ASC;",
        "final_utterance": "What are the names of people in ascending order of height?",
        "interaction_utterance": [
            "How many people are there?",
            "What are their names?",
            "Order the result by descending height."
        ],
        "interaction_query": [
            "SELECT count(*) FROM People;",
            "SELECT Name FROM People;",
            "SELECT Name FROM People ORDER BY Height ASC;"
        ]
    },
    {
        "db_id": "perpetrator",
        "final_query": "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID;",
        "final_utterance": "What are the names of perpetrators?",
        "interaction_utterance": [
            "What are the heights of all people?",
            "How about their names?",
            "Show just the perpetrators' names."
        ],
        "interaction_query": [
            "SELECT Height FROM people;",
            "SELECT Name FROM people;",
            "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID;"
        ]
    },
    {
        "db_id": "perpetrator",
        "final_query": "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Country != \"China\";",
        "final_utterance": "What are the names of perpetrators whose country is not \"China\"?",
        "interaction_utterance": [
            "Show me the countries of the perpetrators.",
            "What are the names of perpetrators whose country is \"China\"?",
            "How about those whose country is not \"China\"?"
        ],
        "interaction_query": [
            "SELECT Country FROM perpetrator;",
            "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Country = \"China\";",
            "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Country != \"China\";"
        ]
    },
    {
        "db_id": "perpetrator",
        "final_query": "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Weight DESC LIMIT 1;",
        "final_utterance": "What is the name of the perpetrator with the biggest weight.",
        "interaction_utterance": [
            "Show me the names of the perpetrators.",
            "Who has the largest height?",
            "How about the highest weight?"
        ],
        "interaction_query": [
            "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID;",
            "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Height DESC LIMIT 1;",
            "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Weight DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "perpetrator",
        "final_query": "SELECT sum(T2.Killed) FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Height  >  1.84;",
        "final_utterance": "What is the total kills of the perpetrators with height more than 1.84.",
        "interaction_utterance": [
            "Show me the names of all the perpetrators with a height of more than 1.84 meters.",
            "What's their average number of killed people?",
            "How about the total?"
        ],
        "interaction_query": [
            "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Height  >  1.84;",
            "SELECT avg(T2.Killed) FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Height  >  1.84;",
            "SELECT sum(T2.Killed) FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Height  >  1.84;"
        ]
    },
    {
        "db_id": "perpetrator",
        "final_query": "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Country  =  \"China\" OR T2.Country  =  \"Japan\"",
        "final_utterance": "What are the names of perpetrators in country \"China\" or \"Japan\"?",
        "interaction_utterance": [
            "Show me perpetrators' names.",
            "Among the result, who are in \"South Korea\"?",
            "How about China or Japan?"
        ],
        "interaction_query": [
            "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID;",
            "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Country  =  \"South Korea\";",
            "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Country  =  \"China\" OR T2.Country  =  \"Japan\""
        ]
    },
    {
        "db_id": "perpetrator",
        "final_query": "SELECT T1.Height FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Injured DESC;",
        "final_utterance": "What are the heights of perpetrators in descending order of the number of people they injured?",
        "interaction_utterance": [
            "What are the number of people injured for each perpetrator?",
            "What are the heights of each perpetrator in descending order of the number of people they injured?"
        ],
        "interaction_query": [
            "SELECT T1.Name, T2.Injured FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID;",
            "SELECT T1.Height FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Injured DESC;"
        ]
    },
    {
        "db_id": "perpetrator",
        "final_query": "SELECT Country ,  COUNT(*) FROM perpetrator GROUP BY Country;",
        "final_utterance": "What are the countries of perpetrators? Show each country and the corresponding number of perpetrators there.",
        "interaction_utterance": [
            "What year corresponds with each perpetrator\uff1f",
            "How about country?",
            "Show each country and the corresponding number of perpetrators there."
        ],
        "interaction_query": [
            "SELECT Year FROM perpetrator;",
            "SELECT Country FROM perpetrator;",
            "SELECT Country ,  COUNT(*) FROM perpetrator GROUP BY Country;"
        ]
    },
    {
        "db_id": "perpetrator",
        "final_query": "SELECT Country ,  COUNT(*) FROM perpetrator GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1;",
        "final_utterance": "What is the country that has the most perpetrators?",
        "interaction_utterance": [
            "What are the countries of perpetrators? Show each country and the corresponding number of perpetrators there.",
            "Which country has the fewest perpetrators?",
            "How about the most?"
        ],
        "interaction_query": [
            "SELECT Country ,  COUNT(*) FROM perpetrator GROUP BY Country;",
            "SELECT Country ,  COUNT(*) FROM perpetrator GROUP BY Country ORDER BY COUNT(*) ASC LIMIT 1;",
            "SELECT Country ,  COUNT(*) FROM perpetrator GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "perpetrator",
        "final_query": "SELECT Country ,  COUNT(*) FROM perpetrator GROUP BY Country HAVING COUNT(*)  >=  2;",
        "final_utterance": "What are the countries that have at least two perpetrators?",
        "interaction_utterance": [
            "What is the country that has the most perpetrators?",
            "Which ones have more more than 1 perpetrator?",
            "How about those with at least two perpetrators?"
        ],
        "interaction_query": [
            "SELECT Country ,  COUNT(*) FROM perpetrator GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1;",
            "SELECT Country ,  COUNT(*) FROM perpetrator GROUP BY Country HAVING COUNT(*)  <= 1;",
            "SELECT Country ,  COUNT(*) FROM perpetrator GROUP BY Country HAVING COUNT(*)  >=  2;"
        ]
    },
    {
        "db_id": "perpetrator",
        "final_query": "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Year DESC;",
        "final_utterance": "List the names of perpetrators in descending order of the year.",
        "interaction_utterance": [
            "For each perpetrator, show the year that corresponds?",
            "Show me their names.",
            "Sort the result in descending order by year."
        ],
        "interaction_query": [
            "SELECT Year FROM perpetrator;",
            "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID;",
            "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Year DESC;"
        ]
    },
    {
        "db_id": "perpetrator",
        "final_query": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM perpetrator);",
        "final_utterance": "List the names of people that are not perpetrators.",
        "interaction_utterance": [
            "Show me all about people.",
            "Which of those are perpetrators?",
            "Show the rest of peoples' names."
        ],
        "interaction_query": [
            "SELECT * FROM people;",
            "SELECT Name FROM people WHERE People_ID IN (SELECT People_ID FROM perpetrator);",
            "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM perpetrator);"
        ]
    },
    {
        "db_id": "perpetrator",
        "final_query": "SELECT Country FROM perpetrator WHERE Injured  >  50 INTERSECT SELECT Country FROM perpetrator WHERE Injured  <  20",
        "final_utterance": "Show the countries that have both perpetrators with injures more than 50 and perpetrators with injures smaller than 20.",
        "interaction_utterance": [
            "For each perpetrator, show the ids and his or her country.",
            "Also, show how many they have each injured.",
            "Which countries have perpetrators who have injured more than 50?",
            "Which of these also have perpetrators who have injured fewer than 20?"
        ],
        "interaction_query": [
            "SELECT Country, Perpetrator_ID FROM perpetrator;",
            "SELECT Country, Perpetrator_ID, Injured FROM perpetrator;",
            "SELECT Country FROM perpetrator WHERE Injured  >  50;",
            "SELECT Country FROM perpetrator WHERE Injured  >  50 INTERSECT SELECT Country FROM perpetrator WHERE Injured  <  20;"
        ]
    },
    {
        "db_id": "perpetrator",
        "final_query": "SELECT count(DISTINCT LOCATION) FROM perpetrator;",
        "final_utterance": "How many distinct locations of perpetrators are there?",
        "interaction_utterance": [
            "Show me the location for each perpetrator.",
            "What are the distinct locations?",
            "How many are there in the result?"
        ],
        "interaction_query": [
            "SELECT Location FROM perpetrator;",
            "SELECT DISTINCT LOCATION FROM perpetrator;",
            "SELECT count(DISTINCT LOCATION) FROM perpetrator;"
        ]
    },
    {
        "db_id": "perpetrator",
        "final_query": "SELECT T2.Date FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Height DESC LIMIT 1",
        "final_utterance": "Show the date of the tallest perpetrator.",
        "interaction_utterance": [
            "What is the date for the perpetrator?",
            "Who's the tallest perpetrator?",
            "What's his date?"
        ],
        "interaction_query": [
            "SELECT Date FROM perpetrator;",
            "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Height DESC LIMIT 1",
            "SELECT T2.Date FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Height DESC LIMIT 1"
        ]
    },
    {
        "db_id": "company_1",
        "final_query": "SELECT t1.dname FROM department AS t1 JOIN dept_locations AS t2 ON t1.dnumber  =  t2.dnumber WHERE t2.dlocation  =  'Houston'",
        "final_utterance": "Find the names of departments that are located in Houston.",
        "interaction_utterance": [
            "how many departments are there?",
            "show all their info.",
            "where are they each located?",
            "what are the names of departments that are located in Houston?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM department",
            "SELECT * FROM department",
            "SELECT Dlocation FROM department AS t1 JOIN dept_locations AS t2 ON t1.dnumber  =  t2.dnumber",
            "SELECT t1.dname FROM department AS t1 JOIN dept_locations AS t2 ON t1.dnumber  =  t2.dnumber WHERE t2.dlocation  =  'Houston'"
        ]
    },
    {
        "db_id": "ship_1",
        "final_query": "SELECT count(*) ,  rank FROM captain WHERE age  <  50 GROUP BY rank",
        "final_utterance": "How many captains younger than 50 are in each rank?",
        "interaction_utterance": [
            "What are the captains names and ages?",
            "What is the average age for each rank?",
            "Per rank, how many are older than 50?"
        ],
        "interaction_query": [
            "SELECT name, age from captain",
            "SELECT rank, avg(age) from captain GROUP by rank",
            "SELECT count(*) ,  rank FROM captain WHERE age  <  50 GROUP BY rank"
        ]
    },
    {
        "db_id": "ship_1",
        "final_query": "SELECT rank FROM captain GROUP BY rank ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which rank is the most common among captains?",
        "interaction_utterance": [
            "What are the names and ranks of captains?",
            "Which rank is most common?"
        ],
        "interaction_query": [
            "SELECT name, rank from captain",
            "SELECT rank FROM captain GROUP BY rank ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "ship_1",
        "final_query": "SELECT CLASS FROM captain GROUP BY CLASS HAVING count(*)  >  2",
        "final_utterance": "Which classes have more than two captains?",
        "interaction_utterance": [
            "Give the classes of captains.",
            "Group by class and count.",
            "Which class has more than two?"
        ],
        "interaction_query": [
            "SELECT Class from captain",
            "SELECT Class, count(*) from captain Group by class",
            "SELECT CLASS FROM captain GROUP BY CLASS HAVING count(*)  >  2"
        ]
    },
    {
        "db_id": "ship_1",
        "final_query": "SELECT name FROM captain WHERE rank  =  'Midshipman' OR rank  =  'Lieutenant'",
        "final_utterance": "Find the name of captains whose rank are either Midshipman or Lieutenant.",
        "interaction_utterance": [
            "How many captains are either Midshipman or Lieutenant?",
            "What are their names?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM captain WHERE rank  =  'Midshipman' OR rank  =  'Lieutenant'",
            "SELECT name FROM captain WHERE rank  =  'Midshipman' OR rank  =  'Lieutenant'"
        ]
    },
    {
        "db_id": "ship_1",
        "final_query": "SELECT avg(age) ,  min(age) ,  CLASS FROM captain GROUP BY CLASS",
        "final_utterance": "What are the average and minimum age of captains in different class?",
        "interaction_utterance": [
            "Order class by increasing age. Also show age.",
            "What are the average and minimum age of captains in different class?"
        ],
        "interaction_query": [
            "SELECT class, age from captain Order by age",
            "SELECT avg(age) ,  min(age) ,  CLASS FROM captain GROUP BY CLASS"
        ]
    },
    {
        "db_id": "ship_1",
        "final_query": "SELECT rank FROM captain WHERE CLASS  =  'Cutter' INTERSECT SELECT rank FROM captain WHERE CLASS  =  'Armed schooner'",
        "final_utterance": "Find the captain rank that has some captains in both Cutter and Armed schooner classes.",
        "interaction_utterance": [
            "Which ranks of captains are in the Cutter class?",
            "How about Armed schooner?",
            "Intersect those."
        ],
        "interaction_query": [
            "SELECT DISTINCT rank FROM captain WHERE CLASS  =  'Cutter'",
            "SELECT rank FROM captain WHERE CLASS  =  'Armed schooner'",
            "SELECT rank FROM captain WHERE CLASS  =  'Cutter' INTERSECT SELECT rank FROM captain WHERE CLASS  =  'Armed schooner'"
        ]
    },
    {
        "db_id": "ship_1",
        "final_query": "SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE CLASS  =  'Third-rate ship of the line'",
        "final_utterance": "Find the captain rank that has no captain in Third-rate ship of the line class.",
        "interaction_utterance": [
            "For each class, what are the ranks?",
            "Find the captain rank that has no captain in Third-rate ship of the line class."
        ],
        "interaction_query": [
            "SELECT DISTINCT class, rank from captain Order by class",
            "SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE CLASS  =  'Third-rate ship of the line'"
        ]
    },
    {
        "db_id": "ship_1",
        "final_query": "SELECT name FROM captain ORDER BY age LIMIT 1",
        "final_utterance": "What is the name of the youngest captain?",
        "interaction_utterance": [
            "Sort captains records by age.",
            "Just their names.",
            "limit it to the one youngest."
        ],
        "interaction_query": [
            "SELECT * from captain order by age",
            "SELECT name from captain order by age",
            "SELECT name FROM captain ORDER BY age LIMIT 1"
        ]
    },
    {
        "db_id": "ship_1",
        "final_query": "SELECT name, type, flag from ship where built_year in (SELECT max(built_year) from ship)",
        "final_utterance": "Find the name, type, and flag of the ships that were built in the most recent year.",
        "interaction_utterance": [
            "What is the most recent build year?",
            "Which ships were built in the most recent year?",
            "Also give the type and flag."
        ],
        "interaction_query": [
            "SELECT max(built_year) from ship",
            "SELECT name from ship where built_year in (SELECT max(built_year) from ship)",
            "SELECT name, type, flag from ship where built_year in (SELECT max(built_year) from ship)"
        ]
    },
    {
        "db_id": "ship_1",
        "final_query": "SELECT flag FROM ship GROUP BY flag ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which flag is most widely used among all ships?",
        "interaction_utterance": [
            "Which flags are used?",
            "Which is most common?"
        ],
        "interaction_query": [
            "SELECT DISTINCT flag from ship",
            "SELECT flag FROM ship GROUP BY flag ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "ship_1",
        "final_query": "SELECT TYPE FROM ship WHERE flag  =  'Panama' INTERSECT SELECT TYPE FROM ship WHERE flag  =  'Malta'",
        "final_utterance": "Find the ship type that are used by both ships with Panama and Malta flags.",
        "interaction_utterance": [
            "Which type of ship has flag Panama?",
            "How about Malta?",
            "Which types have ships with both flags?"
        ],
        "interaction_query": [
            "SELECT DISTINCT TYPE FROM ship WHERE flag  =  'Panama'",
            "SELECT TYPE FROM ship WHERE flag  =  'Malta'",
            "SELECT TYPE FROM ship WHERE flag  =  'Panama' INTERSECT SELECT TYPE FROM ship WHERE flag  =  'Malta'"
        ]
    },
    {
        "db_id": "ship_1",
        "final_query": "SELECT built_year FROM ship GROUP BY built_year ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "In which year were most of ships built?",
        "interaction_utterance": [
            "What are the distinct build years of ships?",
            "Which is more common?"
        ],
        "interaction_query": [
            "SELECT DISTINCT built_year from ship",
            "SELECT built_year FROM ship GROUP BY built_year ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "ship_1",
        "final_query": "SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id  =  t2.ship_id GROUP BY t2.ship_id HAVING count(*)  >  1",
        "final_utterance": "Find the name of the ships that have more than one captain.",
        "interaction_utterance": [
            "List each ship with its captains.",
            "Which ship has more than one captain?"
        ],
        "interaction_query": [
            "SELECT t1.name, t2.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id  =  t2.ship_id",
            "SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id  =  t2.ship_id GROUP BY t2.ship_id HAVING count(*)  >  1"
        ]
    },
    {
        "db_id": "ship_1",
        "final_query": "SELECT name ,  CLASS FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain)",
        "final_utterance": "what are the names and classes of the ships that do not have any captain yet?",
        "interaction_utterance": [
            "Which ship ids are not in the captain records?",
            "Give their names and classes"
        ],
        "interaction_query": [
            "SELECT ship_id FROM ship EXCEPT SELECT ship_id FROM captain",
            "SELECT name ,  CLASS FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain)"
        ]
    },
    {
        "db_id": "ship_1",
        "final_query": "SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id  =  t2.ship_id ORDER BY t2.age LIMIT 1",
        "final_utterance": "Find the name of the ship that is steered by the youngest captain.",
        "interaction_utterance": [
            "Who is the youngest captain?",
            "Which ship does he steer?"
        ],
        "interaction_query": [
            "SELECT name from captain order by age asc limit 1",
            "SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id  =  t2.ship_id ORDER BY t2.age LIMIT 1"
        ]
    },
    {
        "db_id": "ship_1",
        "final_query": "SELECT name ,  flag FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain WHERE rank  =  'Midshipman')",
        "final_utterance": "Find the name and flag of ships that are not steered by any captain with Midshipman rank.",
        "interaction_utterance": [
            "Which ship ids are steered by captains with the Midshipman rank?",
            "Which are not?",
            "What are their names and flags?"
        ],
        "interaction_query": [
            "SELECT DISTINCT ship_id FROM captain WHERE rank  =  'Midshipman'",
            "SELECT ship_id from ship EXCEPT SELECT ship_id FROM captain WHERE rank  =  'Midshipman'",
            "SELECT name ,  flag FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain WHERE rank  =  'Midshipman')"
        ]
    },
    {
        "db_id": "game_injury",
        "final_query": "SELECT max(home_games) ,  min(home_games) ,  avg(home_games) FROM stadium",
        "final_utterance": "What are the maximum, minimum and average home games each stadium held?",
        "interaction_utterance": [
            "Show me the names of all the stadiums.",
            "How many home games did each of them hold?",
            "Show me the maxium, minimum, and average of them."
        ],
        "interaction_query": [
            "SELECT name FROM Stadium",
            "SELECT name, home_games FROM Stadium",
            "SELECT max(home_games) ,  min(home_games) ,  avg(home_games) FROM stadium"
        ]
    },
    {
        "db_id": "game_injury",
        "final_query": "SELECT T1.season FROM game AS T1 JOIN injury_accident AS T2 ON T1.id  =  T2.game_id WHERE T2.player  =  'Walter Samuel'",
        "final_utterance": "What is the season of the game which causes the player 'Walter Samuel' to get injured?",
        "interaction_utterance": [
            "Show me all the players who got injured.",
            "Show me the date of the game that causes Walter Samuel to get injured?",
            "What about its season?"
        ],
        "interaction_query": [
            "SELECT Player FROM injury_accident",
            "SELECT T1.Date FROM game AS T1 JOIN injury_accident AS T2 ON T1.id  =  T2.game_id WHERE T2.player  =  'Walter Samuel'",
            "SELECT T1.season FROM game AS T1 JOIN injury_accident AS T2 ON T1.id  =  T2.game_id WHERE T2.player  =  'Walter Samuel'"
        ]
    },
    {
        "db_id": "game_injury",
        "final_query": "SELECT T1.id ,  T1.score ,  T1.date FROM game AS T1 JOIN injury_accident AS T2 ON T2.game_id  =  T1.id GROUP BY T1.id HAVING count(*)  >=  2",
        "final_utterance": "What are the ids, scores, and dates of the games which caused at least two injury accidents?",
        "interaction_utterance": [
            "Show me all the players who got injured.",
            "What about their game ids?",
            "Which games caused at least two injury accidents?",
            "Show me their ids, scores, and dates."
        ],
        "interaction_query": [
            "SELECT Player FROM injury_accident",
            "SELECT Player, game_id FROM injury_accident",
            "SELECT game_id FROM injury_accident GROUP BY game_id HAVING count(*)  >=  2",
            "SELECT T1.id ,  T1.score ,  T1.date FROM game AS T1 JOIN injury_accident AS T2 ON T2.game_id  =  T1.id GROUP BY T1.id HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "game_injury",
        "final_query": "SELECT T1.id ,  T1.name FROM stadium AS T1 JOIN game AS T2 ON T1.id  =  T2.stadium_id JOIN injury_accident AS T3 ON T2.id  =  T3.game_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What are the id and name of the stadium where the most injury accidents happened?",
        "interaction_utterance": [
            "Show me all the injury accidents.",
            "Show me distinct names of the stadium in which those accidents happened.",
            "Show me the id and name of the one where the most injury accidents happened."
        ],
        "interaction_query": [
            "SELECT * FROM injury_accident",
            "SELECT distinct T1.name FROM stadium AS T1 JOIN game AS T2 ON T1.id  =  T2.stadium_id JOIN injury_accident AS T3 ON T2.id  =  T3.game_id",
            "SELECT T1.id ,  T1.name FROM stadium AS T1 JOIN game AS T2 ON T1.id  =  T2.stadium_id JOIN injury_accident AS T3 ON T2.id  =  T3.game_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "game_injury",
        "final_query": "SELECT T1.season ,  T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id WHERE T3.injury  =  'Foot injury' OR T3.injury  =  'Knee problem'",
        "final_utterance": "In which season and which stadium did any player have an injury of 'Foot injury' or 'Knee problem'?",
        "interaction_utterance": [
            "Show me all the injuries.",
            "Show me the ids of the games where those of 'Foot injury' or 'Knee problem' happened.",
            "What about their seasons and stadiums?"
        ],
        "interaction_query": [
            "SELECT injury FROM injury_accident",
            "SELECT game_id FROM injury_accident WHERE injury = 'Foot injury' OR injury  =  'Knee problem'",
            "SELECT T1.season ,  T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id WHERE T3.injury  =  'Foot injury' OR T3.injury  =  'Knee problem'"
        ]
    },
    {
        "db_id": "game_injury",
        "final_query": "SELECT count(*) FROM game WHERE id NOT IN ( SELECT game_id FROM injury_accident )",
        "final_utterance": "How many games are free of injury accidents?",
        "interaction_utterance": [
            "How many industry accidents are there?",
            "Show me their game ids.",
            "Which games are not one of them?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM injury_accident",
            "SELECT game_id FROM injury_accident",
            "SELECT id FROM game WHERE id NOT IN ( SELECT game_id FROM injury_accident )",
            "SELECT count(*) FROM game WHERE id NOT IN ( SELECT game_id FROM injury_accident )"
        ]
    },
    {
        "db_id": "game_injury",
        "final_query": "SELECT count(DISTINCT T1.injury) FROM injury_accident AS T1 JOIN game AS T2 ON T1.game_id  =  T2.id WHERE T2.season  >  2010",
        "final_utterance": "How many distinct kinds of injuries happened after season 2010?",
        "interaction_utterance": [
            "Show me all distinct kinds of injuries.",
            "What about those happened after season 2010?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT distinct injury FROM injury_accident",
            "SELECT DISTINCT T1.injury FROM injury_accident AS T1 JOIN game AS T2 ON T1.game_id  =  T2.id WHERE T2.season  >  2010",
            "SELECT count(DISTINCT T1.injury) FROM injury_accident AS T1 JOIN game AS T2 ON T1.game_id  =  T2.id WHERE T2.season  >  2010"
        ]
    },
    {
        "db_id": "game_injury",
        "final_query": "SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id WHERE T3.player  =  'Walter Samuel' INTERSECT SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id WHERE T3.player  =  'Thiago Motta'",
        "final_utterance": "List the name of the stadium where both the player 'Walter Samuel' and the player 'Thiago Motta' got injured.",
        "interaction_utterance": [
            "Show me the name of players that got injured?",
            "Give me the id of the games where Walter Samuel and Thiago Motta got injured.",
            "What about the name of the stadium where both of them got injured?"
        ],
        "interaction_query": [
            "SELECT player FROM injury_accident",
            "SELECT game_id FROM injury_accident where player = 'Walter Samuel' or player = 'Thiago Motta'",
            "SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id WHERE T3.player  =  'Walter Samuel' INTERSECT SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id WHERE T3.player  =  'Thiago Motta'"
        ]
    },
    {
        "db_id": "game_injury",
        "final_query": "SELECT name ,  average_attendance ,  total_attendance FROM stadium EXCEPT SELECT T2.name ,  T2.average_attendance ,  T2.total_attendance FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id",
        "final_utterance": "Show the name, average attendance, total attendance for stadiums where no accidents happened.",
        "interaction_utterance": [
            "Show me the game ids of all the injury accidents.",
            "Which stadium did each of them happen?",
            "Show me the name of stadiums which are not one of those.",
            "Also show me their average attendance and total attendance."
        ],
        "interaction_query": [
            "SELECT game_id FROM injury_accident",
            "SELECT T2.name , T3.game_id FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id group by T3.game_id",
            "SELECT name FROM stadium EXCEPT SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id group by T3.game_id",
            "SELECT name ,  average_attendance ,  total_attendance FROM stadium EXCEPT SELECT T2.name ,  T2.average_attendance ,  T2.total_attendance FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id"
        ]
    },
    {
        "db_id": "game_injury",
        "final_query": "SELECT name FROM stadium WHERE name LIKE \"%Bank%\"",
        "final_utterance": "Which stadium name contains the substring \"Bank\"?",
        "interaction_utterance": [
            "Show me the name of all the stadiums.",
            "Which one contains \"Bank\" in it?"
        ],
        "interaction_query": [
            "SELECT name FROM stadium",
            "SELECT name FROM stadium WHERE name LIKE \"%Bank%\""
        ]
    },
    {
        "db_id": "game_injury",
        "final_query": "SELECT T1.name ,  count(*) FROM stadium AS T1 JOIN game AS T2 ON T1.id  =  T2.stadium_id GROUP BY T1.id",
        "final_utterance": "How many games has each stadium held?",
        "interaction_utterance": [
            "Show me the name of all the stadiums.",
            "How many games has each of them held?"
        ],
        "interaction_query": [
            "SELECT name FROM stadium",
            "SELECT T1.name ,  count(*) FROM stadium AS T1 JOIN game AS T2 ON T1.id  =  T2.stadium_id GROUP BY T1.id"
        ]
    },
    {
        "db_id": "small_bank_1",
        "final_query": "SELECT sum(T2.balance) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid WHERE T1.name != 'Brown'",
        "final_utterance": "Find the total savings balance of all accounts except the account with name \u2018Brown\u2019.",
        "interaction_utterance": [
            "How many savings accounts are there?",
            "What are their saving balances?",
            "Remove Brown's saving balance.",
            "What is the total of these saving balances?"
        ],
        "interaction_query": [
            "SELECT count(custid) FROM accounts",
            "SELECT T2.balance FROM accounts as T1 JOIN savings as T2 on T1.custid = T2.custid",
            "SELECT T2.balance FROM accounts as T1 JOIN savings as T2 on T1.custid = T2.custid where T1.name != \"Brown\"",
            "SELECT sum(T2.balance) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid WHERE T1.name != 'Brown'"
        ]
    },
    {
        "db_id": "small_bank_1",
        "final_query": "SELECT count(*) FROM savings WHERE balance  >  (SELECT avg(balance) FROM savings)",
        "final_utterance": "How many accounts have a savings balance above the average savings balance?",
        "interaction_utterance": [
            "What is the maximum savings balance?",
            "What is the average?",
            "Who are names of the people that are above this average?",
            "How many of them are there?"
        ],
        "interaction_query": [
            "SELECT max(balance)FROM savings",
            "SELECT avg(balance) FROM savings",
            "SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid where T2.balance > (SELECT avg(balance) FROM savings)",
            "SELECT count(*) FROM savings WHERE balance  >  (SELECT avg(balance) FROM savings)"
        ]
    },
    {
        "db_id": "small_bank_1",
        "final_query": "SELECT T1.custid,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  <  (SELECT max(balance) FROM checking)",
        "final_utterance": "Find the name and id of accounts whose checking balance is below the maximum checking balance.",
        "interaction_utterance": [
            "What account has the maximum checking balance?",
            "What is the checking balance?",
            "Show all the account names that have checking balances lower than this.",
            "also provide their ids."
        ],
        "interaction_query": [
            "SELECT custid FROM checking where balance = (SELECT max(balance) FROM checking)",
            "SELECT max(balance) FROM checking",
            "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  <  (SELECT max(balance) FROM checking)",
            "SELECT T1.custid,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  <  (SELECT max(balance) FROM checking)"
        ]
    },
    {
        "db_id": "small_bank_1",
        "final_query": "SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T1.name LIKE '%ee%'",
        "final_utterance": "What is the checking balance of the account whose owner\u2019s name contains the substring \u2018ee\u2019?",
        "interaction_utterance": [
            "List all the account owner names.",
            "Is there an owner with the name that has 'ee' in it?",
            "What is the savings balance for that owner?",
            "How about the checking balance?"
        ],
        "interaction_query": [
            "SELECT name FROM accounts",
            "SELECT name FROM accounts where name LIKE '%ee%'",
            "SELECT T2.balance FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid WHERE T1.name LIKE '%ee%'",
            "SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T1.name LIKE '%ee%'"
        ]
    },
    {
        "db_id": "small_bank_1",
        "final_query": "SELECT T2.balance,  T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T1.name  =  'Brown'",
        "final_utterance": "Find the checking balance and saving balance in the Brown\u2019s account.",
        "interaction_utterance": [
            "Is there an owner named Brown?",
            "What is his checking balance?",
            "What is his savings balance?",
            "Please show both at the same time."
        ],
        "interaction_query": [
            "SELECT * FROM accounts where name = \"Brown\"",
            "SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T1.name  =  'Brown'",
            "SELECT T2.balance FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid WHERE T1.name  =  'Brown'",
            "SELECT T2.balance,  T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T1.name  =  'Brown'"
        ]
    },
    {
        "db_id": "small_bank_1",
        "final_query": "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  >  (SELECT avg(balance) FROM checking) INTERSECT SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  <  (SELECT avg(balance) FROM savings)",
        "final_utterance": "Find the names of accounts whose checking balance is above the average checking balance, but savings balance is below the average savings balance.",
        "interaction_utterance": [
            "What is the average saving balance?",
            "Who have savings account balances below that?",
            "What are their checking account balances?",
            "Who of these users have checking account balances above the average checking balance of all users?"
        ],
        "interaction_query": [
            "SELECT avg(balance) FROM savings",
            "SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  <  (SELECT avg(balance) FROM savings)",
            "SELECT T1.name, T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T2.custid in (SELECT T1.custid FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  <  (SELECT avg(balance) FROM savings))",
            "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  >  (SELECT avg(balance) FROM checking) INTERSECT SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  <  (SELECT avg(balance) FROM savings)"
        ]
    },
    {
        "db_id": "small_bank_1",
        "final_query": "SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T1.name IN (SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  >  (SELECT avg(balance) FROM savings))",
        "final_utterance": "Find the checking balance of the accounts whose savings balance is higher than the average savings balance.",
        "interaction_utterance": [
            "What is the average savings balance?",
            "How many people have savings account balances over it?",
            "What are their names?",
            "What are their checking account balances?"
        ],
        "interaction_query": [
            "SELECT avg(balance) FROM savings",
            "SELECT count(*)  FROM savings where balance > (SELECT avg(balance) FROM savings)",
            "SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  >  (SELECT avg(balance) FROM savings)",
            "SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T1.name IN (SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  >  (SELECT avg(balance) FROM savings))"
        ]
    },
    {
        "db_id": "small_bank_1",
        "final_query": "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T2.balance + T3.balance LIMIT 1",
        "final_utterance": "Find the name of account that has the lowest total checking and saving balance.",
        "interaction_utterance": [
            "What is the name of the user that has the lowest checking balance?",
            "the lowest saving balance?",
            "how about the lowest total sum of checking and saving balance?"
        ],
        "interaction_query": [
            "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid ORDER BY T2.balance limit 1",
            "SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid ORDER BY T2.balance limit 1",
            "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T2.balance + T3.balance LIMIT 1"
        ]
    },
    {
        "db_id": "small_bank_1",
        "final_query": "SELECT T1.name, T2.balance + T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T3.balance  >  (SELECT avg(balance) FROM savings)",
        "final_utterance": "Find the names and total checking and savings balances of accounts whose savings balance is higher than the average savings balance.",
        "interaction_utterance": [
            "How many accounts have savings balances greater than the average savings balance?",
            "What are their names?",
            "What are their checking account balances?",
            "How about both their total checking and savings balances."
        ],
        "interaction_query": [
            "SELECT count(*) FROM savings where balance > (SELECT avg(balance) FROM savings)",
            "SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  >  (SELECT avg(balance) FROM savings)",
            "SELECT T1.name, T2.balance  FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T3.balance  >  (SELECT avg(balance) FROM savings)",
            "SELECT T1.name, T2.balance + T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T3.balance  >  (SELECT avg(balance) FROM savings)"
        ]
    },
    {
        "db_id": "small_bank_1",
        "final_query": "SELECT T1.name,  T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T3.balance LIMIT 1",
        "final_utterance": "Find the name and checking balance of the account with the lowest savings balance.",
        "interaction_utterance": [
            "What are all the savings balances?",
            "What is the lowest one?",
            "What is the name on the account has the lowest one?",
            "Also provide the checking balance."
        ],
        "interaction_query": [
            "SELECT balance FROM savings",
            "SELECT min(balance) FROM savings",
            "SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid ORDER BY T2.balance LIMIT 1",
            "SELECT T1.name,  T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T3.balance LIMIT 1"
        ]
    },
    {
        "db_id": "small_bank_1",
        "final_query": "SELECT count(*),  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid GROUP BY T1.name",
        "final_utterance": "Find the number of checking accounts for each account name.",
        "interaction_utterance": [
            "Show all the names for each account.",
            "What are the unique set of names?",
            "How many savings accounts under each of these names?",
            "How about checking accounts?"
        ],
        "interaction_query": [
            "SELECT name FROM accounts",
            "SELECT DISTINCT name FROM accounts",
            "SELECT count(*),  T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid GROUP BY T1.name",
            "SELECT count(*),  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid GROUP BY T1.name"
        ]
    },
    {
        "db_id": "small_bank_1",
        "final_query": "SELECT sum(T2.balance) ,  T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid GROUP BY T1.name",
        "final_utterance": "Find the total saving balance for each account name.",
        "interaction_utterance": [
            "What are the names of all the accounts?",
            "Show the savings balances for all accounts.",
            "Now show me the total by account name."
        ],
        "interaction_query": [
            "SELECT name FROM accounts",
            "SELECT T1.name, T2.balance FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid",
            "SELECT sum(T2.balance),  T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid GROUP BY T1.name"
        ]
    },
    {
        "db_id": "small_bank_1",
        "final_query": "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  <  (SELECT avg(balance) FROM checking)",
        "final_utterance": "Find the name of accounts whose checking balance is below the average checking balance.",
        "interaction_utterance": [
            "What is the average checking balance?",
            "What is the account information for those have greater checking balances than that?",
            "How about for lower checking balances?",
            "What are their account names?"
        ],
        "interaction_query": [
            "SELECT avg(balance) FROM checking",
            "SELECT * FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  >  (SELECT avg(balance) FROM checking)",
            "SELECT * FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  <  (SELECT avg(balance) FROM checking)",
            "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  <  (SELECT avg(balance) FROM checking)"
        ]
    },
    {
        "db_id": "small_bank_1",
        "final_query": "SELECT T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T2.balance DESC LIMIT 1",
        "final_utterance": "Find the saving balance of the account with the highest checking balance.",
        "interaction_utterance": [
            "Whose checking balance is the highest?",
            "What is it?",
            "what is her saving balance?"
        ],
        "interaction_query": [
            "SELECT name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid ORDER BY T2.balance desc limit 1",
            "SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid ORDER BY T2.balance desc limit 1",
            "SELECT T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T2.balance DESC LIMIT 1"
        ]
    },
    {
        "db_id": "small_bank_1",
        "final_query": "SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid ORDER BY T1.balance + T2.balance",
        "final_utterance": "Find the total checking and saving balance of all accounts sorted by the total balance in ascending order.",
        "interaction_utterance": [
            "What are the total checking and saving balances for all accounts?",
            "Show me the the balances FROM greatest to least?",
            "How about FROM least to greatest?"
        ],
        "interaction_query": [
            "SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid",
            "SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid ORDER BY T1.balance + T2.balance desc",
            "SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid ORDER BY T1.balance + T2.balance"
        ]
    },
    {
        "db_id": "small_bank_1",
        "final_query": "SELECT T2.balance,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T3.balance LIMIT 1",
        "final_utterance": "Find the name and checking balance of the account with the lowest saving balance.",
        "interaction_utterance": [
            "What is the average saving balance?",
            "how about the lowest saving balance?",
            "What is the name of the user that has this?",
            "Also show his checking balance too."
        ],
        "interaction_query": [
            "SELECT avg(balance) FROM savings",
            "SELECT balance FROM savings order by balance limit 1",
            "SELECT T1.name, T2.balance FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid ORDER BY T2.balance LIMIT 1",
            "SELECT T2.balance,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T3.balance LIMIT 1"
        ]
    },
    {
        "db_id": "small_bank_1",
        "final_query": "SELECT T2.balance ,  T3.balance ,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid",
        "final_utterance": "Find the name, checking balance and saving balance of all accounts in the bank.",
        "interaction_utterance": [
            "How many accounts are there in the bank?",
            "What are the names for each?",
            "Include the checking and saving balances for each."
        ],
        "interaction_query": [
            "SELECT count(*) FROM accounts",
            "SELECT name FROM accounts",
            "SELECT T2.balance ,  T3.balance ,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid"
        ]
    },
    {
        "db_id": "small_bank_1",
        "final_query": "SELECT T2.balance ,  T3.balance ,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T2.balance + T3.balance DESC",
        "final_utterance": "Find the name, checking balance and savings balance of all accounts in the bank sorted by their total checking and savings balance in descending order.",
        "interaction_utterance": [
            "Show me the names, checking balances, and savings balance for all accounts?",
            "Also provide their total checking and saving balances?",
            "Just show names, checking balance, saving balance but sort them by savings account balance.",
            "Actually, sort them by the total checking and savings balance FROM greatest to least."
        ],
        "interaction_query": [
            "SELECT T2.balance ,  T3.balance ,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid",
            "SELECT T2.balance + T3.balance, T2.balance ,  T3.balance ,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid",
            "SELECT T2.balance ,  T3.balance ,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T3.balance",
            "SELECT T2.balance ,  T3.balance ,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T2.balance + T3.balance DESC"
        ]
    },
    {
        "db_id": "small_bank_1",
        "final_query": "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T2.balance  >  T3.balance",
        "final_utterance": "Find the name of accounts whose checking balance is higher than corresponding saving balance.",
        "interaction_utterance": [
            "How many accounts have higher savings balances than their checking balances?",
            "How about higher checking balances than their saving balances?",
            "Show me the checking balances and saving balances for each of these accounts.",
            "Actually, just show me the corresponding names."
        ],
        "interaction_query": [
            "SELECT count(*) FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T3.balance  >  T2.balance",
            "SELECT count(*) FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T2.balance  >  T3.balance",
            "SELECT T2.balance, T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T2.balance  >  T3.balance",
            "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T2.balance  >  T3.balance"
        ]
    },
    {
        "db_id": "small_bank_1",
        "final_query": "SELECT T1.name,  T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T3.balance  <  T2.balance",
        "final_utterance": "Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance.",
        "interaction_utterance": [
            "What are the name, checking, and saving balances for all accounts?",
            "Show me the total checking and savings balance of the accounts!",
            "Show me only the accounts that have a lower savings balance than their checking balance?",
            "Show just the name and total checking and savings balance."
        ],
        "interaction_query": [
            "SELECT T2.balance ,  T3.balance ,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid",
            "SELECT T2.balance ,  T3.balance ,  T1.name, T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid",
            "SELECT T2.balance ,  T3.balance ,  T1.name, T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid where T3.balance < T2.balance",
            "SELECT T1.name,  T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T3.balance  <  T2.balance"
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT Name FROM ARTIST WHERE Name LIKE \"%a%\"",
        "final_utterance": "Find the names of all artists that have \"a\" in their names.",
        "interaction_utterance": [
            "Find the names of all artists whose names end with \"b\".",
            "How about artists whose names contain \"b\"?",
            "Now do the same for \"a\"."
        ],
        "interaction_query": [
            "SELECT Name FROM ARTIST WHERE Name LIKE \"%b\"",
            "SELECT Name FROM ARTIST WHERE Name LIKE \"%b%\"",
            "SELECT Name FROM ARTIST WHERE Name LIKE \"%a%\""
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId WHERE T2.Name  =  \"AC/DC\"",
        "final_utterance": "Find the title of all the albums of the artist \"AC/DC\".",
        "interaction_utterance": [
            "Find the ids of all albums of \"AC/DC\".",
            "Show me the titles of those albums."
        ],
        "interaction_query": [
            "SELECT AlbumId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId WHERE T2.Name  =  \"AC/DC\"",
            "SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId WHERE T2.Name  =  \"AC/DC\""
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT COUNT(*) FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId WHERE T2.Name  =  \"Metallica\"",
        "final_utterance": "How many albums does the artist \"Metallica\" have?",
        "interaction_utterance": [
            "Show me all the albums from \"Metallica\".",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId WHERE T2.Name  =  \"Metallica\"",
            "SELECT Count(*) FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId WHERE T2.Name  =  \"Metallica\""
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId WHERE T1.Title  =  \"Balls to the Wall\"",
        "final_utterance": "Which artist does the album \"Balls to the Wall\" belong to?",
        "interaction_utterance": [
            "Is there an album called \"Balls to the Wall\"?",
            "Who made it?"
        ],
        "interaction_query": [
            "SELECT * FROM ALBUM WHERE Title = \"Balls to the Wall\"",
            "SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId WHERE T1.Title  =  \"Balls to the Wall\""
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId GROUP BY T2.Name ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Which artist has the most albums?",
        "interaction_utterance": [
            "Which artist has the least albums?",
            "How about the most albums?"
        ],
        "interaction_query": [
            "SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId GROUP BY T2.Name ORDER BY COUNT(*) ASC LIMIT 1",
            "SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId GROUP BY T2.Name ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT Name FROM TRACK WHERE Name LIKE '%you%'",
        "final_utterance": "Find the names of all the tracks that contain the word \"you\".",
        "interaction_utterance": [
            "Find the names of all the albums that contain the word \"you\".",
            "Oops, I meant tracks not albums."
        ],
        "interaction_query": [
            "SELECT Title FROM ALBUM WHERE title LIKE '%you%'",
            "SELECT Name FROM TRACK WHERE Name LIKE '%you%'"
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT max(Milliseconds) ,  min(Milliseconds) FROM TRACK",
        "final_utterance": "What are the durations of the longest and the shortest tracks in milliseconds?",
        "interaction_utterance": [
            "What is the longest track?",
            "The shortest?",
            "Show me both."
        ],
        "interaction_query": [
            "SELECT max(Milliseconds) from TRACK",
            "SELECT min(Milliseconds) from TRACK",
            "SELECT max(Milliseconds) ,  min(Milliseconds) FROM TRACK"
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT T1.Title ,  T2.AlbumID ,  COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId  =  T2.AlbumId GROUP BY T2.AlbumID",
        "final_utterance": "Show the album names, ids and the number of tracks for each album.",
        "interaction_utterance": [
            "Show me the names and ids of each album.",
            "Show me the number of tracks each album has as well."
        ],
        "interaction_query": [
            "SELECT T1.Title ,  T2.AlbumID FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId  =  T2.AlbumId GROUP BY T2.AlbumID",
            "SELECT T1.Title ,  T2.AlbumID ,  COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId  =  T2.AlbumId GROUP BY T2.AlbumID"
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT T1.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId GROUP BY T2.GenreId ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "What is the name of the most common genre in all tracks?",
        "interaction_utterance": [
            "Show me the 10 most common genres in all tracks.",
            "Show me the 10 least common genres.",
            "Show me the most common one."
        ],
        "interaction_query": [
            "SELECT T1.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId GROUP BY T2.GenreId ORDER BY COUNT(*) DESC LIMIT 10",
            "SELECT T1.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId GROUP BY T2.GenreId ORDER BY COUNT(*) ASC LIMIT 10",
            "SELECT T1.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId GROUP BY T2.GenreId ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId  =  T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) ASC LIMIT 1",
        "final_utterance": "What is the least common media type in all tracks?",
        "interaction_utterance": [
            "Show me all the media types in tracks.",
            "What is the most common one?",
            "How about the least common one?"
        ],
        "interaction_query": [
            "SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId  =  T2.MediaTypeId GROUP BY T2.MediaTypeId",
            "SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId  =  T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) DESC LIMIT 1",
            "SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId  =  T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) ASC LIMIT 1"
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT T1.Title ,  T2.AlbumID FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId  =  T2.AlbumId WHERE T2.UnitPrice  >  1 GROUP BY T2.AlbumID",
        "final_utterance": "Show the album names and ids for albums that contain tracks with unit price bigger than 1.",
        "interaction_utterance": [
            "Show me all the tracks with unit price bigger than 1.",
            "Show me their album names and ids"
        ],
        "interaction_query": [
            "SELECT Name FROM TRACK WHERE UnitPrice  >  1",
            "SELECT T1.Title ,  T2.AlbumID FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId  =  T2.AlbumId WHERE T2.UnitPrice  >  1 GROUP BY T2.AlbumID"
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT COUNT(*) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  \"Rock\"",
        "final_utterance": "How many tracks belong to rock genre?",
        "interaction_utterance": [
            "Show me tracks that belong to rock genre.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT T2.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  \"Rock\"",
            "SELECT COUNT(*) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  \"Rock\""
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  \"Jazz\"",
        "final_utterance": "What is the average unit price of tracks that belong to Jazz genre?",
        "interaction_utterance": [
            "What is the most expensive track with Jazz genre?",
            "Show me the average unit price of all Jazz genre tracks."
        ],
        "interaction_query": [
            "SELECT max(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  \"Jazz\"",
            "SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  \"Jazz\""
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT COUNT(*) FROM CUSTOMER WHERE Email LIKE \"%gmail.com%\"",
        "final_utterance": "How many customers have email that contains \"gmail.com\"?",
        "interaction_utterance": [
            "Show me first name of customers with emails that contain \"gmail.com\".",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT FirstName FROM CUSTOMER WHERE Email LIKE \"%gmail.com%\"",
            "SELECT COUNT(*) FROM CUSTOMER WHERE Email LIKE \"%gmail.com%\""
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT T2.FirstName ,  T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId WHERE T1.FirstName  =  \"Leonie\"",
        "final_utterance": "What is the first name and last name employee helps the customer with first name Leonie?",
        "interaction_utterance": [
            "Show me the customer with first name Leonie.",
            "What is the first and last name of the employee assigned to this customer?"
        ],
        "interaction_query": [
            "SELECT * FROM CUSTOMER WHERE FirstName  =  \"Leonie\"",
            "SELECT T2.FirstName ,  T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId WHERE T1.FirstName  =  \"Leonie\""
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT T2.City FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId WHERE T1.PostalCode  =  \"70174\"",
        "final_utterance": "What city does the employee who helps the customer with postal code 70174 live in?",
        "interaction_utterance": [
            "Find me a customer with postal code 70174.",
            "Which employee was assigned to this customer? Give me the first and last names.",
            "Which city does he/she live?"
        ],
        "interaction_query": [
            "SELECT * FROM CUSTOMER WHERE PostalCode = 70174",
            "SELECT T2.FirstName, T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId WHERE T1.PostalCode  =  \"70174\"",
            "SELECT T2.City FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId WHERE T1.PostalCode  =  \"70174\""
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId  =  T2.CustomerId WHERE T1.FirstName  =  \"Astrid\" AND LastName  =  \"Gruber\"",
        "final_utterance": "Find all invoice dates corresponding to customers with first name Astrid and last name Gruber.",
        "interaction_utterance": [
            "Find all invoice dates of customer named Astrid.",
            "Hm, find them for Astrids with last name Gruber."
        ],
        "interaction_query": [
            "SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId  =  T2.CustomerId WHERE T1.FirstName  =  \"Astrid\"",
            "SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId  =  T2.CustomerId WHERE T1.FirstName  =  \"Astrid\" AND LastName  =  \"Gruber\""
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT LastName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId  =  T2.CustomerId WHERE T2.total  >  20",
        "final_utterance": "Find all the customer last names that do not have invoice totals larger than 20.",
        "interaction_utterance": [
            "Show me first names of all customers that have invoice totals less than 20.",
            "I meant last names.",
            "Oh I meant invoice totals larger than 20, not less than."
        ],
        "interaction_query": [
            "SELECT FirstName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId  =  T2.CustomerId WHERE T2.total  <  20",
            "SELECT LastName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId  =  T2.CustomerId WHERE T2.total  <  20",
            "SELECT LastName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId  =  T2.CustomerId WHERE T2.total  >  20"
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId  =  T2.CustomerId WHERE T1.country  =  \"Brazil\"",
        "final_utterance": "Find the first names of all customers that live in Brazil and have an invoice.",
        "interaction_utterance": [
            "Find the first names of all customers that live in Brazil",
            "Among them, find ones who have an invoice."
        ],
        "interaction_query": [
            "SELECT DISTINCT FirstName FROM CUSTOMER WHERE country  =  \"Brazil\"",
            "SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId  =  T2.CustomerId WHERE T1.country  =  \"Brazil\""
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT DISTINCT T1.Address FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId  =  T2.CustomerId WHERE T1.country  =  \"Germany\"",
        "final_utterance": "Find the address of all customers that live in Germany and have invoice.",
        "interaction_utterance": [
            "Find the address of all customers who live in Germany.",
            "Among those, find the ones who have invoice."
        ],
        "interaction_query": [
            "SELECT DISTINCT Address FROM CUSTOMER WHERE country  =  \"Germany\"",
            "SELECT DISTINCT T1.Address FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId  =  T2.CustomerId WHERE T1.country  =  \"Germany\""
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId  =  T2.MediaTypeId WHERE T1.Name  =  \"AAC audio file\"",
        "final_utterance": "How many tracks are in the AAC audio file media type?",
        "interaction_utterance": [
            "Show me the tracks that are in AAC audio file media type",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId  =  T2.MediaTypeId WHERE T1.Name  =  \"AAC audio file\"",
            "SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId  =  T2.MediaTypeId WHERE T1.Name  =  \"AAC audio file\""
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  \"Latin\" OR T1.Name  =  \"Pop\"",
        "final_utterance": "What is the average duration in milliseconds of tracks that belong to Latin or Pop genre?",
        "interaction_utterance": [
            "What is the average duration of tracks that belong to Latin genre?",
            "How about Pop?",
            "Show me the average for both genres."
        ],
        "interaction_query": [
            "SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  \"Latin\"",
            "SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  \"Pop\"",
            "SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  \"Latin\" OR T1.Name  =  \"Pop\""
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT T1.FirstName ,  T1.SupportRepId FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*)  >=  10",
        "final_utterance": "Please show the employee first names and ids of employees who serve at least 10 customers.",
        "interaction_utterance": [
            "Show the first names and ids of employees serving 10 customers.",
            "Show me those serving at least 10 customers."
        ],
        "interaction_query": [
            "SELECT T1.FirstName ,  T1.SupportRepId FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*)  =  10",
            "SELECT T1.FirstName ,  T1.SupportRepId FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*)  >=  10"
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*)  <=  20",
        "final_utterance": "Please show the employee last names that serves no more than 20 customers.",
        "interaction_utterance": [
            "Show me first names for employees serving 20 customers.",
            "Show me their last names.",
            "Show me the same for employees serving no more than 20 customers."
        ],
        "interaction_query": [
            "SELECT T1.FirstName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*)  =  20",
            "SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*)  =  20",
            "SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*)  <=  20"
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT T2.Name ,  T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*)  >=  3 ORDER BY T2.Name",
        "final_utterance": "Please list the name and id of all artists that have at least 3 albums in alphabetical order.",
        "interaction_utterance": [
            "Show me all artists with at least 3 albums.",
            "Show me their names and ids.",
            "Sort them in alphabetical order."
        ],
        "interaction_query": [
            "SELECT * FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*)  >=  3",
            "SELECT T2.Name ,  T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*)  >=  3 ORDER BY T2.Name",
            "SELECT T2.Name ,  T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*)  >=  3 ORDER BY T2.Name"
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId",
        "final_utterance": "Find the names of artists that do not have any albums.",
        "interaction_utterance": [
            "How many artists don't have any albums?",
            "Find me their names."
        ],
        "interaction_query": [
            "SELECT Count(*) FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId",
            "SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId"
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT AVG(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  \"Rock\"",
        "final_utterance": "What is the average unit price of rock tracks?",
        "interaction_utterance": [
            "What is the max unit price of rock tracks?",
            "What is the average?"
        ],
        "interaction_query": [
            "SELECT max(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  \"Rock\"",
            "SELECT AVG(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  \"Rock\""
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT max(Milliseconds) ,  min(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  \"Pop\"",
        "final_utterance": "What are the duration of the longest and shortest pop tracks in milliseconds?",
        "interaction_utterance": [
            "How long is the longest pop track?",
            "How about the shortest one?",
            "Show me durations for both of those pop tracks."
        ],
        "interaction_query": [
            "SELECT max(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  \"Pop\"",
            "SELECT min(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  \"Pop\"",
            "SELECT max(Milliseconds) ,  min(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  \"Pop\""
        ]
    },
    {
        "db_id": "chinook_1",
        "final_query": "SELECT count(*) FROM ARTIST WHERE artistid NOT IN(SELECT artistid FROM ALBUM)",
        "final_utterance": "How many artists do not have any album?",
        "interaction_utterance": [
            "Show me the names of artists with no album.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId",
            "SELECT count(*) FROM ARTIST WHERE artistid NOT IN(SELECT artistid FROM ALBUM)"
        ]
    },
    {
        "db_id": "entrepreneur",
        "final_query": "SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Investor != \"Rachel Elnaugh\"",
        "final_utterance": "What are the names of entrepreneurs whose investor is not \"Rachel Elnaugh\"?",
        "interaction_utterance": [
            "Show me the names of all entrepreneurs.",
            "Whose investor is not Rachel Elnaugh?"
        ],
        "interaction_query": [
            "SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID",
            "SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Investor != \"Rachel Elnaugh\""
        ]
    },
    {
        "db_id": "entrepreneur",
        "final_query": "SELECT Weight FROM people ORDER BY Height ASC LIMIT 1",
        "final_utterance": "What is the weight of the shortest person?",
        "interaction_utterance": [
            "Show me the names of all people.",
            "Who has the shortest height?",
            "What is this people's weight?"
        ],
        "interaction_query": [
            "SELECT Name FROM people",
            "SELECT Name FROM people ORDER BY Height ASC LIMIT 1",
            "SELECT Weight FROM people ORDER BY Height ASC LIMIT 1"
        ]
    },
    {
        "db_id": "entrepreneur",
        "final_query": "SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Weight DESC LIMIT 1",
        "final_utterance": "What is the name of the entrepreneur with the greatest weight?",
        "interaction_utterance": [
            "Show me the names of all entrepreneurs.",
            "Who has the greatest weight?"
        ],
        "interaction_query": [
            "SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID",
            "SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Weight DESC LIMIT 1"
        ]
    },
    {
        "db_id": "entrepreneur",
        "final_query": "SELECT sum(T1.Money_Requested) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Height  >  1.85",
        "final_utterance": "What is the total money requested by entrepreneurs with height more than 1.85?",
        "interaction_utterance": [
            "Show me the names of all entrepreneurs.",
            "Show me those with height taller than 1.85.",
            "What is the total money requested by them?"
        ],
        "interaction_query": [
            "SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID",
            "SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Height > 1.85",
            "SELECT sum(T1.Money_Requested) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Height  >  1.85"
        ]
    },
    {
        "db_id": "entrepreneur",
        "final_query": "SELECT T2.Date_of_Birth FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Investor  =  \"Simon Woodroffe\" OR T1.Investor  =  \"Peter Jones\"",
        "final_utterance": "What are the dates of birth of entrepreneurs with investor \"Simon Woodroffe\" or \"Peter Jones\"?",
        "interaction_utterance": [
            "Show me the names of all entrepreneurs.",
            "Whose investor is Simon Woodroffe or Peter Jones?",
            "Show me their dates of birth."
        ],
        "interaction_query": [
            "SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID",
            "SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Investor  =  \"Simon Woodroffe\" OR T1.Investor  =  \"Peter Jones\"",
            "SELECT T2.Date_of_Birth FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Investor  =  \"Simon Woodroffe\" OR T1.Investor  =  \"Peter Jones\""
        ]
    },
    {
        "db_id": "entrepreneur",
        "final_query": "SELECT T2.Weight FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Money_Requested DESC",
        "final_utterance": "What are the weights of entrepreneurs in descending order of money requested?",
        "interaction_utterance": [
            "Show me the names of all entrepreneurs.",
            "How much money did they each request?",
            "Give me the weights of them only, in descending order of money requested."
        ],
        "interaction_query": [
            "SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID",
            "SELECT T2.Name,T1.Money_Requested FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID",
            "SELECT T2.Weight FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Money_Requested DESC"
        ]
    },
    {
        "db_id": "entrepreneur",
        "final_query": "SELECT Investor FROM entrepreneur GROUP BY Investor ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Who is the investor that has invested in the most number of entrepreneurs?",
        "interaction_utterance": [
            "Show me the name of all investors.",
            "Who has invested in the most number of entrepreneurs?"
        ],
        "interaction_query": [
            "SELECT Investor FROM entrepreneur GROUP BY Investor",
            "SELECT Investor FROM entrepreneur GROUP BY Investor ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "entrepreneur",
        "final_query": "SELECT Investor FROM entrepreneur GROUP BY Investor HAVING COUNT(*)  >=  2",
        "final_utterance": "Who are the investors that have invested in at least two entrepreneurs?",
        "interaction_utterance": [
            "Show me the name of all investors.",
            "Who have invested in at least two entrepreneurs?"
        ],
        "interaction_query": [
            "SELECT Investor FROM entrepreneur GROUP BY Investor",
            "SELECT Investor FROM entrepreneur GROUP BY Investor HAVING COUNT(*)  >=  2"
        ]
    },
    {
        "db_id": "entrepreneur",
        "final_query": "SELECT T2.Name ,  T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Money_Requested",
        "final_utterance": "List the names of entrepreneurs and their companies in descending order of money requested?",
        "interaction_utterance": [
            "Show me the names of all entrepreneurs.",
            "What are their companies?",
            "List them in descending order of money requested."
        ],
        "interaction_query": [
            "SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID",
            "SELECT T2.Name,T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID",
            "SELECT T2.Name ,  T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Money_Requested"
        ]
    },
    {
        "db_id": "entrepreneur",
        "final_query": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM entrepreneur)",
        "final_utterance": "List the names of people that are not entrepreneurs.",
        "interaction_utterance": [
            "What are the name of all the people?",
            "Show me those who are not entrepreneurs."
        ],
        "interaction_query": [
            "SELECT Name FROM people",
            "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM entrepreneur)"
        ]
    },
    {
        "db_id": "entrepreneur",
        "final_query": "SELECT Investor FROM entrepreneur WHERE Money_Requested  >  140000 INTERSECT SELECT Investor FROM entrepreneur WHERE Money_Requested  <  120000",
        "final_utterance": "Show the investors shared by entrepreneurs that requested more than 140000 and entrepreneurs that requested less than 120000.",
        "interaction_utterance": [
            "Show me the name of all investors.",
            "Who have been requested more than 140000 by any entrepreneurs?",
            "Among them, who have been requested less than 120000 by any entrepreneurs?"
        ],
        "interaction_query": [
            "SELECT Investor FROM entrepreneur GROUP BY Investor",
            "SELECT Investor FROM entrepreneur WHERE Money_Requested  >  140000",
            "SELECT Investor FROM entrepreneur WHERE Money_Requested  >  140000 INTERSECT SELECT Investor FROM entrepreneur WHERE Money_Requested  <  120000"
        ]
    },
    {
        "db_id": "farm",
        "final_query": "SELECT max(Cows) ,  min(Cows) FROM farm",
        "final_utterance": "What are the maximum and minimum number of cows across all farms.",
        "interaction_utterance": [
            "Tell me everything about the farms.",
            "Show me the bulls produced by all the farms.",
            "What about the cows?",
            "Tell me the maximum and minimum number of cows."
        ],
        "interaction_query": [
            "SELECT * FROM farm",
            "SELECT bulls FROM farm",
            "SELECT cows FROM farm",
            "SELECT max(Cows) ,  min(Cows) FROM farm"
        ]
    },
    {
        "db_id": "farm",
        "final_query": "SELECT Official_Name ,  Status FROM city ORDER BY Population DESC LIMIT 1",
        "final_utterance": "List the official name and status of the city with the largest population.",
        "interaction_utterance": [
            "Show me the official names of all the cities.",
            "Which of these cities has the largest population?",
            "What is its population?",
            "Can you only show the official name and status of this city?"
        ],
        "interaction_query": [
            "SELECT official_name FROM city",
            "SELECT official_name FROM city ORDER BY population DESC LIMIT 1",
            "SELECT official_name, population FROM city ORDER BY population DESC LIMIT 1",
            "SELECT Official_Name ,  Status FROM city ORDER BY Population DESC LIMIT 1"
        ]
    },
    {
        "db_id": "farm",
        "final_query": "SELECT T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT(*)  >  1",
        "final_utterance": "Show the official names of the cities that have hosted more than one competition.",
        "interaction_utterance": [
            "List all the city names.",
            "Can you also show me the competition id of these cities?",
            "How about the themes of these competitions?",
            "Which of these cities hosted more than one competition?"
        ],
        "interaction_query": [
            "SELECT official_name FROM city",
            "SELECT t1.official_name, t2.competition_id FROM city as t1 join farm_competition AS t2 ON t1.city_id = t2.host_city_id",
            "SELECT t1.official_name, t2.theme FROM city as t1 join farm_competition AS t2 ON t1.city_id = t2.host_city_id",
            "SELECT T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT(*)  >  1"
        ]
    },
    {
        "db_id": "farm",
        "final_query": "SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID GROUP BY T2.Host_city_ID ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the status of the city that has hosted the greatest number of competitions.",
        "interaction_utterance": [
            "Show me the names of all cities",
            "How many competitions did these cities host?",
            "Which of these cities hosted the most competitions?",
            "Can you only show me its status?"
        ],
        "interaction_query": [
            "SELECT official_name FROM city",
            "SELECT t1.official_name, count(*) FROM city as t1 join farm_competition AS t2 ON t1.city_id = t2.host_city_id GROUP BY city_id",
            "SELECT T1.official_name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID GROUP BY T2.Host_city_ID ORDER BY COUNT(*) DESC LIMIT 1",
            "SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID GROUP BY T2.Host_city_ID ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "farm",
        "final_query": "SELECT T2.Theme FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID WHERE T1.Population  >  1000",
        "final_utterance": "Please show the themes of competitions with host cities having populations larger than 1000.",
        "interaction_utterance": [
            "Show me the information for all of the cities.",
            "Which of these cities have a population greater than 1000?",
            "Show me all the years when a competition was held in these cities.",
            "What about the themes of these competitions?"
        ],
        "interaction_query": [
            "SELECT * FROM city",
            "SELECT * FROM city WHERE population > 1000",
            "SELECT t2.year FROM city AS t1 JOIN farm_competition AS t2 ON t1.city_id  = t2.host_city_id WHERE population > 1000",
            "SELECT T2.Theme FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID WHERE T1.Population  >  1000"
        ]
    },
    {
        "db_id": "farm",
        "final_query": "SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) ASC",
        "final_utterance": "Please show the different statuses, ordered by the number of cities that have each.",
        "interaction_utterance": [
            "List the official names of all the cities.",
            "Show me all the status of these cities.",
            "What is the number of cities with each status?",
            "Can you show them in increasing order?"
        ],
        "interaction_query": [
            "SELECT DISTINCT official_name FROM city",
            "SELECT DISTINCT status FROM city",
            "SELECT status, count(*) FROM city GROUP BY status",
            "SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) ASC"
        ]
    },
    {
        "db_id": "farm",
        "final_query": "SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "List the most common type of Status across cities.",
        "interaction_utterance": [
            "Tell me the names of all the cities.",
            "Tell me the city status of \"Grand Falls/Grand-Sault\".",
            "Which of the cities are not towns?",
            "Which city status is the most common?"
        ],
        "interaction_query": [
            "SELECT official_name FROM city",
            "SELECT status FROM city WHERE official_name = \"Grand Falls/Grand-Sault\"",
            "SELECT official_name FROM city WHERE status != \"Town\"",
            "SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "farm",
        "final_query": "SELECT Official_Name FROM city WHERE City_ID NOT IN (SELECT Host_city_ID FROM farm_competition)",
        "final_utterance": "List the official names of cities that have not held any competition.",
        "interaction_utterance": [
            "Show me all the cities.",
            "Show me the official names of all the cities.",
            "Which of these cities have hosted competitions before?",
            "Which of them have not?"
        ],
        "interaction_query": [
            "SELECT * FROM city",
            "SELECT official_name FROM city",
            "SELECT DISTINCT official_name FROM city AS t1 JOIN farm_competition AS t2 ON t1.city_id  = t2.host_city_id",
            "SELECT Official_Name FROM city WHERE City_ID NOT IN (SELECT Host_city_ID FROM farm_competition)"
        ]
    },
    {
        "db_id": "farm",
        "final_query": "SELECT Status FROM city WHERE Population  >  1500 INTERSECT SELECT Status FROM city WHERE Population  <  500",
        "final_utterance": "Show the status shared by cities with population bigger than 1500 and smaller than 500.",
        "interaction_utterance": [
            "List the names of all the cities.",
            "Which of these cities have a population bigger than 1500?",
            "Which cities have a population smaller than 500?",
            "Show all statuses that are common between these two types of cities."
        ],
        "interaction_query": [
            "SELECT official_name FROM city",
            "SELECT official_name FROM city WHERE population > 1500",
            "SELECT official_name FROM city WHERE population < 500",
            "SELECT Status FROM city WHERE Population  >  1500 INTERSECT SELECT Status FROM city WHERE Population  <  500"
        ]
    },
    {
        "db_id": "gymnast",
        "final_query": "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T2.Hometown != \"Santo Domingo\"",
        "final_utterance": "What are the names of gymnasts whose hometown is not \"Santo Domingo\"?",
        "interaction_utterance": [
            "Can I see the names of the gymnasts?",
            "How old is the gymnast from Bonao?",
            "Who is from Miami?",
            "How about gymnasts not from \"Santo Domingo\"?"
        ],
        "interaction_query": [
            "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID",
            "SELECT T2.age FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE Hometown = \"Bonao\"",
            "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE Hometown = \"Miami\"",
            "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T2.Hometown != \"Santo Domingo\""
        ]
    },
    {
        "db_id": "gymnast",
        "final_query": "SELECT Age FROM people ORDER BY Height DESC LIMIT 1",
        "final_utterance": "What is the age of the tallest person?",
        "interaction_utterance": [
            "What is the average height of all people?",
            "How about the average height of gymnasts?",
            "How old is the tallest among all people?"
        ],
        "interaction_query": [
            "SELECT AVG(Height) FROM people",
            "SELECT AVG(T2.Height) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID",
            "SELECT Age FROM people ORDER BY Height DESC LIMIT 1"
        ]
    },
    {
        "db_id": "gymnast",
        "final_query": "SELECT Name FROM People ORDER BY Age DESC LIMIT 5",
        "final_utterance": "List the names of the top 5 oldest people.",
        "interaction_utterance": [
            "Who is the tallest?",
            "Who is the oldest gymnast?",
            "Please show the top 5 oldest gymnasts.",
            "How about the top 5 oldest people?"
        ],
        "interaction_query": [
            "SELECT name FROM people ORDER BY Height DESC LIMIT 1",
            "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY Age DESC LIMIT 1",
            "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY Age DESC LIMIT 5",
            "SELECT Name FROM People ORDER BY Age DESC LIMIT 5"
        ]
    },
    {
        "db_id": "gymnast",
        "final_query": "SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Age ASC LIMIT 1",
        "final_utterance": "What is the total point count of the youngest gymnast?",
        "interaction_utterance": [
            "What is the average age of all people?",
            "How about the average age of all gymnasts?",
            "Who is the youngest gymnast?",
            "How many total points does he have?"
        ],
        "interaction_query": [
            "SELECT AVG(age) FROM people",
            "SELECT AVG(age) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID",
            "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Age ASC LIMIT 1",
            "SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Age ASC LIMIT 1"
        ]
    },
    {
        "db_id": "gymnast",
        "final_query": "SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T1.Total_Points  >  57.5",
        "final_utterance": "What are the distinct hometowns of gymnasts with total points more than 57.5?",
        "interaction_utterance": [
            "What is the average total points of gymnasts?",
            "How many gymnasts are there that have total points more than 50?",
            "How about the number of gymnasts with total points more than 57.5?",
            "What are the distinct hometowns of these gymnasts?"
        ],
        "interaction_query": [
            "SELECT AVG(Total_Points) FROM gymnast",
            "SELECT COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T1.Total_Points  >  50",
            "SELECT COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T1.Total_Points  >  57.5",
            "SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T1.Total_Points  >  57.5"
        ]
    },
    {
        "db_id": "gymnast",
        "final_query": "SELECT T2.Hometown ,  COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown",
        "final_utterance": "What are the hometowns of gymnasts and the corresponding number of gymnasts?",
        "interaction_utterance": [
            "How many gymnasts are there?",
            "How many gymnasts are there in each age group?",
            "How many gymnasts are there in each hometown?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID",
            "SELECT T2.Age ,  COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Age",
            "SELECT T2.Hometown ,  COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown"
        ]
    },
    {
        "db_id": "gymnast",
        "final_query": "SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "What is the most common hometown of gymnasts?",
        "interaction_utterance": [
            "How many distinct hometowns are there?",
            "How many gymnasts are from each town?",
            "What is the most common hometown?"
        ],
        "interaction_query": [
            "SELECT COUNT(DISTINCT Hometown) FROM people",
            "SELECT T2.Hometown, COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown",
            "SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "gymnast",
        "final_query": "SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*)  >=  2",
        "final_utterance": "What are the hometowns that are shared by at least two gymnasts?",
        "interaction_utterance": [
            "How many distinct hometowns are there?",
            "How many gymnasts are there in each hometown?",
            "Which hometown has more than 1 gymnast?"
        ],
        "interaction_query": [
            "SELECT COUNT(DISTINCT Hometown) FROM people",
            "SELECT T2.Hometown, COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown",
            "SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*)  >=  2"
        ]
    },
    {
        "db_id": "gymnast",
        "final_query": "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Height ASC",
        "final_utterance": "List the names of gymnasts in ascending order by their heights.",
        "interaction_utterance": [
            "Who is the tallest gymnast?",
            "How about the shortest gymnast?",
            "Please show the names of gymnasts in ascending order by their heights."
        ],
        "interaction_query": [
            "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Height DESC LIMIT 1",
            "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Height ASC LIMIT 1",
            "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Height ASC"
        ]
    },
    {
        "db_id": "gymnast",
        "final_query": "SELECT DISTINCT Hometown FROM people EXCEPT SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID",
        "final_utterance": "List the distinct hometowns that are not associated with any gymnast.",
        "interaction_utterance": [
            "What is the average Floor Exercise Points of gymnasts?",
            "Please show the hometowns of the gymnasts.",
            "Please show the hometowns of all people.",
            "What are the distinct hometowns that do not have any gymnasts?"
        ],
        "interaction_query": [
            "SELECT AVG(Floor_Exercise_Points) FROM gymnast",
            "SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID",
            "SELECT Hometown FROM people",
            "SELECT DISTINCT Hometown FROM people EXCEPT SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID"
        ]
    },
    {
        "db_id": "gymnast",
        "final_query": "SELECT Hometown FROM people WHERE Age  >  23 INTERSECT SELECT Hometown FROM people WHERE Age  <  20",
        "final_utterance": "Show the hometowns shared by people older than 23 and younger than 20.",
        "interaction_utterance": [
            "How many people are older than 23?",
            "How about the number of people younger than 20?",
            "Please show their hometowns.",
            "How about the hometowns shared by people older than 23 and younger than 20?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM people WHERE Age  >  23",
            "SELECT COUNT(*) FROM people WHERE Age  < 20",
            "SELECT Hometown FROM people WHERE Age  < 20",
            "SELECT Hometown FROM people WHERE Age  >  23 INTERSECT SELECT Hometown FROM people WHERE Age  <  20"
        ]
    },
    {
        "db_id": "phone_market",
        "final_query": "SELECT Name FROM phone WHERE Carrier  =  \"Sprint\" OR Carrier  =  \"TMobile\"",
        "final_utterance": "Show the names of phones with carrier either \"Sprint\" or \"TMobile\".",
        "interaction_utterance": [
            "What is the average price of phones?",
            "What about their names?",
            "Of those, only tell me the ones that are either \"Sprint\" or \"TMobile\" carriers."
        ],
        "interaction_query": [
            "SELECT AVG(Price) FROM phone",
            "SELECT Name FROM phone",
            "SELECT Name FROM phone WHERE Carrier  =  \"Sprint\" OR Carrier  =  \"TMobile\""
        ]
    },
    {
        "db_id": "phone_market",
        "final_query": "SELECT Carrier FROM phone ORDER BY Price DESC LIMIT 1",
        "final_utterance": "What is the carrier of the most expensive phone?",
        "interaction_utterance": [
            "What is the memory of the cheapest phone?",
            "Include the name as well please.",
            "What about for the most expensive phone?",
            "Which company carries this?"
        ],
        "interaction_query": [
            "SELECT Memory_in_G FROM phone ORDER BY Price ASC LIMIT 1",
            "SELECT Name, Memory_in_G FROM phone ORDER BY Price ASC LIMIT 1",
            "SELECT Name, Memory_in_G FROM phone ORDER BY Price DESC LIMIT 1",
            "SELECT Carrier FROM phone ORDER BY Price DESC LIMIT 1"
        ]
    },
    {
        "db_id": "phone_market",
        "final_query": "SELECT Carrier FROM phone GROUP BY Carrier ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the most frequently used carrier of the phones.",
        "interaction_utterance": [
            "What is the cheapest phone?",
            "Which carrier has this?",
            "Which one has the most phones instead?"
        ],
        "interaction_query": [
            "SELECT * FROM phone ORDER BY Price ASC LIMIT 1",
            "SELECT Carrier FROM phone ORDER BY Price ASC LIMIT 1",
            "SELECT Carrier FROM phone GROUP BY Carrier ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "phone_market",
        "final_query": "SELECT Carrier FROM phone WHERE Memory_in_G  <  32 INTERSECT SELECT Carrier FROM phone WHERE Memory_in_G  >  64",
        "final_utterance": "Show the carriers that have both phones with memory smaller than 32 and phones with memory bigger than 64.",
        "interaction_utterance": [
            "Show me all the phone carriers.",
            "The ones with a phones having a price range of 700 to 900?",
            "How about the ones that have phones both price less than 700 and price more than 900.",
            "What about phones with memory less than 32 and memory greater than 64?"
        ],
        "interaction_query": [
            "SELECT Carrier FROM phone",
            "SELECT Carrier from phone WHERE Price > 700 AND Price < 900",
            "SELECT Carrier FROM phone WHERE Price  <  700 INTERSECT SELECT Carrier FROM phone WHERE Price  >  900",
            "SELECT Carrier FROM phone WHERE Memory_in_G  <  32 INTERSECT SELECT Carrier FROM phone WHERE Memory_in_G  >  64"
        ]
    },
    {
        "db_id": "phone_market",
        "final_query": "SELECT T3.Name ,  T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID  =  T3.Phone_ID",
        "final_utterance": "Show the names of phones and the districts of markets they are on.",
        "interaction_utterance": [
            "What are the names of the phones available?",
            "What about those available in Alberta?",
            "Show the district as well.",
            "Remove the restriction of those in Alberta only, show all instead."
        ],
        "interaction_query": [
            "SELECT Name FROM phone",
            "SELECT T3.Name FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID  =  T3.Phone_ID WHERE T2.District = \"Alberta\"",
            "SELECT T3.Name, T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID  =  T3.Phone_ID WHERE T2.District = \"Alberta\"",
            "SELECT T3.Name ,  T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID  =  T3.Phone_ID"
        ]
    },
    {
        "db_id": "phone_market",
        "final_query": "SELECT T3.Name ,  T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID  =  T3.Phone_ID ORDER BY T2.Ranking",
        "final_utterance": "Show the names of phones and the districts of markets they are on, in ascending order of the ranking of the market.",
        "interaction_utterance": [
            "What are the names and districts of the phones I can find in Ontario?",
            "What about for each of the market district?",
            "Order those by increasing number of shops.",
            "By ranking instead?"
        ],
        "interaction_query": [
            "SELECT T3.Name, T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID  =  T3.Phone_ID WHERE T2.District = \"Ontario\"",
            "SELECT T3.Name, T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID  =  T3.Phone_ID",
            "SELECT T3.Name, T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID  =  T3.Phone_ID ORDER BY T2.Num_of_shops",
            "SELECT T3.Name ,  T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID  =  T3.Phone_ID ORDER BY T2.Ranking"
        ]
    },
    {
        "db_id": "phone_market",
        "final_query": "SELECT T3.Name FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID  =  T3.Phone_ID WHERE T2.Num_of_shops  >  50",
        "final_utterance": "Show the names of phones that are on market with number of shops greater than 50.",
        "interaction_utterance": [
            "What are the markets with at least 30 shops?",
            "50 shops?",
            "What are their phones?"
        ],
        "interaction_query": [
            "SELECT * FROM market WHERE Num_of_shops > 30",
            "SELECT * FROM market WHERE Num_of_shops > 50",
            "SELECT T3.Name FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID  =  T3.Phone_ID WHERE T2.Num_of_shops  >  50"
        ]
    },
    {
        "db_id": "phone_market",
        "final_query": "SELECT T2.Name ,  sum(T1.Num_of_stock) FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID  =  T2.Phone_ID GROUP BY T2.Name",
        "final_utterance": "For each phone, show its names and total number of stocks.",
        "interaction_utterance": [
            "What are the names of the phones?",
            "Show me their memory as well.",
            "Their total stocks?"
        ],
        "interaction_query": [
            "SELECT Name FROM phone",
            "SELECT Name, Memory_in_G FROM phone",
            "SELECT T2.Name ,  sum(T1.Num_of_stock) FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID  =  T2.Phone_ID GROUP BY T2.Name"
        ]
    },
    {
        "db_id": "phone_market",
        "final_query": "SELECT T2.Name FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID  =  T2.Phone_ID GROUP BY T2.Name HAVING sum(T1.Num_of_stock)  >=  2000 ORDER BY sum(T1.Num_of_stock) DESC",
        "final_utterance": "Show the names of phones that have total number of stocks bigger than 2000, in descending order of the total number of stocks.",
        "interaction_utterance": [
            "Show the names of phones and their stocks.",
            "Of those, which have 64 GB memory?",
            "How about the having total stocks at least 2000 instead?",
            "Don't show their number of stocks.",
            "Can you sort them in increasing order of total stocks?",
            "Decreasing order instead."
        ],
        "interaction_query": [
            "SELECT T2.Name, T1.Num_of_stock FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID",
            "SELECT T2.Name, T1.Num_of_stock FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID WHERE T2.Memory_in_G = 64",
            "SELECT T2.Name, T1.Num_of_stock FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID GROUP BY T2.Name HAVING sum(T1.Num_of_stock)  >=  2000",
            "SELECT T2.Name FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID GROUP BY T2.Name HAVING sum(T1.Num_of_stock)  >=  2000",
            "SELECT T2.Name FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID GROUP BY T2.Name HAVING sum(T1.Num_of_stock)  >=  2000 ORDER BY sum(T1.Num_of_stock)",
            "SELECT T2.Name FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID GROUP BY T2.Name HAVING sum(T1.Num_of_stock)  >=  2000 ORDER BY sum(T1.Num_of_stock) DESC"
        ]
    },
    {
        "db_id": "election_representative",
        "final_query": "SELECT min(Vote_Percent) ,  max(Vote_Percent) FROM election",
        "final_utterance": "What are the minimum and maximum vote percents of elections?",
        "interaction_utterance": [
            "Show me the vote percents of all the elections.",
            "What are the minimum and maximum ones of them?"
        ],
        "interaction_query": [
            "SELECT Vote_Percent FROM election",
            "SELECT min(Vote_Percent) ,  max(Vote_Percent) FROM election"
        ]
    },
    {
        "db_id": "election_representative",
        "final_query": "SELECT Lifespan FROM representative WHERE State  =  \"New York\" OR State  =  \"Indiana\"",
        "final_utterance": "What are the life spans of representatives from New York state or Indiana state?",
        "interaction_utterance": [
            "Show me the the name of all the representatives.",
            "Only show me those from New York or Indiana.",
            "What about their life spans?"
        ],
        "interaction_query": [
            "SELECT Name FROM representative",
            "SELECT Name FROM representative WHERE State  =  \"New York\" OR State  =  \"Indiana\"",
            "SELECT Lifespan FROM representative WHERE State  =  \"New York\" OR State  =  \"Indiana\""
        ]
    },
    {
        "db_id": "election_representative",
        "final_query": "SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID WHERE Votes  >  10000",
        "final_utterance": "What are the names of representatives with more than 10000 votes in election?",
        "interaction_utterance": [
            "Show me the name of all the representatives.",
            "What about their votes in their elections?",
            "Only show me the name of those with more than 10000 votes."
        ],
        "interaction_query": [
            "SELECT Name FROM representative",
            "SELECT T2.Name,T1.votes FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID",
            "SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID WHERE Votes  >  10000"
        ]
    },
    {
        "db_id": "election_representative",
        "final_query": "SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID ORDER BY votes DESC",
        "final_utterance": "What are the names of representatives in descending order of votes?",
        "interaction_utterance": [
            "Show me the name of all the representatives.",
            "What about their votes in their elections?",
            "Show me their names in descending order of votes."
        ],
        "interaction_query": [
            "SELECT Name FROM representative",
            "SELECT T2.Name,T1.votes FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID",
            "SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID ORDER BY votes DESC"
        ]
    },
    {
        "db_id": "election_representative",
        "final_query": "SELECT T2.Party FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID ORDER BY votes ASC LIMIT 1",
        "final_utterance": "What is the party of the representative that has the smallest number of votes.",
        "interaction_utterance": [
            "Show me the names of all parties of the representative.",
            "Show me the names of all the representatives.",
            "What are their votes?",
            "What is the party of the one with the smallest number of votes?"
        ],
        "interaction_query": [
            "SELECT DISTINCT Party FROM representative",
            "SELECT Name FROM representative",
            "SELECT T2.Name,T1.votes FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID",
            "SELECT T2.Party FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID ORDER BY votes ASC LIMIT 1"
        ]
    },
    {
        "db_id": "election_representative",
        "final_query": "SELECT T2.Lifespan FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID ORDER BY Vote_Percent DESC",
        "final_utterance": "What are the lifespans of representatives in descending order of vote percent?",
        "interaction_utterance": [
            "Show me the names of all the representatives.",
            "What about their lifespans?",
            "Please list them in descending order of their vote percentage."
        ],
        "interaction_query": [
            "SELECT Name FROM representative",
            "SELECT Name, lifespan FROM representative",
            "SELECT T2.Lifespan FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID ORDER BY Vote_Percent DESC"
        ]
    },
    {
        "db_id": "election_representative",
        "final_query": "SELECT avg(T1.Votes) FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID WHERE T2.Party  =  \"Republican\"",
        "final_utterance": "What is the average number of votes of representatives from party \"Republican\"?",
        "interaction_utterance": [
            "Show me the name of representatives from Republican party.",
            "What about their votes?",
            "Show me the average of them."
        ],
        "interaction_query": [
            "SELECT name FROM representative WHERE party = \"Republican\"",
            "SELECT T2.name, T1.Votes FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID WHERE T2.Party  =  \"Republican\"",
            "SELECT avg(T1.Votes) FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID WHERE T2.Party  =  \"Republican\""
        ]
    },
    {
        "db_id": "election_representative",
        "final_query": "SELECT Party ,  COUNT(*) FROM representative GROUP BY Party ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "What is the party that has the largest number of representatives?",
        "interaction_utterance": [
            "What are the name of parties of representatives?",
            "Show me the number of representatives in each party.",
            "Give me the party that has more."
        ],
        "interaction_query": [
            "SELECT DISTINCT Party FROM representative",
            "SELECT Party ,  COUNT(*) FROM representative GROUP BY Party",
            "SELECT Party ,  COUNT(*) FROM representative GROUP BY Party ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "election_representative",
        "final_query": "SELECT Party FROM representative GROUP BY Party HAVING COUNT(*)  >=  3",
        "final_utterance": "What parties have at least three representatives?",
        "interaction_utterance": [
            "What are the name of parties of representatives?",
            "Show me the number of representatives in each party.",
            "Give me the parties that have at least three of them."
        ],
        "interaction_query": [
            "SELECT DISTINCT Party FROM representative",
            "SELECT Party ,  COUNT(*) FROM representative GROUP BY Party",
            "SELECT Party FROM representative GROUP BY Party HAVING COUNT(*)  >=  3"
        ]
    },
    {
        "db_id": "election_representative",
        "final_query": "SELECT State FROM representative GROUP BY State HAVING COUNT(*)  >=  2",
        "final_utterance": "What states have at least two representatives?",
        "interaction_utterance": [
            "Show me the name of the states of representative.",
            "What about their number of representatives?",
            "Show me the states that have at least of them."
        ],
        "interaction_query": [
            "SELECT State FROM representative",
            "SELECT State, COUNT(*) FROM representative GROUP BY State",
            "SELECT State FROM representative GROUP BY State HAVING COUNT(*)  >=  2"
        ]
    },
    {
        "db_id": "election_representative",
        "final_query": "SELECT Name FROM representative WHERE Representative_ID NOT IN (SELECT Representative_ID FROM election)",
        "final_utterance": "List the names of representatives that have not participated in elections listed here.",
        "interaction_utterance": [
            "Show me the names of all the representatives.",
            "Who have not participated in elections listed here?"
        ],
        "interaction_query": [
            "SELECT Name FROM representative",
            "SELECT Name FROM representative WHERE Representative_ID NOT IN (SELECT Representative_ID FROM election)"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT name FROM races ORDER BY date DESC LIMIT 1",
        "final_utterance": "What is the name of the race held most recently?",
        "interaction_utterance": [
            "What are all the races?",
            "Show the name of the one held most recently."
        ],
        "interaction_query": [
            "SELECT * FROM races",
            "SELECT name FROM races ORDER BY date DESC LIMIT 1"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT name ,  date FROM races ORDER BY date DESC LIMIT 1",
        "final_utterance": "What is the name and date of the most recent race?",
        "interaction_utterance": [
            "What are all the races?",
            "What is the most recent one?",
            "Only show its name and date."
        ],
        "interaction_query": [
            "SELECT * FROM races",
            "SELECT * FROM races ORDER BY date DESC LIMIT 1",
            "SELECT name ,  date FROM races ORDER BY date DESC LIMIT 1"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT name FROM races WHERE YEAR = 2017",
        "final_utterance": "Find the names of all races held in 2017.",
        "interaction_utterance": [
            "What are all the races held in 2017?",
            "Only show their names."
        ],
        "interaction_query": [
            "SELECT * FROM races WHERE YEAR = 2017",
            "SELECT name FROM races WHERE YEAR = 2017"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT DISTINCT name FROM races WHERE YEAR BETWEEN 2014 AND 2017",
        "final_utterance": "Find the distinct names of all races held between 2014 and 2017?",
        "interaction_utterance": [
            "What are all races held between 2014 and 2017?",
            "Show the distinct names of them."
        ],
        "interaction_query": [
            "SELECT * FROM races WHERE YEAR BETWEEN 2014 AND 2017",
            "SELECT DISTINCT name FROM races WHERE YEAR BETWEEN 2014 AND 2017"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT DISTINCT T1.forename ,  T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000",
        "final_utterance": "List the forename and surname of all distinct drivers who once had laptime less than 93000 milliseconds?",
        "interaction_utterance": [
            "What are all the drivers?",
            "What about those who once had laptime less than 93000 milliseconds?",
            "Show the distinct forename and surname of them."
        ],
        "interaction_query": [
            "SELECT * FROM drivers",
            "SELECT * FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000",
            "SELECT DISTINCT T1.forename ,  T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT DISTINCT T1.driverid ,  T1.nationality FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds >  100000",
        "final_utterance": "Find all the distinct id and nationality of drivers who have had laptime more than 100000 milliseconds?",
        "interaction_utterance": [
            "What are all the drivers?",
            "What about those who once had laptime more than 100000 milliseconds?",
            "Show the distinct driver id and nationality of them."
        ],
        "interaction_query": [
            "SELECT * FROM drivers",
            "SELECT * FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds >  100000",
            "SELECT DISTINCT T1.driverid ,  T1.nationality FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds >  100000"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT T1.forename ,  T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds LIMIT 1",
        "final_utterance": "What are the forename and surname of the driver who has the smallest laptime?",
        "interaction_utterance": [
            "What are all the drivers?",
            "Show the forename and surname of the one with the smallest laptime."
        ],
        "interaction_query": [
            "SELECT * FROM drivers",
            "SELECT T1.forename ,  T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds LIMIT 1"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT T1.driverid ,  T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1",
        "final_utterance": "What is the id and family name of the driver who has the longest laptime?",
        "interaction_utterance": [
            "What are all the drivers?",
            "Show the id and family name of the one with the longest laptime."
        ],
        "interaction_query": [
            "SELECT * FROM drivers",
            "SELECT T1.driverid ,  T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT T1.driverid ,  T1.forename ,  T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE POSITION  =  '1' GROUP BY T1.driverid HAVING count(*)  >=  2",
        "final_utterance": "What is the id, forename and surname of the driver who had the first position in terms of laptime at least twice?",
        "interaction_utterance": [
            "What are all the drivers?",
            "Which ones of them had the first position in terms of laptime at least twice?",
            "Only show their id, forename and surname"
        ],
        "interaction_query": [
            "SELECT * FROM drivers",
            "SELECT * FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE POSITION  =  '1' GROUP BY T1.driverid HAVING count(*)  >=  2",
            "SELECT T1.driverid ,  T1.forename ,  T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE POSITION  =  '1' GROUP BY T1.driverid HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT count(*) FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid WHERE T2.name = \"Australian Grand Prix\" AND YEAR = 2009",
        "final_utterance": "How many drivers participated in the race Australian Grand Prix held in 2009?",
        "interaction_utterance": [
            "What are all the drivers?",
            "Which ones of them participated in the race Australian Grand Prix held in 2009?"
        ],
        "interaction_query": [
            "SELECT * FROM drivers",
            "SELECT count(*) FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid WHERE T2.name = \"Australian Grand Prix\" AND YEAR = 2009"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT count(DISTINCT driverId) FROM results WHERE raceId NOT IN( SELECT raceId FROM races WHERE YEAR != 2009 )",
        "final_utterance": "How many drivers did not participate in the races held in 2009?",
        "interaction_utterance": [
            "What are all the drivers?",
            "Which ones of them did not participate in the races held in 2009?"
        ],
        "interaction_query": [
            "SELECT * FROM drivers",
            "SELECT count(DISTINCT driverId) FROM results WHERE raceId NOT IN( SELECT raceId FROM races WHERE YEAR != 2009 )"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT T2.name ,  T2.year FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T1.driverid = T3.driverid WHERE T3.forename = \"Lewis\"",
        "final_utterance": "Give me a list of names and years of races that had any driver whose forename is Lewis?",
        "interaction_utterance": [
            "What are all the drivers with forename Lewis?",
            "Show the names and years of races that had any of them?"
        ],
        "interaction_query": [
            "SELECT * FROM drivers WHERE forename = \"Lewis\"",
            "SELECT T2.name ,  T2.year FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T1.driverid = T3.driverid WHERE T3.forename = \"Lewis\""
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT forename ,  surname FROM drivers WHERE nationality = \"German\"",
        "final_utterance": "Find the forename and surname of drivers whose nationality is German?",
        "interaction_utterance": [
            "What are all the drivers?",
            "Show the forename and surname of those whose nationality is German."
        ],
        "interaction_query": [
            "SELECT * FROM drivers",
            "SELECT forename ,  surname FROM drivers WHERE nationality = \"German\""
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT T2.driverid ,  T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid  =  T3.driverid WHERE T1.name = \"Australian Grand Prix\" INTERSECT SELECT T2.driverid ,  T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid  =  T3.driverid WHERE T1.name = \"Chinese Grand Prix\"",
        "final_utterance": "Find the ids and forenames of drivers who participated both the races with name Australian Grand Prix and the races with name Chinese Grand Prix?",
        "interaction_utterance": [
            "What are the ids and forenames of drivers that participated in races with name Australian Grand Prix?",
            "Among them, show those who also participated the races with name Chinese Grand Prix."
        ],
        "interaction_query": [
            "SELECT T2.driverid ,  T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid  =  T3.driverid WHERE T1.name = \"Australian Grand Prix\"",
            "SELECT T2.driverid ,  T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid  =  T3.driverid WHERE T1.name = \"Australian Grand Prix\" INTERSECT SELECT T2.driverid ,  T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid  =  T3.driverid WHERE T1.name = \"Chinese Grand Prix\""
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT T3.forename ,  T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Australian Grand Prix\" EXCEPT SELECT T3.forename ,  T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Chinese Grand Prix\"",
        "final_utterance": "What are the forenames and surnames of drivers who participated in the races named Australian Grand Prix but not the races named Chinese Grand Prix?",
        "interaction_utterance": [
            "What are the forenames and surnames of drivers that participated in races with name Australian Grand Prix?",
            "Among them, show those who did not participate in the races named Chinese Grand Prix."
        ],
        "interaction_query": [
            "SELECT T3.forename ,  T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Australian Grand Prix\"",
            "SELECT T3.forename ,  T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Australian Grand Prix\" EXCEPT SELECT T3.forename ,  T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Chinese Grand Prix\""
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1",
        "final_utterance": "Find all the forenames of distinct drivers who was in position 1 as standing and won?",
        "interaction_utterance": [
            "Who are all the drivers who was in position 1 as standing?",
            "Among them, show the distinct forenames of those who also won?"
        ],
        "interaction_query": [
            "SELECT * FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1",
            "SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 AND T2.points > 20",
        "final_utterance": "Find all the forenames of distinct drivers who won in position 1 as driver standing and had more than 20 points?",
        "interaction_utterance": [
            "Who are all the drivers who was in position 1 as standing?",
            "Among them, show those who also won?",
            "Furthermore, show the distinct forenames of those who had more than 20 points."
        ],
        "interaction_query": [
            "SELECT * FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1",
            "SELECT * FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1",
            "SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 AND T2.points > 20"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT count(*) ,  nationality FROM constructors GROUP BY nationality",
        "final_utterance": "What are the numbers of constructors for different nationalities?",
        "interaction_utterance": [
            "Who are all the constructors?",
            "Show the number of them in terms of each nationality."
        ],
        "interaction_query": [
            "SELECT * FROM constructors",
            "SELECT count(*) ,  nationality FROM constructors GROUP BY nationality"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT count(*) ,  constructorid FROM constructorStandings GROUP BY constructorid",
        "final_utterance": "What are the numbers of races for each constructor id?",
        "interaction_utterance": [
            "What are all the constructors?",
            "How many races did each of them have?"
        ],
        "interaction_query": [
            "SELECT * FROM constructors",
            "SELECT count(*) ,  constructorid FROM constructorStandings GROUP BY constructorid"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = \"Spain\" AND T1.year > 2017",
        "final_utterance": "What are the names of races that were held after 2017 and the circuits were in the country of Spain?",
        "interaction_utterance": [
            "What are all the races?",
            "What are the names of those that were held after 2017?",
            "Among them, show those with their circuits in Spain."
        ],
        "interaction_query": [
            "SELECT * FROM races",
            "SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T1.year > 2017",
            "SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = \"Spain\" AND T1.year > 2017"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT DISTINCT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = \"Spain\" AND T1.year > 2000",
        "final_utterance": "What are the unique names of races that held after 2000 and the circuits were in Spain?",
        "interaction_utterance": [
            "What are all the races?",
            "What are the names of those that were held after 2000?",
            "Among them, show the distinct name of those with their circuits in Spain."
        ],
        "interaction_query": [
            "SELECT * FROM races",
            "SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T1.year > 2000",
            "SELECT DISTINCT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = \"Spain\" AND T1.year > 2000"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT DISTINCT driverid ,  STOP FROM pitstops WHERE duration  <  (SELECT max(duration) FROM pitstops WHERE raceid  =  841)",
        "final_utterance": "Find the distinct driver id and the stop number of all drivers that have a shorter pit stop duration than some drivers in the race with id 841.",
        "interaction_utterance": [
            "What is the maximum pit stop duration in the race with id 841?",
            "Find distinct driver ids and stop numbers of all drivers that have a shorter pit stop duration that that one."
        ],
        "interaction_query": [
            "SELECT max(duration) FROM pitstops WHERE raceid  =  841",
            "SELECT DISTINCT driverid ,  STOP FROM pitstops WHERE duration  <  (SELECT max(duration) FROM pitstops WHERE raceid  =  841)"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT DISTINCT driverid ,  STOP FROM pitstops WHERE duration  >  (SELECT min(duration) FROM pitstops WHERE raceid  =  841)",
        "final_utterance": "Find the distinct driver id of all drivers that have a longer stop duration than some drivers in the race whose id is 841?",
        "interaction_utterance": [
            "What is the minimum pit stop duration in the race with id 841?",
            "Find distinct driver ids and stop numbers of all drivers that have a longer pit stop duration that that one."
        ],
        "interaction_query": [
            "SELECT min(duration) FROM pitstops WHERE raceid  =  841",
            "SELECT DISTINCT driverid ,  STOP FROM pitstops WHERE duration  >  (SELECT min(duration) FROM pitstops WHERE raceid  =  841)"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT DISTINCT forename FROM drivers ORDER BY forename ASC",
        "final_utterance": "List the forenames of all distinct drivers in alphabetical order?",
        "interaction_utterance": [
            "What are the forenames of all the drivers?",
            "Show the distinct of them in alphabetical order."
        ],
        "interaction_query": [
            "SELECT forename FROM drivers",
            "SELECT DISTINCT forename FROM drivers ORDER BY forename ASC"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT DISTINCT name FROM races ORDER BY name DESC",
        "final_utterance": "List the names of all distinct races in reversed  lexicographic order?",
        "interaction_utterance": [
            "What are the names of all the races?",
            "Show their distinct names in reversed lexicographic order."
        ],
        "interaction_query": [
            "SELECT name FROM races",
            "SELECT DISTINCT name FROM races ORDER BY name DESC"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT name FROM races WHERE YEAR BETWEEN 2009 AND 2011",
        "final_utterance": "What are the names of races held between 2009 and 2011?",
        "interaction_utterance": [
            "What are all the races?",
            "Which of them are held between 2009 and 2011?"
        ],
        "interaction_query": [
            "SELECT * FROM races",
            "SELECT name FROM races WHERE YEAR BETWEEN 2009 AND 2011"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT name FROM races WHERE TIME > \"12:00:00\" OR TIME < \"09:00:00\"",
        "final_utterance": "What are the names of races held after 12:00:00 or before 09:00:00?",
        "interaction_utterance": [
            "What are the names of all the races?",
            "Which of them are held after 12:00:00 or before 09:00:00?"
        ],
        "interaction_query": [
            "SELECT name FROM races",
            "SELECT name FROM races WHERE TIME > \"12:00:00\" OR TIME < \"09:00:00\""
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT T1.forename ,  T1.surname ,  T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid  =  T2.driverid GROUP BY T1.driverid HAVING count(*)  >  8 UNION SELECT T1.forename ,  T1.surname ,  T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid  =  T2.driverid GROUP BY T1.driverid HAVING count(*)  >  5",
        "final_utterance": "What are the drivers' first, last names and id who had more than 8 pit stops or participated in more than 5 races?",
        "interaction_utterance": [
            "What are the first, last names and ids of all the drivers?",
            "Show those who had more than 8 pit stops.",
            "Include drivers who participated in more than 5 races"
        ],
        "interaction_query": [
            "SELECT forename, surname, driverid FROM drivers",
            "SELECT T1.forename ,  T1.surname ,  T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid  =  T2.driverid GROUP BY T1.driverid HAVING count(*)  >  8",
            "SELECT T1.forename ,  T1.surname ,  T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid  =  T2.driverid GROUP BY T1.driverid HAVING count(*)  >  8 UNION SELECT T1.forename ,  T1.surname ,  T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid  =  T2.driverid GROUP BY T1.driverid HAVING count(*)  >  5"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT T1.surname ,  T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid  =  T2.driverid GROUP BY T1.driverid HAVING count(*)  =  11 INTERSECT SELECT T1.surname ,  T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid  =  T2.driverid GROUP BY T1.driverid HAVING count(*)  >  5",
        "final_utterance": "What are the drivers' last names and id who had 11 pit stops and participated in more than 5 race results?",
        "interaction_utterance": [
            "What are the last names and ids of all the drivers?",
            "Show those who had 11 pit stops.",
            "Among those, who also participated in more than 5 race results?"
        ],
        "interaction_query": [
            "SELECT surname, driverid FROM drivers",
            "SELECT T1.surname ,  T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid  =  T2.driverid GROUP BY T1.driverid HAVING count(*)  =  11",
            "SELECT T1.surname ,  T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid  =  T2.driverid GROUP BY T1.driverid HAVING count(*)  =  11 INTERSECT SELECT T1.surname ,  T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid  =  T2.driverid GROUP BY T1.driverid HAVING count(*)  >  5"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT T1.driverid ,  T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid  =  T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the id and last name of the driver who participated in the most races after 2010?",
        "interaction_utterance": [
            "What are the ids and last names of all the drivers?",
            "Who participated in the most races after 2010?"
        ],
        "interaction_query": [
            "SELECT driverid, surname FROM drivers",
            "SELECT T1.driverid ,  T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid  =  T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT name FROM circuits WHERE country = \"UK\" OR country = \"Malaysia\"",
        "final_utterance": "What are the names of circuits that belong to UK or Malaysia?",
        "interaction_utterance": [
            "What are the names of all the circuits?",
            "Which of them belong to UK or Malaysia?"
        ],
        "interaction_query": [
            "SELECT name FROM circuits",
            "SELECT name FROM circuits WHERE country = \"UK\" OR country = \"Malaysia\""
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT circuitid ,  LOCATION FROM circuits WHERE country = \"France\" OR country = \"Belgium\"",
        "final_utterance": "Find the id and location of circuits that belong to France or Belgium?",
        "interaction_utterance": [
            "What are the ids and locations of all the circuits?",
            "Which of them belong to France or Belgium?"
        ],
        "interaction_query": [
            "SELECT circuitid ,  LOCATION FROM circuits",
            "SELECT circuitid ,  LOCATION FROM circuits WHERE country = \"France\" OR country = \"Belgium\""
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = \"Japanese\" AND T2.points > 5",
        "final_utterance": "Find the names of Japanese constructors that have once earned more than 5 points?",
        "interaction_utterance": [
            "What are the names of all the constructors?",
            "Show the names of those who are Japanese.",
            "Among those, who have once earned more than 5 points?"
        ],
        "interaction_query": [
            "SELECT * FROM constructors",
            "SELECT name FROM constructors WHERE nationality = \"Japanese\"",
            "SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = \"Japanese\" AND T2.points > 5"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT avg(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = \"Monaco Grand Prix\"",
        "final_utterance": "What is the average fastest lap speed in race named 'Monaco Grand Prix' in 2008 ?",
        "interaction_utterance": [
            "What is the race named 'Monaco Grand Prix' in 2008.",
            "What are the fastest lap speed in that race?",
            "Show the average of them."
        ],
        "interaction_query": [
            "SELECT * FROM races WHERE year = 2008 AND name = \"Monaco Grand Prix\"",
            "SELECT T2.fastestlapspeed FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = \"Monaco Grand Prix\"",
            "SELECT avg(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = \"Monaco Grand Prix\""
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT max(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = \"Monaco Grand Prix\"",
        "final_utterance": "What is the maximum fastest lap speed in race named 'Monaco Grand Prix' in 2008 ?",
        "interaction_utterance": [
            "What is the race named 'Monaco Grand Prix' in 2008.",
            "What are the fastest lap speed in that race?",
            "Show the maximum of them."
        ],
        "interaction_query": [
            "SELECT * FROM races WHERE year = 2008 AND name = \"Monaco Grand Prix\"",
            "SELECT T2.fastestlapspeed FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = \"Monaco Grand Prix\"",
            "SELECT max(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = \"Monaco Grand Prix\""
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT max(T2.fastestlapspeed) ,  T1.name ,  T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year",
        "final_utterance": "What are the maximum fastest lap speed in races held after 2014 grouped by race name and ordered by year?",
        "interaction_utterance": [
            "What are all the races held after 2014?",
            "What are the maximum fastest lap speed in those races in term of each race?",
            "Show them in order of year."
        ],
        "interaction_query": [
            "SELECT * FROM races WHERE year > 2014",
            "SELECT max(T2.fastestlapspeed) ,  T1.name ,  T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name",
            "SELECT max(T2.fastestlapspeed) ,  T1.name ,  T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT avg(T2.fastestlapspeed) ,  T1.name ,  T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year",
        "final_utterance": "What are the average fastest lap speed in races held after 2004 grouped by race name and ordered by year?",
        "interaction_utterance": [
            "What are all the races held after 2014?",
            "What are the average fastest lap speed in those races in term of each race?",
            "Show them in order of year."
        ],
        "interaction_query": [
            "SELECT * FROM races WHERE year > 2014",
            "SELECT avg(T2.fastestlapspeed) ,  T1.name ,  T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name",
            "SELECT avg(T2.fastestlapspeed) ,  T1.name ,  T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT T1.driverid ,  T1.forename ,  count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*)  >=  2",
        "final_utterance": "Find the id, forename and number of races of all drivers who have at least participated in two races?",
        "interaction_utterance": [
            "What are all the drivers?",
            "Show the id, forename and number of races of those who have at least participated in two races."
        ],
        "interaction_query": [
            "SELECT * FROM drivers",
            "SELECT T1.driverid ,  T1.forename ,  count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "formula_1",
        "final_query": "SELECT T1.driverid ,  count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*)  <=  30",
        "final_utterance": "Find the driver id and number of races of all drivers who have at most participated in 30 races?",
        "interaction_utterance": [
            "Who are all the drivers?",
            "Show the id and number of races of those who have at most participated in 30 races."
        ],
        "interaction_query": [
            "SELECT * FROM drivers",
            "SELECT T1.driverid ,  count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*)  <=  30"
        ]
    },
    {
        "db_id": "phone_1",
        "final_query": "SELECT Model_name ,  RAM_MiB FROM chip_model ORDER BY RAM_MiB ASC LIMIT 1;",
        "final_utterance": "Which model has the least amount of RAM? List the model name and the amount of RAM.",
        "interaction_utterance": [
            "tell me the Ram of the chip with model name X5.",
            "How about the X3 Basic's?",
            "Which model has the least amount of RAM? List the model name and the amount of RAM."
        ],
        "interaction_query": [
            "SELECT RAM_MiB FROM chip_model WHERE Model_name = \"X5\"",
            "SELECT RAM_MiB FROM chip_model WHERE Model_name = \"X3 Basic\"",
            "SELECT Model_name ,  RAM_MiB FROM chip_model ORDER BY RAM_MiB ASC LIMIT 1;"
        ]
    },
    {
        "db_id": "phone_1",
        "final_query": "SELECT max(T1.RAM_MiB) ,  min(T1.RAM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T2.Company_name = \"Nokia Corporation\";",
        "final_utterance": "What is maximum and minimum RAM size of phone produced by company named \"Nokia Corporation\"?",
        "interaction_utterance": [
            "tell me the chip models produced by the company named \"Nokia Corporation\".",
            "Okay, tell me the RAM size of those chip models.",
            "So, what is maximum and minimum RAM size?"
        ],
        "interaction_query": [
            "SELECT chip_model FROM phone WHERE Company_name = \"Nokia Corporation\"",
            "SELECT T1.RAM_MiB FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T2.Company_name = \"Nokia Corporation\";",
            "SELECT max(T1.RAM_MiB) ,  min(T1.RAM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T2.Company_name = \"Nokia Corporation\""
        ]
    },
    {
        "db_id": "phone_1",
        "final_query": "SELECT avg(T1.ROM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T2.Company_name = \"Nokia Corporation\";",
        "final_utterance": "What is the average ROM size of phones produced by the company named \"Nokia Corporation\"?",
        "interaction_utterance": [
            "tell me the chip model produced by the company named \"Nokia Corporation\".",
            "Okay, tell me the ROM size of those chip models.",
            "So, what is the average ROM size?"
        ],
        "interaction_query": [
            "SELECT chip_model FROM phone WHERE Company_name = \"Nokia Corporation\"",
            "SELECT T1.ROM_MiB FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T2.Company_name = \"Nokia Corporation\";",
            "SELECT avg(T1.ROM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T2.Company_name = \"Nokia Corporation\""
        ]
    },
    {
        "db_id": "phone_1",
        "final_query": "SELECT T2.Hardware_Model_name ,  T2.Company_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T1.Launch_year = 2002 OR T1.RAM_MiB  >  32;",
        "final_utterance": "List the hardware model name and company name for all the phones that were launched in year 2002 or have RAM size greater than 32.",
        "interaction_utterance": [
            "Tell me the phones that were launched in the year 2002.",
            "What companies were they produced by?",
            "Give information about the company and hardware model name for phones that have RAM size greater than 32."
        ],
        "interaction_query": [
            "SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T1.Launch_year = 2002",
            "SELECT T2.Company_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T1.Launch_year = 2002",
            "SELECT T2.Hardware_Model_name ,  T2.Company_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T1.RAM_MiB  >  32;"
        ]
    },
    {
        "db_id": "phone_1",
        "final_query": "SELECT Hardware_Model_name ,  Company_name FROM phone WHERE Accreditation_type LIKE 'Full';",
        "final_utterance": "Find all phones that have word 'Full' in their accreditation types. List the Hardware Model name and Company name.",
        "interaction_utterance": [
            "Tell me the phones that have the word 'Provisional' in their accreditation types.",
            "How about their company names?",
            "Okay, I want to know the same information of the phones that have word 'Full' in their accreditation types."
        ],
        "interaction_query": [
            "SELECT Hardware_Model_name FROM phone WHERE Accreditation_type LIKE 'Provisional'",
            "SELECT Company_name FROM phone WHERE Accreditation_type LIKE 'Provisional';",
            "SELECT Hardware_Model_name ,  Company_name FROM phone WHERE Accreditation_type LIKE 'Full';"
        ]
    },
    {
        "db_id": "phone_1",
        "final_query": "SELECT T1.Char_cells ,  T1.Pixels ,  T1.Hardware_colours FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T2.Hardware_Model_name = \"LG-P760\";",
        "final_utterance": "Find the Char cells, Pixels and Hardware colours for the screen of the phone whose hardware model name is \"LG-P760\".",
        "interaction_utterance": [
            "Tell me the chip model of the phone with hardware model name \"LG-P760\".",
            "How about the Char cells, Pixels and Hardware colours for its screen?"
        ],
        "interaction_query": [
            "SELECT chip_model FROM phone WHERE Hardware_Model_name = \"LG-P760\"",
            "SELECT T1.Char_cells ,  T1.Pixels ,  T1.Hardware_colours FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T2.Hardware_Model_name = \"LG-P760\";"
        ]
    },
    {
        "db_id": "phone_1",
        "final_query": "SELECT T2.Hardware_Model_name ,  T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type  =  \"Graphics\";",
        "final_utterance": "List the hardware model name and company name for the phone whose screen mode type is \"Graphics\"",
        "interaction_utterance": [
            "List the hardware model name and company name for the phone whose screen mode type is \"Text\".",
            "How about that with screen mode type \"Graphics\"."
        ],
        "interaction_query": [
            "SELECT T2.Hardware_Model_name ,  T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type  =  \"Text\";",
            "SELECT T2.Hardware_Model_name ,  T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type  =  \"Graphics\""
        ]
    },
    {
        "db_id": "phone_1",
        "final_query": "SELECT Company_name ,  count(*) FROM phone GROUP BY Company_name ORDER BY count(*) ASC LIMIT 1;",
        "final_utterance": "Find the name of the company that has the least number of phone models. List the company name and the number of phone model produced by that company.",
        "interaction_utterance": [
            "Tell me the name of the company that has the largest number of phone models? Give the count as well.",
            "How about the smallest one?"
        ],
        "interaction_query": [
            "SELECT Company_name ,  count(*) FROM phone GROUP BY Company_name ORDER BY count(*) DESC LIMIT 1;",
            "SELECT Company_name ,  count(*) FROM phone GROUP BY Company_name ORDER BY count(*) ASC LIMIT 1;"
        ]
    },
    {
        "db_id": "phone_1",
        "final_query": "SELECT Company_name FROM phone GROUP BY Company_name HAVING count(*)  >  1;",
        "final_utterance": "List the name of the company that produced more than one phone model.",
        "interaction_utterance": [
            "Tell the name of the company which produced the phone Nokia 700.",
            "So what is the company which produced the phone LG-P760?",
            "Tell me the name of the company that produced more than one phone model."
        ],
        "interaction_query": [
            "SELECT Company_name FROM phone WHERE Hardware_Model_name = \"Nokia 700\"",
            "SELECT Company_name FROM phone WHERE Hardware_Model_name = \"LG-P760\"",
            "SELECT Company_name FROM phone GROUP BY Company_name HAVING count(*)  >  1;"
        ]
    },
    {
        "db_id": "phone_1",
        "final_query": "SELECT max(used_kb) , min(used_kb) , avg(used_kb) FROM screen_mode;",
        "final_utterance": "List the maximum, minimum and average number of used kb in screen mode.",
        "interaction_utterance": [
            "Tell me the distinct maps in screen mode.",
            "How about the used kb values?",
            "Okay, I want to know the maximum, minimum and average number of used kb in screen mode."
        ],
        "interaction_query": [
            "SELECT DISTINCT map FROM screen_mode",
            "SELECT DISTINCT used_kb FROM screen_mode",
            "SELECT max(used_kb) , min(used_kb) , avg(used_kb) FROM screen_mode"
        ]
    },
    {
        "db_id": "phone_1",
        "final_query": "SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T1.Launch_year = 2002 ORDER BY T1.RAM_MiB DESC LIMIT 1;",
        "final_utterance": "List the name of the phone model launched in year 2002 and with the highest RAM size.",
        "interaction_utterance": [
            "Tell me the the name of the phone model launched in the year 2003.",
            "How about that in the year 2002?",
            "I want to know the one with highest RAM size."
        ],
        "interaction_query": [
            "SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T1.Launch_year = 2003",
            "SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T1.Launch_year = 2002",
            "SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T1.Launch_year = 2002 ORDER BY T1.RAM_MiB DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "phone_1",
        "final_query": "SELECT T1.WiFi , T3.Type FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T2.Hardware_Model_name = \"LG-P760\";",
        "final_utterance": "What are the wifi and screen mode type of the hardware model named \"LG-P760\"?",
        "interaction_utterance": [
            "What are the wifi and screen mode type of the hardware model named \"GT-I9300\"?",
            "How about that of the hardware model named \"Z520e\"?",
            "Okay, I want to know that of the hardware model named \"LG-P760\"."
        ],
        "interaction_query": [
            "SELECT T1.WiFi , T3.Type FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T2.Hardware_Model_name = \"GT-I9300\"",
            "SELECT T1.WiFi , T3.Type FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T2.Hardware_Model_name = \"Z520e\"",
            "SELECT T1.WiFi , T3.Type FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T2.Hardware_Model_name = \"LG-P760\""
        ]
    },
    {
        "db_id": "phone_1",
        "final_query": "SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T3.Type = \"Text\" OR T1.RAM_MiB  >  32;",
        "final_utterance": "List the hardware model name for the phones that have screen mode type \"Text\" or RAM size greater than 32.",
        "interaction_utterance": [
            "Tell me the hardware model name for the phones that have screen mode type \"Graphics\".",
            "So how about the phones that have screen model type \"Text\"?",
            "Okay, I want to know the same for the phones that have RAM size greater than 32."
        ],
        "interaction_query": [
            "SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T3.Type = \"Graphics\"",
            "SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T3.Type = \"Text\"",
            "SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T1.RAM_MiB  >  32;"
        ]
    },
    {
        "db_id": "phone_1",
        "final_query": "SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type  =  \"Graphics\" OR t2.Company_name  =  \"Nokia Corporation\"",
        "final_utterance": "List the hardware model name for the phones that were produced by \"Nokia Corporation\" or whose screen mode type is \"Graphics.\"",
        "interaction_utterance": [
            "Tell me the hardware model name for the phones that have screen mode type \"Graphics\".",
            "So how about the phones that have screen model type \"Text\"?",
            "Okay, for now I want to know the hardware model name for the phones that were produced by \"Nokia Corporation\" or whose screen mode type is \"Graphics.\""
        ],
        "interaction_query": [
            "SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type  =  \"Graphics\"",
            "SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type  =  \"Text\"",
            "SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type  =  \"Graphics\" OR t2.Company_name  =  \"Nokia Corporation\""
        ]
    },
    {
        "db_id": "phone_1",
        "final_query": "SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE t2.Company_name  =  \"Nokia Corporation\" AND T1.Type != \"Text\";",
        "final_utterance": "List the hardware model name for the phones that were produced by \"Nokia Corporation\" but whose screen mode type is not Text.",
        "interaction_utterance": [
            "List the hardware model name for the phones that were produced by \"Nokia Corporation\".",
            "For these phones, which ones have screen model Text?",
            "How about the ones that do not?"
        ],
        "interaction_query": [
            "SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE t2.Company_name  =  \"Nokia Corporation\"",
            "SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE t2.Company_name  =  \"Nokia Corporation\" AND T1.Type = \"Text\"",
            "SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE t2.Company_name  =  \"Nokia Corporation\" AND T1.Type != \"Text\""
        ]
    },
    {
        "db_id": "phone_1",
        "final_query": "SELECT DISTINCT T2.Hardware_Model_name , T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.used_kb BETWEEN 10 AND 15;",
        "final_utterance": "List the phone hardware model and company name for the phones whose screen usage in kb is between 10 and 15.",
        "interaction_utterance": [
            "Tell me the phone hardware model and company name for the phones whose screen usage in kb is larger than 10.",
            "Smaller than 15?",
            "Okay, now I want to know the phones with screen usage within that range."
        ],
        "interaction_query": [
            "SELECT DISTINCT T2.Hardware_Model_name , T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.used_kb > 10",
            "SELECT DISTINCT T2.Hardware_Model_name , T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.used_kb < 15",
            "SELECT DISTINCT T2.Hardware_Model_name , T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.used_kb BETWEEN 10 AND 15"
        ]
    },
    {
        "db_id": "phone_1",
        "final_query": "SELECT Accreditation_level FROM phone GROUP BY Accreditation_level HAVING count(*)  >  3",
        "final_utterance": "Find the accreditation level that more than 3 phones use.",
        "interaction_utterance": [
            "Tell me the accreditation level of the hardware model with name Z520e.",
            "How about that of Nokia 700?",
            "Okay, I want to know the accreditation level that more than 3 phones use."
        ],
        "interaction_query": [
            "SELECT Accreditation_level FROM phone WHERE Hardware_Model_name = \"Z520e\"",
            "SELECT Accreditation_level FROM phone WHERE Hardware_Model_name = \"Nokia 700\"",
            "SELECT Accreditation_level FROM phone GROUP BY Accreditation_level HAVING count(*)  >  3"
        ]
    },
    {
        "db_id": "phone_1",
        "final_query": "SELECT avg(RAM_MiB) FROM chip_model WHERE model_name NOT IN (SELECT chip_model FROM phone)",
        "final_utterance": "Find the average ram mib size of the chip models that are never used by any phone.",
        "interaction_utterance": [
            "Tell me the ram size of the hardware model with name Nokia 700.",
            "How about for the GT-I9300?",
            "Tell me the average ram mib size of the chip models that are never used by any phone."
        ],
        "interaction_query": [
            "SELECT T1.RAM_MiB FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T2.Hardware_Model_name = \"Nokia 700\"",
            "SELECT T1.RAM_MiB FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T2.Hardware_Model_name = \"GT-I9300\"",
            "SELECT avg(RAM_MiB) FROM chip_model WHERE model_name NOT IN (SELECT chip_model FROM phone)"
        ]
    },
    {
        "db_id": "phone_1",
        "final_query": "SELECT model_name FROM chip_model EXCEPT SELECT chip_model FROM phone WHERE Accreditation_type  =  'Full'",
        "final_utterance": "Find the names of the chip models that are not used by any phone with full accreditation type.",
        "interaction_utterance": [
            "Tell me all the chip models.",
            "Tell me all the chip models that are used by phones with full accreditation type.",
            "How about not used by any phone with full accreditation type?"
        ],
        "interaction_query": [
            "SELECT model_name FROM chip_model",
            "SELECT T1.model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T2.Accreditation_type  =  'Full'",
            "SELECT model_name FROM chip_model EXCEPT SELECT chip_model FROM phone WHERE Accreditation_type  =  'Full'"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT date_of_birth FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";",
        "final_utterance": "What is the birthday of the staff member with first name as Janessa and last name as Sawayn?",
        "interaction_utterance": [
            "Give the first and last names of the staff.",
            "Also list the date of birth.",
            "What is the birthday of the staff member with first name as Janessa and last name as Sawayn?"
        ],
        "interaction_query": [
            "SELECT first_name, last_name from staff",
            "SELECT first_name, last_name, date_of_birth from staff",
            "SELECT date_of_birth FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT date_joined_staff FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";",
        "final_utterance": "When did the staff member with first name as Janessa and last name as Sawayn join the company?",
        "interaction_utterance": [
            "When did various staff join?",
            "When did the staff member with first name as Janessa and last name as Sawayn join the company?"
        ],
        "interaction_query": [
            "SELECT first_name, last_name, date_joined_staff from staff",
            "SELECT date_joined_staff FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT date_left_staff FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";",
        "final_utterance": "When did the staff member with first name as Janessa and last name as Sawayn leave the company?",
        "interaction_utterance": [
            "What was the most recent leaving of the company for any staff member?",
            "When did the staff member with first name as Janessa and last name as Sawayn leave the company?"
        ],
        "interaction_query": [
            "SELECT max(date_left_staff) from staff",
            "SELECT date_left_staff FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT nickname FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";",
        "final_utterance": "What is the nickname of staff with first name as Janessa and last name as Sawayn?",
        "interaction_utterance": [
            "How many unique nicknames are there for the staff?",
            "What is the nickname of staff with first name as Janessa and last name as Sawayn?"
        ],
        "interaction_query": [
            "SELECT count(*) from (SELECT DISTINCT nickname from staff)",
            "SELECT nickname FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";",
        "final_utterance": "Which city does staff with first name as Janessa and last name as Sawayn live?",
        "interaction_utterance": [
            "Sort the cities in which the staff live in by alphabetical order.",
            "Which city does staff with first name as Janessa and last name as Sawayn live?"
        ],
        "interaction_query": [
            "SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id ORDER by T1.city",
            "SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T1.country ,  T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";",
        "final_utterance": "In which country and state does staff with first name as Janessa and last name as Sawayn live?",
        "interaction_utterance": [
            "Where do the staff live? Give first and last name and also country and state.",
            "Narrow that to Janessa Sawayn."
        ],
        "interaction_query": [
            "SELECT T2.first_name, T2.last_name, T1.country ,  T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id",
            "SELECT T1.country ,  T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT sum(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = \"Rylan\" AND T2.last_name = \"Goodwin\";",
        "final_utterance": "How long is the total lesson time took by customer with first name as Rylan and last name as Goodwin?",
        "interaction_utterance": [
            "Which customer ids took lessons?",
            "Sum over the lesson time for those groups. Also count the number of lessons take.",
            "What is the customer id of Rylan Goodwin?",
            "How long is the total lesson time took by customer with first name as Rylan and last name as Goodwin?"
        ],
        "interaction_query": [
            "SELECT DISTINCT customer_id from lessons",
            "SELECT customer_id, sum(lesson_time), count(*) from lessons GROUP by customer_id",
            "SELECT customer_id from customers WHERE first_name = \"Rylan\" AND last_name = \"Goodwin\";",
            "SELECT sum(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = \"Rylan\" AND T2.last_name = \"Goodwin\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";",
        "final_utterance": "What is the zip code of staff with first name as Janessa and last name as Sawayn?",
        "interaction_utterance": [
            "What is the address id of Janessa Sawayn?",
            "For that address id, give teh zip code."
        ],
        "interaction_query": [
            "SELECT staff_address_id from staff where first_name = 'Janessa' and last_name = 'Sawayn'",
            "SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T2.first_name ,  T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = \"Damianfort\";",
        "final_utterance": "Find out the first name and last name of staff living in city Damianfort.",
        "interaction_utterance": [
            "Which address ids correspond to the city Damianfort?",
            "Join that with staff to find staff living there. Give first and last name."
        ],
        "interaction_query": [
            "SELECT address_id from Addresses where city = 'Damianfort'",
            "SELECT T2.first_name ,  T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = \"Damianfort\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T1.city ,  count(*) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.city ORDER BY count(*) DESC LIMIT 1;",
        "final_utterance": "In which city live the most staff? List the city name and number of staff.",
        "interaction_utterance": [
            "What is the most common address_id for staff?",
            "List the corresponding city name and number of staff living there."
        ],
        "interaction_query": [
            "SELECT staff_address_id from staff ORDER by staff_address_id DESC LIMIT 1",
            "SELECT T1.city ,  count(*) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.city ORDER BY count(*) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING count(*) BETWEEN 2 AND 4;",
        "final_utterance": "List the states which have between 2 to 4 staff living there.",
        "interaction_utterance": [
            "List the states and counts of staff living there.",
            "List the states which have between 2 to 4 staff living there."
        ],
        "interaction_query": [
            "SELECT T1.state_province_county, count(*) from Addresses as T1 join staff as T2 on T1.address_id = T2.staff_address_id GROUP by T2.staff_id",
            "SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING count(*) BETWEEN 2 AND 4;"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT customer_status_code ,  cell_mobile_phone_number ,  email_address FROM Customers WHERE first_name = \"Marina\" OR last_name  =  \"Kohler\"",
        "final_utterance": "What is the status code, mobile phone number and email address of the customer with last name as Kohler or first name as Marina?",
        "interaction_utterance": [
            "Give records on the customer with last name Kohler.",
            "Also show records for first name 'Marina'",
            "Just show the status code, mobile phone number and email address for the above."
        ],
        "interaction_query": [
            "SELECT * from customers where last_name = 'Kohler'",
            "SELECT * from customers where last_name = 'Kohler' OR first_name = 'Marina'",
            "SELECT customer_status_code ,  cell_mobile_phone_number ,  email_address FROM Customers WHERE first_name = \"Marina\" OR last_name  =  \"Kohler\""
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT date_became_customer FROM Customers WHERE first_name = \"Carole\" AND last_name = \"Bernhard\";",
        "final_utterance": "When did customer with first name as Carole and last name as Bernhard became a customer?",
        "interaction_utterance": [
            "List the names and date became customer for the customers.",
            "Limit that to Carole Bernhard, and just show the relevant date."
        ],
        "interaction_query": [
            "SELECT first_name, last_name, date_became_customer from customers",
            "SELECT date_became_customer FROM Customers WHERE first_name = \"Carole\" AND last_name = \"Bernhard\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY count(*) ASC LIMIT 1;",
        "final_utterance": "Which customer status code has least number of customers?",
        "interaction_utterance": [
            "List the customer status code with their respective counts.",
            "Sort by ascending counts.",
            "Which customer status code has least number of customers?"
        ],
        "interaction_query": [
            "SELECT customer_status_code, count(*) from customers GROUP by customer_status_code",
            "SELECT customer_status_code, count(*) from customers GROUP by customer_status_code ORDER by count(*) ASC",
            "SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY count(*) ASC LIMIT 1;"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = \"Rylan\" AND T2.last_name = \"Goodwin\" AND T1.lesson_status_code = \"Completed\";",
        "final_utterance": "How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed?",
        "interaction_utterance": [
            "List the lessons taken by each customer first and last name.",
            "Just show that information for the completed status lessons.",
            "How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed?"
        ],
        "interaction_query": [
            "SELECT T2.first_name, T2.last_name, count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id GROUP by T2.customer_id",
            "SELECT T2.first_name, T2.last_name, count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id GROUP by T2.customer_id where t1.lesson_status_code = 'Completed'",
            "SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = \"Rylan\" AND T2.last_name = \"Goodwin\" AND T1.lesson_status_code = \"Completed\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT max(amount_outstanding) ,  min(amount_outstanding) ,  avg(amount_outstanding) FROM Customers;",
        "final_utterance": "What is maximum, minimum and average amount of outstanding of customer?",
        "interaction_utterance": [
            "List names of customers with their amount outstanding.",
            "What is maximum, minimum and average amount of outstanding of customer?"
        ],
        "interaction_query": [
            "SELECT first_name, last_name, amount_outstanding from customers",
            "SELECT max(amount_outstanding) ,  min(amount_outstanding) ,  avg(amount_outstanding) FROM Customers;"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T1.first_name ,  T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = \"Lockmanfurt\";",
        "final_utterance": "List first name and last name of customers living in city Lockmanfurt.",
        "interaction_utterance": [
            "List records of customers living in city Lockmanfurt.",
            "Just show the first and last name."
        ],
        "interaction_query": [
            "SELECT  FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = \"Lockmanfurt\";",
            "SELECT T1.first_name ,  T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = \"Lockmanfurt\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = \"Carole\" AND T1.last_name = \"Bernhard\"",
        "final_utterance": "Which country does customer with first name as Carole and last name as Bernhard live in?",
        "interaction_utterance": [
            "Join customer names with their lived-in countries.",
            "Which country does customer with first name as Carole and last name as Bernhard live in?"
        ],
        "interaction_query": [
            "SELECT T1.first_name, T1.last_name, T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id",
            "SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = \"Carole\" AND T1.last_name = \"Bernhard\""
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = \"Carole\" AND T1.last_name = \"Bernhard\"",
        "final_utterance": "What is zip code of customer with first name as Carole and last name as Bernhard?",
        "interaction_utterance": [
            "What are the customers zip codes?",
            "What is zip code of customer with first name as Carole and last name as Bernhard?"
        ],
        "interaction_query": [
            "SELECT T1.first_name, T1.last_name, T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id",
            "SELECT T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = \"Carole\" AND T1.last_name = \"Bernhard\""
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T2.city FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city ORDER BY count(*) DESC LIMIT 1;",
        "final_utterance": "Which city has most number of customers?",
        "interaction_utterance": [
            "Give counts of cities customers live in.",
            "Which city has most number of customers?"
        ],
        "interaction_query": [
            "SELECT T2.city, count(*) FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city",
            "SELECT T2.city FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city ORDER BY count(*) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT sum(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = \"Carole\" AND T2.last_name = \"Bernhard\"",
        "final_utterance": "How much in total has customer with first name as Carole and last name as Bernhard paid?",
        "interaction_utterance": [
            "List a sum of all the payments for all the customers.",
            "How much in total has customer with first name as Carole and last name as Bernhard paid?"
        ],
        "interaction_query": [
            "SELECT T2.first_name, T2.last_name, sum(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP by T2.customer_id",
            "SELECT sum(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = \"Carole\" AND T2.last_name = \"Bernhard\""
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payments );",
        "final_utterance": "List the number of customers that did not have any payment history.",
        "interaction_utterance": [
            "Which customer ids have no payment history?",
            "Count those."
        ],
        "interaction_query": [
            "SELECT customer_id from customers EXCEPT SELECT customer_id from Customer_Payments",
            "SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payments );"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T2.first_name ,  T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >  2;",
        "final_utterance": "List first name and last name of customers that have more than 2 payments.",
        "interaction_utterance": [
            "Count the payments per customer.",
            "Just for those with more than 2 payments."
        ],
        "interaction_query": [
            "SELECT T2.first_name, T2.last_name, count(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP by T2.customer_id",
            "SELECT T2.first_name ,  T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >  2;"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\" AND nickname LIKE \"%s%\";",
        "final_utterance": "List lesson id of all lessons taught by staff with first name as Janessa, last name as Sawayn and nickname containing letter 's'.",
        "interaction_utterance": [
            "List lesson id of all lessons taught by staff with first name as Janessa",
            "Intersect that with last name Sawayn and nickname containing letter 's'."
        ],
        "interaction_query": [
            "SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\"",
            "SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\" AND nickname LIKE \"%s%\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT count(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE \"%a%\"",
        "final_utterance": "How many lessons taught by staff whose first name has letter 'a' in it?",
        "interaction_utterance": [
            "Count the lessons grouped by staff first name.",
            "How many lessons taught by staff whose first name has letter 'a' in it?"
        ],
        "interaction_query": [
            "SELECT T2.first_name, count(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id GROUP by T2.first_name",
            "SELECT count(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE \"%a%\""
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT sum(lesson_time) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";",
        "final_utterance": "How long is the total lesson time taught by staff with first name as Janessa and last name as Sawayn?",
        "interaction_utterance": [
            "Count the lesson time grouped by staff id.",
            "Join that sum on the staff with first name Janess and last name Sawayn."
        ],
        "interaction_query": [
            "SELECT T2.staff_id, sum(lesson_time) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id GROUP by T2.staff_id",
            "SELECT sum(lesson_time) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT avg(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";",
        "final_utterance": "What is average lesson price taught by staff with first name as Janessa and last name as Sawayn?",
        "interaction_utterance": [
            "Show the sum of lesson prices per staff.",
            "Give the average.",
            "Just for first name as Janessa and last name as Sawayn?"
        ],
        "interaction_query": [
            "SELECT T2.first_name, T2.last_name, sum(T1.price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id GROUP by T2.staff_id",
            "SELECT T2.first_name, T2.last_name, avg(T1.price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id GROUP by T2.staff_id",
            "SELECT avg(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = \"Ray\"",
        "final_utterance": "How many lessons did customer with first name Ray take?",
        "interaction_utterance": [
            "count the lessons taken per customer first name.",
            "How many lessons did customer with first name Ray take?"
        ],
        "interaction_query": [
            "SELECT T2.first_name, count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP by T2.first_name",
            "SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = \"Ray\""
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff",
        "final_utterance": "Which last names are both used by customers and by staff?",
        "interaction_utterance": [
            "What are the distinct last names of staff?",
            "Of customers?",
            "Intersect that."
        ],
        "interaction_query": [
            "SELECT DISTINCT last_name FROM Staff",
            "SELECT DISTINCT last_name FROM Customers",
            "SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT first_name FROM Staff EXCEPT SELECT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id  =  T2.staff_id",
        "final_utterance": "What are the first names of staff who did not give any lesson?",
        "interaction_utterance": [
            "Which staff gave lessons? Give their first names.",
            "Which staff first names did not?"
        ],
        "interaction_query": [
            "SELECT DISTINCT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id  =  T2.staff_id",
            "SELECT first_name FROM Staff EXCEPT SELECT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id  =  T2.staff_id"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T1.vehicle_id ,  T1.vehicle_details FROM Vehicles AS T1 JOIN Lessons AS T2 ON T1.vehicle_id  =  T2.vehicle_id GROUP BY T1.vehicle_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the id and detail of the vehicle used in lessons for most of the times?",
        "interaction_utterance": [
            "List the distinct vehicle ids used in lessons.",
            "For those, give the detail as well.",
            "What is the id and detail of the vehicle used in lessons for most of the times?"
        ],
        "interaction_query": [
            "SELECT DISTINCT vehicle_id from Lessons",
            "SELECT T1.vehicle_id ,  T1.vehicle_details FROM Vehicles AS T1 JOIN Lessons AS T2 ON T1.vehicle_id  =  T2.vehicle_id GROUP BY T1.vehicle_id",
            "SELECT T1.vehicle_id ,  T1.vehicle_details FROM Vehicles AS T1 JOIN Lessons AS T2 ON T1.vehicle_id  =  T2.vehicle_id GROUP BY T1.vehicle_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT date_of_birth FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";",
        "final_utterance": "What is the birthday of the staff member with first name as Janessa and last name as Sawayn?",
        "interaction_utterance": [
            "Give the first and last names of the staff.",
            "Also list the date of birth.",
            "What is the birthday of the staff member with first name as Janessa and last name as Sawayn?"
        ],
        "interaction_query": [
            "SELECT first_name, last_name from staff",
            "SELECT first_name, last_name, date_of_birth from staff",
            "SELECT date_of_birth FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT date_joined_staff FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";",
        "final_utterance": "When did the staff member with first name as Janessa and last name as Sawayn join the company?",
        "interaction_utterance": [
            "When did various staff join?",
            "When did the staff member with first name as Janessa and last name as Sawayn join the company?"
        ],
        "interaction_query": [
            "SELECT first_name, last_name, date_joined_staff from staff",
            "SELECT date_joined_staff FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT date_left_staff FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";",
        "final_utterance": "When did the staff member with first name as Janessa and last name as Sawayn leave the company?",
        "interaction_utterance": [
            "What was the most recent leaving of the company for any staff member?",
            "When did the staff member with first name as Janessa and last name as Sawayn leave the company?"
        ],
        "interaction_query": [
            "SELECT max(date_left_staff) from staff",
            "SELECT date_left_staff FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT nickname FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";",
        "final_utterance": "What is the nickname of staff with first name as Janessa and last name as Sawayn?",
        "interaction_utterance": [
            "How many unique nicknames are there for the staff?",
            "What is the nickname of staff with first name as Janessa and last name as Sawayn?"
        ],
        "interaction_query": [
            "SELECT count(*) from (SELECT DISTINCT nickname from staff)",
            "SELECT nickname FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";",
        "final_utterance": "Which city does staff with first name as Janessa and last name as Sawayn live?",
        "interaction_utterance": [
            "Sort the cities in which the staff live in by alphabetical order.",
            "Which city does staff with first name as Janessa and last name as Sawayn live?"
        ],
        "interaction_query": [
            "SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id ORDER by T1.city",
            "SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T1.country ,  T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";",
        "final_utterance": "In which country and state does staff with first name as Janessa and last name as Sawayn live?",
        "interaction_utterance": [
            "Where do the staff live? Give first and last name and also country and state.",
            "Narrow that to Janessa Sawayn."
        ],
        "interaction_query": [
            "SELECT T2.first_name, T2.last_name, T1.country ,  T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id",
            "SELECT T1.country ,  T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT sum(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = \"Rylan\" AND T2.last_name = \"Goodwin\";",
        "final_utterance": "How long is the total lesson time took by customer with first name as Rylan and last name as Goodwin?",
        "interaction_utterance": [
            "Which customer ids took lessons?",
            "Sum over the lesson time for those groups. Also count the number of lessons take.",
            "What is the customer id of Rylan Goodwin?",
            "How long is the total lesson time took by customer with first name as Rylan and last name as Goodwin?"
        ],
        "interaction_query": [
            "SELECT DISTINCT customer_id from lessons",
            "SELECT customer_id, sum(lesson_time), count(*) from lessons GROUP by customer_id",
            "SELECT customer_id from customers WHERE first_name = \"Rylan\" AND last_name = \"Goodwin\";",
            "SELECT sum(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = \"Rylan\" AND T2.last_name = \"Goodwin\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";",
        "final_utterance": "What is the zip code of staff with first name as Janessa and last name as Sawayn?",
        "interaction_utterance": [
            "What is the address id of Janessa Sawayn?",
            "For that address id, give teh zip code."
        ],
        "interaction_query": [
            "SELECT staff_address_id from staff where first_name = 'Janessa' and last_name = 'Sawayn'",
            "SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T2.first_name ,  T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = \"Damianfort\";",
        "final_utterance": "Find out the first name and last name of staff living in city Damianfort.",
        "interaction_utterance": [
            "Which address ids correspond to the city Damianfort?",
            "Join that with staff to find staff living there. Give first and last name."
        ],
        "interaction_query": [
            "SELECT address_id from Addresses where city = 'Damianfort'",
            "SELECT T2.first_name ,  T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = \"Damianfort\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T1.city ,  count(*) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.city ORDER BY count(*) DESC LIMIT 1;",
        "final_utterance": "In which city live the most staff? List the city name and number of staff.",
        "interaction_utterance": [
            "What is the most common address_id for staff?",
            "List the corresponding city name and number of staff living there."
        ],
        "interaction_query": [
            "SELECT staff_address_id from staff ORDER by staff_address_id DESC LIMIT 1",
            "SELECT T1.city ,  count(*) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.city ORDER BY count(*) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING count(*) BETWEEN 2 AND 4;",
        "final_utterance": "List the states which have between 2 to 4 staff living there.",
        "interaction_utterance": [
            "List the states and counts of staff living there.",
            "List the states which have between 2 to 4 staff living there."
        ],
        "interaction_query": [
            "SELECT T1.state_province_county, count(*) from Addresses as T1 join staff as T2 on T1.address_id = T2.staff_address_id GROUP by T2.staff_id",
            "SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING count(*) BETWEEN 2 AND 4;"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT customer_status_code ,  cell_mobile_phone_number ,  email_address FROM Customers WHERE first_name = \"Marina\" OR last_name  =  \"Kohler\"",
        "final_utterance": "What is the status code, mobile phone number and email address of the customer with last name as Kohler or first name as Marina?",
        "interaction_utterance": [
            "Give records on the customer with last name Kohler.",
            "Also show records for first name 'Marina'",
            "Just show the status code, mobile phone number and email address for the above."
        ],
        "interaction_query": [
            "SELECT * from customers where last_name = 'Kohler'",
            "SELECT * from customers where last_name = 'Kohler' OR first_name = 'Marina'",
            "SELECT customer_status_code ,  cell_mobile_phone_number ,  email_address FROM Customers WHERE first_name = \"Marina\" OR last_name  =  \"Kohler\""
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT date_became_customer FROM Customers WHERE first_name = \"Carole\" AND last_name = \"Bernhard\";",
        "final_utterance": "When did customer with first name as Carole and last name as Bernhard became a customer?",
        "interaction_utterance": [
            "List the names and date became customer for the customers.",
            "Limit that to Carole Bernhard, and just show the relevant date."
        ],
        "interaction_query": [
            "SELECT first_name, last_name, date_became_customer from customers",
            "SELECT date_became_customer FROM Customers WHERE first_name = \"Carole\" AND last_name = \"Bernhard\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY count(*) ASC LIMIT 1;",
        "final_utterance": "Which customer status code has least number of customers?",
        "interaction_utterance": [
            "List the customer status code with their respective counts.",
            "Sort by ascending counts.",
            "Which customer status code has least number of customers?"
        ],
        "interaction_query": [
            "SELECT customer_status_code, count(*) from customers GROUP by customer_status_code",
            "SELECT customer_status_code, count(*) from customers GROUP by customer_status_code ORDER by count(*) ASC",
            "SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY count(*) ASC LIMIT 1;"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = \"Rylan\" AND T2.last_name = \"Goodwin\" AND T1.lesson_status_code = \"Completed\";",
        "final_utterance": "How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed?",
        "interaction_utterance": [
            "List the lessons taken by each customer first and last name.",
            "Just show that information for the completed status lessons.",
            "How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed?"
        ],
        "interaction_query": [
            "SELECT T2.first_name, T2.last_name, count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id GROUP by T2.customer_id",
            "SELECT T2.first_name, T2.last_name, count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id GROUP by T2.customer_id where t1.lesson_status_code = 'Completed'",
            "SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = \"Rylan\" AND T2.last_name = \"Goodwin\" AND T1.lesson_status_code = \"Completed\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT max(amount_outstanding) ,  min(amount_outstanding) ,  avg(amount_outstanding) FROM Customers;",
        "final_utterance": "What is maximum, minimum and average amount of outstanding of customer?",
        "interaction_utterance": [
            "List names of customers with their amount outstanding.",
            "What is maximum, minimum and average amount of outstanding of customer?"
        ],
        "interaction_query": [
            "SELECT first_name, last_name, amount_outstanding from customers",
            "SELECT max(amount_outstanding) ,  min(amount_outstanding) ,  avg(amount_outstanding) FROM Customers;"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T1.first_name ,  T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = \"Lockmanfurt\";",
        "final_utterance": "List first name and last name of customers living in city Lockmanfurt.",
        "interaction_utterance": [
            "List records of customers living in city Lockmanfurt.",
            "Just show the first and last name."
        ],
        "interaction_query": [
            "SELECT * FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = \"Lockmanfurt\";",
            "SELECT T1.first_name ,  T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = \"Lockmanfurt\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = \"Carole\" AND T1.last_name = \"Bernhard\"",
        "final_utterance": "Which country does customer with first name as Carole and last name as Bernhard live in?",
        "interaction_utterance": [
            "Join customer names with their lived-in countries.",
            "Which country does customer with first name as Carole and last name as Bernhard live in?"
        ],
        "interaction_query": [
            "SELECT T1.first_name, T1.last_name, T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id",
            "SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = \"Carole\" AND T1.last_name = \"Bernhard\""
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = \"Carole\" AND T1.last_name = \"Bernhard\"",
        "final_utterance": "What is zip code of customer with first name as Carole and last name as Bernhard?",
        "interaction_utterance": [
            "What are the customers zip codes?",
            "What is zip code of customer with first name as Carole and last name as Bernhard?"
        ],
        "interaction_query": [
            "SELECT T1.first_name, T1.last_name, T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id",
            "SELECT T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = \"Carole\" AND T1.last_name = \"Bernhard\""
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T2.city FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city ORDER BY count(*) DESC LIMIT 1;",
        "final_utterance": "Which city has most number of customers?",
        "interaction_utterance": [
            "Give counts of cities customers live in.",
            "Which city has most number of customers?"
        ],
        "interaction_query": [
            "SELECT T2.city, count(*) FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city",
            "SELECT T2.city FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city ORDER BY count(*) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT sum(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = \"Carole\" AND T2.last_name = \"Bernhard\"",
        "final_utterance": "How much in total has customer with first name as Carole and last name as Bernhard paid?",
        "interaction_utterance": [
            "List a sum of all the payments for all the customers.",
            "How much in total has customer with first name as Carole and last name as Bernhard paid?"
        ],
        "interaction_query": [
            "SELECT T2.first_name, T2.last_name, sum(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP by T2.customer_id",
            "SELECT sum(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = \"Carole\" AND T2.last_name = \"Bernhard\""
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payments );",
        "final_utterance": "List the number of customers that did not have any payment history.",
        "interaction_utterance": [
            "Which customer ids have no payment history?",
            "Count those."
        ],
        "interaction_query": [
            "SELECT customer_id from customers EXCEPT SELECT customer_id from Customer_Payments",
            "SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payments );"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T2.first_name ,  T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >  2;",
        "final_utterance": "List first name and last name of customers that have more than 2 payments.",
        "interaction_utterance": [
            "Count the payments per customer.",
            "Just for those with more than 2 payments."
        ],
        "interaction_query": [
            "SELECT T2.first_name, T2.last_name, count(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP by T2.customer_id",
            "SELECT T2.first_name ,  T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >  2;"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\" AND nickname LIKE \"%s%\";",
        "final_utterance": "List lesson id of all lessons taught by staff with first name as Janessa, last name as Sawayn and nickname containing letter 's'.",
        "interaction_utterance": [
            "List lesson id of all lessons taught by staff with first name as Janessa",
            "Intersect that with last name Sawayn and nickname containing letter 's'."
        ],
        "interaction_query": [
            "SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\"",
            "SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\" AND nickname LIKE \"%s%\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT count(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE \"%a%\"",
        "final_utterance": "How many lessons taught by staff whose first name has letter 'a' in it?",
        "interaction_utterance": [
            "Count the lessons grouped by staff first name.",
            "How many lessons taught by staff whose first name has letter 'a' in it?"
        ],
        "interaction_query": [
            "SELECT T2.first_name, count(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id GROUP by T2.first_name",
            "SELECT count(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE \"%a%\""
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT sum(lesson_time) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";",
        "final_utterance": "How long is the total lesson time taught by staff with first name as Janessa and last name as Sawayn?",
        "interaction_utterance": [
            "Count the lesson time grouped by staff id.",
            "Join that sum on the staff with first name Janess and last name Sawayn."
        ],
        "interaction_query": [
            "SELECT T2.staff_id, sum(lesson_time) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id GROUP by T2.staff_id",
            "SELECT sum(lesson_time) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT avg(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";",
        "final_utterance": "What is average lesson price taught by staff with first name as Janessa and last name as Sawayn?",
        "interaction_utterance": [
            "Show the sum of lesson prices per staff.",
            "Give the average.",
            "Just for first name as Janessa and last name as Sawayn?"
        ],
        "interaction_query": [
            "SELECT T2.first_name, T2.last_name, sum(T1.price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id GROUP by T2.staff_id",
            "SELECT T2.first_name, T2.last_name, avg(T1.price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id GROUP by T2.staff_id",
            "SELECT avg(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = \"Ray\"",
        "final_utterance": "How many lessons did customer with first name Ray take?",
        "interaction_utterance": [
            "count the lessons taken per customer first name.",
            "How many lessons did customer with first name Ray take?"
        ],
        "interaction_query": [
            "SELECT T2.first_name, count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP by T2.first_name",
            "SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = \"Ray\""
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff",
        "final_utterance": "Which last names are both used by customers and by staff?",
        "interaction_utterance": [
            "What are the distinct last names of staff?",
            "Of customers?",
            "Intersect that."
        ],
        "interaction_query": [
            "SELECT DISTINCT last_name FROM Staff",
            "SELECT DISTINCT last_name FROM Customers",
            "SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff"
        ]
    },
    {
        "db_id": "driving_school",
        "final_query": "SELECT first_name FROM Staff EXCEPT SELECT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id  =  T2.staff_id",
        "final_utterance": "What are the first names of staff who did not give any lesson?",
        "interaction_utterance": [
            "Which staff gave lessons? Give their first names.",
            "Which staff first names did not?"
        ],
        "interaction_query": [
            "SELECT DISTINCT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id  =  T2.staff_id",
            "SELECT first_name FROM Staff EXCEPT SELECT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id  =  T2.staff_id"
        ]
    },
    {
        "db_id": "decoration_competition",
        "final_query": "SELECT Name FROM member WHERE Country  =  \"United States\" OR Country  =  \"Canada\"",
        "final_utterance": "Show the names of members whose country is \"United States\" or \"Canada\".",
        "interaction_utterance": [
            "What are the names of all the members?",
            "What countries are they each from?",
            "Now show those from the United States.",
            "Can you also include those from Canada?"
        ],
        "interaction_query": [
            "SELECT Name FROM member",
            "SELECT Name, Country FROM member",
            "SELECT Name, Country FROM member WHERE Country = \"United States\"",
            "SELECT Name FROM member WHERE Country  =  \"United States\" OR Country  =  \"Canada\""
        ]
    },
    {
        "db_id": "decoration_competition",
        "final_query": "SELECT Country FROM member GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the most common country across members.",
        "interaction_utterance": [
            "What are all the distinct countries the members belong to?",
            "How many members belong to each one?",
            "Which one has the least number of members?",
            "How about the most?"
        ],
        "interaction_query": [
            "SELECT distinct Country FROM member",
            "SELECT Country, count(*) FROM member GROUP BY  Country",
            "SELECT Country FROM member GROUP BY Country ORDER BY COUNT(*) ASC LIMIT 1",
            "SELECT Country FROM member GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "decoration_competition",
        "final_query": "SELECT Country FROM member GROUP BY Country HAVING COUNT(*)  >  2",
        "final_utterance": "Which countries have more than two members?",
        "interaction_utterance": [
            "Can you show me all the member names and their countries?",
            "List all the different countries.",
            "Which of these have more than one member?",
            "How about more than two?"
        ],
        "interaction_query": [
            "SELECT Name, Country FROM member",
            "SELECT distinct Country FROM member",
            "SELECT Country FROM member GROUP BY Country HAVING COUNT(*)  >  1",
            "SELECT Country FROM member GROUP BY Country HAVING COUNT(*)  >  2"
        ]
    },
    {
        "db_id": "decoration_competition",
        "final_query": "SELECT T2.Name ,  T1.College_Location FROM college AS T1 JOIN member AS T2 ON T1.College_ID  =  T2.College_ID ORDER BY T2.Name ASC",
        "final_utterance": "Show the names of members and the locations of colleges they go to in ascending alphabetical order of member names.",
        "interaction_utterance": [
            "What are the names of all the members in alphabetical order?",
            "Also provide their college names.",
            "and their college locations!",
            "actually, show just the names and locations."
        ],
        "interaction_query": [
            "SELECT Name FROM member ORDER BY Name ASC",
            "SELECT T2.Name ,  T1.Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID  =  T2.College_ID ORDER BY T2.Name ASC",
            "SELECT T2.Name ,  T1.Name, T1.College_Location FROM college AS T1 JOIN member AS T2 ON T1.College_ID  =  T2.College_ID ORDER BY T2.Name ASC",
            "SELECT T2.Name ,  T1.College_Location FROM college AS T1 JOIN member AS T2 ON T1.College_ID  =  T2.College_ID ORDER BY T2.Name ASC"
        ]
    },
    {
        "db_id": "decoration_competition",
        "final_query": "SELECT DISTINCT T1.Leader_Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID  =  T2.College_ID WHERE T2.Country  =  \"Canada\"",
        "final_utterance": "Show the distinct leader names of colleges associated with members from country \"Canada\".",
        "interaction_utterance": [
            "Who are all the members from the country Canada?",
            "What are the names of the colleges they go to?",
            "Who are the team leaders of these colleges?",
            "Show me a list of all the different leaders!"
        ],
        "interaction_query": [
            "SELECT Member_ID FROM member WHERE Country = \"Canada\"",
            "SELECT T2.Member_ID,  T1.Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID  =  T2.College_ID WHERE T2.Country  =  \"Canada\"",
            "SELECT T2.Member_ID, T1.Name, T1.leader_name FROM college AS T1 JOIN member AS T2 ON T1.College_ID  =  T2.College_ID WHERE T2.Country  =  \"Canada\"",
            "SELECT DISTINCT T1.Leader_Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID  =  T2.College_ID WHERE T2.Country  =  \"Canada\""
        ]
    },
    {
        "db_id": "decoration_competition",
        "final_query": "SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID  =  T2.Member_ID WHERE T2.Rank_in_Round  >  3",
        "final_utterance": "Show the names of members that have a rank in round higher than 3.",
        "interaction_utterance": [
            "How many different rounds are there?",
            "What are they?",
            "For each, who are the names of the members with ranks in rounds lower than 3?",
            "How about greater than 3?"
        ],
        "interaction_query": [
            "SELECT count(DISTINCT round_id) FROM round",
            "SELECT DISTINCT round_id FROM round",
            "SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID  =  T2.Member_ID WHERE T2.Rank_in_Round  <  3",
            "SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID  =  T2.Member_ID WHERE T2.Rank_in_Round  >  3"
        ]
    },
    {
        "db_id": "decoration_competition",
        "final_query": "SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID  =  T2.Member_ID ORDER BY Rank_in_Round ASC",
        "final_utterance": "Show the names of members in ascending order of their rank in rounds.",
        "interaction_utterance": [
            "What are the names of the member that did not made it to any round?",
            "Now show me the other members!",
            "Show just the names ordered from greatest to least on their ranks.",
            "Actually, sort least to greatest!"
        ],
        "interaction_query": [
            "SELECT Name FROM member where Name NOT IN (SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID  =  T2.Member_ID ORDER BY Rank_in_Round)",
            "SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID  =  T2.Member_ID",
            "SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID  =  T2.Member_ID ORDER BY Rank_in_Round DESC",
            "SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID  =  T2.Member_ID ORDER BY Rank_in_Round ASC"
        ]
    },
    {
        "db_id": "music_4",
        "final_query": "SELECT max(Weeks_on_Top) ,  min(Weeks_on_Top) FROM volume",
        "final_utterance": "What are the maximum and minimum week on top of all volumes?",
        "interaction_utterance": [
            "List the information for all volumes.",
            "Order them by weeks on top from the most to the least.",
            "What is the maximum weeks on top for a volume?",
            "Include the minimum as well."
        ],
        "interaction_query": [
            "SELECT * FROM volume",
            "SELECT * FROM volume ORDER BY weeks_on_top DESC",
            "SELECT max(Weeks_on_Top) FROM volume",
            "SELECT max(Weeks_on_Top) ,  min(Weeks_on_Top) FROM volume"
        ]
    },
    {
        "db_id": "music_4",
        "final_query": "SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume  =  T2.Volume_ID WHERE T2.Weeks_on_Top  >  2",
        "final_utterance": "Please show the date of ceremony of the volumes that last more than 2 weeks on top.",
        "interaction_utterance": [
            "Order volumes by weeks on top in increasing order.",
            "Which volumes lasted no more than 2 weeks on top?",
            "Which ones lasted more than 2 weeks on top?",
            "What are the ceremony dates for these volumes?"
        ],
        "interaction_query": [
            "SELECT * FROM volume ORDER BY weeks_on_top",
            "SELECT volume_ID FROM volume WHERE weeks_on_top <= 2",
            "SELECT volume_ID FROM volume WHERE weeks_on_top > 2",
            "SELECT DISTINCT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume  =  T2.Volume_ID WHERE T2.Weeks_on_Top  >  2"
        ]
    },
    {
        "db_id": "music_4",
        "final_query": "SELECT T2.Song FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume  =  T2.Volume_ID WHERE T1.Result  =  \"Nominated\"",
        "final_utterance": "Please show the songs that have result \"nominated\" at music festivals.",
        "interaction_utterance": [
            "List the names of all songs.",
            "Which songs were featured at music festivals?",
            "Which ones have the result \u201cnominated\u201d?"
        ],
        "interaction_query": [
            "SELECT song FROM volume",
            "SELECT T2.Song FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume  =  T2.Volume_ID",
            "SELECT T2.Song FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume  =  T2.Volume_ID WHERE T1.Result  =  \"Nominated\""
        ]
    },
    {
        "db_id": "music_4",
        "final_query": "SELECT T2.Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.Artist  =  \"Gorgoroth\"",
        "final_utterance": "What are the issue dates of volumes associated with the artist \"Gorgoroth\"?",
        "interaction_utterance": [
            "List the names of artists who have released volumes.",
            "List the information of volumes released by Gorgoroth.",
            "What are their issue dates?"
        ],
        "interaction_query": [
            "SELECT DISTINCT T1.artist FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID",
            "SELECT * FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.Artist  =  \"Gorgoroth\"",
            "SELECT T2.Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.Artist  =  \"Gorgoroth\""
        ]
    },
    {
        "db_id": "music_4",
        "final_query": "SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.age  >=  32",
        "final_utterance": "What are the songs in volumes associated with the artist aged 32 or older?",
        "interaction_utterance": [
            "List all artists.",
            "Only list those aged 32 or older.",
            "Show the information for volumes associated with these artists.",
            "Only show song names."
        ],
        "interaction_query": [
            "SELECT DISTINCT artist FROM Artist",
            "SELECT DISTINCT artist FROM Artist WHERE age >= 32",
            "SELECT * FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.age  >=  32",
            "SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.age  >=  32"
        ]
    },
    {
        "db_id": "music_4",
        "final_query": "SELECT avg(T2.Weeks_on_Top) FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.age  <=  25",
        "final_utterance": "What is the average weeks on top of volumes associated with the artist aged 25 or younger?",
        "interaction_utterance": [
            "List all volumes.",
            "Only show information for volumes associated with artists aged 25 or younger.",
            "What is the average weeks on top for these volumes?"
        ],
        "interaction_query": [
            "SELECT * FROM volume",
            "SELECT * FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.age  <=  25",
            "SELECT avg(T2.Weeks_on_Top) FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.age  <=  25"
        ]
    },
    {
        "db_id": "music_4",
        "final_query": "SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  >  2",
        "final_utterance": "What are the famous title of the artists associated with volumes with more than 2 weeks on top?",
        "interaction_utterance": [
            "What are the names of all artists?",
            "Which of them have released volumes?",
            "Only show those whose volumes spent more than 2 weeks on top.",
            "List the famous titles of these artists."
        ],
        "interaction_query": [
            "SELECT DISTINCT artist FROM Artist",
            "SELECT DISTINCT T1.artist FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID",
            "SELECT DISTINCT T1.artist FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  >  2",
            "SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  >  2"
        ]
    },
    {
        "db_id": "music_4",
        "final_query": "SELECT Famous_Release_date FROM artist ORDER BY Age DESC LIMIT 1",
        "final_utterance": "What is the famous release date of the artist with the oldest age?",
        "interaction_utterance": [
            "Show the names of all artists.",
            "Order them by decreasing age.",
            "Who is the oldest artist?",
            "What is his famous release date?"
        ],
        "interaction_query": [
            "SELECT DISTINCT artist FROM Artist",
            "SELECT DISTINCT artist FROM Artist ORDER BY Age DESC",
            "SELECT DISTINCT artist FROM Artist ORDER BY Age DESC LIMIT 1",
            "SELECT Famous_Release_date FROM artist ORDER BY Age DESC LIMIT 1"
        ]
    },
    {
        "db_id": "music_4",
        "final_query": "SELECT RESULT FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "What is the most common result of the music festival?",
        "interaction_utterance": [
            "List the names of all music festivals.",
            "Include the ID of the volume featured at each music festival.",
            "Also include the result of each volume.",
            "What was the most common result?"
        ],
        "interaction_query": [
            "SELECT music_festival FROM music_festival",
            "SELECT music_festival, volume FROM music_festival",
            "SELECT music_festival, volume, result FROM music_festival",
            "SELECT RESULT FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "music_4",
        "final_query": "SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*)  >  1",
        "final_utterance": "Please show the categories of the music festivals with count more than 1.",
        "interaction_utterance": [
            "List all the different categories of music festivals.",
            "Order them by decreasing frequency of category.",
            "Only show the categories that appear more than once."
        ],
        "interaction_query": [
            "SELECT DISTINCT Category FROM music_festival",
            "SELECT Category FROM music_festival GROUP BY Category ORDER BY count(*) DESC",
            "SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*)  >  1"
        ]
    },
    {
        "db_id": "music_4",
        "final_query": "SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1",
        "final_utterance": "What is the song in the volume with the maximum weeks on top?",
        "interaction_utterance": [
            "List the song associated with each volume.",
            "Show the weeks on top for each song.",
            "Order by decreasing weeks on top.",
            "Which song had the most weeks on top?"
        ],
        "interaction_query": [
            "SELECT Song FROM volume",
            "SELECT Song, weeks_on_top FROM volume",
            "SELECT Song, weeks_on_top FROM volume ORDER BY weeks_on_top DESC",
            "SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1"
        ]
    },
    {
        "db_id": "music_4",
        "final_query": "SELECT Famous_Title FROM artist WHERE Artist_ID NOT IN(SELECT Artist_ID FROM volume)",
        "final_utterance": "Find the famous titles of artists that do not have any volume.",
        "interaction_utterance": [
            "List the names of all artists.",
            "How many artists have not released any volumes?",
            "What are their names?",
            "How about their famous titles?"
        ],
        "interaction_query": [
            "SELECT DISTINCT artist FROM artist",
            "SELECT count(*) FROM artist WHERE Artist_ID NOT IN(SELECT Artist_ID FROM volume)",
            "SELECT artist FROM artist WHERE Artist_ID NOT IN(SELECT Artist_ID FROM volume)",
            "SELECT Famous_Title FROM artist WHERE Artist_ID NOT IN(SELECT Artist_ID FROM volume)"
        ]
    },
    {
        "db_id": "music_4",
        "final_query": "SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  >  2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  <  2",
        "final_utterance": "Show the famous titles of the artists with both volumes that lasted more than 2 weeks on top and volumes that lasted less than 2 weeks on top.",
        "interaction_utterance": [
            "Which artists have released volumes?",
            "Whose volumes lasted more than 2 weeks on top?",
            "Whose volumes also lasted less than 2 weeks on top?",
            "What are their famous titles?"
        ],
        "interaction_query": [
            "SELECT DISTINCT artist FROM artist WHERE Artist_ID IN(SELECT Artist_ID FROM volume)",
            "SELECT DISTINCT T1.artist FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  >  2",
            "SELECT T1.artist FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  >  2 INTERSECT SELECT T1.artist FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  <  2",
            "SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  >  2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  <  2"
        ]
    },
    {
        "db_id": "music_4",
        "final_query": "SELECT Date_of_ceremony FROM music_festival WHERE Category  =  \"Best Song\" AND RESULT  =  \"Awarded\"",
        "final_utterance": "What are the date of ceremony of music festivals with category \"Best Song\" and result \"Awarded\"?",
        "interaction_utterance": [
            "List the information of all music festivals.",
            "Only show festivals with category \u201cBest Song\u201d.",
            "Which of those festivals also have the result \u201cAwarded\u201d?",
            "Show their ceremony dates."
        ],
        "interaction_query": [
            "SELECT * FROM music_festival",
            "SELECT * FROM music_festival WHERE Category  =  \"Best Song\"",
            "SELECT * FROM music_festival WHERE Category  =  \"Best Song\" AND RESULT  =  \"Awarded\"",
            "SELECT Date_of_ceremony FROM music_festival WHERE Category  =  \"Best Song\" AND RESULT  =  \"Awarded\""
        ]
    },
    {
        "db_id": "music_4",
        "final_query": "SELECT Issue_Date FROM volume ORDER BY Weeks_on_Top ASC LIMIT 1",
        "final_utterance": "What is the issue date of the volume with the minimum weeks on top?",
        "interaction_utterance": [
            "List the information for all volumes.",
            "Order by increasing weeks on top.",
            "Which one had the minimum weeks on top?",
            "What was its issue date?"
        ],
        "interaction_query": [
            "SELECT * FROM volume",
            "SELECT * FROM volume ORDER BY Weeks_on_Top ASC",
            "SELECT volume_ID FROM volume ORDER BY Weeks_on_Top ASC LIMIT 1",
            "SELECT Issue_Date FROM volume ORDER BY Weeks_on_Top ASC LIMIT 1"
        ]
    },
    {
        "db_id": "music_4",
        "final_query": "SELECT RESULT ,  COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC",
        "final_utterance": "Please show the results of music festivals and the number of music festivals that have had each, ordered by this count.",
        "interaction_utterance": [
            "Show the results of all music festivals.",
            "What is the total number of each result?",
            "Order by decreasing order."
        ],
        "interaction_query": [
            "SELECT RESULT FROM music_festival",
            "SELECT RESULT ,  COUNT(*) FROM music_festival GROUP BY RESULT",
            "SELECT RESULT ,  COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT T1.name_full ,  T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id  =  T2.college_id GROUP BY T1.college_id ORDER BY count(*) DESC LIMIT 1;",
        "final_utterance": "what is the full name and id of the college with the largest number of baseball players?",
        "interaction_utterance": [
            "How many baseball players are there?",
            "How about the number of colleges?",
            "How many baseball players are there in each college?",
            "Can you order the results by the number of baseball players in descending order?",
            "Please give me the full name and id of the first college."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM player_college",
            "SELECT COUNT(*) FROM college",
            "SELECT T1.name_full, COUNT(*) FROM college AS T1 JOIN player_college AS T2 ON T1.college_id  =  T2.college_id GROUP BY T1.college_id;",
            "SELECT T1.name_full, COUNT(*) FROM college AS T1 JOIN player_college AS T2 ON T1.college_id  =  T2.college_id GROUP BY T1.college_id ORDER BY count(*) DESC",
            "SELECT T1.name_full ,  T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id  =  T2.college_id GROUP BY T1.college_id ORDER BY count(*) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings'",
        "final_utterance": "What is average salary of the players in the team named 'Boston Red Stockings' ?",
        "interaction_utterance": [
            "What is the average salary of the players?",
            "How about for each team?",
            "How about for the team 'Boston Red Stockings' ?"
        ],
        "interaction_query": [
            "SELECT avg(salary) FROM salary",
            "SELECT T2.team_id_br, avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br GROUP BY T2.team_id_br",
            "SELECT avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings'"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT name_first ,  name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id WHERE YEAR  =  1998",
        "final_utterance": "What are first and last names of players participating in all star game in 1998?",
        "interaction_utterance": [
            "How many players have participated in all star games?",
            "How about in 1998?",
            "Please list the first and last names of these players."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id",
            "SELECT COUNT(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id WHERE YEAR  =  1998",
            "SELECT name_first ,  name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id WHERE YEAR  =  1998"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT T1.name_first , T1.name_last ,  T1.player_id ,   count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 1;",
        "final_utterance": "What are the first name, last name and id of the player with the most all star game experiences? Also list the count.",
        "interaction_utterance": [
            "How many players have participated in all star games?",
            "Among these players, how many times did they participate in all star game?",
            "Could you please give the top 10 players that have the most all star experience?",
            "Please give me the information of the top one."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id",
            "SELECT T1.name_first , T1.name_last , count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id",
            "SELECT T1.name_first , T1.name_last , count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 10",
            "SELECT T1.name_first , T1.name_last ,  T1.player_id ,   count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT T2.team_id ,  T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id WHERE T1.year  =  2014 GROUP BY T1.team_id ORDER BY avg(T1.attendance) DESC LIMIT 1;",
        "final_utterance": "In 2014, what are the id and rank of the team that has the largest average number of attendance?",
        "interaction_utterance": [
            "What is the average attendance?",
            "What is the average attendance of each team in 2013?",
            "How about in 2014?",
            "Please list the id and rank of the team that had the largest average attendance in that year."
        ],
        "interaction_query": [
            "SELECT AVG(attendance) FROM home_game",
            "SELECT T2.team_id ,  avg(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id WHERE T1.year  =  2013 GROUP BY T1.team_id",
            "SELECT T2.team_id ,  avg(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id WHERE T1.year  =  2014 GROUP BY T1.team_id",
            "SELECT T2.team_id ,  T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id WHERE T1.year  =  2014 GROUP BY T1.team_id ORDER BY avg(T1.attendance) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT T1.name_first ,  T1.name_last ,  T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T2.player_id ORDER BY count(*) DESC LIMIT 1;",
        "final_utterance": "What are the manager's first name, last name and id who won the most manager award?",
        "interaction_utterance": [
            "Who are the managers that have won the manager award?",
            "How many times did each manager get this award?",
            "Who won the most times?",
            "Please give their full name and id."
        ],
        "interaction_query": [
            "SELECT T1.name_first ,  T1.name_last FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id  =  T2.player_id",
            "SELECT T1.name_first ,  T1.name_last, COUNT(*) FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T2.player_id",
            "SELECT T1.name_first ,  T1.name_last, COUNT(*) FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T2.player_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT T1.name_first ,  T1.name_last ,  T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T2.player_id ORDER BY count(*) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT T1.name_first ,  T1.name_last ,  T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 3;",
        "final_utterance": "Which 3 players won the most player awards? List their full name and id.",
        "interaction_utterance": [
            "How many players have won player awards?",
            "Please list their full names.",
            "Among them, who won the most player awards? List their full name and id.",
            "How about top 3?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM player AS T1 JOIN player_award AS T2 ON T1.player_id  =  T2.player_id",
            "SELECT T1.name_first ,  T1.name_last FROM player AS T1 JOIN player_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id",
            "SELECT T1.name_first ,  T1.name_last ,  T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 1;",
            "SELECT T1.name_first ,  T1.name_last ,  T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 3;"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) ASC LIMIT 3;",
        "final_utterance": "List three countries which are the origins of the least players.",
        "interaction_utterance": [
            "Which countries do players come from?",
            "How many players are from each country?",
            "Which country provided the most players?",
            "What are the three countries that provided the fewest players?"
        ],
        "interaction_query": [
            "SELECT birth_country FROM player",
            "SELECT birth_country, COUNT(*) FROM player GROUP BY birth_country",
            "SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) DESC LIMIT 1;",
            "SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) ASC LIMIT 3;"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT count(*) FROM player WHERE birth_country = 'USA' AND bats  =  'R';",
        "final_utterance": "How many players born in USA are right-handed batters? That is, have the batter value 'R'.",
        "interaction_utterance": [
            "How many left-handed batters are there?",
            "How about the right-handed batters?",
            "Out of those batters, how many were born in California?",
            "How about those born in the USA?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM player WHERE bats  =  'L';",
            "SELECT count(*) FROM player WHERE bats  =  'R';",
            "SELECT count(*) FROM player WHERE birth_state = 'CA' AND bats  =  'R';",
            "SELECT count(*) FROM player WHERE birth_country = 'USA' AND bats  =  'R'"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT avg(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id  =  T2.player_id JOIN college AS T3 ON T3.college_id  = T2.college_id WHERE T3.name_full  =  'Yale University';",
        "final_utterance": "What is the average height of the players from the college named 'Yale University'?",
        "interaction_utterance": [
            "What is the average height of all players?",
            "What is the average height of players from 'University of Akron'?",
            "How about for those from Yale University?"
        ],
        "interaction_query": [
            "SELECT avg(height) FROM player",
            "SELECT avg(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id  =  T2.player_id JOIN college AS T3 ON T3.college_id  = T2.college_id WHERE T3.name_full  =  'University of Akron';",
            "SELECT avg(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id  =  T2.player_id JOIN college AS T3 ON T3.college_id  = T2.college_id WHERE T3.name_full  =  'Yale University'"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT T1.name ,  T1.team_id ,  max(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id  =  T2.team_id GROUP BY T1.team_id;",
        "final_utterance": "What is the highest salary among each team? List the team name, id and maximum salary.",
        "interaction_utterance": [
            "What is the average salary of all teams?",
            "What is the average salary of each team?",
            "What is the highest salary of each team?",
            "Please also give the team name, id and maximum salary."
        ],
        "interaction_query": [
            "SELECT avg(salary) FROM salary",
            "SELECT T1.name ,  avg(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id  =  T2.team_id GROUP BY T1.team_id;",
            "SELECT T1.name ,  max(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id  =  T2.team_id GROUP BY T1.team_id;",
            "SELECT T1.name ,  T1.team_id ,  max(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id  =  T2.team_id GROUP BY T1.team_id;"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT T1.name ,  T1.team_id FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg(T2.salary) ASC LIMIT 1;",
        "final_utterance": "What are the name and id of the team offering the lowest average salary?",
        "interaction_utterance": [
            "What is the average salary of all teams?",
            "What about for each team?",
            "Can you order the results by average salary?",
            "Please give the first one with its name and id."
        ],
        "interaction_query": [
            "SELECT avg(salary) FROM salary",
            "SELECT T1.name ,  avg(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id  =  T2.team_id GROUP BY T1.team_id;",
            "SELECT T1.name ,  avg(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg(T2.salary)",
            "SELECT T1.name ,  T1.team_id FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg(T2.salary) ASC LIMIT 1;"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 ON T1.Player_id = T2.Player_id WHERE T2.year  =  1960 INTERSECT SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year  =  1961",
        "final_utterance": "Find the players' first name and last name who won award both in 1960 and in 1961.",
        "interaction_utterance": [
            "Which players have won an award?",
            "Who won an award in 1960?",
            "How about in 1961?",
            "Among the players, who won awards both in 1960 and in 1961?"
        ],
        "interaction_query": [
            "SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 ON T1.Player_id = T2.Player_id GROUP BY T2.Player_id",
            "SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 ON T1.Player_id = T2.Player_id WHERE T2.year  =  1960 GROUP BY T2.Player_id",
            "SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 ON T1.Player_id = T2.Player_id WHERE T2.year  =  1961 GROUP BY T2.Player_id",
            "SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 ON T1.Player_id = T2.Player_id WHERE T2.year  =  1960 INTERSECT SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year  =  1961"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT name_first ,  name_last FROM player WHERE weight  >  220 OR height  <  75",
        "final_utterance": "List players' first name and last name who have weight greater than 220 or height shorter than 75.",
        "interaction_utterance": [
            "How many players have a weight greater than 220?",
            "How about greater than 230?",
            "How many players have a weight greater than 220 or height shorter than 75?",
            "Please list their full names."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM player WHERE weight  >  220",
            "SELECT COUNT(*) FROM player WHERE weight  >  230",
            "SELECT COUNT(*) FROM player WHERE weight  >  220 OR height  <  75",
            "SELECT name_first ,  name_last FROM player WHERE weight  >  220 OR height  <  75"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT max(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings';",
        "final_utterance": "List the maximum scores of the team Boston Red Stockings when the team won in postseason?",
        "interaction_utterance": [
            "How many times did the Boston Red Stockings win in postseason?",
            "What is the average score of the games that it won?",
            "How about the the maximum score?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings';",
            "SELECT avg(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings';",
            "SELECT max(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings';"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT count(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' AND T1.year = 2009;",
        "final_utterance": "How many times did Boston Red Stockings lose in 2009 postseason?",
        "interaction_utterance": [
            "How many times did the Boston Red Stockings win in postseason?",
            "How many time did the Chicago White Stockings win in postseason?",
            "How many times did the Boston Red Stockings lose in postseason?",
            "How about the number in 2009?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings';",
            "SELECT COUNT(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Chicago White Stockings';",
            "SELECT count(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings'",
            "SELECT count(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' AND T1.year = 2009;"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT T2.name ,  T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T1.year  =  2008 GROUP BY T1.team_id_winner ORDER BY count(*) DESC LIMIT 1;",
        "final_utterance": "What are the name and id of the team with the most victories in 2008 postseason?",
        "interaction_utterance": [
            "Which teams have had victories?",
            "How about in 2008 postseason?",
            "Among the results, which team has had the fewest victories?",
            "How about the team with the most victories?"
        ],
        "interaction_query": [
            "SELECT T2.name ,  T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br GROUP BY T1.team_id_winner",
            "SELECT T2.name ,  T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T1.year  =  2008 GROUP BY T1.team_id_winner",
            "SELECT T2.name ,  T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T1.year  =  2008 GROUP BY T1.team_id_winner ORDER BY count(*) ASC LIMIT 1;",
            "SELECT T2.name ,  T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T1.year  =  2008 GROUP BY T1.team_id_winner ORDER BY count(*) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT count(*) , T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' GROUP BY T1.year",
        "final_utterance": "What is the number of wins the team Boston Red Stockings got in the postseasons each year in history?",
        "interaction_utterance": [
            "How many wins does the team Boston Red Stockings have?",
            "How many wins did the team Boston Red Stockings have in 2008?",
            "How about the wins in each year?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings'",
            "SELECT count(*) ,  T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' AND T1.year = 2008",
            "SELECT count(*) ,  T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' GROUP BY T1.year"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT count(*) FROM postseason WHERE YEAR  =  1885 AND ties  =  1;",
        "final_utterance": "How many games in 1885 postseason resulted in ties (that is, the value of \"ties\" is '1')?",
        "interaction_utterance": [
            "How many games were there in 1885?",
            "How about in 1900?",
            "How many games resulted in ties?",
            "How about the number in 1885?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM postseason WHERE YEAR  =  1885",
            "SELECT count(*) FROM postseason WHERE YEAR  =  1900",
            "SELECT count(*) FROM postseason WHERE ties  =  1;",
            "SELECT count(*) FROM postseason WHERE YEAR  =  1885 AND ties  =  1;"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT sum(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings' AND T1.year = 2010",
        "final_utterance": "What is the total salary paid by team Boston Red Stockings in 2010?",
        "interaction_utterance": [
            "What is the average salary paid by team Boston Red Stockings?",
            "How about the average salary paid in 2010?",
            "What is the total salary in this year?"
        ],
        "interaction_query": [
            "SELECT avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings'",
            "SELECT avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings' AND T1.year  =  2010",
            "SELECT sum(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings' AND T1.year  =  2010"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT count(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings' AND T1.year  =  2000",
        "final_utterance": "How many players were in the team Boston Red Stockings in 2000?",
        "interaction_utterance": [
            "Show the player ids of the players in the team Boston Red Stockings in 2001.",
            "How about in 2000?",
            "How many players were there that year?"
        ],
        "interaction_query": [
            "SELECT player_id FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings' AND T1.year  =  2001 GROUP BY player_id",
            "SELECT player_id FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings' AND T1.year  =  2000 GROUP BY player_id",
            "SELECT count(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings' AND T1.year  =  2000 GROUP BY player_id"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT salary FROM salary WHERE YEAR  =  2001 ORDER BY salary DESC LIMIT 3;",
        "final_utterance": "List the 3 highest salaries of the players in 2001?",
        "interaction_utterance": [
            "What is the highest salary out of all the players?",
            "How about in 2001?",
            "Could you please give the top three highest salaries from that year?"
        ],
        "interaction_query": [
            "SELECT MAX(salary) FROM salary",
            "SELECT MAX(salary) FROM salary WHERE YEAR  =  2001",
            "SELECT salary FROM salary WHERE YEAR  =  2001 ORDER BY salary DESC LIMIT 3;"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT salary FROM salary WHERE YEAR  =  2010 UNION SELECT salary FROM salary WHERE YEAR  =  2001",
        "final_utterance": "What were all the salary values of players in 2010 and 2001?",
        "interaction_utterance": [
            "What were all the salary values of players in 2012?",
            "How about in 2010?",
            "What is the average number of these results?",
            "Could please give all the salary values of players in 2010 and 2001?"
        ],
        "interaction_query": [
            "SELECT salary FROM salary WHERE YEAR  =  2012",
            "SELECT salary FROM salary WHERE YEAR  =  2010",
            "SELECT avg(salary) FROM salary WHERE YEAR  =  2010",
            "SELECT salary FROM salary WHERE YEAR  =  2010 UNION SELECT salary FROM salary WHERE YEAR  =  2001"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1;",
        "final_utterance": "In which year did the least people enter hall of fame?",
        "interaction_utterance": [
            "How many players are there in the hall of fame?",
            "How many of them entered each year?",
            "Which year has the fewest people?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM hall_of_fame",
            "SELECT yearid, COUNT(*) FROM hall_of_fame GROUP BY yearid",
            "SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year = 1907 AND T2.park_name = 'Columbia Park';",
        "final_utterance": "How many games were played in park \"Columbia Park\" in 1907?",
        "interaction_utterance": [
            "Which city is \"Columbia Park\" located in?",
            "How many games were played in this park?",
            "How about in year 1908?",
            "How about in year 1907?"
        ],
        "interaction_query": [
            "SELECT city FROM park WHERE park_name = \"Columbia Park\"",
            "SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T2.park_name = 'Columbia Park';",
            "SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year = 1908 AND T2.park_name = 'Columbia Park';",
            "SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year = 1907 AND T2.park_name = 'Columbia Park';"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year  =  2000 AND T2.city  =  'Atlanta';",
        "final_utterance": "How many games were played in city Atlanta in 2000?",
        "interaction_utterance": [
            "Which park is located in Atlanta?",
            "How many games were played in this city?",
            "How about the number in 2010?",
            "How about the number in 2000?"
        ],
        "interaction_query": [
            "SELECT park_name FROM park WHERE city  =  'Atlanta'",
            "SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE  T2.city  =  'Atlanta';",
            "SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year  =  2010 AND T2.city  =  'Atlanta';",
            "SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year  =  2000 AND T2.city  =  'Atlanta';"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT sum(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' AND T1.year BETWEEN 2000 AND 2010;",
        "final_utterance": "What is the total home game attendance of team Boston Red Stockings from 2000 to 2010?",
        "interaction_utterance": [
            "What is the total home game attendance of team Cleveland Forest Citys?",
            "How about the number for Boston Red Stockings?",
            "Can you please give the results for 2005?",
            "How about the number from 2000 to 2010?"
        ],
        "interaction_query": [
            "SELECT sum(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  =  'Cleveland Forest Citys'",
            "SELECT sum(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings'",
            "SELECT sum(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' AND T1.year = 2005;",
            "SELECT sum(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' AND T1.year BETWEEN 2000 AND 2010;"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT sum(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first  =  'Len' AND T2.name_last = 'Barker' AND T1.year BETWEEN 1985 AND 1990;",
        "final_utterance": "How much did the the player with first name Len and last name Barker earn between 1985 to 1990 in total?",
        "interaction_utterance": [
            "How many players with first name Len and last name Barker are there?",
            "What is the average salary that he won in his career?",
            "What is the total salary that he won in his career?",
            "How about the total salary between 1985 to 1990?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM player WHERE name_first  =  'Len' AND name_last = 'Barker'",
            "SELECT avg(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first  =  'Len' AND T2.name_last = 'Barker'",
            "SELECT sum(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first  =  'Len' AND T2.name_last = 'Barker'",
            "SELECT sum(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first  =  'Len' AND T2.name_last = 'Barker' AND T1.year BETWEEN 1985 AND 1990;"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT T2.name_first ,  T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = 'Washington Nationals' INTERSECT SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = 'Washington Nationals'",
        "final_utterance": "List players' first name and last name who received salary from team Washington Nationals in both 2005 and 2007.",
        "interaction_utterance": [
            "In which parks does the team \"Washington Nationals\" play games?",
            "How many players have played for this team?",
            "Could you please list their full names?",
            "How about names of the players that played for this team in both 2005 and 2007"
        ],
        "interaction_query": [
            "SELECT park FROM team WHERE name = \"Washington Nationals\" GROUP BY park",
            "SELECT COUNT(*) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T3.name = 'Washington Nationals'",
            "SELECT T2.name_first ,  T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T3.name = 'Washington Nationals' GROUP BY T2.player_id",
            "SELECT T2.name_first ,  T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = 'Washington Nationals' INTERSECT SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = 'Washington Nationals'"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT sum(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000;",
        "final_utterance": "How many home games did the team Boston Red Stockings play from 1990 to 2000 in total?",
        "interaction_utterance": [
            "In which parks does the team \"Boston Red Stockings\" play games?",
            "How many home games did the team Boston Red Stockings play?",
            "How about the number from 1990 to 2000?"
        ],
        "interaction_query": [
            "SELECT park FROM team WHERE name = \"Boston Red Stockings\" GROUP BY park",
            "SELECT sum(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings'",
            "SELECT sum(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000;"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1;",
        "final_utterance": "Which team had the least number of attendances in home games in 1980?",
        "interaction_utterance": [
            "How many attendances did each team have in 1980?",
            "Could you please order the results by the attendance?",
            "Which team had the least number of attendances?"
        ],
        "interaction_query": [
            "SELECT T2.name, T1.attendance FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 GROUP BY T2.name",
            "SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 GROUP BY T2.name ORDER BY T1.attendance ASC",
            "SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1;"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT state FROM park GROUP BY state HAVING count(*)  >  2;",
        "final_utterance": "List the names of states that have more than 2 parks.",
        "interaction_utterance": [
            "How many parks does each state have?",
            "Which states have more than 3 parks?",
            "Which states have more than 2 parks?"
        ],
        "interaction_query": [
            "SELECT state, count(*) FROM park GROUP BY state",
            "SELECT state FROM park GROUP BY state HAVING count(*)  >  3;",
            "SELECT state FROM park GROUP BY state HAVING count(*)  >  2;"
        ]
    },
    {
        "db_id": "baseball_1",
        "final_query": "SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4;",
        "final_utterance": "Which cities have 2 to 4 parks?",
        "interaction_utterance": [
            "How many parks does each city have?",
            "Which cities have 2 or more parks?",
            "Which cities have 3 or more parks?",
            "How about those with 2 to 4 parks?"
        ],
        "interaction_query": [
            "SELECT city, count(*) FROM park GROUP BY city",
            "SELECT city FROM park GROUP BY city HAVING count(*) >= 2;",
            "SELECT city FROM park GROUP BY city HAVING count(*) >= 3;",
            "SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4;"
        ]
    },
    {
        "db_id": "university_basketball",
        "final_query": "SELECT founded FROM university ORDER BY enrollment DESC LIMIT 1",
        "final_utterance": "When was the school with the largest enrollment founded?",
        "interaction_utterance": [
            "What is the average enrollment?",
            "Which school was founded the earliest?",
            "Which school has the largest enrollment?",
            "When was it founded?"
        ],
        "interaction_query": [
            "SELECT AVG(enrollment) FROM university",
            "SELECT School FROM university ORDER BY founded ASC LIMIT 1",
            "SELECT School FROM university ORDER BY enrollment DESC LIMIT 1",
            "SELECT founded FROM university ORDER BY enrollment DESC LIMIT 1"
        ]
    },
    {
        "db_id": "university_basketball",
        "final_query": "SELECT founded FROM university WHERE affiliation != 'Public' ORDER BY founded DESC LIMIT 1",
        "final_utterance": "Find the founded year of the newest non public school.",
        "interaction_utterance": [
            "Which one is the the newest school?",
            "Among the schools, which ones were founded before 1800?",
            "Can you list the school names ordered by year founded in decreasing order?",
            "Please give the year that the first non public school was founded."
        ],
        "interaction_query": [
            "SELECT School FROM university ORDER BY founded DESC LIMIT 1",
            "SELECT School FROM university WHERE founded < 1800",
            "SELECT School FROM university ORDER BY founded DESC",
            "SELECT founded FROM university WHERE affiliation != 'Public' ORDER BY founded DESC LIMIT 1"
        ]
    },
    {
        "db_id": "university_basketball",
        "final_query": "SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1",
        "final_utterance": "What is the highest acc percent score in the competition?",
        "interaction_utterance": [
            "How many games are there?",
            "What is the lowest acc percent among the competitions?",
            "Can you order the schools by acc percent in descending order?",
            "What is the highest acc percent socre?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM basketball_match",
            "SELECT MIN(acc_percent) FROM basketball_match",
            "SELECT Team_Name FROM basketball_match ORDER BY acc_percent DESC",
            "SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1"
        ]
    },
    {
        "db_id": "university_basketball",
        "final_query": "SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id ORDER BY t2.acc_percent LIMIT 1",
        "final_utterance": "What is the primary conference of the school that has the lowest acc percent score in the competition?",
        "interaction_utterance": [
            "Please give me all the acc percent scores.",
            "Which school has the lowest acc percent score?",
            "What is its primary conference?"
        ],
        "interaction_query": [
            "SELECT ACC_Percent FROM basketball_match",
            "SELECT t1.School FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id ORDER BY t2.acc_percent LIMIT 1",
            "SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id ORDER BY t2.acc_percent LIMIT 1"
        ]
    },
    {
        "db_id": "university_basketball",
        "final_query": "SELECT t2.team_name ,  t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id ORDER BY t1.founded LIMIT 1",
        "final_utterance": "What is the team name and acc regular season score of the school that was founded for the longest time?",
        "interaction_utterance": [
            "Which schools have participated in a basketball match?",
            "How many are there?",
            "Which one has been founded for the longest time?",
            "Please list its team name and acc regular season score"
        ],
        "interaction_query": [
            "SELECT t1.school FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id",
            "SELECT COUNT(t1.school) FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id",
            "SELECT t1.school FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id ORDER BY t1.founded LIMIT 1",
            "SELECT t2.team_name ,  t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id ORDER BY t1.founded LIMIT 1"
        ]
    },
    {
        "db_id": "university_basketball",
        "final_query": "SELECT t2.All_Games ,  t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id WHERE team_name  =  'Clemson'",
        "final_utterance": "Find the location and all games score of the school that has Clemson as its team name.",
        "interaction_utterance": [
            "Which school has North Carolina as its team name?",
            "What is its location?",
            "How about the school that has Clemson as its team name?",
            "Please list its location and all games score."
        ],
        "interaction_query": [
            "SELECT t1.School FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id WHERE team_name  =  'North Carolina'",
            "SELECT t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id WHERE team_name  =  'North Carolina'",
            "SELECT t1.school FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id WHERE team_name  =  'Clemson'",
            "SELECT t2.All_Games ,  t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id WHERE team_name  =  'Clemson'"
        ]
    },
    {
        "db_id": "university_basketball",
        "final_query": "SELECT enrollment ,  primary_conference FROM university ORDER BY founded LIMIT 1",
        "final_utterance": "Show the enrollment and primary_conference of the oldest college.",
        "interaction_utterance": [
            "How many colleges are there?",
            "Please order them by founding year.",
            "Which one is the oldest?",
            "Please list its enrollment and primary_conference."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM university",
            "SELECT School FROM university ORDER BY founded",
            "SELECT School FROM university ORDER BY founded LIMIT 1",
            "SELECT enrollment ,  primary_conference FROM university ORDER BY founded LIMIT 1"
        ]
    },
    {
        "db_id": "university_basketball",
        "final_query": "SELECT sum(enrollment) ,  min(enrollment) FROM university",
        "final_utterance": "What is the total and minimum enrollment of all schools?",
        "interaction_utterance": [
            "What is the average enrollment of all schools?",
            "Could you please order the schools by their enrollment?",
            "What is the total enrollment of all schools?",
            "Please also list the minimum enrollment."
        ],
        "interaction_query": [
            "SELECT avg(enrollment) FROM university",
            "SELECT School FROM university ORDER BY enrollment",
            "SELECT sum(enrollment) FROM university",
            "SELECT sum(enrollment) ,  min(enrollment) FROM university"
        ]
    },
    {
        "db_id": "university_basketball",
        "final_query": "SELECT count(*) FROM university WHERE school_id NOT IN (SELECT school_id FROM basketball_match)",
        "final_utterance": "How many schools do not participate in the basketball match?",
        "interaction_utterance": [
            "Which schools have participated in a basketball match?",
            "How many are there?",
            "How about the schools that have not participated in a basketball match?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT School FROM university as T1 JOIN basketball_match as T2 ON T1.School_ID = T2.School_ID",
            "SELECT COUNT(School) FROM university as T1 JOIN basketball_match as T2 ON T1.School_ID = T2.School_ID",
            "SELECT School FROM university WHERE school_id NOT IN (SELECT school_id FROM basketball_match)",
            "SELECT count(*) FROM university WHERE school_id NOT IN (SELECT school_id FROM basketball_match)"
        ]
    },
    {
        "db_id": "university_basketball",
        "final_query": "SELECT school FROM university WHERE founded  >  1850 OR affiliation  =  'Public'",
        "final_utterance": "Find the schools that were either founded after 1850 or public.",
        "interaction_utterance": [
            "How many public schools are there?",
            "Please list their names.",
            "Please also list the schools that were founded after 1850."
        ],
        "interaction_query": [
            "SELECT COUNT(school) FROM university WHERE affiliation  =  'Public'",
            "SELECT school FROM university WHERE affiliation  =  'Public'",
            "SELECT school FROM university WHERE founded  >  1850 OR affiliation  =  'Public'"
        ]
    },
    {
        "db_id": "university_basketball",
        "final_query": "SELECT count(*) FROM university WHERE LOCATION LIKE \"%NY%\"",
        "final_utterance": "Find how many school locations have the word 'NY'.",
        "interaction_utterance": [
            "How many schools are there?",
            "Please list the years they were founded.",
            "Please list their locations.",
            "how many of them are in NY?"
        ],
        "interaction_query": [
            "SELECT COUNT(school) FROM university",
            "SELECT Founded FROM university",
            "SELECT LOCATION FROM university",
            "SELECT count(*) FROM university WHERE LOCATION LIKE \"%NY%\""
        ]
    },
    {
        "db_id": "university_basketball",
        "final_query": "SELECT t2.team_name FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id WHERE enrollment  <  (SELECT avg(enrollment) FROM university)",
        "final_utterance": "Find the team names of the universities whose enrollments are smaller than the average enrollment size.",
        "interaction_utterance": [
            "What is the average enrollment size?",
            "Which schools have basketball team?",
            "Please list the enrollment of these schools.",
            "Which of them have enrollments that are smaller than the average enrollment size?",
            "Please list their team names."
        ],
        "interaction_query": [
            "SELECT avg(enrollment) FROM university",
            "SELECT School FROM university as T1 JOIN basketball_match as T2 ON T1.School_ID = T2.School_ID",
            "SELECT School, Enrollment FROM university as T1 JOIN basketball_match as T2 ON T1.School_ID = T2.School_ID",
            "SELECT School FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id WHERE enrollment  <  (SELECT avg(enrollment) FROM university)",
            "SELECT t2.team_name FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id WHERE enrollment  <  (SELECT avg(enrollment) FROM university)"
        ]
    },
    {
        "db_id": "university_basketball",
        "final_query": "SELECT count(*) ,  affiliation FROM university WHERE enrollment  >  20000 GROUP BY affiliation",
        "final_utterance": "Find the number of universities that have over a 20000 enrollment size for each affiliation type.",
        "interaction_utterance": [
            "What are the different affiliation types of these schools?",
            "Which universities have over a 20000 enrollment size?",
            "Can you also list their affiliation type?",
            "How many are there in each affiliation group?"
        ],
        "interaction_query": [
            "SELECT DISTINCT affiliation FROM university",
            "SELECT School FROM university WHERE enrollment  >  20000",
            "SELECT School, affiliation FROM university WHERE enrollment  >  20000",
            "SELECT count(*) ,  affiliation FROM university WHERE enrollment  >  20000 GROUP BY affiliation"
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT date_of_latest_logon FROM Students WHERE family_name  =  \"Jaskolski\" OR family_name  =  \"Langosh\"",
        "final_utterance": "What are the dates of the latest logon of the students with family name \"Jaskolski\" or \"Langosh\"?",
        "interaction_utterance": [
            "Tell me Wilson's date of registration.",
            "Tell me the date of his latest logon.",
            "How about the dates of the latest logon of the students with family name \"Jaskolski\" or \"Langosh\"?"
        ],
        "interaction_query": [
            "SELECT date_of_registration FROM Students WHERE personal_name = \"Wilson\"",
            "SELECT date_of_latest_logon FROM Students WHERE personal_name = \"Wilson\"",
            "SELECT date_of_latest_logon FROM Students WHERE family_name  =  \"Jaskolski\" OR family_name  =  \"Langosh\""
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT COUNT(*) FROM Students WHERE personal_name LIKE \"%son%\"",
        "final_utterance": "How many students have personal names that contain the word \"son\"?",
        "interaction_utterance": [
            "How many students are there?",
            "How many students have personal names that contain the word \"wel\"?",
            "How many students have personal names that contain the word \"son\"?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Students",
            "SELECT COUNT(*) FROM Students WHERE personal_name LIKE \"%wel%\"",
            "SELECT COUNT(*) FROM Students WHERE personal_name LIKE \"%son%\""
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT test_result ,  COUNT(*) FROM Student_Tests_Taken GROUP BY test_result ORDER BY COUNT(*) DESC",
        "final_utterance": "List each test result and its count in descending order of count.",
        "interaction_utterance": [
            "Tell me the number of tests with result \"Pass\".",
            "Tell me the number of tests with result \"Fail\".",
            "List each test result and its count in descending order of count."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Student_Tests_Taken WHERE test_result = \"Pass\"",
            "SELECT COUNT(*) FROM Student_Tests_Taken WHERE test_result = \"Fail\"",
            "SELECT test_result ,  COUNT(*) FROM Student_Tests_Taken GROUP BY test_result ORDER BY COUNT(*) DESC"
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT T1.login_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T2.course_name  =  \"advanced database\"",
        "final_utterance": "Find the login name of the course author that teaches the course with name \"advanced database\".",
        "interaction_utterance": [
            "Tell me the personal name of the course author that teaches the course with name \"advanced database\".",
            "Tell me the login name of the course author that teaches the course with name \"advanced database\"."
        ],
        "interaction_query": [
            "SELECT T1.personal_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T2.course_name  =  \"advanced database\"",
            "SELECT T1.login_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T2.course_name  =  \"advanced database\""
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT T1.address_line_1 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T2.course_name  =  \"operating system\" OR T2.course_name  =  \"data structure\"",
        "final_utterance": "Find the addresses of the course authors who teach the course with name \"operating system\" or \"data structure\".",
        "interaction_utterance": [
            "Tell me the personal name of the course author that teaches the course with name \"operating system\".",
            "How about his address?",
            "Tel me the addresses of the course authors who teach the course with name \"operating system\" or \"data structure\""
        ],
        "interaction_query": [
            "SELECT T1.personal_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T2.course_name  =  \"operating system\"",
            "SELECT T1.address_line_1 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T2.course_name  =  \"operating system\"",
            "SELECT T1.address_line_1 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T2.course_name  =  \"operating system\" OR T2.course_name  =  \"data structure\""
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT T1.personal_name ,  T1.family_name ,  T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id GROUP BY T2.author_id ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Find the personal name, family name, and author ID of the course author that teaches the most courses.",
        "interaction_utterance": [
            "Tell me the personal name, family name, and author ID of the course author that teaches English.",
            "How about that of course French.",
            "Tell me the personal name, family name, and author ID of the course author that teaches the most courses."
        ],
        "interaction_query": [
            "SELECT T1.personal_name ,  T1.family_name ,  T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T2.course_name = \"English\"",
            "SELECT T1.personal_name ,  T1.family_name ,  T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T2.course_name = \"French\"",
            "SELECT T1.personal_name ,  T1.family_name ,  T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id GROUP BY T2.author_id ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT T1.address_line_1 ,  T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id GROUP BY T2.author_id HAVING Count(*)  >=  2",
        "final_utterance": "Find the addresses and author IDs of the course authors that teach at least two courses.",
        "interaction_utterance": [
            "Tell me Julio's address",
            "Tell me the number of courses that he teaches.",
            "Tell me the addresses and author IDs of the course authors that teach at least two courses."
        ],
        "interaction_query": [
            "SELECT address_line_1 FROM Course_Authors_and_Tutors WHERE personal_name = \"Julio\"",
            "SELECT COUNT(*) FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE personal_name = \"Julio\"",
            "SELECT T1.address_line_1 ,  T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id GROUP BY T2.author_id HAVING Count(*)  >=  2"
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT T2.course_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T1.personal_name  =  \"Julio\"",
        "final_utterance": "Find the names of courses taught by the tutor who has personal name \"Julio\".",
        "interaction_utterance": [
            "Tell me Julio's address.",
            "Tell me the number of courses that he teaches.",
            "What are they?"
        ],
        "interaction_query": [
            "SELECT address_line_1 FROM Course_Authors_and_Tutors WHERE personal_name = \"Julio\"",
            "SELECT COUNT(T2.course_name) FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T1.personal_name  =  \"Julio\"",
            "SELECT T2.course_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T1.personal_name  =  \"Julio\""
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT T1.course_name ,  T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id WHERE T2.subject_name  =  \"Computer Science\"",
        "final_utterance": "Find the names and descriptions of courses that belong to the subject named \"Computer Science\".",
        "interaction_utterance": [
            "Tell me the names and descriptions of courses that belong to the subject named \"Arts\".",
            "Tell me the names and descriptions of courses that belong to the subject named \"Language\".",
            "Tell me the names and descriptions of courses that belong to the subject named \"Computer Science\"."
        ],
        "interaction_query": [
            "SELECT T1.course_name ,  T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id WHERE T2.subject_name  =  \"Arts\"",
            "SELECT T1.course_name ,  T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id WHERE T2.subject_name  =  \"Language\"",
            "SELECT T1.course_name ,  T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id WHERE T2.subject_name  =  \"Computer Science\""
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT T1.subject_id ,  T2.subject_name ,  COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id GROUP BY T1.subject_id",
        "final_utterance": "Find the subject ID, subject name, and the corresponding number of available courses for each subject.",
        "interaction_utterance": [
            "Tell me the courses that belong to the subject named \"Computer Science\".",
            "Tell me the courses that belong to the subject named \"Arts\".",
            "Tell me the subject ID, subject name, and the corresponding number of available courses for each subject."
        ],
        "interaction_query": [
            "SELECT T1.course_name FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id WHERE T2.subject_name  =  \"Computer Science\"",
            "SELECT T1.course_name FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id WHERE T2.subject_name  =  \"Arts\"",
            "SELECT T1.subject_id ,  T2.subject_name ,  COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id GROUP BY T1.subject_id"
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT T1.subject_id ,  T2.subject_name ,  COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT(*) ASC",
        "final_utterance": "Find the subject ID, name of subject and the corresponding number of courses for each subject, and sort by the course count in ascending order.",
        "interaction_utterance": [
            "Tell me the number of courses that belong to \"Language\".",
            "What are they?",
            "Tell me the subject ID, name of subject and the corresponding number of courses for each subject, and sort by the course count in ascending order."
        ],
        "interaction_query": [
            "SELECT COUNT(T1.course_name) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id WHERE T2.subject_name  =  \"Language\"",
            "SELECT T1.course_name FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id WHERE T2.subject_name  =  \"Language\"",
            "SELECT T1.subject_id ,  T2.subject_name ,  COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT(*) ASC"
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT T2.date_of_enrolment FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id WHERE T1.course_name  =  \"Spanish\"",
        "final_utterance": "What is the date of enrollment of the course named \"Spanish\"?",
        "interaction_utterance": [
            "What is the date of completion of the course named \"machine learning\"?",
            "What is the date of enrollment of that course?",
            "So what is the date of enrollment of the course named \"Spanish\"?"
        ],
        "interaction_query": [
            "SELECT T2.date_of_completion FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id WHERE T1.course_name  =  \"machine learning\"",
            "SELECT T2.date_of_enrolment FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id WHERE T1.course_name  =  \"machine learning\"",
            "SELECT T2.date_of_enrolment FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id WHERE T1.course_name  =  \"Spanish\""
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "What is the name of the course that has the most student enrollment?",
        "interaction_utterance": [
            "How many students are enrolled in \"English\"?",
            "So what is the name of the course that has the least student enrollment?",
            "How about the course that has the most student enrollment?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id WHERE T1.course_name = \"English\"",
            "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) ASC LIMIT 1",
            "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name HAVING COUNT(*)  =  1",
        "final_utterance": "What are the names of the courses that have exactly 1 student enrollment?",
        "interaction_utterance": [
            "How many students are enrolled in \"French\"?",
            "Okay, how many students are enrolled in \"AI\"?",
            "So what are the names of the courses that have exactly 1 student enrollment?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id WHERE T1.course_name = \"French\"",
            "SELECT COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id WHERE T1.course_name = \"AI\"",
            "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name HAVING COUNT(*)  =  1"
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT T1.course_description ,  T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name HAVING COUNT(*)  >  2",
        "final_utterance": "What are the descriptions and names of the courses that have student enrollment bigger than 2?",
        "interaction_utterance": [
            "How many students are enrolled in \"AI\"?",
            "Okay. Tell me the names of the courses that have student enrollment bigger than 5?",
            "What are the descriptions and names of the courses that have student enrollment bigger than 2?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id WHERE T1.course_name = \"AI\"",
            "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name HAVING COUNT(*)  >  5",
            "SELECT T1.course_description ,  T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name HAVING COUNT(*)  >  2"
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT T1.course_name ,  COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name",
        "final_utterance": "What is the name of each course and the corresponding number of student enrollment?",
        "interaction_utterance": [
            "How many students are there?",
            "How many courses are there?",
            "What is the name of each course and the corresponding number of student enrollment?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Students",
            "SELECT COUNT(*) FROM Courses",
            "SELECT T1.course_name ,  COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name"
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT T1.date_of_enrolment FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id  =  T2.registration_id WHERE T2.test_result  =  \"Pass\"",
        "final_utterance": "What are the enrollment dates of all the tests that have result \"Pass\"?",
        "interaction_utterance": [
            "What are the dates of all the tests that have the result \"Fail\"?",
            "How about that of all the tests that have the result \"Pass\"?",
            "So what are the enrollment dates of all the tests that have the result \"Pass\"?"
        ],
        "interaction_query": [
            "SELECT date_test_taken FROM Student_Tests_Taken WHERE test_result  =  \"Fail\"",
            "SELECT date_test_taken FROM Student_Tests_Taken WHERE test_result  =  \"Pass\"",
            "SELECT T1.date_of_enrolment FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id  =  T2.registration_id WHERE T2.test_result  =  \"Pass\""
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id  =  T2.registration_id WHERE T2.test_result  =  \"Fail\"",
        "final_utterance": "What are the completion dates of all the tests that have result \"Fail\"?",
        "interaction_utterance": [
            "How many tests have result \"Fail\"?",
            "What are the dates of those tests?",
            "What are the completion dates of all the tests that have result \"Fail\"?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Student_Tests_Taken WHERE test_result  =  \"Fail\"",
            "SELECT date_test_taken FROM Student_Tests_Taken WHERE test_result  =  \"Fail\"",
            "SELECT T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id  =  T2.registration_id WHERE T2.test_result  =  \"Fail\""
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT T1.date_of_enrolment ,  T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.personal_name  =  \"Karson\"",
        "final_utterance": "List the dates of enrollment and completion of the student with personal name \"Karson\".",
        "interaction_utterance": [
            "Tell me Karson's registration date.",
            "When is his enrollment?",
            "When is his completion?"
        ],
        "interaction_query": [
            "SELECT date_of_registration FROM Students WHERE personal_name = \"Karson\"",
            "SELECT T1.date_of_enrolment FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.personal_name  =  \"Karson\"",
            "SELECT T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.personal_name  =  \"Karson\""
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT T1.date_of_enrolment ,  T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.family_name  =  \"Zieme\" AND T2.personal_name  =  \"Bernie\"",
        "final_utterance": "List the dates of enrollment and completion of the student with family name \"Zieme\" and personal name \"Bernie\".",
        "interaction_utterance": [
            "Tell me Krystel's date of registration.",
            "How about her dates of enrollment and completion?",
            "How about the dates of enrollment and completion of the student with family name \"Zieme\" and personal name \"Bernie\"?"
        ],
        "interaction_query": [
            "SELECT date_of_registration FROM Students WHERE personal_name = \"Krystel\"",
            "SELECT T1.date_of_enrolment ,  T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.personal_name  =  \"Krystel\"",
            "SELECT T1.date_of_enrolment ,  T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.family_name  =  \"Zieme\" AND T2.personal_name  =  \"Bernie\""
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT T1.student_id ,  T2.login_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Find the student ID and login name of the student with the most course enrollments",
        "interaction_utterance": [
            "Tell me how many course enrollments there are?",
            "Tell me how many there are for the student named Jewel?",
            "Tell me the student ID and login name of the student with the most course enrollments."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Student_Course_Enrolment",
            "SELECT COUNT(*) FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.personal_name = \"Jewel\"",
            "SELECT T1.student_id ,  T2.login_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT T1.student_id ,  T2.personal_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING COUNT(*)  >=  2",
        "final_utterance": "Find the student ID and personal name of the student with at least two enrollments.",
        "interaction_utterance": [
            "How many students are enrolled in \"AI\"?",
            "Tell me the names of the courses that have student enrollment bigger than 5.",
            "What are the student ID and personal name of the student with at least two enrollments?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id WHERE T1.course_name = \"AI\"",
            "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name HAVING COUNT(*)  >  2",
            "SELECT T1.student_id ,  T2.personal_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING COUNT(*)  >=  2"
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT T1.student_id ,  T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING COUNT(*)  <=  2",
        "final_utterance": "Find the student ID and middle name for all the students with at most two enrollments.",
        "interaction_utterance": [
            "Tell me all the enrollment information for the student with personal name \"Else\".",
            "How about that for the personal name \"Wilson\"?",
            "Tell me the student ID and middle name for all the students with at most two enrollments."
        ],
        "interaction_query": [
            "SELECT * FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.personal_name = \"Else\"",
            "SELECT * FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.personal_name = \"Wilson\"",
            "SELECT T1.student_id ,  T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING COUNT(*)  <=  2"
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT personal_name FROM Students EXCEPT SELECT T1.personal_name FROM Students AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.student_id  =  T2.student_id",
        "final_utterance": "Find the personal names of students not enrolled in any course.",
        "interaction_utterance": [
            "Tell me the course description of the course named \"database\".",
            "Tell me the number of students enrolled in this course.",
            "Tell me the personal names of students that not enrolled in any course."
        ],
        "interaction_query": [
            "SELECT course_description FROM Courses WHERE course_name = \"database\"",
            "SELECT T1.course_name ,  COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name WHERE T1.course_name = \"database\"",
            "SELECT personal_name FROM Students EXCEPT SELECT T1.personal_name FROM Students AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.student_id  =  T2.student_id"
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT count(*) FROM Students WHERE student_id NOT IN (SELECT student_id FROM Student_Course_Enrolment)",
        "final_utterance": "How many students did not have any course enrollment?",
        "interaction_utterance": [
            "Tell me the course description of the course named art history.",
            "Tell me the number of students enrolling this course.",
            "How many students did not have any course enrollment?"
        ],
        "interaction_query": [
            "SELECT course_description FROM Courses WHERE course_name = \"Art history\"",
            "SELECT T1.course_name ,  COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name WHERE T1.course_name = \"Art history\"",
            "SELECT count(*) FROM Students WHERE student_id NOT IN (SELECT student_id FROM Student_Course_Enrolment)"
        ]
    },
    {
        "db_id": "e_learning",
        "final_query": "SELECT login_name FROM Course_Authors_and_Tutors INTERSECT SELECT login_name FROM Students",
        "final_utterance": "Find the common login name of course authors and students.",
        "interaction_utterance": [
            "Tell me Cary's login name.",
            "How about Autumn's login name.",
            "Tell me the common login name of course authors and students."
        ],
        "interaction_query": [
            "SELECT login_name FROM Students WHERE personal_name = \"Cary\"",
            "SELECT login_name FROM Students WHERE personal_name = \"Autumn\"",
            "SELECT login_name FROM Course_Authors_and_Tutors INTERSECT SELECT login_name FROM Students"
        ]
    },
    {
        "db_id": "sports_competition",
        "final_query": "SELECT max(Silver) ,  min(Silver) FROM club_rank",
        "final_utterance": "What are the maximum and minimum number of silver medals for clubs.",
        "interaction_utterance": [
            "List all the information about the club ranks.",
            "What is the average number of gold medals?",
            "What about silver medals?",
            "What about the maximum and minimum number of silver medals?"
        ],
        "interaction_query": [
            "SELECT * FROM club_rank",
            "SELECT avg(Gold) FROM club_rank",
            "SELECT avg(Silver) FROM club_rank",
            "SELECT max(Silver) ,  min(Silver) FROM club_rank"
        ]
    },
    {
        "db_id": "sports_competition",
        "final_query": "SELECT T1.name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID  =  T2.Club_ID WHERE T2.Position  =  \"Right Wing\"",
        "final_utterance": "Show the names of clubs that have players with position \"Right Wing\".",
        "interaction_utterance": [
            "What are the club names for each player?",
            "How many players are there in each club?",
            "Which clubs have players who are the position of \"Right Wing\"."
        ],
        "interaction_query": [
            "SELECT T1.name, T2.name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID  =  T2.Club_ID",
            "SELECT T1.name, count(*) FROM club AS T1 JOIN player AS T2 ON T1.Club_ID  =  T2.Club_ID group by T1.name",
            "SELECT T1.name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID  =  T2.Club_ID WHERE T2.Position  =  \"Right Wing\""
        ]
    },
    {
        "db_id": "sports_competition",
        "final_query": "SELECT avg(T2.Points) FROM club AS T1 JOIN player AS T2 ON T1.Club_ID  =  T2.Club_ID WHERE T1.name  =  \"AIB\"",
        "final_utterance": "What is the average points of players from club with name \"AIB\".",
        "interaction_utterance": [
            "What are the club names and points for each player?",
            "What is the average points for all of them?",
            "What about that of the club 'BK Slide'?",
            "What about club 'AIB'?"
        ],
        "interaction_query": [
            "SELECT T1.name,T2.Points,T2.name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID  =  T2.Club_ID",
            "SELECT avg(T2.Points) FROM club AS T1 JOIN player AS T2 ON T1.Club_ID  =  T2.Club_ID",
            "SELECT avg(T2.Points) FROM club AS T1 JOIN player AS T2 ON T1.Club_ID  =  T2.Club_ID WHERE T1.name  =  \"BK Slide\"",
            "SELECT avg(T2.Points) FROM club AS T1 JOIN player AS T2 ON T1.Club_ID  =  T2.Club_ID WHERE T1.name  =  \"AIB\""
        ]
    },
    {
        "db_id": "sports_competition",
        "final_query": "SELECT POSITION FROM player GROUP BY name HAVING avg(Points)  >=  20",
        "final_utterance": "List the position of players with average number of points scored by players of that position bigger than 20.",
        "interaction_utterance": [
            "Show all the positions of the players.",
            "How many unique positions are there?",
            "How many players are there for each of them?",
            "What is the average points of all players?",
            "What are the positions of the players with average number of points scored by players of that position bigger than 20?"
        ],
        "interaction_query": [
            "SELECT POSITION FROM player",
            "SELECT count (distinct POSITION) FROM player",
            "SELECT POSITION, count (*) FROM player GROUP BY POSITION",
            "SELECT avg(Points) FROM player",
            "SELECT POSITION FROM player GROUP BY name HAVING avg(Points)  >=  20"
        ]
    },
    {
        "db_id": "sports_competition",
        "final_query": "SELECT Competition_type FROM competition GROUP BY Competition_type ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "List the most common type of competition.",
        "interaction_utterance": [
            "How many unique competition types are there?",
            "How many competitions are there for each type?",
            "Among those results, which one is the most common one?"
        ],
        "interaction_query": [
            "SELECT count (distinct Competition_type) FROM competition",
            "SELECT Competition_type, count(*) FROM competition GROUP BY Competition_type",
            "SELECT Competition_type FROM competition GROUP BY Competition_type ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "sports_competition",
        "final_query": "SELECT Competition_type FROM competition GROUP BY Competition_type HAVING COUNT(*)  <=  5",
        "final_utterance": "List the types of competition that have at most five competitions of that type.",
        "interaction_utterance": [
            "How many unique competition types are there?",
            "How many competitions are there for each type?",
            "What are the top 3 competition types?",
            "What about the ones that have at most five competitions of that type."
        ],
        "interaction_query": [
            "SELECT count (distinct Competition_type) FROM competition",
            "SELECT Competition_type, count(*) FROM competition GROUP BY Competition_type",
            "SELECT Competition_type FROM competition GROUP BY Competition_type ORDER BY COUNT(*) DESC LIMIT 3",
            "SELECT Competition_type FROM competition GROUP BY Competition_type HAVING COUNT(*)  <=  5"
        ]
    },
    {
        "db_id": "sports_competition",
        "final_query": "SELECT name FROM CLub WHERE Club_ID NOT IN (SELECT Club_ID FROM player)",
        "final_utterance": "List the names of clubs that do not have any players.",
        "interaction_utterance": [
            "What are the club names?",
            "How many of them have at least one player?",
            "Which ones have no players at all?"
        ],
        "interaction_query": [
            "SELECT name FROM CLub",
            "SELECT count(name) FROM CLub WHERE Club_ID IN (SELECT Club_ID FROM player)",
            "SELECT name FROM CLub WHERE Club_ID NOT IN (SELECT Club_ID FROM player)"
        ]
    },
    {
        "db_id": "sports_competition",
        "final_query": "SELECT POSITION FROM player WHERE Points  >  20 INTERSECT SELECT POSITION FROM player WHERE Points  <  10",
        "final_utterance": "What are the positions with both players having more than 20 points and less than 10 points.",
        "interaction_utterance": [
            "What is the average value of points?",
            "How many players have points less than 20.0?",
            "What are the positions of those players?",
            "What about the positions of those players who have more than 20 points and less than 10 points."
        ],
        "interaction_query": [
            "SELECT avg(Points) FROM player",
            "SELECT count(*) FROM player WHERE Points  <  20",
            "SELECT POSITION FROM player WHERE Points  <  20",
            "SELECT POSITION FROM player WHERE Points  >  20 INTERSECT SELECT POSITION FROM player WHERE Points  <  10"
        ]
    },
    {
        "db_id": "sports_competition",
        "final_query": "SELECT name FROM player WHERE points  >  (SELECT avg(points) FROM player)",
        "final_utterance": "what are the name of players who get more than the average points.",
        "interaction_utterance": [
            "What are the maximum and mean values of the points?",
            "What are the player names of those who have more points than the average?"
        ],
        "interaction_query": [
            "SELECT max(points), avg(points) FROM player",
            "SELECT name FROM player WHERE points  >  (SELECT avg(points) FROM player)"
        ]
    },
    {
        "db_id": "sports_competition",
        "final_query": "SELECT count(*) ,  POSITION FROM player WHERE points  <  30 GROUP BY POSITION",
        "final_utterance": "find the number of players whose points are lower than 30 in each position.",
        "interaction_utterance": [
            "What are the minimum and mean values of the points?",
            "What are the player names of those who have fewer points than the average?",
            "How many are there?",
            "How many players are there whose points are lower than 30?",
            "Among those, how many players are there for each position?"
        ],
        "interaction_query": [
            "SELECT min(points), avg(points) FROM player",
            "SELECT name FROM player WHERE points  <  (SELECT avg(points) FROM player)",
            "SELECT count(*) FROM player WHERE points  <  (SELECT avg(points) FROM player)",
            "SELECT count(*)  FROM player WHERE points  <  30",
            "SELECT count(*) ,  POSITION FROM player WHERE points  <  30 GROUP BY POSITION"
        ]
    },
    {
        "db_id": "sports_competition",
        "final_query": "SELECT country FROM competition WHERE competition_type  =  'Tournament' GROUP BY country ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "which country did participated in the most number of Tournament competitions?",
        "interaction_utterance": [
            "How many competitions are there where the competition type is 'Friendly'?",
            "What about for the type 'Tournament'?",
            "Among those results, how many competitions are there for each country?",
            "Which one is the most popular country?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM competition WHERE competition_type  =  'Friendly'",
            "SELECT count(*)  FROM competition WHERE competition_type  =  'Tournament'",
            "SELECT country FROM competition WHERE competition_type  =  'Tournament' GROUP BY country",
            "SELECT country FROM competition WHERE competition_type  =  'Tournament' GROUP BY country ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "sports_competition",
        "final_query": "SELECT country FROM competition WHERE competition_type  =  'Friendly' INTERSECT SELECT country FROM competition WHERE competition_type  =  'Tournament'",
        "final_utterance": "which countries did participated in both Friendly and Tournament type competitions.",
        "interaction_utterance": [
            "How many competitions are there where the  competition type is 'Friendly'?",
            "Among those results, how many competitions are there for each country?",
            "What about for type 'Tournament'?",
            "Which countries held both types of competitions?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM competition WHERE competition_type  =  'Friendly'",
            "SELECT country FROM competition WHERE competition_type  =  'Friendly' GROUP BY country",
            "SELECT country FROM competition WHERE competition_type  =  'Tournament' GROUP BY country",
            "SELECT country FROM competition WHERE competition_type  =  'Friendly' INTERSECT SELECT country FROM competition WHERE competition_type  =  'Tournament'"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT T1.asset_id ,  T1.asset_details FROM Assets AS T1 JOIN Asset_Parts AS T2 ON T1.asset_id  =  T2.asset_id GROUP BY T1.asset_id HAVING count(*)  =  2 INTERSECT SELECT T1.asset_id ,  T1.asset_details FROM Assets AS T1 JOIN Fault_Log AS T2 ON T1.asset_id  =  T2.asset_id GROUP BY T1.asset_id HAVING count(*)  <  2",
        "final_utterance": "Which assets have 2 parts and have less than 2 fault logs? List the asset id and detail.",
        "interaction_utterance": [
            "Which assets have 2 parts? Show me its id and details.",
            "Which assets have less than 2 fault logs? Show me its id and details.",
            "Which assets fulfill both of those conditions? Show me asset id and details."
        ],
        "interaction_query": [
            "SELECT T1.asset_id ,  T1.asset_details FROM Assets AS T1 JOIN Asset_Parts AS T2 ON T1.asset_id  =  T2.asset_id GROUP BY T1.asset_id HAVING count(*)  =  2",
            "SELECT T1.asset_id ,  T1.asset_details FROM Assets AS T1 JOIN Fault_Log AS T2 ON T1.asset_id  =  T2.asset_id GROUP BY T1.asset_id HAVING count(*)  <  2",
            "SELECT T1.asset_id ,  T1.asset_details FROM Assets AS T1 JOIN Asset_Parts AS T2 ON T1.asset_id  =  T2.asset_id GROUP BY T1.asset_id HAVING count(*)  =  2 INTERSECT SELECT T1.asset_id ,  T1.asset_details FROM Assets AS T1 JOIN Fault_Log AS T2 ON T1.asset_id  =  T2.asset_id GROUP BY T1.asset_id HAVING count(*)  <  2"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT count(*) ,  T1.maintenance_contract_id FROM Maintenance_Contracts AS T1 JOIN Assets AS T2 ON T1.maintenance_contract_id  =  T2.maintenance_contract_id GROUP BY T1.maintenance_contract_id",
        "final_utterance": "How many assets does each maintenance contract contain? List the number and the contract id.",
        "interaction_utterance": [
            "Show me assets each maintenance contract contains.",
            "Show me the number of assets and contract id."
        ],
        "interaction_query": [
            "SELECT * FROM Maintenance_Contracts AS T1 JOIN Assets AS T2 ON T1.maintenance_contract_id  =  T2.maintenance_contract_id GROUP BY T1.maintenance_contract_id",
            "SELECT count(*) ,  T1.maintenance_contract_id FROM Maintenance_Contracts AS T1 JOIN Assets AS T2 ON T1.maintenance_contract_id  =  T2.maintenance_contract_id GROUP BY T1.maintenance_contract_id"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT count(*) ,  T1.company_id FROM Third_Party_Companies AS T1 JOIN Assets AS T2 ON T1.company_id  =  T2.supplier_company_id GROUP BY T1.company_id",
        "final_utterance": "How many assets does each third party company supply? List the count and the company id.",
        "interaction_utterance": [
            "Show me assets supplied by each third party company.",
            "How many are there for each third party company? Show me the company id as well."
        ],
        "interaction_query": [
            "SELECT * FROM Third_Party_Companies AS T1 JOIN Assets AS T2 ON T1.company_id  =  T2.supplier_company_id GROUP BY T1.company_id",
            "SELECT count(*) ,  T1.company_id FROM Third_Party_Companies AS T1 JOIN Assets AS T2 ON T1.company_id  =  T2.supplier_company_id GROUP BY T1.company_id"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT T1.company_id ,  T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Engineers AS T2 ON T1.company_id  =  T2.company_id GROUP BY T1.company_id HAVING count(*)  >=  2 UNION SELECT T3.company_id ,  T3.company_name FROM Third_Party_Companies AS T3 JOIN Maintenance_Contracts AS T4 ON T3.company_id  =  T4.maintenance_contract_company_id GROUP BY T3.company_id HAVING count(*)  >=  2",
        "final_utterance": "Which third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id and name.",
        "interaction_utterance": [
            "Which third party companies have at least 2 maintenance engineers? List the id and name of that company.",
            "Show me names and ids of third party companies that have at least 2 maintenance contracts as well, along with the previous result."
        ],
        "interaction_query": [
            "SELECT T1.company_id ,  T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Engineers AS T2 ON T1.company_id  =  T2.company_id GROUP BY T1.company_id HAVING count(*)  >=  2",
            "SELECT T1.company_id ,  T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Engineers AS T2 ON T1.company_id  =  T2.company_id GROUP BY T1.company_id HAVING count(*)  >=  2 UNION SELECT T3.company_id ,  T3.company_name FROM Third_Party_Companies AS T3 JOIN Maintenance_Contracts AS T4 ON T3.company_id  =  T4.maintenance_contract_company_id GROUP BY T3.company_id HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT T1.staff_name ,  T1.staff_id FROM Staff AS T1 JOIN Fault_Log AS T2 ON T1.staff_id  =  T2.recorded_by_staff_id EXCEPT SELECT T3.staff_name ,  T3.staff_id FROM Staff AS T3 JOIN Engineer_Visits AS T4 ON T3.staff_id  =  T4.contact_staff_id",
        "final_utterance": "What is the name and id of the staff who recorded the fault log but has not contacted any visiting engineers?",
        "interaction_utterance": [
            "What is the name and id of the staff who recorded the fault log?",
            "Among those staff members, only show the name and id of staff who has not contacted any visiting engineers."
        ],
        "interaction_query": [
            "SELECT T1.staff_name ,  T1.staff_id FROM Staff AS T1 JOIN Fault_Log AS T2 ON T1.staff_id  =  T2.recorded_by_staff_id",
            "SELECT T1.staff_name ,  T1.staff_id FROM Staff AS T1 JOIN Fault_Log AS T2 ON T1.staff_id  =  T2.recorded_by_staff_id EXCEPT SELECT T3.staff_name ,  T3.staff_id FROM Staff AS T3 JOIN Engineer_Visits AS T4 ON T3.staff_id  =  T4.contact_staff_id"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT T1.engineer_id ,  T1.first_name ,  T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 GROUP BY T1.engineer_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which engineer has visited the most times? Show the engineer id, first name and last name.",
        "interaction_utterance": [
            "Which engineer has visited the least number of times? Show the id, first and last names of that engineer.",
            "Do the same for the engineer who has visited the most times."
        ],
        "interaction_query": [
            "SELECT T1.engineer_id ,  T1.first_name ,  T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 GROUP BY T1.engineer_id ORDER BY count(*) ASC LIMIT 1",
            "SELECT T1.engineer_id ,  T1.first_name ,  T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 GROUP BY T1.engineer_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT T1.part_name ,  T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id  =  T2.part_id GROUP BY T1.part_id HAVING count(*)  >  2",
        "final_utterance": "Which parts have more than 2 faults? Show the part name and id.",
        "interaction_utterance": [
            "Which parts have less than 2 faults? Show the id and name of that part.",
            "Do the same for parts with more than 2 faults."
        ],
        "interaction_query": [
            "SELECT T1.part_name ,  T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id  =  T2.part_id GROUP BY T1.part_id HAVING count(*)  <  2",
            "SELECT T1.part_name ,  T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id  =  T2.part_id GROUP BY T1.part_id HAVING count(*)  >  2"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT T1.first_name ,  T1.last_name ,  T1.other_details ,  T3.skill_description FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id  =  T2.engineer_id JOIN Skills AS T3 ON T2.skill_id  =  T3.skill_id",
        "final_utterance": "List all every engineer's first name, last name, details and coresponding skill description.",
        "interaction_utterance": [
            "List all engineers' first and last names.",
            "List the details of each engineer and corresponding skill descriptions as well, along with the names."
        ],
        "interaction_query": [
            "SELECT T1.first_name ,  T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id  =  T2.engineer_id",
            "SELECT T1.first_name ,  T1.last_name ,  T1.other_details ,  T3.skill_description FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id  =  T2.engineer_id JOIN Skills AS T3 ON T2.skill_id  =  T3.skill_id"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT T1.fault_short_name ,  T3.skill_description FROM Part_Faults AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.part_fault_id  =  T2.part_fault_id JOIN Skills AS T3 ON T2.skill_id  =  T3.skill_id",
        "final_utterance": "For all the faults of different parts, what are all the decriptions of the skills required to fix them? List the name of the faults and the skill description.",
        "interaction_utterance": [
            "Show me all faults of different parts.",
            "Give me descriptions of skills required to fix those faults, along with the names of those faults."
        ],
        "interaction_query": [
            "SELECT fault_short_name FROM Part_Faults",
            "SELECT T1.fault_short_name ,  T3.skill_description FROM Part_Faults AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.part_fault_id  =  T2.part_fault_id JOIN Skills AS T3 ON T2.skill_id  =  T3.skill_id"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT T1.part_name ,  count(*) FROM Parts AS T1 JOIN Asset_Parts AS T2 ON T1.part_id  =  T2.part_id GROUP BY T1.part_name",
        "final_utterance": "How many assets can each parts be used in? List the part name and the number.",
        "interaction_utterance": [
            "Show me all assets each part can be used in. List the part name and the asset details.",
            "How many assets can each part be used in? Show me the count and the part name."
        ],
        "interaction_query": [
            "SELECT T1.part_name ,  T3.asset_details FROM Parts AS T1 JOIN Asset_Parts AS T2 ON T1.part_id  =  T2.part_id JOIN assets AS T3 ON T2.asset_id = T3.asset_id GROUP BY T1.part_name",
            "SELECT T1.part_name ,  count(*) FROM Parts AS T1 JOIN Asset_Parts AS T2 ON T1.part_id  =  T2.part_id GROUP BY T1.part_name"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT count(*) ,  T1.fault_log_entry_id FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id  =  T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "How many engineer visits are required at most for a single fault log? List the number and the log entry id.",
        "interaction_utterance": [
            "What is the lowest number of engineer visits for a single fault log? List the number and log entry id.",
            "Do the same for the highest number of engineer visits for a single fault log?"
        ],
        "interaction_query": [
            "SELECT count(*) ,  T1.fault_log_entry_id FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id  =  T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count(*) ASC LIMIT 1",
            "SELECT count(*) ,  T1.fault_log_entry_id FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id  =  T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT first_name ,  last_name FROM Maintenance_Engineers WHERE engineer_id NOT IN (SELECT engineer_id FROM Engineer_Visits)",
        "final_utterance": "Which engineers have never visited to maintain the assets? List the engineer first name and last name.",
        "interaction_utterance": [
            "How many engineers have never visited to maintain the assets?",
            "Show me their first and last names."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Maintenance_Engineers WHERE engineer_id NOT IN (SELECT engineer_id FROM Engineer_Visits)",
            "SELECT first_name ,  last_name FROM Maintenance_Engineers WHERE engineer_id NOT IN (SELECT engineer_id FROM Engineer_Visits)"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT asset_acquired_date FROM Assets ORDER BY asset_acquired_date ASC LIMIT 1",
        "final_utterance": "When was the first asset acquired?",
        "interaction_utterance": [
            "When was the latest date that an asset was acquired?",
            "How about the oldest date?"
        ],
        "interaction_query": [
            "SELECT asset_acquired_date FROM Assets ORDER BY asset_acquired_date DESC LIMIT 1",
            "SELECT asset_acquired_date FROM Assets ORDER BY asset_acquired_date ASC LIMIT 1"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT T1.part_id ,  T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id  =  T2.part_id JOIN Skills_Required_To_Fix AS T3 ON T2.part_fault_id  =  T3.part_fault_id GROUP BY T1.part_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which part fault requires the most number of skills to fix? List part id and name.",
        "interaction_utterance": [
            "Show me the id and name of a fault that needs the least number of skills to be fixed.",
            "How about the fault that requires the most number of skills to fix?"
        ],
        "interaction_query": [
            "SELECT T1.part_id ,  T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id  =  T2.part_id JOIN Skills_Required_To_Fix AS T3 ON T2.part_fault_id  =  T3.part_fault_id GROUP BY T1.part_id ORDER BY count(*) ASC LIMIT 1",
            "SELECT T1.part_id ,  T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id  =  T2.part_id JOIN Skills_Required_To_Fix AS T3 ON T2.part_fault_id  =  T3.part_fault_id GROUP BY T1.part_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id  =  T2.part_id GROUP BY T1.part_name ORDER BY count(*) ASC LIMIT 1",
        "final_utterance": "Which kind of part has the least number of faults? List the part name.",
        "interaction_utterance": [
            "Show me the name of each part with the number of faults it has.",
            "Show me the name of part with the least number of faults."
        ],
        "interaction_query": [
            "SELECT T1.part_name, count(*) FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id  =  T2.part_id GROUP BY T1.part_name",
            "SELECT T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id  =  T2.part_id GROUP BY T1.part_name ORDER BY count(*) ASC LIMIT 1"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT T1.engineer_id ,  T1.first_name ,  T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 ON T1.engineer_id  =  T2.engineer_id GROUP BY T1.engineer_id ORDER BY count(*) ASC LIMIT 1",
        "final_utterance": "Among those engineers who have visited, which engineer makes the least number of visits? List the engineer id, first name and last name.",
        "interaction_utterance": [
            "Show me all the engineers.",
            "Show me id, first and last names of engineers who have visited.",
            "Among those, which one made the least number of visits."
        ],
        "interaction_query": [
            "SELECT * FROM Maintenance_Engineers",
            "SELECT T1.engineer_id ,  T1.first_name ,  T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 ON T1.engineer_id  =  T2.engineer_id GROUP BY T1.engineer_id",
            "SELECT T1.engineer_id ,  T1.first_name ,  T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 ON T1.engineer_id  =  T2.engineer_id GROUP BY T1.engineer_id ORDER BY count(*) ASC LIMIT 1"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT T1.staff_name ,  T3.first_name ,  T3.last_name FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id  =  T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id  =  T3.engineer_id",
        "final_utterance": "Which staff have contacted which engineers? List the staff name and the engineer first name and last name.",
        "interaction_utterance": [
            "Show me names of all the staff members.",
            "List the first and last names of engineers each staff member has contacted."
        ],
        "interaction_query": [
            "SELECT staff_name FROM Staff",
            "SELECT T1.staff_name ,  T3.first_name ,  T3.last_name FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id  =  T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id  =  T3.engineer_id"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT T1.fault_log_entry_id ,  T1.fault_description ,  T1.fault_log_entry_datetime FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id  =  T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which fault log included the most number of faulty parts? List the fault log id, description and record time.",
        "interaction_utterance": [
            "Which fault log included the least number of faulty parts? List the id, description, and record time of that fault log.",
            "Show the same for the fault log with most number of faulty parts."
        ],
        "interaction_query": [
            "SELECT T1.fault_log_entry_id ,  T1.fault_description ,  T1.fault_log_entry_datetime FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id  =  T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count(*) ASC LIMIT 1",
            "SELECT T1.fault_log_entry_id ,  T1.fault_description ,  T1.fault_log_entry_datetime FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id  =  T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT T1.skill_id ,  T1.skill_description FROM Skills AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.skill_id  =  T2.skill_id GROUP BY T1.skill_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which skill is used in fixing the most number of faults? List the skill id and description.",
        "interaction_utterance": [
            "Show me id and descriptions of all the skills.",
            "For each of those skills, show the number of faults each skill is used to fix.",
            "Which skill is used to fix the most number of faults?"
        ],
        "interaction_query": [
            "SELECT skill_id, skill_description FROM Skills",
            "SELECT T1.skill_id ,  T1.skill_description, count(*) FROM Skills AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.skill_id  =  T2.skill_id GROUP BY T1.skill_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT T1.skill_id ,  T1.skill_description FROM Skills AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.skill_id  =  T2.skill_id GROUP BY T1.skill_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT part_id ,  chargeable_amount FROM Parts ORDER BY chargeable_amount ASC LIMIT 1",
        "final_utterance": "Which part has the least chargeable amount? List the part id and amount.",
        "interaction_utterance": [
            "Show chargeable amount for every part.",
            "Order them by chargeable amount in ascending order.",
            "Show me the id and chargeable amount of the part with the least chargeable amount."
        ],
        "interaction_query": [
            "SELECT chargeable_amount FROM Parts",
            "SELECT chargeable_amount FROM Parts ORDER BY chargeable_amount ASC",
            "SELECT part_id ,  chargeable_amount FROM Parts ORDER BY chargeable_amount ASC LIMIT 1"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id  =  T2.maintenance_contract_company_id ORDER BY T2.contract_start_date ASC LIMIT 1",
        "final_utterance": "Which company started the earliest the maintenance contract? Show the company name.",
        "interaction_utterance": [
            "Show me the names of companies that started the five earliest maintenance contracts.",
            "Show me the same for the earliest one."
        ],
        "interaction_query": [
            "SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id  =  T2.maintenance_contract_company_id ORDER BY T2.contract_start_date ASC LIMIT 5",
            "SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id  =  T2.maintenance_contract_company_id ORDER BY T2.contract_start_date ASC LIMIT 1"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT gender FROM staff GROUP BY gender ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which gender makes up the majority of the staff?",
        "interaction_utterance": [
            "List gender of each staff.",
            "Which gender do most staff members have?"
        ],
        "interaction_query": [
            "SELECT gender FROM staff",
            "SELECT gender FROM staff GROUP BY gender ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "assets_maintenance",
        "final_query": "SELECT T1.staff_name ,  count(*) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id  =  T2.contact_staff_id GROUP BY T1.staff_name",
        "final_utterance": "How many engineers did each staff contact? List both the contact staff name and number of engineers contacted.",
        "interaction_utterance": [
            "Show me engineers each staff has contacted. List the names of contact staff and engineers.",
            "How many engineers did each staff contact? List the count instead of the names of engineers."
        ],
        "interaction_query": [
            "SELECT T1.staff_name ,  T3.first_name FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id  =  T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id = T3.engineer_id GROUP BY T1.staff_name",
            "SELECT T1.staff_name ,  count(*) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id  =  T2.contact_staff_id GROUP BY T1.staff_name"
        ]
    },
    {
        "db_id": "station_weather",
        "final_query": "SELECT local_authority ,  services FROM station;",
        "final_utterance": "list the local authorities and services provided by all stations.",
        "interaction_utterance": [
            "Show me all about stations.",
            "What are the network names?",
            "How about the local authorities and services provided by all stations."
        ],
        "interaction_query": [
            "SELECT * FROM station;",
            "SELECT network_name FROM station;",
            "SELECT local_authority ,  services FROM station;"
        ]
    },
    {
        "db_id": "station_weather",
        "final_query": "SELECT train_number ,  name FROM train ORDER BY TIME;",
        "final_utterance": "show all train numbers and names ordered by their time from early to late.",
        "interaction_utterance": [
            "Show me the origin of all trains ordered by time early to late.",
            "Now show me the train_number for all trains ordered by time early to late.",
            "Also provide the train_name for each of the result above."
        ],
        "interaction_query": [
            "SELECT origin FROM train ORDER BY time;",
            "SELECT train_number FROM train ORDER BY TIME;",
            "SELECT train_number ,  name FROM train ORDER BY TIME;"
        ]
    },
    {
        "db_id": "station_weather",
        "final_query": "SELECT TIME ,  train_number FROM train WHERE destination  =  'Chennai' ORDER BY TIME;",
        "final_utterance": "Give me the times and numbers of all trains that go to Chennai, ordered by time.",
        "interaction_utterance": [
            "What's time for trains going to Mumbai?",
            "How about the time and train number for trains going to Chennai?",
            "Order the result by time."
        ],
        "interaction_query": [
            "SELECT time FROM train WHERE destination  =  'Mumbai';",
            "SELECT TIME ,  train_number FROM train WHERE destination  =  'Chennai';",
            "SELECT TIME ,  train_number FROM train WHERE destination  =  'Chennai' ORDER BY TIME;"
        ]
    },
    {
        "db_id": "station_weather",
        "final_query": "SELECT count(*) FROM train WHERE name LIKE \"%Express%\";",
        "final_utterance": "How many trains have 'Express' in their names?",
        "interaction_utterance": [
            "Show me the train names.",
            "How many distinct names are there?",
            "How many trains have 'Express' in their names?"
        ],
        "interaction_query": [
            "SELECT name FROM train;",
            "SELECT count(DISTINCT name) FROM train;",
            "SELECT count(*) FROM train WHERE name LIKE \"%Express%\";"
        ]
    },
    {
        "db_id": "station_weather",
        "final_query": "SELECT train_number ,  TIME FROM train WHERE origin  =  'Chennai' AND destination  =  'Guruvayur';",
        "final_utterance": "Find the number and time of the train that goes from Chennai to Guruvayur.",
        "interaction_utterance": [
            "How many trains are going from Chennai to Guruvayur?",
            "What times are they each going?",
            "Find both train number and time."
        ],
        "interaction_query": [
            "SELECT count(*) FROM train WHERE origin  =  'Chennai' AND destination  =  'Guruvayur';",
            "SELECT time FROM train WHERE origin  =  'Chennai' AND destination  =  'Guruvayur';",
            "SELECT train_number ,  time FROM train WHERE origin  =  'Chennai' AND destination  =  'Guruvayur';"
        ]
    },
    {
        "db_id": "station_weather",
        "final_query": "SELECT origin ,  count(*) FROM train GROUP BY origin;",
        "final_utterance": "Find the number of trains starting from each origin.",
        "interaction_utterance": [
            "What are the origins of all trains?",
            "Which origin has the most number of trains?",
            "Find the number of trains starting from each origin."
        ],
        "interaction_query": [
            "SELECT origin FROM train;",
            "SELECT origin FROM train GROUP BY origin ORDER BY count(*) DESC LIMIT 1;",
            "SELECT origin ,  count(*) FROM train GROUP BY origin;"
        ]
    },
    {
        "db_id": "station_weather",
        "final_query": "SELECT t1.name FROM train AS t1 JOIN route AS t2 ON t1.id  =  t2.train_id GROUP BY t2.train_id ORDER BY count(*) DESC LIMIT 1;",
        "final_utterance": "Find the name of the train whose route runs through greatest number of stations.",
        "interaction_utterance": [
            "Show me the station names.",
            "How about the name of trains and the number of stations each runs through?",
            "Of these, return the name with the greatest number of stations."
        ],
        "interaction_query": [
            "SELECT network_name FROM station;",
            "SELECT t1.name, count(*) FROM train AS t1 JOIN route AS t2 ON t1.id  =  t2.train_id GROUP BY t2.train_id;",
            "SELECT t1.name FROM train AS t1 JOIN route AS t2 ON t1.id  =  t2.train_id GROUP BY t2.train_id ORDER BY count(*) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "station_weather",
        "final_query": "SELECT count(*) ,  t1.network_name ,  t1.services FROM station AS t1 JOIN route AS t2 ON t1.id  =  t2.station_id GROUP BY t2.station_id;",
        "final_utterance": "Find the number of trains for each station, as well as the station network name and services.",
        "interaction_utterance": [
            "Can you list the services for each station?",
            "Can you also show the the number of trains for each station?",
            "Also include the the station network name."
        ],
        "interaction_query": [
            "SELECT services FROM station;",
            "SELECT count(*) ,  t1.services FROM station AS t1 JOIN route AS t2 ON t1.id  =  t2.station_id GROUP BY t2.station_id;",
            "SELECT count(*) ,  t1.network_name ,  t1.services FROM station AS t1 JOIN route AS t2 ON t1.id  =  t2.station_id GROUP BY t2.station_id;"
        ]
    },
    {
        "db_id": "station_weather",
        "final_query": "SELECT avg(high_temperature) ,  day_of_week FROM weekly_weather GROUP BY day_of_week;",
        "final_utterance": "What is the average high temperature for each day of week?",
        "interaction_utterance": [
            "What's the average low temperature of Monday?",
            "How about its average high temperature?",
            "Show me the average high temperature for each day of week?"
        ],
        "interaction_query": [
            "SELECT avg(low_temperature) FROM weekly_weather WHERE day_of_week = \"Monday\";",
            "SELECT avg(high_temperature) FROM weekly_weather WHERE day_of_week = \"Monday\";",
            "SELECT avg(high_temperature) ,  day_of_week FROM weekly_weather GROUP BY day_of_week;"
        ]
    },
    {
        "db_id": "station_weather",
        "final_query": "SELECT max(t1.low_temperature) ,  avg(t1.precipitation) FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id  =  t2.id WHERE t2.network_name  =  \"Amersham\";",
        "final_utterance": "Give me the maximum low temperature and average precipitation at the Amersham station.",
        "interaction_utterance": [
            "Show me the all about weather for all stations.",
            "What's the maximum low temperature and average precipitation for Bushey station?",
            "How about for the Amersham station?"
        ],
        "interaction_query": [
            "SELECT * FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id  =  t2.id;",
            "SELECT max(t1.low_temperature) ,  avg(t1.precipitation) FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id  =  t2.id WHERE t2.network_name  =  \"Bushey\";",
            "SELECT max(t1.low_temperature) ,  avg(t1.precipitation) FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id  =  t2.id WHERE t2.network_name  =  \"Amersham\";"
        ]
    },
    {
        "db_id": "station_weather",
        "final_query": "SELECT t3.name ,  t3.time FROM station AS t1 JOIN route AS t2 ON t1.id  =  t2.station_id JOIN train AS t3 ON t2.train_id  =  t3.id WHERE t1.local_authority  =  \"Chiltern\";",
        "final_utterance": "Find names and times of trains that run through stations for the local authority Chiltern.",
        "interaction_utterance": [
            "Show me the names of trains that run through a station serviced by Greater Anglia.",
            "How about stations for local authority Chiltern?",
            "For these, also provide the times of each train."
        ],
        "interaction_query": [
            "SELECT t3.name FROM station AS t1 JOIN route AS t2 ON t1.id  =  t2.station_id JOIN train AS t3 ON t2.train_id  =  t3.id WHERE t1.services  =  \"Greater Anglia\";",
            "SELECT t3.name FROM station AS t1 JOIN route AS t2 ON t1.id  =  t2.station_id JOIN train AS t3 ON t2.train_id  =  t3.id WHERE t1.local_authority  =  \"Chiltern\";",
            "SELECT t3.name ,  t3.time FROM station AS t1 JOIN route AS t2 ON t1.id  =  t2.station_id JOIN train AS t3 ON t2.train_id  =  t3.id WHERE t1.local_authority  =  \"Chiltern\";"
        ]
    },
    {
        "db_id": "station_weather",
        "final_query": "SELECT count(DISTINCT services) FROM station;",
        "final_utterance": "How many different services are provided by all stations?",
        "interaction_utterance": [
            "Show me the services provided by all stations.",
            "How about the number of services?",
            "How many distinct ones are there?"
        ],
        "interaction_query": [
            "SELECT services FROM station;",
            "SELECT count(services) FROM station;",
            "SELECT count(DISTINCT services) FROM station;"
        ]
    },
    {
        "db_id": "station_weather",
        "final_query": "SELECT t2.id ,  t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id  =  t2.id GROUP BY t1.station_id ORDER BY avg(high_temperature) DESC LIMIT 1",
        "final_utterance": "Find the id and local authority of the station with has the highest average high temperature.",
        "interaction_utterance": [
            "What's the high temperature of each station?",
            "What's the id of the station with highest average high temperature?",
            "Also show me the local authority of this station."
        ],
        "interaction_query": [
            "SELECT t1.high_temperature FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id  =  t2.id;",
            "SELECT t2.id FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id  =  t2.id GROUP BY t1.station_id ORDER BY avg(high_temperature) DESC LIMIT 1",
            "SELECT t2.id ,  t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id  =  t2.id GROUP BY t1.station_id ORDER BY avg(high_temperature) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "station_weather",
        "final_query": "SELECT t2.id ,  t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id  =  t2.id GROUP BY t1.station_id HAVING max(t1.precipitation)  >  50;",
        "final_utterance": "Find the id and local authority of the station whose maximum precipitation is higher than 50.",
        "interaction_utterance": [
            "List the minimum precipitation of each station.",
            "How about the max precipitation? Show station id as well.",
            "Find the id and local authority of the station whose maximum precipitation is higher than 50."
        ],
        "interaction_query": [
            "SELECT min(t1.precipitation) FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id  =  t2.id GROUP BY t1.station_id;",
            "SELECT t2.id, max(t1.precipitation) FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id  =  t2.id GROUP BY t1.station_id;",
            "SELECT t2.id ,  t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id  =  t2.id GROUP BY t1.station_id HAVING max(t1.precipitation)  >  50;"
        ]
    },
    {
        "db_id": "station_weather",
        "final_query": "SELECT min(low_temperature) ,  max(wind_speed_mph) FROM weekly_weather;",
        "final_utterance": "show the lowest low temperature and highest wind speed in miles per hour.",
        "interaction_utterance": [
            "What's average low_temperature per week?",
            "How about the average wind speed per week in miles per hour?",
            "Show the weekly lowest low temperature and weekly highest wind speed in miles per hour."
        ],
        "interaction_query": [
            "SELECT avg(low_temperature) FROM weekly_weather;",
            "SELECT avg(wind_speed_mph) FROM weekly_weather;",
            "SELECT min(low_temperature) ,  max(wind_speed_mph) FROM weekly_weather;"
        ]
    },
    {
        "db_id": "culture_company",
        "final_query": "SELECT count(*) FROM book_club",
        "final_utterance": "How many book clubs are there?",
        "interaction_utterance": [
            "Show information for all book clubs.",
            "How many of them?"
        ],
        "interaction_query": [
            "SELECT * FROM book_club",
            "SELECT count(*) FROM book_club"
        ]
    },
    {
        "db_id": "culture_company",
        "final_query": "SELECT book_title ,  author_or_editor FROM book_club WHERE YEAR  >  1989",
        "final_utterance": "show the titles, and authors or editors for all books made after the year 1989.",
        "interaction_utterance": [
            "Show the title for all books.",
            "Also show the authors or editors for each of them.",
            "How about the results for those published after the year 1989?"
        ],
        "interaction_query": [
            "SELECT book_title FROM book_club",
            "SELECT book_title ,  author_or_editor FROM book_club",
            "SELECT book_title ,  author_or_editor FROM book_club WHERE YEAR  >  1989"
        ]
    },
    {
        "db_id": "culture_company",
        "final_query": "SELECT DISTINCT publisher FROM book_club",
        "final_utterance": "Show all distinct publishers for books.",
        "interaction_utterance": [
            "Show information for all books.",
            "What are the distinct publishers for them?"
        ],
        "interaction_query": [
            "SELECT * FROM book_club",
            "SELECT DISTINCT publisher FROM book_club"
        ]
    },
    {
        "db_id": "culture_company",
        "final_query": "SELECT YEAR ,  book_title ,  publisher FROM book_club ORDER BY YEAR DESC",
        "final_utterance": "Show the years, book titles, and publishers for all books, in descending order by year.",
        "interaction_utterance": [
            "Show the titles of all books.",
            "Also show the year published and the publisher.",
            "Order the results in descending order by year."
        ],
        "interaction_query": [
            "SELECT book_title FROM book_club",
            "SELECT YEAR ,  book_title ,  publisher FROM book_club",
            "SELECT YEAR ,  book_title ,  publisher FROM book_club ORDER BY YEAR DESC"
        ]
    },
    {
        "db_id": "culture_company",
        "final_query": "SELECT publisher ,  count(*) FROM book_club GROUP BY publisher",
        "final_utterance": "Show all publishers and the number of books for each publisher.",
        "interaction_utterance": [
            "Show the publisher for all books.",
            "Count the number of books published by each of them."
        ],
        "interaction_query": [
            "SELECT publisher FROM book_club",
            "SELECT publisher ,  count(*) FROM book_club GROUP BY publisher"
        ]
    },
    {
        "db_id": "culture_company",
        "final_query": "SELECT publisher FROM book_club GROUP BY publisher ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the publisher with most number of books?",
        "interaction_utterance": [
            "Show the publisher for all books.",
            "For each of them, how many books are published?",
            "Can you order them by the count in descending order?",
            "Which one has the most?"
        ],
        "interaction_query": [
            "SELECT publisher FROM book_club",
            "SELECT publisher, count(*) FROM book_club GROUP BY publisher",
            "SELECT publisher FROM book_club GROUP BY publisher ORDER BY count(*) DESC",
            "SELECT publisher FROM book_club GROUP BY publisher ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "culture_company",
        "final_query": "SELECT category ,  count(*) FROM book_club GROUP BY category",
        "final_utterance": "Show all book categories and the number of books in each category.",
        "interaction_utterance": [
            "How many books are there in total?",
            "Can you break down the count by the book category?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM book_club",
            "SELECT category ,  count(*) FROM book_club GROUP BY category"
        ]
    },
    {
        "db_id": "culture_company",
        "final_query": "SELECT category FROM book_club WHERE YEAR  >  1989 GROUP BY category HAVING count(*)  >=  2",
        "final_utterance": "List categories that have at least two books after year 1989.",
        "interaction_utterance": [
            "Show all categories for books.",
            "For each of them, count the number of books published after 1989.",
            "Which categories have at least two such books?"
        ],
        "interaction_query": [
            "SELECT category FROM book_club",
            "SELECT category, count(*) FROM book_club WHERE YEAR  >  1989 GROUP BY category",
            "SELECT category FROM book_club WHERE YEAR  >  1989 GROUP BY category HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "culture_company",
        "final_query": "SELECT publisher FROM book_club WHERE YEAR  =  1989 INTERSECT SELECT publisher FROM book_club WHERE YEAR  =  1990",
        "final_utterance": "Show publishers with a book published in 1989 and a book in 1990.",
        "interaction_utterance": [
            "Show the publisher for all books.",
            "Who published a book in 1989?",
            "Among those, who also published a book in 1990?"
        ],
        "interaction_query": [
            "SELECT publisher FROM book_club",
            "SELECT publisher FROM book_club WHERE YEAR  =  1989",
            "SELECT publisher FROM book_club WHERE YEAR  =  1989 INTERSECT SELECT publisher FROM book_club WHERE YEAR  =  1990"
        ]
    },
    {
        "db_id": "culture_company",
        "final_query": "SELECT publisher FROM book_club EXCEPT SELECT publisher FROM book_club WHERE YEAR  =  1989",
        "final_utterance": "Show all publishers which do not have a book in 1989.",
        "interaction_utterance": [
            "Show publishers that published a book in 1989.",
            "Show all publishers who do not have such a book."
        ],
        "interaction_query": [
            "SELECT publisher FROM book_club WHERE YEAR  =  1989",
            "SELECT publisher FROM book_club EXCEPT SELECT publisher FROM book_club WHERE YEAR  =  1989"
        ]
    },
    {
        "db_id": "culture_company",
        "final_query": "SELECT title ,  YEAR ,  director FROM movie ORDER BY budget_million",
        "final_utterance": "Show all movie titles, years, and directors, ordered by budget.",
        "interaction_utterance": [
            "Show the title and year for all movies.",
            "Also show the director for each of them.",
            "Order the results by their budgets."
        ],
        "interaction_query": [
            "SELECT title ,  YEAR  FROM movie",
            "SELECT title ,  YEAR ,  director FROM movie",
            "SELECT title ,  YEAR ,  director FROM movie ORDER BY budget_million"
        ]
    },
    {
        "db_id": "culture_company",
        "final_query": "SELECT COUNT (DISTINCT director) FROM movie",
        "final_utterance": "How many movie directors are there?",
        "interaction_utterance": [
            "Show the director for all movies.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT director FROM movie",
            "SELECT COUNT (DISTINCT director) FROM movie"
        ]
    },
    {
        "db_id": "culture_company",
        "final_query": "SELECT title ,  director FROM movie WHERE YEAR  <=  2000 ORDER BY gross_worldwide DESC LIMIT 1",
        "final_utterance": "What is the title and director for the movie with highest worldwide gross in the year 2000 or before?",
        "interaction_utterance": [
            "Show the title and director for all movies.",
            "Only show the results for those in the year 2000 or before.",
            "Order the results by the worldwide gross in descending order.",
            "Which one has the highest?"
        ],
        "interaction_query": [
            "SELECT title ,  director FROM movie",
            "SELECT title ,  director FROM movie WHERE YEAR  <=  2000",
            "SELECT title ,  director FROM movie WHERE YEAR  <=  2000 ORDER BY gross_worldwide DESC",
            "SELECT title ,  director FROM movie WHERE YEAR  <=  2000 ORDER BY gross_worldwide DESC LIMIT 1"
        ]
    },
    {
        "db_id": "culture_company",
        "final_query": "SELECT director FROM movie WHERE YEAR  =  2000 INTERSECT SELECT director FROM movie WHERE YEAR  =  1999",
        "final_utterance": "Show all director names who have a movie in both year 1999 and 2000.",
        "interaction_utterance": [
            "Show all director names.",
            "Who has a movie in 1999?",
            "Who has a movie in 2000?",
            "Who has movies in both years?"
        ],
        "interaction_query": [
            "SELECT director FROM movie",
            "SELECT director FROM movie WHERE YEAR  =  1999",
            "SELECT director FROM movie WHERE YEAR  =  2000",
            "SELECT director FROM movie WHERE YEAR  =  2000 INTERSECT SELECT director FROM movie WHERE YEAR  =  1999"
        ]
    },
    {
        "db_id": "culture_company",
        "final_query": "SELECT director FROM movie WHERE YEAR  =  1999 OR YEAR  =  2000",
        "final_utterance": "Show all director names who have a movie in the year 1999 or 2000.",
        "interaction_utterance": [
            "Show all director names.",
            "Among them, who has a movie in 1999?",
            "Also show those who have a movie in 2000."
        ],
        "interaction_query": [
            "SELECT director FROM movie",
            "SELECT director FROM movie WHERE YEAR  =  1999",
            "SELECT director FROM movie WHERE YEAR  =  1999 OR YEAR  =  2000"
        ]
    },
    {
        "db_id": "culture_company",
        "final_query": "SELECT avg(budget_million) ,  max(budget_million) ,  min(budget_million) FROM movie WHERE YEAR  <  2000",
        "final_utterance": "What is the average, maximum, and minimum budget for all movies before 2000.",
        "interaction_utterance": [
            "Show the budget for all movies.",
            "What about the budget for those before 2000?",
            "Show their average, maximum, and minimum budget."
        ],
        "interaction_query": [
            "select budget_million from movie",
            "select budget_million from movie WHERE YEAR  <  2000",
            "SELECT avg(budget_million) ,  max(budget_million) ,  min(budget_million) FROM movie WHERE YEAR  <  2000"
        ]
    },
    {
        "db_id": "culture_company",
        "final_query": "SELECT T1.company_name FROM culture_company AS T1 JOIN book_club AS T2 ON T1.book_club_id  =  T2.book_club_id WHERE T2.publisher  =  'Alyson'",
        "final_utterance": "List all company names with a book published by Alyson.",
        "interaction_utterance": [
            "Show all company names.",
            "Only show the companies with a book.",
            "What about the companies with a book published by Alyson?"
        ],
        "interaction_query": [
            "SELECT company_name FROM culture_company",
            "SELECT T1.company_name FROM culture_company AS T1 JOIN book_club AS T2 ON T1.book_club_id  =  T2.book_club_id",
            "SELECT T1.company_name FROM culture_company AS T1 JOIN book_club AS T2 ON T1.book_club_id  =  T2.book_club_id WHERE T2.publisher  =  'Alyson'"
        ]
    },
    {
        "db_id": "culture_company",
        "final_query": "SELECT T1.title ,  T3.book_title FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id  =  T2.movie_id JOIN book_club AS T3 ON T3.book_club_id  =  T2.book_club_id WHERE T2.incorporated_in  =  'China'",
        "final_utterance": "Show the movie titles and book titles for all companies in China.",
        "interaction_utterance": [
            "Show all movie titles.",
            "Show all movie titles for all companies in China.",
            "For those companies, also show all the book titles."
        ],
        "interaction_query": [
            "SELECT title from movie",
            "SELECT T1.title FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id  =  T2.movie_id WHERE T2.incorporated_in  =  'China'",
            "SELECT T1.title ,  T3.book_title FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id  =  T2.movie_id JOIN book_club AS T3 ON T3.book_club_id  =  T2.book_club_id WHERE T2.incorporated_in  =  'China'"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT count(*) FROM architect WHERE gender  =  'female'",
        "final_utterance": "How many architects are female?",
        "interaction_utterance": [
            "Find all female architects.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM architect WHERE gender  =  'female'",
            "SELECT count(*) FROM architect WHERE gender  =  'female'"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT name ,  nationality ,  id FROM architect WHERE gender  =  'male' ORDER BY name",
        "final_utterance": "List the name, nationality and id of all male architects ordered by their names lexicographically.",
        "interaction_utterance": [
            "Return all the male architects.",
            "What are their names, nationalities and ids?",
            "Sort them by name."
        ],
        "interaction_query": [
            "SELECT * FROM architect WHERE gender  =  'male'",
            "SELECT name ,  nationality ,  id FROM architect WHERE gender  =  'male'",
            "SELECT name ,  nationality ,  id FROM architect WHERE gender  =  'male' ORDER BY name"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT max(T1.length_meters) ,  T2.name FROM bridge AS T1 JOIN architect AS T2 ON T1.architect_id  =  T2.id",
        "final_utterance": "What is the maximum length in meters for the bridges and what are the architects' names?",
        "interaction_utterance": [
            "What is the length in meters of each bridge?",
            "Find the maximum length.",
            "Show the maximum length in meters of the bridges and the name of the architect that made it."
        ],
        "interaction_query": [
            "SELECT length_meters FROM bridge",
            "SELECT max(length_meters) FROM bridge",
            "SELECT max(T1.length_meters) ,  T2.name FROM bridge AS T1 JOIN architect AS T2 ON T1.architect_id  =  T2.id"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT avg(length_feet) FROM bridge",
        "final_utterance": "What is the average length in feet of the bridges?",
        "interaction_utterance": [
            "What is the length in feet of each bridge?",
            "Find the average length."
        ],
        "interaction_query": [
            "SELECT length_feet FROM bridge",
            "SELECT avg(length_meters) FROM bridge"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT name ,  built_year FROM mill WHERE TYPE  =  'Grondzeiler'",
        "final_utterance": "What are the names and year of construction for the mills of 'Grondzeiler' type?",
        "interaction_utterance": [
            "What are the names of all the mills?",
            "What are the names of all the mills of 'Grondzeiler' type?",
            "Also show the years that they were built."
        ],
        "interaction_query": [
            "SELECT name FROM mill",
            "SELECT name FROM mill WHERE TYPE  =  'Grondzeiler'",
            "SELECT name ,  built_year FROM mill WHERE TYPE  =  'Grondzeiler'"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT DISTINCT T1.name ,  T1.nationality FROM architect AS T1 JOIN mill AS t2 ON T1.id  =  T2.architect_id",
        "final_utterance": "What are the distinct names and nationalities of the architects who have ever built a mill?",
        "interaction_utterance": [
            "What are the ids of the architects who built a mill?",
            "What are all their distinct names and nationalities?"
        ],
        "interaction_query": [
            "SELECT architect_id FROM mill",
            "SELECT DISTINCT T1.name ,  T1.nationality FROM architect AS T1 JOIN mill AS t2 ON T1.id  =  T2.architect_id"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT name FROM mill WHERE LOCATION != 'Donceel'",
        "final_utterance": "What are the names of the mills which are not located in 'Donceel'?",
        "interaction_utterance": [
            "Show the information for all mills.",
            "Which mills are not located in 'Donceel'?",
            "What are their names?"
        ],
        "interaction_query": [
            "SELECT * FROM mill",
            "SELECT * FROM mill WHERE LOCATION != 'Donceel'",
            "SELECT name FROM mill WHERE LOCATION != 'Donceel'"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT DISTINCT T1.type FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id  =  T2.id WHERE T2.nationality  =  'American' OR T2.nationality  =  'Canadian'",
        "final_utterance": "What are the distinct types of mills that are built by American or Canadian architects?",
        "interaction_utterance": [
            "Which architects have nationality 'American' or 'Canadian'?",
            "Find all mills that are built by these architects.",
            "What are the distinct types of these mills?"
        ],
        "interaction_query": [
            "SELECT * FROM architect  WHERE nationality  =  'American' OR nationality  =  'Canadian'",
            "SELECT * FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id  =  T2.id WHERE T2.nationality  =  'American' OR T2.nationality  =  'Canadian'",
            "SELECT DISTINCT T1.type FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id  =  T2.id WHERE T2.nationality  =  'American' OR T2.nationality  =  'Canadian'"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT T1.id ,  T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  >=  3",
        "final_utterance": "What are the ids and names of the architects who built at least 3 bridges ?",
        "interaction_utterance": [
            "Find the id of the architect who built each bridge.",
            "How many bridges did each one build?",
            "What are the ids and names of those who built at least 3 bridges ?"
        ],
        "interaction_query": [
            "SELECT architect_id FROM bridge",
            "SELECT count(*) FROM bridge GROUP BY architect_id",
            "SELECT T1.id ,  T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  >=  3"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT T1.id ,  T1.name ,  T1.nationality FROM architect AS T1 JOIN mill AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the id, name and nationality of the architect who built most mills?",
        "interaction_utterance": [
            "How many mills did each architect build?",
            "Which architect built the most?",
            "What are the id, name and nationality of this architect?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM mill GROUP BY architect_id",
            "SELECT * FROM architect AS T1 JOIN mill AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1",
            "SELECT T1.id ,  T1.name ,  T1.nationality FROM architect AS T1 JOIN mill AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT T1.id ,  T1.name ,  T1.gender FROM architect AS T1 JOIN bridge AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  =  2 UNION SELECT T1.id ,  T1.name ,  T1.gender FROM architect AS T1 JOIN mill AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  =  1",
        "final_utterance": "What are the ids, names and genders of the architects who built two bridges or one mill?",
        "interaction_utterance": [
            "How many bridges did each architect build?",
            "What are the ids, names and genders of the architects who built two bridges?",
            "How about for the architects who built two bridges or one mill?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM bridge GROUP BY architect_id",
            "SELECT T1.id ,  T1.name ,  T1.gender FROM architect AS T1 JOIN bridge AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  =  2",
            "SELECT T1.id ,  T1.name ,  T1.gender FROM architect AS T1 JOIN bridge AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  =  2 UNION SELECT T1.id ,  T1.name ,  T1.gender FROM architect AS T1 JOIN mill AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  =  1"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT LOCATION FROM bridge WHERE name  =  'Kolob Arch' OR name  =  'Rainbow Bridge'",
        "final_utterance": "What is the location of the bridge named 'Kolob Arch' or 'Rainbow Bridge'?",
        "interaction_utterance": [
            "Show the location of each bridge.",
            "What is it for the bridge named 'Kolob Arch'?",
            "How about for the bridges named either 'Kolob Arch' or 'Rainbow Bridge'?"
        ],
        "interaction_query": [
            "SELECT LOCATION FROM bridge",
            "SELECT LOCATION FROM bridge WHERE name  =  'Kolob Arch'",
            "SELECT LOCATION FROM bridge WHERE name  =  'Kolob Arch' OR name  =  'Rainbow Bridge'"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT name FROM mill WHERE name LIKE '%Moulin%'",
        "final_utterance": "Which of the mill names contains the french word 'Moulin'?",
        "interaction_utterance": [
            "What are the names of mills?",
            "Which ones contain the french word 'Moulin'?"
        ],
        "interaction_query": [
            "SELECT name FROM mill",
            "SELECT name FROM mill WHERE name LIKE '%Moulin%'"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT DISTINCT T1.name FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id  =  T2.id JOIN bridge AS T3 ON T3.architect_id  =  T2.id WHERE T3.length_meters  >  80",
        "final_utterance": "What are the distinct name of the mills built by the architects who have also built a bridge longer than 80 meters?",
        "interaction_utterance": [
            "Which bridges have a length above 80 meters?",
            "Show all the architects that have built each of these bridges.",
            "What are the distinct name of the mills built by these architects?"
        ],
        "interaction_query": [
            "SELECT * FROM bridge WHERE length_meters  >  80",
            "SELECT * FROM architect AS t2 JOIN bridge AS T3 ON T3.architect_id  =  T2.id WHERE T3.length_meters  >  80",
            "SELECT DISTINCT T1.name FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id  =  T2.id JOIN bridge AS T3 ON T3.architect_id  =  T2.id WHERE T3.length_meters  >  80"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT TYPE ,  count(*) FROM mill GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the most common mill type, and how many are there?",
        "interaction_utterance": [
            "Count the number of mill types.",
            "What is the most common mill type?",
            "Also provide the number of mills of this type."
        ],
        "interaction_query": [
            "SELECT count(*) FROM mill GROUP BY TYPE",
            "SELECT TYPE FROM mill GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1",
            "SELECT TYPE ,  count(*) FROM mill GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT count(*) FROM architect WHERE id NOT IN ( SELECT architect_id FROM mill WHERE built_year  <  1850 );",
        "final_utterance": "How many architects haven't built a mill before year 1850?",
        "interaction_utterance": [
            "Find all mills that were built before year 1850.",
            "What are the ids of the architects who built a mill before year 1850?",
            "How many other architects are there?"
        ],
        "interaction_query": [
            "SELECT * FROM mill WHERE built_year  <  1850",
            "SELECT architect_id FROM mill WHERE built_year  <  1850",
            "SELECT count(*) FROM architect WHERE id NOT IN ( SELECT architect_id FROM mill WHERE built_year  <  1850 )"
        ]
    },
    {
        "db_id": "school_finance",
        "final_query": "SELECT sum(enrollment) ,  avg(enrollment) FROM school",
        "final_utterance": "What are the total and average enrollment of all schools?",
        "interaction_utterance": [
            "What is the maximum enrollment of all schools?",
            "What is the total enrollment of these schools?",
            "Please also show the average enrollment."
        ],
        "interaction_query": [
            "SELECT max(enrollment) FROM school",
            "SELECT sum(enrollment) FROM school",
            "SELECT sum(enrollment) ,  avg(enrollment) FROM school"
        ]
    },
    {
        "db_id": "school_finance",
        "final_query": "SELECT mascot FROM school WHERE enrollment  >  (SELECT avg(enrollment) FROM school)",
        "final_utterance": "What are the mascots for schools with enrollments above the average?",
        "interaction_utterance": [
            "How many different mascots are there?",
            "What are they?",
            "Which of them are from schools with enrollments above the average?"
        ],
        "interaction_query": [
            "SELECT COUNT(DISTINCT mascot) FROM school",
            "SELECT DISTINCT mascot FROM school",
            "SELECT mascot FROM school WHERE enrollment  >  (SELECT avg(enrollment) FROM school)"
        ]
    },
    {
        "db_id": "school_finance",
        "final_query": "SELECT school_name FROM school ORDER BY enrollment LIMIT 1",
        "final_utterance": "List the name of the school with the smallest enrollment.",
        "interaction_utterance": [
            "What school has the largest enrollment?",
            "What is its mascot?",
            "What school has the smallest enrollment?"
        ],
        "interaction_query": [
            "SELECT school_name FROM school ORDER BY enrollment DESC LIMIT 1",
            "SELECT mascot FROM school ORDER BY enrollment DESC LIMIT 1",
            "SELECT school_name FROM school ORDER BY enrollment LIMIT 1"
        ]
    },
    {
        "db_id": "school_finance",
        "final_query": "SELECT avg(enrollment) ,  max(enrollment) ,  min(enrollment) FROM school",
        "final_utterance": "Show the average, maximum, minimum enrollment of all schools.",
        "interaction_utterance": [
            "What are the 3 largest enrollments of all schools?",
            "What is the largest enrollment?",
            "Please also show the average and minimum enrollment"
        ],
        "interaction_query": [
            "SELECT enrollment FROM school ORDER BY enrollment DESC LIMIT 3",
            "SELECT max(enrollment) FROM school",
            "SELECT avg(enrollment) ,  max(enrollment) ,  min(enrollment) FROM school"
        ]
    },
    {
        "db_id": "school_finance",
        "final_query": "SELECT county ,  count(*) ,  sum(enrollment) FROM school GROUP BY county",
        "final_utterance": "Show each county along with the number of schools and total enrollment in each county.",
        "interaction_utterance": [
            "How many different counties are there?",
            "How many schools are there in each county?",
            "Please also show the total enrollment in each county."
        ],
        "interaction_query": [
            "SELECT count(DISTINCT county) FROM school",
            "SELECT county ,  count(*) FROM school GROUP BY county",
            "SELECT county ,  count(*) ,  sum(enrollment) FROM school GROUP BY county"
        ]
    },
    {
        "db_id": "school_finance",
        "final_query": "SELECT count(DISTINCT T1.donator_name) FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T2.school_name  =  \"Glenn\"",
        "final_utterance": "How many donors have endowment for school named \"Glenn\"?",
        "interaction_utterance": [
            "What is the location of the school named \"Glenn\"?",
            "What is the largest endowment amount for this school?",
            "How many donors have contributed to the endowment for this school?"
        ],
        "interaction_query": [
            "SELECT location FROM School WHERE school_name  =  \"Glenn\"",
            "SELECT MAX(Amount) FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T2.school_name  =  \"Glenn\"",
            "SELECT count(DISTINCT T1.donator_name) FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T2.school_name  =  \"Glenn\""
        ]
    },
    {
        "db_id": "school_finance",
        "final_query": "SELECT donator_name ,  sum(amount) FROM endowment GROUP BY donator_name ORDER BY sum(amount) DESC",
        "final_utterance": "List each donator name and the amount of endowment in descending order of the amount of endowment.",
        "interaction_utterance": [
            "How many donators are there?",
            "What is the amount of endowment given by each donoator?",
            "Please order them by the amount of endowment."
        ],
        "interaction_query": [
            "SELECT COUNT(DISTINCT donator_name) FROM endowment",
            "SELECT donator_name ,  sum(amount) FROM endowment GROUP BY donator_name",
            "SELECT donator_name ,  sum(amount) FROM endowment GROUP BY donator_name ORDER BY sum(amount) DESC"
        ]
    },
    {
        "db_id": "school_finance",
        "final_query": "SELECT school_name FROM school WHERE school_id NOT IN (SELECT school_id FROM endowment)",
        "final_utterance": "List the names of the schools without any endowment.",
        "interaction_utterance": [
            "How many schools have an endowment?",
            "How many schools do not have an endowment?",
            "List the names of these schools."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM school WHERE school_id IN (SELECT school_id FROM endowment)",
            "SELECT COUNT(*) FROM school WHERE school_id NOT IN (SELECT school_id FROM endowment)",
            "SELECT school_name FROM school WHERE school_id NOT IN (SELECT school_id FROM endowment)"
        ]
    },
    {
        "db_id": "school_finance",
        "final_query": "SELECT T2.school_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id GROUP BY T1.school_id HAVING sum(T1.amount)  <=  10",
        "final_utterance": "List all the names of schools with an endowment amount smaller than or equal to 10.",
        "interaction_utterance": [
            "What is the average endowment amount?",
            "What is the minimum endowment amount?",
            "How many endowments are there that have an amount smaller than or equal to 10?",
            "List all the names of schools with this kind of endowment."
        ],
        "interaction_query": [
            "SELECT AVG(amount) FROM endowment",
            "SELECT MIN(amount) FROM endowment",
            "SELECT COUNT(*) FROM endowment WHERE amount <= 10",
            "SELECT T2.school_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id GROUP BY T1.school_id HAVING sum(T1.amount)  <=  10"
        ]
    },
    {
        "db_id": "school_finance",
        "final_query": "SELECT T1.donator_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T2.school_name  =  'Glenn' INTERSECT SELECT T1.donator_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T2.school_name  =  'Triton'",
        "final_utterance": "Show the names of donors who donated to both school \"Glenn\" and \"Triton\"",
        "interaction_utterance": [
            "Who has donated to \"Glenn\"?",
            "Who has donated to \"Triton\"?",
            "Who has donated to both schools?"
        ],
        "interaction_query": [
            "SELECT T1.donator_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T2.school_name  =  'Glenn'",
            "SELECT T1.donator_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T2.school_name  =  'Triton'",
            "SELECT T1.donator_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T2.school_name  =  'Glenn' INTERSECT SELECT T1.donator_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T2.school_name  =  'Triton'"
        ]
    },
    {
        "db_id": "school_finance",
        "final_query": "SELECT donator_name FROM endowment EXCEPT SELECT donator_name FROM endowment WHERE amount  <  9",
        "final_utterance": "Show the names of all the donors except those whose donation amount less than 9.",
        "interaction_utterance": [
            "How many donors are there?",
            "How many donors are there that gave a donation amount less than 9?",
            "Show the names of all the donors except these donors."
        ],
        "interaction_query": [
            "SELECT COUNT(DISTINCT donator_name) FROM endowment",
            "SELECT COUNT(DISTINCT donator_name) FROM endowment WHERE amount  <  9",
            "SELECT donator_name FROM endowment EXCEPT SELECT donator_name FROM endowment WHERE amount  <  9"
        ]
    },
    {
        "db_id": "school_finance",
        "final_query": "SELECT amount ,  donator_name FROM endowment ORDER BY amount DESC LIMIT 1",
        "final_utterance": "List the amount and donor name for the largest amount of donation.",
        "interaction_utterance": [
            "How many endowments are there?",
            "What is the largest endowment amount?",
            "Please also show the donor name."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM endowment",
            "SELECT amount FROM endowment ORDER BY amount DESC LIMIT 1",
            "SELECT amount ,  donator_name FROM endowment ORDER BY amount DESC LIMIT 1"
        ]
    },
    {
        "db_id": "school_finance",
        "final_query": "SELECT count(*) FROM budget WHERE budgeted  >  3000 AND YEAR  <=  2001",
        "final_utterance": "How many budgets are above 3000 in year 2001 or before?",
        "interaction_utterance": [
            "What is the average budget?",
            "How many budgets are above 2000?",
            "How about the number of budgets that are above 3000?",
            "Which of them are in year 2001 or before?"
        ],
        "interaction_query": [
            "SELECT AVG(Budgeted) FROM budget",
            "SELECT count(*) FROM budget WHERE budgeted  >  2000",
            "SELECT count(*) FROM budget WHERE budgeted  >  3000",
            "SELECT count(*) FROM budget WHERE budgeted  >  3000 AND YEAR  <=  2001"
        ]
    },
    {
        "db_id": "school_finance",
        "final_query": "SELECT T2.school_name ,  T1.budgeted ,  T1.invested FROM budget AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T1.year  >=  2002",
        "final_utterance": "Show each school name, its budgeted amount, and invested amount in year 2002 or after.",
        "interaction_utterance": [
            "How many schools have a budget?",
            "How about the number in year 2002 or after?",
            "Please show school name, its budgeted amount, and invested amount"
        ],
        "interaction_query": [
            "SELECT COUNT(DISTINCT T1.School_id) FROM budget AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id",
            "SELECT COUNT(DISTINCT T1.School_id) FROM budget AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T1.year  >=  2002",
            "SELECT T2.school_name ,  T1.budgeted ,  T1.invested FROM budget AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T1.year  >=  2002"
        ]
    },
    {
        "db_id": "school_finance",
        "final_query": "SELECT sum(T1.budgeted) FROM budget AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T2.school_name  =  'Glenn'",
        "final_utterance": "What is the total budget amount for school \"Glenn\" in all years?",
        "interaction_utterance": [
            "What is the mascot of the school 'Glenn'?",
            "Please show the budget record of school 'Glenn'.",
            "What is total budget amount for this school?"
        ],
        "interaction_query": [
            "SELECT mascot FROM school WHERE school_name  =  'Glenn'",
            "SELECT * FROM budget AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T2.school_name  =  'Glenn'",
            "SELECT sum(T1.budgeted) FROM budget AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T2.school_name  =  'Glenn'"
        ]
    },
    {
        "db_id": "school_finance",
        "final_query": "SELECT T2.school_name FROM budget AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id JOIN endowment AS T3 ON T2.school_id  =  T3.school_id GROUP BY T2.school_name HAVING sum(T1.budgeted)  >  100 OR sum(T3.amount)  >  10",
        "final_utterance": "Show the names of schools with a total budget amount greater than 100 or a total endowment greater than 10.",
        "interaction_utterance": [
            "How many schools are there\uff1f",
            "How many schools are there that have a total budget amount greater than 100?",
            "How many schools are there have a total budget amount greater than 100 or a total endowment greater than 10?",
            "Show the names of these schools."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM school",
            "Select Count(*) From (SELECT COUNT(DISTINCT T2.school_name) FROM budget AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id GROUP BY T2.school_name HAVING sum(T1.budgeted)  >  100)",
            "SELECT COUNT(*) FROM (SELECT T2.school_name FROM budget AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id JOIN endowment AS T3 ON T2.school_id  =  T3.school_id GROUP BY T2.school_name HAVING sum(T1.budgeted)  >  100 OR sum(T3.amount)  >  10)",
            "SELECT T2.school_name FROM budget AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id JOIN endowment AS T3 ON T2.school_id  =  T3.school_id GROUP BY T2.school_name HAVING sum(T1.budgeted)  >  100 OR sum(T3.amount)  >  10"
        ]
    },
    {
        "db_id": "school_finance",
        "final_query": "SELECT T2.School_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T1.amount  >  8.5 GROUP BY T1.school_id HAVING count(*)  >  1",
        "final_utterance": "Find the names of schools that have more than one donator with donation amount above 8.5.",
        "interaction_utterance": [
            "What is the average donation amount?",
            "How many donators does each school have?",
            "Which schools have more than one donator?",
            "Among these schools, which schools have one donator with a donation amount above 8.5?"
        ],
        "interaction_query": [
            "SELECT AVG(amount) FROM endowment",
            "SELECT T2.School_name, COUNT(*) FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id GROUP BY T1.school_id",
            "SELECT T2.School_name, COUNT(*) FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id GROUP BY T1.school_id HAVING count(*)  >  1",
            "SELECT T2.School_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T1.amount  >  8.5 GROUP BY T1.school_id HAVING count(*)  >  1"
        ]
    },
    {
        "db_id": "school_finance",
        "final_query": "SELECT count(*) FROM (SELECT * FROM endowment WHERE amount  <  8.5 GROUP BY school_id HAVING count(*)  >  1)",
        "final_utterance": "Find the number of schools that have more than one donator whose donation amount is less than 8.5.",
        "interaction_utterance": [
            "How many schools are there?",
            "How many donations are there that are less than 8.5?",
            "How many schools have more than one donator?",
            "Among these schools, how many of them have more than one donator whose donation amount is less than 8.5?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM school",
            "SELECT COUNT(*) FROM endowment WHERE amount  <  8.5",
            "SELECT count(*) FROM (SELECT * FROM endowment GROUP BY school_id HAVING count(*)  >  1)",
            "SELECT count(*) FROM (SELECT * FROM endowment WHERE amount  <  8.5 GROUP BY school_id HAVING count(*)  >  1)"
        ]
    },
    {
        "db_id": "film_rank",
        "final_query": "SELECT max(Number_cities) ,  min(Number_cities) FROM market",
        "final_utterance": "What are the maximum and minimum number of cities in all markets.",
        "interaction_utterance": [
            "What countries are there in the market?",
            "What about their number of cities?",
            "Among those, show me the maximum and minimum."
        ],
        "interaction_query": [
            "SELECT Country FROM Market",
            "SELECT country, Number_cities FROM market",
            "SELECT max(Number_cities) ,  min(Number_cities) FROM market"
        ]
    },
    {
        "db_id": "film_rank",
        "final_query": "SELECT DISTINCT T1.Director FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID  =  T2.Film_ID WHERE T2.Year  =  1995",
        "final_utterance": "Show the distinct director of films with market estimation in the year of 1995.",
        "interaction_utterance": [
            "How many film market estimations are there in record?",
            "Show me the ones in the year of 1995.",
            "Give me the distinct directors of films in those estimations."
        ],
        "interaction_query": [
            "SELECT count(*) FROM film_market_estimation",
            "SELECT * FROM film_market_estimation WHERE year = 1995",
            "SELECT DISTINCT T1.Director FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID  =  T2.Film_ID WHERE T2.Year  =  1995"
        ]
    },
    {
        "db_id": "film_rank",
        "final_query": "SELECT avg(T2.Number_cities) FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID WHERE T1.Low_Estimate  >  10000",
        "final_utterance": "What is the average number of cities of markets with low film market estimate bigger than 10000?",
        "interaction_utterance": [
            "Show me all different market ids in any film market estimation.",
            "Show me those with a low estimate above 10000.",
            "What is the average number of cities of them?"
        ],
        "interaction_query": [
            "SELECT DISTINCT market_id FROM film_market_estimation",
            "SELECT market_id FROM film_market_estimation GROUP BY market_id HAVING max(Low_Estimate) > 10000",
            "SELECT avg(T2.Number_cities) FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID WHERE T1.Low_Estimate  >  10000"
        ]
    },
    {
        "db_id": "film_rank",
        "final_query": "SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID WHERE T2.Country  =  \"Japan\" ORDER BY T1.Year DESC",
        "final_utterance": "Please list the years of film market estimations when the market is in country \"Japan\" in descending order.",
        "interaction_utterance": [
            "How many film market estimations are there?",
            "Show me the year eash estimation was made.",
            "What about those in the market Japan?",
            "List them in descending order."
        ],
        "interaction_query": [
            "SELECT count(*) FROM film_market_estimation",
            "SELECT Year From film_market_estimation",
            "SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID WHERE T2.Country  =  \"Japan\"",
            "SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID WHERE T2.Country  =  \"Japan\" ORDER BY T1.Year DESC"
        ]
    },
    {
        "db_id": "film_rank",
        "final_query": "SELECT Studio FROM film GROUP BY Studio ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "List the name of film studio that have the most number of films.",
        "interaction_utterance": [
            "How many films are there?",
            "Show me all film studios in record.",
            "How many films does each of them have?",
            "Show me the name of the studio that have the most."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM FILM",
            "SELECT distinct Studio FROM FILM",
            "SELECT Studio, COUNT(*) FROM film GROUP BY Studio",
            "SELECT Studio FROM film GROUP BY Studio ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "film_rank",
        "final_query": "SELECT Studio FROM film GROUP BY Studio HAVING COUNT(*)  >=  2",
        "final_utterance": "List the names of studios that have at least two films.",
        "interaction_utterance": [
            "How many films are there?",
            "Show me all film studios in record.",
            "How many films does each of them have?",
            "Show me the name of the studios that have at least two."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM FILM",
            "SELECT distinct Studio FROM FILM",
            "SELECT Studio, COUNT(*) FROM film GROUP BY Studio",
            "SELECT Studio FROM film GROUP BY Studio HAVING COUNT(*)  >=  2"
        ]
    },
    {
        "db_id": "film_rank",
        "final_query": "SELECT Title FROM film WHERE Film_ID NOT IN (SELECT Film_ID FROM film_market_estimation)",
        "final_utterance": "List the title of films that do not have any market estimation.",
        "interaction_utterance": [
            "How many film market estimations are there?",
            "Show me the id of films that are in one of those estimations.",
            "Show me the title of films that are not one of those."
        ],
        "interaction_query": [
            "SELECT count(*) FROM film_market_estimation",
            "SELECT distinct film_id FROM film_market_estimation",
            "SELECT Title FROM film WHERE Film_ID NOT IN (SELECT Film_ID FROM film_market_estimation)"
        ]
    },
    {
        "db_id": "film_rank",
        "final_query": "SELECT Studio FROM film WHERE Director  =  \"Nicholas Meyer\" INTERSECT SELECT Studio FROM film WHERE Director  =  \"Walter Hill\"",
        "final_utterance": "Show the studios that have produced films with director \"Nicholas Meyer\" and \"Walter Hill\".",
        "interaction_utterance": [
            "Show me all film studios in record.",
            "Show me all the directors in record.",
            "Which studios have produced films with Nicholas Mayer?",
            "Among those studios, which of them also have films with Walter Hill?"
        ],
        "interaction_query": [
            "SELECT distinct Studio FROM FILM",
            "SELECT DISTINCT Director FROM film",
            "SELECT Studio FROM film WHERE Director  =  \"Nicholas Meyer\"",
            "SELECT Studio FROM film WHERE Director  =  \"Nicholas Meyer\" INTERSECT SELECT Studio FROM film WHERE Director  =  \"Walter Hill\""
        ]
    },
    {
        "db_id": "film_rank",
        "final_query": "SELECT title ,  Studio FROM film WHERE Studio LIKE \"%Universal%\"",
        "final_utterance": "Find the titles and studios of the films that are produced by some film studios that contained the word \"Universal\".",
        "interaction_utterance": [
            "Show me all film studios in record.",
            "Which ones contain the word \"Universal\"?",
            "Show me the titles of their films along with their name."
        ],
        "interaction_query": [
            "SELECT distinct Studio FROM FILM",
            "SELECT distinct Studio FROM FILM WHERE Studio LIKE \"%Universal%\"",
            "SELECT title ,  Studio FROM film WHERE Studio LIKE \"%Universal%\""
        ]
    },
    {
        "db_id": "film_rank",
        "final_query": "SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director  =  \"Walter Hill\"",
        "final_utterance": "Show the studios that have not produced films with director \"Walter Hill\".",
        "interaction_utterance": [
            "Show me the name of all directors.",
            "Which studios did Walter Hill work with?",
            "Show me studios that are not among them."
        ],
        "interaction_query": [
            "SELECT Director FROM film",
            "SELECT Studio FROM film WHERE Director  =  \"Walter Hill\"",
            "SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director  =  \"Walter Hill\""
        ]
    },
    {
        "db_id": "film_rank",
        "final_query": "SELECT Studio FROM film GROUP BY Studio HAVING avg(Gross_in_dollar)  >=  4500000",
        "final_utterance": "List the studios which average gross is above 4500000.",
        "interaction_utterance": [
            "Show me all film studios in record.",
            "What are the maximum gross for their films?",
            "What about the average?",
            "Show me the name of studios that have average above 4500000."
        ],
        "interaction_query": [
            "SELECT distinct Studio FROM FILM",
            "SELECT Studio, max(Gross_in_dollar) FROM FILM GROUP BY studio",
            "SELECT Studio, min(Gross_in_dollar) FROM FILM GROUP BY studio",
            "SELECT Studio FROM film GROUP BY Studio HAVING avg(Gross_in_dollar)  >=  4500000"
        ]
    },
    {
        "db_id": "film_rank",
        "final_query": "SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2  ON T1.Film_ID  =  T2.Film_ID ORDER BY high_estimate DESC LIMIT 1",
        "final_utterance": "What is the title of the film that has the highest high market estimation.",
        "interaction_utterance": [
            "Show me the title of all films that have market estimation.",
            "What are their high market estimations?",
            "Show me the film that is the highest of them."
        ],
        "interaction_query": [
            "SELECT distinct T1.title FROM film AS T1 JOIN film_market_estimation AS T2  ON T1.Film_ID  =  T2.Film_ID",
            "SELECT t1.title, t2.high_estimate FROM film AS T1 JOIN film_market_estimation AS T2  ON T1.Film_ID  =  T2.Film_ID",
            "SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2  ON T1.Film_ID  =  T2.Film_ID ORDER BY high_estimate DESC LIMIT 1"
        ]
    },
    {
        "db_id": "party_host",
        "final_query": "SELECT count(*) FROM party",
        "final_utterance": "How many parties are there?",
        "interaction_utterance": [
            "What are all the parties?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM party",
            "SELECT count(*) FROM party"
        ]
    },
    {
        "db_id": "party_host",
        "final_query": "SELECT Party_Theme FROM party ORDER BY Number_of_hosts ASC",
        "final_utterance": "List the themes of parties in ascending order of number of hosts.",
        "interaction_utterance": [
            "What are all the parties?",
            "Order them by the number of hosts.",
            "Only show the Party_Theme in that order."
        ],
        "interaction_query": [
            "SELECT * FROM party",
            "SELECT * FROM party ORDER BY Number_of_hosts ASC",
            "SELECT Party_Theme FROM party ORDER BY Number_of_hosts ASC"
        ]
    },
    {
        "db_id": "party_host",
        "final_query": "SELECT Party_Theme , LOCATION FROM party",
        "final_utterance": "What are the themes and locations of parties?",
        "interaction_utterance": [
            "What are all the parties?",
            "what are their themes and locations?"
        ],
        "interaction_query": [
            "SELECT * FROM party",
            "SELECT Party_Theme , LOCATION FROM party"
        ]
    },
    {
        "db_id": "party_host",
        "final_query": "SELECT First_year ,  Last_year FROM party WHERE Party_Theme  =  \"Spring\" OR Party_Theme  =  \"Teqnology\"",
        "final_utterance": "Show the first year and last year of parties with theme \"Spring\" or \"Teqnology\".",
        "interaction_utterance": [
            "What are all the parties?",
            "What about those with theme \"Spring\" or \"Teqnology\"?",
            "Show their first year and last year."
        ],
        "interaction_query": [
            "SELECT * FROM party",
            "SELECT * FROM party WHERE Party_Theme  =  \"Spring\" OR Party_Theme  =  \"Teqnology\"",
            "SELECT First_year ,  Last_year FROM party WHERE Party_Theme  =  \"Spring\" OR Party_Theme  =  \"Teqnology\""
        ]
    },
    {
        "db_id": "party_host",
        "final_query": "SELECT avg(Number_of_hosts) FROM party",
        "final_utterance": "What is the average number of hosts for parties?",
        "interaction_utterance": [
            "What are all the parties?",
            "What are their number of hosts?",
            "Show the average of them."
        ],
        "interaction_query": [
            "SELECT * FROM party",
            "SELECT Number_of_hosts FROM party",
            "SELECT avg(Number_of_hosts) FROM party"
        ]
    },
    {
        "db_id": "party_host",
        "final_query": "SELECT LOCATION FROM party ORDER BY Number_of_hosts DESC LIMIT 1",
        "final_utterance": "What is the location of the party with the most hosts?",
        "interaction_utterance": [
            "What are all the parties?",
            "Order them by the number of hosts.",
            "Show the location of the top one."
        ],
        "interaction_query": [
            "SELECT * FROM party",
            "SELECT * FROM party ORDER BY Number_of_hosts",
            "SELECT LOCATION FROM party ORDER BY Number_of_hosts DESC LIMIT 1"
        ]
    },
    {
        "db_id": "party_host",
        "final_query": "SELECT Nationality ,  COUNT(*) FROM HOST GROUP BY Nationality",
        "final_utterance": "Show different nationalities along with the number of hosts of each nationality.",
        "interaction_utterance": [
            "Who are all the hosts?",
            "What are the different nationalities among them?",
            "Please also show the number of hosts along with each nationality."
        ],
        "interaction_query": [
            "SELECT * FROM HOST",
            "SELECT Nationality FROM HOST GROUP BY Nationality",
            "SELECT Nationality ,  COUNT(*) FROM HOST GROUP BY Nationality"
        ]
    },
    {
        "db_id": "party_host",
        "final_query": "SELECT Nationality FROM HOST GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the most common nationality of hosts.",
        "interaction_utterance": [
            "Who are all the hosts?",
            "What are the different nationalities among them?",
            "Order them by the number of host in each nationality.",
            "Show the top one."
        ],
        "interaction_query": [
            "SELECT * FROM HOST",
            "SELECT Nationality FROM HOST GROUP BY Nationality",
            "SELECT Nationality FROM HOST GROUP BY Nationality ORDER BY COUNT(*)",
            "SELECT Nationality FROM HOST GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "party_host",
        "final_query": "SELECT Nationality FROM HOST WHERE Age  >  45 INTERSECT SELECT Nationality FROM HOST WHERE Age  <  35",
        "final_utterance": "Show the nations that have both hosts older than 45 and hosts younger than 35.",
        "interaction_utterance": [
            "Who are all the hosts?",
            "Show hosts who are older than 45.",
            "Show hosts who are younger than 35.",
            "Show the nations that have hosts from above two results at the same time."
        ],
        "interaction_query": [
            "SELECT * FROM HOST",
            "SELECT * FROM HOST WHERE Age  >  45",
            "SELECT * FROM HOST WHERE Age  <  35",
            "SELECT Nationality FROM HOST WHERE Age  >  45 INTERSECT SELECT Nationality FROM HOST WHERE Age  <  35"
        ]
    },
    {
        "db_id": "party_host",
        "final_query": "SELECT T3.Party_Theme ,  T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID",
        "final_utterance": "Show the themes of parties and the names of the party hosts.",
        "interaction_utterance": [
            "Who are all the party hosts?",
            "What are their names?",
            "Show the themes of parties they host along with their name."
        ],
        "interaction_query": [
            "SELECT * FROM party_host",
            "SELECT T2.NAME FROM party_host as T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID",
            "SELECT T3.Party_Theme ,  T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID"
        ]
    },
    {
        "db_id": "party_host",
        "final_query": "SELECT T3.Location ,  T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID ORDER BY T2.Age",
        "final_utterance": "Show the locations of parties and the names of the party hosts in ascending order of the age of the host.",
        "interaction_utterance": [
            "Who are all the party hosts?",
            "What are their names?",
            "Show the locations of parties they host along with their names.",
            "Order them by the age of the host."
        ],
        "interaction_query": [
            "SELECT * FROM party_host",
            "SELECT T2.NAME FROM party_host as T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID",
            "SELECT T3.Location ,  T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID",
            "SELECT T3.Location ,  T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID ORDER BY T2.Age"
        ]
    },
    {
        "db_id": "party_host",
        "final_query": "SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID WHERE T2.Age  >  50",
        "final_utterance": "Show the locations of parties with hosts older than 50.",
        "interaction_utterance": [
            "Who are all the party hosts?",
            "Show the name of those who are order than 50.",
            "What about the locations of parties they host?"
        ],
        "interaction_query": [
            "SELECT * FROM party_host",
            "SELECT T2.name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID WHERE T2.Age  >  50",
            "SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID WHERE T2.Age  >  50"
        ]
    },
    {
        "db_id": "party_host",
        "final_query": "SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID WHERE T3.Number_of_hosts  >  20",
        "final_utterance": "Show the host names for parties with number of hosts greater than 20.",
        "interaction_utterance": [
            "Show me all parties.",
            "Show those with more than 20 hosts.",
            "What are the host names for those parties?"
        ],
        "interaction_query": [
            "SELECT * FROM party",
            "SELECT * FROM party where Number_of_hosts > 20",
            "SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID WHERE T3.Number_of_hosts  >  20"
        ]
    },
    {
        "db_id": "party_host",
        "final_query": "SELECT Name ,  Nationality FROM HOST ORDER BY Age DESC LIMIT 1",
        "final_utterance": "Show the name and the nationality of the oldest host.",
        "interaction_utterance": [
            "Who are all the hosts?",
            "Who is the oldest one?",
            "Show the name and the nationality of that host."
        ],
        "interaction_query": [
            "SELECT * FROM HOST",
            "SELECT * FROM HOST ORDER BY Age DESC LIMIT 1",
            "SELECT Name ,  Nationality FROM HOST ORDER BY Age DESC LIMIT 1"
        ]
    },
    {
        "db_id": "ship_mission",
        "final_query": "SELECT Name FROM ship WHERE Nationality  =  \"United States\" OR Nationality  =  \"United Kingdom\"",
        "final_utterance": "Show the name of ships whose nationality is either United States or United Kingdom.",
        "interaction_utterance": [
            "Show me the name of all the ships.",
            "Which of them belong to United states?",
            "Include those that belong to United Kingdom."
        ],
        "interaction_query": [
            "SELECT name FROM ship",
            "SELECT Name FROM ship WHERE Nationality  =  \"United States\"",
            "SELECT Name FROM ship WHERE Nationality  =  \"United States\" OR Nationality  =  \"United Kingdom\""
        ]
    },
    {
        "db_id": "ship_mission",
        "final_query": "SELECT Name FROM ship ORDER BY Tonnage DESC LIMIT 1",
        "final_utterance": "What is the name of the ship with the largest tonnage?",
        "interaction_utterance": [
            "Show me the name of all the ships.",
            "Which one has the largest tonnage?"
        ],
        "interaction_query": [
            "SELECT name FROM ship",
            "SELECT Name FROM ship ORDER BY Tonnage DESC LIMIT 1"
        ]
    },
    {
        "db_id": "ship_mission",
        "final_query": "SELECT TYPE FROM ship GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Please show the most common type of ships.",
        "interaction_utterance": [
            "What are the types of ships?",
            "Which type is the most common?"
        ],
        "interaction_query": [
            "SELECT TYPE FROM ship",
            "SELECT TYPE FROM ship GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "ship_mission",
        "final_query": "SELECT Nationality FROM ship GROUP BY Nationality HAVING COUNT(*)  >  2",
        "final_utterance": "List the nations that have more than two ships.",
        "interaction_utterance": [
            "What nations are there?",
            "How many ships are there?",
            "How many ships does each nation have?",
            "Show me nations that have more than two ships."
        ],
        "interaction_query": [
            "SELECT Nationality FROM ship",
            "SELECT count(*) FROM ship",
            "SELECT Nationality, count(*) FROM ship group by Nationality",
            "SELECT Nationality FROM ship GROUP BY Nationality HAVING COUNT(*)  >  2"
        ]
    },
    {
        "db_id": "ship_mission",
        "final_query": "SELECT T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID  =  T2.Ship_ID WHERE T1.Launched_Year  >  1928",
        "final_utterance": "Show names of ships involved in a mission launched after 1928.",
        "interaction_utterance": [
            "What are the name of all the ships?",
            "Give me missions that were launched after 1928.",
            "Which ships were involved in any of those?"
        ],
        "interaction_query": [
            "SELECT NAME FROM ship",
            "SELECT * FROM Mission where Launched_Year  >  1928",
            "SELECT T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID  =  T2.Ship_ID WHERE T1.Launched_Year  >  1928"
        ]
    },
    {
        "db_id": "ship_mission",
        "final_query": "SELECT DISTINCT T1.Fate FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID  =  T2.Ship_ID WHERE T2.Nationality  =  \"United States\"",
        "final_utterance": "Show the distinct fate of missions that involve ships with nationality \"United States\"",
        "interaction_utterance": [
            "How many ships are there?",
            "Which of them are from United States?",
            "Show me the distinct fate of missions that involve any of those."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM ship",
            "SELECT * FROM ship WHERE Nationality  =  \"United States\"",
            "SELECT DISTINCT T1.Fate FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID  =  T2.Ship_ID WHERE T2.Nationality  =  \"United States\""
        ]
    },
    {
        "db_id": "ship_mission",
        "final_query": "SELECT Name FROM ship WHERE Ship_ID NOT IN (SELECT Ship_ID FROM mission)",
        "final_utterance": "List the name of ships that are not involved in any mission",
        "interaction_utterance": [
            "What are all the missions?",
            "Which ship is involved in any of them?",
            "Give me the name of ships which are not among those."
        ],
        "interaction_query": [
            "SELECT * FROM MISSION",
            "SELECT Ship_ID FROM mission",
            "SELECT Name FROM ship WHERE Ship_ID NOT IN (SELECT Ship_ID FROM mission)"
        ]
    },
    {
        "db_id": "company_employee",
        "final_query": "SELECT Name FROM company WHERE Industry  =  \"Banking\" OR Industry  =  \"Retailing\"",
        "final_utterance": "Show the names of companies in the banking or retailing industry?",
        "interaction_utterance": [
            "Tell me the industry of JPMorgan Chase.",
            "How about its market value?",
            "Tell me the names of companies in the banking or retailing industry."
        ],
        "interaction_query": [
            "SELECT Industry FROM company WHERE Name = \"JPMorgan Chase\"",
            "SELECT Market_Value_in_Billion FROM company WHERE Name = \"JPMorgan Chase\"",
            "SELECT Name FROM company WHERE Industry  =  \"Banking\" OR Industry  =  \"Retailing\""
        ]
    },
    {
        "db_id": "company_employee",
        "final_query": "SELECT max(Market_Value_in_Billion) ,  min(Market_Value_in_Billion) FROM company",
        "final_utterance": "What is the maximum and minimum market value of companies?",
        "interaction_utterance": [
            "Tell me the headquarters of the company HSBC.",
            "What is its market value?",
            "What is the maximum and minimum market value of companies."
        ],
        "interaction_query": [
            "SELECT Headquarters FROM company WHERE Name = \"HSBC\"",
            "SELECT Market_Value_in_Billion FROM company WHERE Name = \"HSBC\"",
            "SELECT max(Market_Value_in_Billion) ,  min(Market_Value_in_Billion) FROM company"
        ]
    },
    {
        "db_id": "company_employee",
        "final_query": "SELECT Headquarters FROM company ORDER BY Sales_in_Billion DESC LIMIT 1",
        "final_utterance": "What is the headquarter of the company with the largest sales?",
        "interaction_utterance": [
            "Tell me the sales of HSBC.",
            "How about that of PetroChina?",
            "What is the headquarters of the company with the largest sales?"
        ],
        "interaction_query": [
            "SELECT Sales_in_Billion FROM company WHERE Name = \"HSBC\"",
            "SELECT Sales_in_Billion FROM company WHERE Name = \"PetroChina\"",
            "SELECT Headquarters FROM company ORDER BY Sales_in_Billion DESC LIMIT 1"
        ]
    },
    {
        "db_id": "company_employee",
        "final_query": "SELECT Headquarters FROM company GROUP BY Headquarters ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the most common headquarter for companies.",
        "interaction_utterance": [
            "Tell me the profits of the company BP.",
            "How about its headquarters?",
            "What is the most common headquarters for companies?"
        ],
        "interaction_query": [
            "SELECT Profits_in_Billion FROM company WHERE Name = \"BP\"",
            "SELECT Headquarters FROM company WHERE Name = \"BP\"",
            "SELECT Headquarters FROM company GROUP BY Headquarters ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "company_employee",
        "final_query": "SELECT Headquarters FROM company GROUP BY Headquarters HAVING COUNT(*)  >=  2",
        "final_utterance": "Show the headquarters that have at least two companies.",
        "interaction_utterance": [
            "Tell me ExxonMobil's industry.",
            "What is its headquarters?",
            "Tell me the headquarters that have at least two companies."
        ],
        "interaction_query": [
            "SELECT Industry FROM company WHERE Name = \"ExxonMobil\"",
            "SELECT Headquarters FROM company WHERE Name = \"ExxonMobil\"",
            "SELECT Headquarters FROM company GROUP BY Headquarters HAVING COUNT(*)  >=  2"
        ]
    },
    {
        "db_id": "company_employee",
        "final_query": "SELECT Headquarters FROM company WHERE Industry  =  \"Banking\" INTERSECT SELECT Headquarters FROM company WHERE Industry  =  \"Oil and gas\"",
        "final_utterance": "Show the headquarters that have both companies in banking industry and companies in oil and gas industry.",
        "interaction_utterance": [
            "Tell me the companies in the banking industry.",
            "Where are their headquarters?",
            "Tell me the headquarters that have both companies in the banking industry and companies in the oil and gas industry."
        ],
        "interaction_query": [
            "SELECT Name FROM company WHERE Industry  =  \"Banking\"",
            "SELECT Headquarters FROM company WHERE Industry  =  \"Banking\"",
            "SELECT Headquarters FROM company WHERE Industry  =  \"Banking\" INTERSECT SELECT Headquarters FROM company WHERE Industry  =  \"Oil and gas\""
        ]
    },
    {
        "db_id": "company_employee",
        "final_query": "SELECT T3.Name ,  T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID",
        "final_utterance": "Show the names of companies and of employees.",
        "interaction_utterance": [
            "Tell me Brad Lohaus's age.",
            "Where does he work?",
            "How about all the names of the companies and of the employees?"
        ],
        "interaction_query": [
            "SELECT Age FROM people WHERE Name = \"Brad Lohaus\"",
            "SELECT T3.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID WHERE T2.Name = \"Brad Lohaus\"",
            "SELECT T3.Name ,  T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID"
        ]
    },
    {
        "db_id": "company_employee",
        "final_query": "SELECT T3.Name ,  T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID ORDER BY T1.Year_working",
        "final_utterance": "Show names of companies and that of employees in descending order of number of years working for that employee.",
        "interaction_utterance": [
            "Tell me the people working in HSBC.",
            "How many are there?",
            "What are the names of the companies and that of the employees in descending order of number of years working for that employee?"
        ],
        "interaction_query": [
            "SELECT T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID WHERE T3.Name = \"HSBC\"",
            "SELECT COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID WHERE T3.Name = \"HSBC\"",
            "SELECT T3.Name ,  T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID ORDER BY T1.Year_working"
        ]
    },
    {
        "db_id": "company_employee",
        "final_query": "SELECT T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID WHERE T3.Sales_in_Billion  >  200",
        "final_utterance": "Show the names of employees that work for companies with sales bigger than 200.",
        "interaction_utterance": [
            "Tell me the company Tim Naegeli works in.",
            "What are this company's sales numbers?",
            "Tell me the names of the employees that work for the companies with sales bigger than 200."
        ],
        "interaction_query": [
            "SELECT T3.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID WHERE T2.Name = \"Tim Naegeli\"",
            "SELECT T3.Sales_in_Billion FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID WHERE T2.Name = \"Tim Naegeli\"",
            "SELECT T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID WHERE T3.Sales_in_Billion  >  200"
        ]
    },
    {
        "db_id": "company_employee",
        "final_query": "SELECT T3.Name ,  COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID GROUP BY T3.Name",
        "final_utterance": "Show the names of companies and the number of employees they have",
        "interaction_utterance": [
            "What are PetroChina's assets?",
            "How many employees are there?",
            "Tell me the names of the companies and the number of employees they have."
        ],
        "interaction_query": [
            "SELECT Assets_in_Billion FROM company WHERE Name = \"PetroChina\"",
            "SELECT COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID WHERE T3.Name = \"PetroChina\"",
            "SELECT T3.Name ,  COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID GROUP BY T3.Name"
        ]
    },
    {
        "db_id": "company_employee",
        "final_query": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM employment)",
        "final_utterance": "List the names of people that are not employed by any company",
        "interaction_utterance": [
            "How old is David Butler?",
            "Where does he work?",
            "Tell me the names of people that are not employed by any company."
        ],
        "interaction_query": [
            "SELECT Age FROM people WHERE Name = \"David Butler\"",
            "SELECT T3.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID WHERE T2.Name = \"Brad Lohaus\"",
            "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM employment)"
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT min(amount_of_transaction) FROM TRANSACTIONS WHERE transaction_type_code  =  \"PUR\" AND share_count  >  50",
        "final_utterance": "Show the minimum amount of transactions whose type code is \"PUR\" and whose share count is bigger than 50.",
        "interaction_utterance": [
            "Show the amount of transactions whose type code is \"PUR\"",
            "Show average amount of transactions whose type code is \"PUR\"",
            "Show the minimum amount of transactions whose type code is \"PUR\" and whose share count is bigger than 50."
        ],
        "interaction_query": [
            "SELECT amount_of_transaction FROM TRANSACTIONS WHERE transaction_type_code  =  \"PUR\"",
            "SELECT avg(amount_of_transaction) FROM TRANSACTIONS WHERE transaction_type_code  =  \"PUR\"",
            "SELECT min(amount_of_transaction) FROM TRANSACTIONS WHERE transaction_type_code  =  \"PUR\" AND share_count  >  50"
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count  >  100 OR amount_of_transaction  >  1000",
        "final_utterance": "Show the dates of transactions if the share count is bigger than 100 or the amount is bigger than 1000.",
        "interaction_utterance": [
            "Show the dates of transactions if the share count is bigger than 100.",
            "Show the dates of transactions if the amount is bigger than 1000.",
            "What are the dates of the transactions in these two groups?"
        ],
        "interaction_query": [
            "SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count  >  100",
            "SELECT date_of_transaction FROM TRANSACTIONS WHERE amount_of_transaction  >  1000",
            "SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count  >  100 OR amount_of_transaction  >  1000"
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT T1.transaction_type_description ,  T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code  =  T2.transaction_type_code WHERE T2.share_count  <  10",
        "final_utterance": "Show the transaction type descriptions and dates if the share count is smaller than 10.",
        "interaction_utterance": [
            "Show the transaction type description if the share count is smaller than 10.",
            "Please also show their transaction dates."
        ],
        "interaction_query": [
            "SELECT T1.transaction_type_description FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code  =  T2.transaction_type_code WHERE T2.share_count  <  10",
            "SELECT T1.transaction_type_description ,  T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code  =  T2.transaction_type_code WHERE T2.share_count  <  10"
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT T1.Investor_details FROM  INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id WHERE T2.share_count  >  100",
        "final_utterance": "Show details of all investors if they make any transaction with share count greater than 100.",
        "interaction_utterance": [
            "Show the average share count of all investors.",
            "Count the number of investors who make any transaction with share count greater than 100.",
            "Show their details."
        ],
        "interaction_query": [
            "SELECT avg(share_count) FROM TRANSACTIONS",
            "SELECT count(*) FROM  INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id WHERE T2.share_count  >  100",
            "SELECT T1.Investor_details FROM  INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id WHERE T2.share_count  >  100"
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT T2.lot_details FROM INVESTORS AS T1 JOIN LOTS AS T2 ON  T1.investor_id  =  T2.investor_id WHERE T1.Investor_details  =  \"l\"",
        "final_utterance": "Return the lot details of lots that belong to investors with details \"l\"?",
        "interaction_utterance": [
            "Show the lot details of all lots.",
            "Show the ids of investors with details \"l\".",
            "Return the lot details of lots that belong to investors with details \"l\"."
        ],
        "interaction_query": [
            "SELECT lot_details FROM LOTS",
            "SELECT investor_id FROM INVESTORS WHERE Investor_details  =  \"l\"",
            "SELECT T2.lot_details FROM INVESTORS AS T1 JOIN LOTS AS T2 ON  T1.investor_id  =  T2.investor_id WHERE T1.Investor_details  =  \"l\""
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT T1.purchase_details FROM PURCHASES AS T1 JOIN TRANSACTIONS AS T2 ON T1.purchase_transaction_id  =  T2.transaction_id WHERE T2.amount_of_transaction  >  10000",
        "final_utterance": "What are the purchase details of transactions with amount bigger than 10000?",
        "interaction_utterance": [
            "What is the average transaction amount?",
            "How many transactions have an amount bigger than 10000?",
            "Please show the purchase details of these transactions."
        ],
        "interaction_query": [
            "SELECT avg(amount_of_transaction) FROM TRANSACTIONS",
            "SELECT count(amount_of_transaction) FROM TRANSACTIONS WHERE amount_of_transaction  >  10000",
            "SELECT T1.purchase_details FROM PURCHASES AS T1 JOIN TRANSACTIONS AS T2 ON T1.purchase_transaction_id  =  T2.transaction_id WHERE T2.amount_of_transaction  >  10000"
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT T1.sales_details ,  T2.date_of_transaction FROM SALES AS T1 JOIN TRANSACTIONS AS T2 ON T1.sales_transaction_id  =  T2.transaction_id WHERE T2.amount_of_transaction  <  3000",
        "final_utterance": "What are the sale details and dates of transactions with amount smaller than 3000?",
        "interaction_utterance": [
            "What is the minimum transaction amount?",
            "How many transactions have an amount smaller than 3000?",
            "Please show the sale details and dates of transactions with amount smaller than 3000."
        ],
        "interaction_query": [
            "SELECT min(amount_of_transaction) FROM TRANSACTIONS",
            "SELECT count(amount_of_transaction) FROM TRANSACTIONS WHERE amount_of_transaction  <  3000",
            "SELECT T1.sales_details ,  T2.date_of_transaction FROM SALES AS T1 JOIN TRANSACTIONS AS T2 ON T1.sales_transaction_id  =  T2.transaction_id WHERE T2.amount_of_transaction  <  3000"
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id  =  T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id  =  T3.transaction_id WHERE T3.share_count  <  50",
        "final_utterance": "What are the lot details of lots associated with transactions with share count smaller than 50?",
        "interaction_utterance": [
            "What is the average share amount of the transactions?",
            "How many transactions have a share count smaller than 50?",
            "What are the lot details of lots associated with transactions with share count smaller than 50?"
        ],
        "interaction_query": [
            "SELECT avg(share_count) FROM TRANSACTIONS",
            "SELECT count(*) FROM TRANSACTIONS_LOTS AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_id  =  T2.transaction_id WHERE T2.share_count  <  50",
            "SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id  =  T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id  =  T3.transaction_id WHERE T3.share_count  <  50"
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON  T1.lot_id  =  T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id  =  T3.transaction_id WHERE T3.share_count  >  100 AND T3.transaction_type_code  =  \"PUR\"",
        "final_utterance": "What are the lot details of lots associated with transactions whose share count is bigger than 100 and whose type code is \"PUR\"?",
        "interaction_utterance": [
            "Show the transaction id of transactions whose share count is bigger than 100.",
            "How many transactions whose share count is bigger than 100 and whose type code is \"PUR\"?.",
            "What are the lot details of lots associated with transactions whose share count is bigger than 100 and whose type code is \"PUR\"?"
        ],
        "interaction_query": [
            "SELECT transaction_id FROM TRANSACTIONS WHERE share_count  >  100",
            "SELECT COUNT(transaction_id) FROM TRANSACTIONS WHERE share_count  >  100 AND transaction_type_code  =  \"PUR\"",
            "SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON  T1.lot_id  =  T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id  =  T3.transaction_id WHERE T3.share_count  >  100 AND T3.transaction_type_code  =  \"PUR\""
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT transaction_type_code ,  max(share_count) ,  min(share_count) FROM TRANSACTIONS GROUP BY transaction_type_code",
        "final_utterance": "Show the maximum and minimum share count of different transaction types.",
        "interaction_utterance": [
            "How many different transaction types are there?",
            "What is the average share count of different transaction types?",
            "Show the maximum and minimum share count of different transaction types."
        ],
        "interaction_query": [
            "SELECT COUNT(DISTINCT transaction_type_code) FROM TRANSACTIONS",
            "SELECT transaction_type_code ,  avg(share_count) FROM TRANSACTIONS GROUP BY transaction_type_code",
            "SELECT transaction_type_code ,  max(share_count) ,  min(share_count) FROM TRANSACTIONS GROUP BY transaction_type_code"
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT investor_id ,  avg(share_count) FROM TRANSACTIONS GROUP BY investor_id ORDER BY avg(share_count)",
        "final_utterance": "Show the average share count of transactions made by each investor, ordered by average share count.",
        "interaction_utterance": [
            "What is the maximum share count of transactions?",
            "What is the average share count of transactions made by each investor?",
            "Please order them by average share count."
        ],
        "interaction_query": [
            "SELECT max(share_count) FROM TRANSACTIONS",
            "SELECT investor_id ,  avg(share_count) FROM TRANSACTIONS GROUP BY investor_id",
            "SELECT investor_id ,  avg(share_count) FROM TRANSACTIONS GROUP BY investor_id ORDER BY avg(share_count)"
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT T2.lot_id ,  avg(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id  =  T2.transaction_id GROUP BY T2.lot_id",
        "final_utterance": "Show the average amount of transactions for different lots.",
        "interaction_utterance": [
            "Show the max amount of transactions for different lots.",
            "What is the average amount of transactions for all lots?",
            "What is the average amount of transactions for the lot with id 1?",
            "Show the average amount of transactions for all different lots."
        ],
        "interaction_query": [
            "SELECT max(amount_of_transaction) FROM TRANSACTIONS",
            "SELECT avg(amount_of_transaction) FROM TRANSACTIONS",
            "SELECT T2.lot_id ,  avg(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id  =  T2.transaction_id WHERE T2.lot_id = 1 GROUP BY T2.lot_id",
            "SELECT T2.lot_id ,  avg(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id  =  T2.transaction_id GROUP BY T2.lot_id"
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT T2.lot_id ,  avg(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id  =  T2.transaction_id GROUP BY T2.lot_id ORDER BY avg(amount_of_transaction)",
        "final_utterance": "Show the average amount of transactions for different lots, ordered by average amount of transactions.",
        "interaction_utterance": [
            "What is the average amount of transactions for the lot with id 3?",
            "Show the average amount of transactions for all different lots.",
            "Could you please order the results by the average amount of transactions?"
        ],
        "interaction_query": [
            "SELECT T2.lot_id ,  avg(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id  =  T2.transaction_id WHERE T2.lot_id = 3 GROUP BY T2.lot_id",
            "SELECT T2.lot_id ,  avg(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id  =  T2.transaction_id GROUP BY T2.lot_id",
            "SELECT T2.lot_id ,  avg(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id  =  T2.transaction_id GROUP BY T2.lot_id ORDER BY avg(amount_of_transaction)"
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT investor_id ,  COUNT(*) FROM TRANSACTIONS WHERE transaction_type_code  =  \"SALE\" GROUP BY investor_id",
        "final_utterance": "Show the number of transactions with transaction type code \"SALE\" for different investors if it is larger than 0.",
        "interaction_utterance": [
            "How many transactions are there with transaction type code \"PUR\"?",
            "Show the number of transactions with transaction type code \"SALE\".",
            "For these transactions, show the number made by each investor."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM TRANSACTIONS WHERE transaction_type_code  =  \"PUR\"",
            "SELECT COUNT(*) FROM TRANSACTIONS WHERE transaction_type_code  =  \"SALE\"",
            "SELECT investor_id ,  COUNT(*) FROM TRANSACTIONS WHERE transaction_type_code  =  \"SALE\" GROUP BY investor_id"
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) ASC LIMIT 1",
        "final_utterance": "Show the transaction type code that occurs the fewest times.",
        "interaction_utterance": [
            "Show the transaction type code that occurs the most times.",
            "Show the number of occurances of each transaction type code.",
            "Could you please order the transaction type codes by their number of occurances?",
            "Show the first one."
        ],
        "interaction_query": [
            "SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1",
            "SELECT transaction_type_code, count(*) FROM TRANSACTIONS GROUP BY transaction_type_code",
            "SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) ASC",
            "SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) ASC LIMIT 1"
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the transaction type code that occurs the most frequently.",
        "interaction_utterance": [
            "Show the transaction type code that occurs the fewest times.",
            "Show the number of occurances of each transaction type code.",
            "Which transaction occurs the most frequently?",
            "Show its transaction type code."
        ],
        "interaction_query": [
            "SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) ASC LIMIT 1",
            "SELECT transaction_type_code, count(*) FROM TRANSACTIONS GROUP BY transaction_type_code",
            "SELECT * FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1",
            "SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT T1.transaction_type_description FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code  =  T2.transaction_type_code GROUP BY T1.transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the description of the transaction type that occurs most frequently.",
        "interaction_utterance": [
            "Please show the description of the transaction type \"SALE\".",
            "How many transaction types are there?",
            "Among these transactions, which one occurs most frequently?",
            "Show its description."
        ],
        "interaction_query": [
            "SELECT transaction_type_description FROM Ref_Transaction_Types WHERE transaction_type_code = \"SALE\"",
            "SELECT COUNT(*) FROM Ref_Transaction_Types",
            "SELECT T1.transaction_type_code FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code  =  T2.transaction_type_code GROUP BY T1.transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1",
            "SELECT T1.transaction_type_description FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code  =  T2.transaction_type_code GROUP BY T1.transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT T2.investor_id ,  T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the id and details of the investor that has the largest number of transactions.",
        "interaction_utterance": [
            "How many investors are there?",
            "How many of them have transactions?",
            "Could you order these investors according to their number of transactions in decreasing order?",
            "Show the id and details of the first investor."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM INVESTORS",
            "SELECT COUNT(DISTINCT T1.investor_id) FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id",
            "SELECT * FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC",
            "SELECT T2.investor_id ,  T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT T2.investor_id ,  T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 3",
        "final_utterance": "Show the id and details for the investors who have the top 3 number of transactions.",
        "interaction_utterance": [
            "How many transactions are there?",
            "Show the id and details for the investor who has the most transactions.",
            "How about investors with top 3 number of transactions?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM TRANSACTIONS",
            "SELECT T2.investor_id ,  T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 1",
            "SELECT T2.investor_id ,  T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 3"
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT T2.investor_id FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id GROUP BY T2.investor_id HAVING COUNT(*)  >=  2",
        "final_utterance": "Show the ids of the investors who have at least two transactions.",
        "interaction_utterance": [
            "Which investors have some transactions?",
            "How many of these investors have at least three transactions?",
            "Next, how many of these investors have at least two transactions?",
            "Please give their ids."
        ],
        "interaction_query": [
            "SELECT * FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id",
            "SELECT COUNT(*) FROM (SELECT COUNT(*) FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id GROUP BY T2.investor_id HAVING COUNT(*)  >=  3)",
            "SELECT COUNT(*) FROM (SELECT COUNT(*) FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id GROUP BY T2.investor_id HAVING COUNT(*)  >=  2)",
            "SELECT T2.investor_id FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id GROUP BY T2.investor_id HAVING COUNT(*)  >=  2"
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT T2.investor_id ,  T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id WHERE T2.transaction_type_code  =  \"SALE\" GROUP BY T2.investor_id HAVING COUNT(*)  >=  2",
        "final_utterance": "Show the ids and details of the investors who have at least two transactions with type code \"SALE\".",
        "interaction_utterance": [
            "Which investors have some transactions?",
            "How many of these investors are there?",
            "How about those who have at least two transactions with type code \"SALE\"?",
            "OK\uff0cgive me their ids and details."
        ],
        "interaction_query": [
            "SELECT * FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id",
            "SELECT COUNT(DISTINCT T1.investor_id) FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id",
            "SELECT COUNT(*) FROM (SELECT COUNT(*) FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id WHERE T2.transaction_type_code  =  \"SALE\" GROUP BY T2.investor_id HAVING COUNT(*)  >=  2)",
            "SELECT T2.investor_id ,  T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id WHERE T2.transaction_type_code  =  \"SALE\" GROUP BY T2.investor_id HAVING COUNT(*)  >=  2"
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count  >=  100 OR amount_of_transaction  >=  100",
        "final_utterance": "What are the dates of transactions with at least 100 share count or amount bigger than 100?",
        "interaction_utterance": [
            "How many transactions are there?",
            "Among these transactions, how many of them have a share count of at least 100 or an amount bigger than 100?",
            "Can you please show their dates?"
        ],
        "interaction_query": [
            "SELECT COUNT(date_of_transaction) FROM TRANSACTIONS",
            "SELECT COUNT(date_of_transaction) FROM TRANSACTIONS WHERE share_count  >=  100 OR amount_of_transaction  >=  100",
            "SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count  >=  100 OR amount_of_transaction  >=  100"
        ]
    },
    {
        "db_id": "tracking_share_transactions",
        "final_query": "SELECT sales_details FROM sales UNION SELECT purchase_details FROM purchases",
        "final_utterance": "What are the details of all sales and purchases?",
        "interaction_utterance": [
            "What are the details of all sales?",
            "What are the details of all purchases?",
            "Could you please combine them?"
        ],
        "interaction_query": [
            "SELECT sales_details FROM sales",
            "SELECT purchase_details FROM purchases",
            "SELECT sales_details FROM sales UNION SELECT purchase_details FROM purchases"
        ]
    },
    {
        "db_id": "news_report",
        "final_query": "SELECT Name FROM journalist WHERE Nationality  =  \"England\" OR Nationality  =  \"Wales\"",
        "final_utterance": "Show the names of journalists FROM \"England\" or \"Wales\".",
        "interaction_utterance": [
            "Show me many how many journalists are FROM the nation England?",
            "How about Wales?",
            "How many are FROM England or Wales?",
            "What are their names?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM journalist WHERE Nationality  =  \"England\"",
            "SELECT count(*) FROM journalist WHERE Nationality  =  \"Wales\"",
            "SELECT count(*) FROM journalist WHERE Nationality  =  \"England\" OR Nationality  =  \"Wales\"",
            "SELECT Name FROM journalist WHERE Nationality  =  \"England\" OR Nationality  =  \"Wales\""
        ]
    },
    {
        "db_id": "news_report",
        "final_query": "SELECT Nationality FROM journalist ORDER BY Years_working DESC LIMIT 1",
        "final_utterance": "What is the nationality of the journalist with the largest number of years working?",
        "interaction_utterance": [
            "What is the average number of years a journalist works?",
            "What is the greatest?",
            "Who is the journalist that has worked this long?",
            "Show me just her nationality?"
        ],
        "interaction_query": [
            "SELECT avg(Years_working) FROM journalist",
            "SELECT Years_working FROM journalist ORDER BY Years_working DESC LIMIT 1",
            "SELECT name FROM journalist ORDER BY Years_working DESC LIMIT 1",
            "SELECT Nationality FROM journalist ORDER BY Years_working DESC LIMIT 1"
        ]
    },
    {
        "db_id": "news_report",
        "final_query": "SELECT Nationality FROM journalist GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the most common nationality for journalists.",
        "interaction_utterance": [
            "Show me every journalists name and nationality.",
            "How many different nationalities are there?",
            "What are they?",
            "Of which one, are the most journalist?"
        ],
        "interaction_query": [
            "SELECT name, nationality FROM journalist",
            "SELECT count(distinct Nationality) FROM journalist",
            "SELECT distinct Nationality FROM journalist",
            "SELECT Nationality FROM journalist GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "news_report",
        "final_query": "SELECT Nationality FROM journalist WHERE Years_working  >  10 INTERSECT SELECT Nationality FROM journalist WHERE Years_working  <  3",
        "final_utterance": "Show the nations that have both journalists with more than 10 years of working and journalists with less than 3 years of working.",
        "interaction_utterance": [
            "Which journalists have been working for less than 3 years?",
            "Also add those that have been working for over 10!",
            "What are their names?",
            "Actually, list the different nations they are FROM!"
        ],
        "interaction_query": [
            "SELECT * FROM journalist WHERE Years_working  <  3",
            "SELECT * FROM journalist WHERE Years_working  <  3 or Years_working  >  10",
            "SELECT name FROM journalist WHERE Years_working  <  3 or Years_working  >  10",
            "SELECT Nationality FROM journalist WHERE Years_working  >  10 INTERSECT SELECT Nationality FROM journalist WHERE Years_working  <  3"
        ]
    },
    {
        "db_id": "news_report",
        "final_query": "SELECT T3.Name ,  T2.Date FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID",
        "final_utterance": "Show the names of journalists and the dates of the events they reported.",
        "interaction_utterance": [
            "What are names of all the different journalists that have reported on at least one event?",
            "For each, show the names of the events they reported on.",
            "And also the venues and dates.",
            "Now, show just the journalist names and dates of the events!"
        ],
        "interaction_query": [
            "SELECT T3.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID group by T1.journalist_ID",
            "SELECT T3.Name , T2.name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID",
            "SELECT T3.Name , T2.name, T2.Venue, T2.Date FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID",
            "SELECT T3.Name ,  T2.Date FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID"
        ]
    },
    {
        "db_id": "news_report",
        "final_query": "SELECT T3.Name ,  T2.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID ORDER BY T2.Event_Attendance ASC",
        "final_utterance": "Show the names of journalists and the names of the events they reported in ascending order",
        "interaction_utterance": [
            "What are all the event names?",
            "What were the event attendances for each one?",
            "Include the names of the journalist working on each event!",
            "Show me just the names of the journalists and the event names in ascending order!"
        ],
        "interaction_query": [
            "SELECT name FROM event",
            "SELECT Name, Event_Attendance FROM event",
            "SELECT T3.Name ,  T2.Name, T2.event_attendance FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID",
            "SELECT T3.Name ,  T2.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID ORDER BY T2.Event_Attendance ASC"
        ]
    },
    {
        "db_id": "news_report",
        "final_query": "SELECT T3.Name ,  COUNT(*) FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID GROUP BY T3.Name",
        "final_utterance": "Show the names of journalists and the number of events they reported.",
        "interaction_utterance": [
            "Shoe me the names of all the journalists.",
            "Now include the names of all the events they each worked on.",
            "How many did they each do?"
        ],
        "interaction_query": [
            "SELECT name FROM journalist",
            "SELECT T3.Name, T2.name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID",
            "SELECT T3.Name ,  COUNT(*) FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID GROUP BY T3.Name"
        ]
    },
    {
        "db_id": "news_report",
        "final_query": "SELECT T3.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID GROUP BY T3.Name HAVING COUNT(*)  >  1",
        "final_utterance": "Show the names of journalists that have reported more than one event.",
        "interaction_utterance": [
            "Show me all the journalist information for each journalist!",
            "What events have they each reported on.",
            "Count how many each journalist has worked on.",
            "Show me just the names of the journalists that have reported on more than 1!"
        ],
        "interaction_query": [
            "SELECT * FROM journalist",
            "SELECT * FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID",
            "SELECT T3.name, count(*) FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID group by T3.name",
            "SELECT T3.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID GROUP BY T3.Name HAVING COUNT(*)  >  1"
        ]
    },
    {
        "db_id": "news_report",
        "final_query": "SELECT Name FROM journalist WHERE journalist_ID NOT IN (SELECT journalist_ID FROM news_report)",
        "final_utterance": "List the names of journalists who have not reported any event.",
        "interaction_utterance": [
            "How many events have each journalists reported on?",
            "How many journalists have 0 events!",
            "What are their names?"
        ],
        "interaction_query": [
            "SELECT T3.name, count(*) FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID group by T3.name",
            "SELECT count(*) FROM journalist WHERE journalist_ID NOT IN (SELECT journalist_ID FROM news_report)",
            "SELECT Name FROM journalist WHERE journalist_ID NOT IN (SELECT journalist_ID FROM news_report)"
        ]
    },
    {
        "db_id": "news_report",
        "final_query": "SELECT avg(Event_Attendance) ,  max(Event_Attendance) FROM event",
        "final_utterance": "what are the average and maximum attendances of all events?",
        "interaction_utterance": [
            "List all the names of the events!",
            "Show many attended each one!",
            "What is the average event _attendance?",
            "Also show the max!"
        ],
        "interaction_query": [
            "SELECT name FROM event",
            "SELECT name, event_attendance FROM event",
            "SELECT avg(event_attendance) FROM event",
            "SELECT avg(Event_Attendance) ,  max(Event_Attendance) FROM event"
        ]
    },
    {
        "db_id": "news_report",
        "final_query": "SELECT avg(t1.age) ,  avg(Years_working) ,  t2.work_type FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_id  =  t2.journalist_id GROUP BY t2.work_type",
        "final_utterance": "Find the average age and experience working length of journalists working on different role type.",
        "interaction_utterance": [
            "What are the different work_types of news reporting?",
            "How many reporters belong to each type?",
            "What is the average age of the reporters for each type?",
            "Also show the average number of years working for each type?"
        ],
        "interaction_query": [
            "SELECT distinct work_type FROM news_report",
            "SELECT count(*), t2.work_type FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_id  =  t2.journalist_id group by t2.work_type",
            "SELECT avg(t1.age), t2.work_type FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_id  =  t2.journalist_id GROUP BY t2.work_type",
            "SELECT avg(t1.age) ,  avg(Years_working) ,  t2.work_type FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_id  =  t2.journalist_id GROUP BY t2.work_type"
        ]
    },
    {
        "db_id": "storm_record",
        "final_query": "SELECT region_code ,  region_name FROM region ORDER BY region_code;",
        "final_utterance": "Show all region code and region name sorted by the codes.",
        "interaction_utterance": [
            "What are the names of the regions?",
            "Show all region code and region name sorted by the region name alphabetically.",
            "Order the result by the codes."
        ],
        "interaction_query": [
            "SELECT region_name FROM region;",
            "SELECT region_code ,  region_name FROM region ORDER BY region_name ASC;",
            "SELECT region_code ,  region_name FROM region ORDER BY region_code;"
        ]
    },
    {
        "db_id": "storm_record",
        "final_query": "SELECT region_name FROM region ORDER BY region_name;",
        "final_utterance": "List all region names in alphabetical order.",
        "interaction_utterance": [
            "How about their names of each region?",
            "Order the result in alphabetical order."
        ],
        "interaction_query": [
            "SELECT region_name FROM region;",
            "SELECT region_name FROM region ORDER BY region_name;"
        ]
    },
    {
        "db_id": "storm_record",
        "final_query": "SELECT region_name FROM region WHERE region_name != 'Denmark';",
        "final_utterance": "Show names for all regions except for Denmark.",
        "interaction_utterance": [
            "Can you list the id of region named Denmark.",
            "How about the region code for all regions except for Denmark.",
            "List their names."
        ],
        "interaction_query": [
            "SELECT region_id FROM region WHERE region_name = 'Denmark';",
            "SELECT region_code FROM region WHERE region_name != 'Denmark';",
            "SELECT region_name FROM region WHERE region_name != 'Denmark';"
        ]
    },
    {
        "db_id": "storm_record",
        "final_query": "SELECT count(*) FROM storm WHERE Number_Deaths  >  0;",
        "final_utterance": "How many storms had death records?",
        "interaction_utterance": [
            "What's the number of deaths for each storm?",
            "Show the average number of deaths.",
            "How many storms had death records?"
        ],
        "interaction_query": [
            "SELECT Number_Deaths FROM storm;",
            "SELECT avg(Number_Deaths) FROM storm;",
            "SELECT count(*) FROM storm WHERE Number_Deaths  >  0;"
        ]
    },
    {
        "db_id": "storm_record",
        "final_query": "SELECT name ,  dates_active ,  number_deaths FROM storm WHERE number_deaths  >=  1;",
        "final_utterance": "List name, dates active, and number of deaths for all storms with at least 1 death.",
        "interaction_utterance": [
            "Show me the name of the storm where no people died.",
            "How about the number of deaths for the rest of the storms?",
            "List their names and dates active as well."
        ],
        "interaction_query": [
            "SELECT name FROM storm WHERE number_deaths  =  0;",
            "SELECT number_deaths FROM storm WHERE number_deaths  >  0;",
            "SELECT name ,  dates_active ,  number_deaths FROM storm WHERE number_deaths  >=  1;"
        ]
    },
    {
        "db_id": "storm_record",
        "final_query": "SELECT avg(damage_millions_USD) ,  max(damage_millions_USD) FROM storm WHERE max_speed  >  1000;",
        "final_utterance": "Show the average and maximum damage for all storms with max speed higher than 1000.",
        "interaction_utterance": [
            "Show me in the maximum damage for storms with max speed no more than 1000.",
            "How about those with max speed higher than 1000?",
            "Show the average and maximum damage for all storms with max speed higher than 1000."
        ],
        "interaction_query": [
            "SELECT max(damage_millions_USD) FROM storm WHERE max_speed  <=  1000;",
            "SELECT max(damage_millions_USD) FROM storm WHERE max_speed  >  1000;",
            "SELECT avg(damage_millions_USD) ,  max(damage_millions_USD) FROM storm WHERE max_speed  >  1000;"
        ]
    },
    {
        "db_id": "storm_record",
        "final_query": "SELECT sum(number_deaths) ,  sum(damage_millions_USD) FROM storm WHERE max_speed  >  (SELECT avg(max_speed) FROM storm);",
        "final_utterance": "What is the total number of deaths and damage for all storms with a max speed greater than the average?",
        "interaction_utterance": [
            "What's the average max speed for all storms?",
            "What are the number of deaths and damage for all storms with a max speed greater than the average?",
            "How about the total death and total damage?"
        ],
        "interaction_query": [
            "SELECT avg(max_speed) FROM storm;",
            "SELECT number_deaths ,  damage_millions_USD FROM storm WHERE max_speed  >  (SELECT avg(max_speed) FROM storm);",
            "SELECT sum(number_deaths) ,  sum(damage_millions_USD) FROM storm WHERE max_speed  >  (SELECT avg(max_speed) FROM storm);"
        ]
    },
    {
        "db_id": "storm_record",
        "final_query": "SELECT name ,  damage_millions_USD FROM storm ORDER BY max_speed DESC;",
        "final_utterance": "List name and damage for all storms in a descending order of max speed.",
        "interaction_utterance": [
            "What's the date active for all storms?",
            "How about the name and damage of all storms?",
            "Order the result by a descending order of max speed."
        ],
        "interaction_query": [
            "SELECT dates_active FROM storm;",
            "SELECT name ,  damage_millions_USD FROM storm;",
            "SELECT name ,  damage_millions_USD FROM storm ORDER BY max_speed DESC;"
        ]
    },
    {
        "db_id": "storm_record",
        "final_query": "SELECT count(DISTINCT region_id) FROM affected_region",
        "final_utterance": "How many regions are affected?",
        "interaction_utterance": [
            "What are the names of the affected regions?",
            "Show the distinct region names.",
            "How many distinct affected regions are there?"
        ],
        "interaction_query": [
            "SELECT region.region_name FROM region JOIN affected_region ON affected_region.region_id = region.region_id;",
            "SELECT DISTINCT region.region_name FROM region JOIN affected_region ON affected_region.region_id = region.region_id;",
            "SELECT count(DISTINCT region_id) FROM affected_region"
        ]
    },
    {
        "db_id": "storm_record",
        "final_query": "SELECT region_name FROM region WHERE region_id NOT IN (SELECT region_id FROM affected_region);",
        "final_utterance": "Show the name for regions not affected.",
        "interaction_utterance": [
            "What are the names of the regions affected?",
            "How many are there?",
            "How about the names of regions not affected?"
        ],
        "interaction_query": [
            "SELECT region_name FROM region WHERE region_id IN (SELECT region_id FROM affected_region);",
            "SELECT count(region_name) FROM region WHERE region_id IN (SELECT region_id FROM affected_region);",
            "SELECT region_name FROM region WHERE region_id NOT IN (SELECT region_id FROM affected_region);"
        ]
    },
    {
        "db_id": "storm_record",
        "final_query": "SELECT T1.region_name ,  count(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id;",
        "final_utterance": "Show the name for regions and the number of storms for each region.",
        "interaction_utterance": [
            "Show me the storm ids for each region.",
            "What's the maximum number of storms of one region?",
            "Show the region names and the number of storms for each region."
        ],
        "interaction_query": [
            "SELECT T2.storm_id FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id;",
            "SELECT count(T2.storm_id) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id ORDER BY count(storm_id) DESC LIMIT 1;",
            "SELECT T1.region_name ,  count(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id;"
        ]
    },
    {
        "db_id": "storm_record",
        "final_query": "SELECT T1.name ,  count(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id;",
        "final_utterance": "List the name for storms and the number of affected regions for each storm.",
        "interaction_utterance": [
            "Show me the names of all storms that affect more than 1 regions?",
            "List the name for storms and the number of affected regions for each storm."
        ],
        "interaction_query": [
            "SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING count(*) > 1;",
            "SELECT T1.name ,  count(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id;"
        ]
    },
    {
        "db_id": "storm_record",
        "final_query": "SELECT T1.name ,  T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id ORDER BY count(*) DESC LIMIT 1;",
        "final_utterance": "What is the storm name and max speed which affected the greatest number of regions?",
        "interaction_utterance": [
            "What is the name for storms and the number of affected regions for each storm.",
            "Which storm affected the greatest number of regions?",
            "Show its max speed in addition to its name."
        ],
        "interaction_query": [
            "SELECT T1.name ,  count(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id;",
            "SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id ORDER BY count(*) DESC LIMIT 1;",
            "SELECT T1.name ,  T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id ORDER BY count(*) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "storm_record",
        "final_query": "SELECT name FROM storm WHERE storm_id NOT IN (SELECT storm_id FROM affected_region);",
        "final_utterance": "Show the name of storms which don't have affected region in record.",
        "interaction_utterance": [
            "What are the names of the storms that have affected regions in record?",
            "How many such storms are there in the result?",
            "How about the names of storms which don't have affected region in record."
        ],
        "interaction_query": [
            "SELECT name FROM storm WHERE storm_id IN (SELECT storm_id FROM affected_region);",
            "SELECT count(name) FROM storm WHERE storm_id IN (SELECT storm_id FROM affected_region);",
            "SELECT name FROM storm WHERE storm_id NOT IN (SELECT storm_id FROM affected_region);"
        ]
    },
    {
        "db_id": "storm_record",
        "final_query": "SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING count(*)  >=  2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING sum(T2.number_city_affected)  >=  10;",
        "final_utterance": "Show storm name with at least two regions and 10 cities affected.",
        "interaction_utterance": [
            "What is the name of the storm affected the most number of cities?",
            "How about of the storms that affected at least two regions?",
            "Among the result, which one affected at least 10 cities?"
        ],
        "interaction_query": [
            "SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id ORDER BY sum(T2.number_city_affected)  DESC LIMIT 1;",
            "SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING count(*)  >=  2;",
            "SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING count(*)  >=  2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING sum(T2.number_city_affected)  >=  10;"
        ]
    },
    {
        "db_id": "storm_record",
        "final_query": "SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING count(*)  >=  2;",
        "final_utterance": "Show all storm names except for those with at least two affected regions.",
        "interaction_utterance": [
            "Show me all the storms by name.",
            "List only ones with at least 2 affected regions.",
            "Show all names of the storms except for these."
        ],
        "interaction_query": [
            "SELECT name FROM storm;",
            "SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING count(*)  =  2;",
            "SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING count(*)  >=  2;"
        ]
    },
    {
        "db_id": "storm_record",
        "final_query": "SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T3.number_deaths  >=  10;",
        "final_utterance": "What are the region names affected by the storm with a number of deaths of least 10?",
        "interaction_utterance": [
            "Show me the regions affected by a storm with a damage of more than 10 million dollars?",
            "How about those with affected by storms with no more than 10 deaths?",
            "List the region names affected by the storm with a number of deaths of least 10."
        ],
        "interaction_query": [
            "SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T3.damage_millions_USD  >  10;",
            "SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T3.number_deaths  <=  10;",
            "SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T3.number_deaths  >=  10;"
        ]
    },
    {
        "db_id": "storm_record",
        "final_query": "SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T2.region_name  =  'Denmark';",
        "final_utterance": "Show all storm names affecting region \"Denmark\".",
        "interaction_utterance": [
            "Show me all the affected regions.",
            "Which storm affected region Cyprus?",
            "How about Denmark?"
        ],
        "interaction_query": [
            "SELECT region.region_name FROM region JOIN affected_region ON affected_region.region_id = region.region_id;",
            "SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T2.region_name  =  'Cyprus';",
            "SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T2.region_name  =  'Denmark';"
        ]
    },
    {
        "db_id": "storm_record",
        "final_query": "SELECT T1.region_name FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id HAVING count(*)  >=  2;",
        "final_utterance": "Show the region name with at least two storms.",
        "interaction_utterance": [
            "Show me the number of regions affected for each storm.",
            "How about the number of storms for each region?",
            "Show the region name with at least two storms."
        ],
        "interaction_query": [
            "SELECT T1.name ,  count(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id;",
            "SELECT T1.region_name ,  count(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id;",
            "SELECT T1.region_name FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id HAVING count(*)  >=  2;"
        ]
    },
    {
        "db_id": "storm_record",
        "final_query": "SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id ORDER BY T3.Number_Deaths DESC LIMIT 1",
        "final_utterance": "Find the names of the regions which were affected by the storm that killed the greatest number of people.",
        "interaction_utterance": [
            "Show me the number of people killed for each storm.",
            "What's the name of the one that killed the most people?",
            "What's the names of the regions affected by this storm?"
        ],
        "interaction_query": [
            "SELECT Number_Deaths FROM storm;",
            "SELECT name FROM storm ORDER BY Number_Deaths DESC LIMIT 1;",
            "SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id ORDER BY T3.Number_Deaths DESC LIMIT 1"
        ]
    },
    {
        "db_id": "gas_company",
        "final_query": "SELECT count(*) FROM company",
        "final_utterance": "How many gas companies are there?",
        "interaction_utterance": [
            "Show company information.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM company",
            "SELECT count(*) FROM company"
        ]
    },
    {
        "db_id": "gas_company",
        "final_query": "SELECT company ,  rank FROM company ORDER BY Sales_billion DESC",
        "final_utterance": "List the company name and rank for all companies in the decreasing order of their sales.",
        "interaction_utterance": [
            "Show the company names.",
            "Also show the rank for each.",
            "Show the results in decreasing order of their sales."
        ],
        "interaction_query": [
            "SELECT company FROM company",
            "SELECT company ,  rank FROM company",
            "SELECT company ,  rank FROM company ORDER BY Sales_billion DESC"
        ]
    },
    {
        "db_id": "gas_company",
        "final_query": "SELECT company ,  main_industry FROM company WHERE headquarters != 'USA'",
        "final_utterance": "Show the company name and the main industry for all companies whose headquarters are not from USA.",
        "interaction_utterance": [
            "Show the company name and the main industry for all companies.",
            "Show the results only for those whose headquarters are not from USA."
        ],
        "interaction_query": [
            "SELECT company ,  main_industry FROM company",
            "SELECT company ,  main_industry FROM company WHERE headquarters != 'USA'"
        ]
    },
    {
        "db_id": "gas_company",
        "final_query": "SELECT company ,  headquarters FROM company ORDER BY market_value DESC",
        "final_utterance": "Show all company names and headquarters in the descending order of market value.",
        "interaction_utterance": [
            "Show all company names and headquarters.",
            "Show them in the descending order of market value."
        ],
        "interaction_query": [
            "SELECT company ,  headquarters FROM company",
            "SELECT company ,  headquarters FROM company ORDER BY market_value DESC"
        ]
    },
    {
        "db_id": "gas_company",
        "final_query": "SELECT min(market_value) ,  max(market_value) ,  avg(market_value) FROM company",
        "final_utterance": "Show minimum, maximum, and average market value for all companies.",
        "interaction_utterance": [
            "Show the market value for all companies.",
            "What are the minimum, maximum, and average of them?"
        ],
        "interaction_query": [
            "SELECT market_value FROM company",
            "SELECT min(market_value) ,  max(market_value) ,  avg(market_value) FROM company"
        ]
    },
    {
        "db_id": "gas_company",
        "final_query": "SELECT DISTINCT main_industry FROM company",
        "final_utterance": "Show all main industry for all companies.",
        "interaction_utterance": [
            "Show the company info.",
            "Show the main industry for them.",
            "Remove duplicates."
        ],
        "interaction_query": [
            "select * from company",
            "SELECT main_industry FROM company",
            "SELECT DISTINCT main_industry FROM company"
        ]
    },
    {
        "db_id": "gas_company",
        "final_query": "SELECT headquarters ,  count(*) FROM company GROUP BY headquarters",
        "final_utterance": "List all headquarters and the number of companies in each headquarter.",
        "interaction_utterance": [
            "Show all headquarters for companies.",
            "For each of them, show the number of companies."
        ],
        "interaction_query": [
            "SELECT headquarters FROM company",
            "SELECT headquarters ,  count(*) FROM company GROUP BY headquarters"
        ]
    },
    {
        "db_id": "gas_company",
        "final_query": "SELECT main_industry ,  sum(market_value) FROM company GROUP BY main_industry",
        "final_utterance": "Show all main industry and total market value in each industry.",
        "interaction_utterance": [
            "Show all main industries for companies.",
            "For each of them, also show the total market value."
        ],
        "interaction_query": [
            "SELECT main_industry FROM company",
            "SELECT main_industry ,  sum(market_value) FROM company GROUP BY main_industry"
        ]
    },
    {
        "db_id": "gas_company",
        "final_query": "SELECT main_industry ,  count(*) FROM company GROUP BY main_industry ORDER BY sum(market_value) DESC LIMIT 1",
        "final_utterance": "List the main industry with highest total market value and its number of companies.",
        "interaction_utterance": [
            "Show all the main industries for companies.",
            "Order them in descending order by total market value.",
            "What one has the highest?",
            "Also show its number of companies."
        ],
        "interaction_query": [
            "SELECT main_industry FROM company",
            "SELECT main_industry FROM company GROUP BY main_industry ORDER BY sum(market_value) DESC",
            "SELECT main_industry FROM company GROUP BY main_industry ORDER BY sum(market_value) DESC LIMIT 1",
            "SELECT main_industry ,  count(*) FROM company GROUP BY main_industry ORDER BY sum(market_value) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "gas_company",
        "final_query": "SELECT headquarters FROM company WHERE main_industry  =  'Banking' GROUP BY headquarters HAVING count(*)  >=  2",
        "final_utterance": "Show headquarters with at least two companies in the banking industry.",
        "interaction_utterance": [
            "Show all headquarters.",
            "For each of them, also show the number of companies in the banking industry.",
            "Which have at least two?"
        ],
        "interaction_query": [
            "SELECT headquarters FROM company",
            "SELECT headquarters, count(*) FROM company WHERE main_industry  =  'Banking' GROUP BY headquarters",
            "SELECT headquarters FROM company WHERE main_industry  =  'Banking' GROUP BY headquarters HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "gas_company",
        "final_query": "SELECT station_id ,  LOCATION ,  manager_name FROM gas_station ORDER BY open_year",
        "final_utterance": "Show gas station id, location, and manager_name for all gas stations ordered by open year.",
        "interaction_utterance": [
            "Show the station id for all stations.",
            "Also show the location and the manager name for each of them.",
            "Order the results by their opening year."
        ],
        "interaction_query": [
            "SELECT station_id FROM gas_station",
            "SELECT station_id ,  LOCATION ,  manager_name FROM gas_station",
            "SELECT station_id ,  LOCATION ,  manager_name FROM gas_station ORDER BY open_year"
        ]
    },
    {
        "db_id": "gas_company",
        "final_query": "SELECT count(*) FROM gas_station WHERE open_year BETWEEN 2000 AND 2005",
        "final_utterance": "How many gas station are opened between 2000 and 2005?",
        "interaction_utterance": [
            "Show the information for all gas stations.",
            "How about those that opened between 2000 and 2005?",
            "Show the count."
        ],
        "interaction_query": [
            "SELECT * FROM gas_station",
            "SELECT * FROM gas_station WHERE open_year BETWEEN 2000 AND 2005",
            "SELECT count(*) FROM gas_station WHERE open_year BETWEEN 2000 AND 2005"
        ]
    },
    {
        "db_id": "gas_company",
        "final_query": "SELECT LOCATION ,  count(*) FROM gas_station GROUP BY LOCATION ORDER BY count(*)",
        "final_utterance": "Show all locations and the number of gas stations in each location ordered by the count.",
        "interaction_utterance": [
            "Show locations for all gas stations.",
            "For each of them, show the number of gas stations.",
            "Order the results by the count."
        ],
        "interaction_query": [
            "SELECT LOCATION FROM gas_station",
            "SELECT LOCATION ,  count(*) FROM gas_station GROUP BY LOCATION",
            "SELECT LOCATION ,  count(*) FROM gas_station GROUP BY LOCATION ORDER BY count(*)"
        ]
    },
    {
        "db_id": "gas_company",
        "final_query": "SELECT headquarters FROM company WHERE main_industry  =  'Banking' INTERSECT SELECT headquarters FROM company WHERE main_industry  =  'Oil and gas'",
        "final_utterance": "Show all headquarters with both a company in banking industry and a company in Oil and gas.",
        "interaction_utterance": [
            "Show all headquarters.",
            "Show headquarters with a company in the banking industry.",
            "How about headquarters with a company in oil and gas?",
            "Show headquarters with both."
        ],
        "interaction_query": [
            "SELECT headquarters FROM company",
            "SELECT headquarters FROM company WHERE main_industry  =  'Banking'",
            "SELECT headquarters FROM company WHERE main_industry  =  'Oil and gas'",
            "SELECT headquarters FROM company WHERE main_industry  =  'Banking' INTERSECT SELECT headquarters FROM company WHERE main_industry  =  'Oil and gas'"
        ]
    },
    {
        "db_id": "gas_company",
        "final_query": "SELECT headquarters FROM company EXCEPT SELECT headquarters FROM company WHERE main_industry  =  'Banking'",
        "final_utterance": "Show all headquarters without a company in banking industry.",
        "interaction_utterance": [
            "Show the headquarters with a company in banking industry.",
            "How about those without any such company?"
        ],
        "interaction_query": [
            "SELECT headquarters FROM company WHERE main_industry  =  'Banking'",
            "SELECT headquarters FROM company EXCEPT SELECT headquarters FROM company WHERE main_industry  =  'Banking'"
        ]
    },
    {
        "db_id": "gas_company",
        "final_query": "SELECT T2.company ,  count(*) FROM station_company AS T1 JOIN company AS T2 ON T1.company_id  =  T2.company_id GROUP BY T1.company_id",
        "final_utterance": "Show the company name with the number of gas station.",
        "interaction_utterance": [
            "Show the company name.",
            "For each of them, also show the number of gas station."
        ],
        "interaction_query": [
            "select company from company",
            "SELECT T2.company ,  count(*) FROM station_company AS T1 JOIN company AS T2 ON T1.company_id  =  T2.company_id GROUP BY T1.company_id"
        ]
    },
    {
        "db_id": "gas_company",
        "final_query": "SELECT company ,  main_industry FROM company WHERE company_id NOT IN (SELECT company_id FROM station_company)",
        "final_utterance": "Show company name and main industry without a gas station.",
        "interaction_utterance": [
            "What are company ids with a gas station.",
            "Show the company name without a gas station.",
            "Show also their main industry."
        ],
        "interaction_query": [
            "SELECT company_id FROM station_company",
            "SELECT company  FROM company WHERE company_id NOT IN (SELECT company_id FROM station_company)",
            "SELECT company ,  main_industry FROM company WHERE company_id NOT IN (SELECT company_id FROM station_company)"
        ]
    },
    {
        "db_id": "gas_company",
        "final_query": "SELECT T3.manager_name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id  =  T2.company_id JOIN gas_station AS T3 ON T1.station_id  =  T3.station_id WHERE T2.company  =  'ExxonMobil'",
        "final_utterance": "Show the manager name for gas stations belonging to the ExxonMobil company.",
        "interaction_utterance": [
            "Show the manager name for all gas stations.",
            "Show those for gas stations belonging to the ExxonMobil company."
        ],
        "interaction_query": [
            "SELECT manager_name FROM gas_station",
            "SELECT T3.manager_name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id  =  T2.company_id JOIN gas_station AS T3 ON T1.station_id  =  T3.station_id WHERE T2.company  =  'ExxonMobil'"
        ]
    },
    {
        "db_id": "gas_company",
        "final_query": "SELECT T3.location FROM station_company AS T1 JOIN company AS T2 ON T1.company_id  =  T2.company_id JOIN gas_station AS T3 ON T1.station_id  =  T3.station_id WHERE T2.market_value  >  100",
        "final_utterance": "Show all locations where a gas station for company with market value greater than 100 is located.",
        "interaction_utterance": [
            "Show locations for all gas stations.",
            "Show locations whose company has a market value greater than 100."
        ],
        "interaction_query": [
            "SELECT location FROM gas_station",
            "SELECT T3.location FROM station_company AS T1 JOIN company AS T2 ON T1.company_id  =  T2.company_id JOIN gas_station AS T3 ON T1.station_id  =  T3.station_id WHERE T2.market_value  >  100"
        ]
    },
    {
        "db_id": "gas_company",
        "final_query": "SELECT manager_name FROM gas_station WHERE open_year  >  2000 GROUP BY manager_name ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Show the manager name with most number of gas stations opened after 2000.",
        "interaction_utterance": [
            "Show the manager name for all gas stations.",
            "For each of them, also count the number of gas stations opened after 2000.",
            "Show the results in the descending order of their count.",
            "Which manager name has the most?"
        ],
        "interaction_query": [
            "SELECT manager_name FROM gas_station",
            "SELECT manager_name, count(*) FROM gas_station WHERE open_year  >  2000 GROUP BY manager_name",
            "SELECT manager_name, count(*) FROM gas_station WHERE open_year  >  2000 GROUP BY manager_name ORDER BY count(*) DESC",
            "SELECT manager_name FROM gas_station WHERE open_year  >  2000 GROUP BY manager_name ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "gas_company",
        "final_query": "SELECT LOCATION FROM gas_station ORDER BY open_year",
        "final_utterance": "order all gas station locations by the opening year.",
        "interaction_utterance": [
            "Show the location for all gas stations.",
            "Order them by their opening year."
        ],
        "interaction_query": [
            "SELECT LOCATION FROM gas_station",
            "SELECT LOCATION FROM gas_station ORDER BY open_year"
        ]
    },
    {
        "db_id": "gas_company",
        "final_query": "SELECT rank ,  company ,  market_value FROM company WHERE main_industry  =  'Banking' ORDER BY sales_billion ,  profits_billion",
        "final_utterance": "find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion.",
        "interaction_utterance": [
            "Show the rank, company names, market values of all the companies.",
            "What about the results for those in the banking industry?",
            "Order the results by their sales and profits in billion."
        ],
        "interaction_query": [
            "SELECT rank ,  company ,  market_value FROM company",
            "SELECT rank ,  company ,  market_value FROM company WHERE main_industry  =  'Banking'",
            "SELECT rank ,  company ,  market_value FROM company WHERE main_industry  =  'Banking' ORDER BY sales_billion ,  profits_billion"
        ]
    },
    {
        "db_id": "solvency_ii",
        "final_query": "SELECT Product_Price FROM Products WHERE Product_Name  =  \"Dining\" OR Product_Name  =  \"Trading Policy\"",
        "final_utterance": "Show the prices of the products named \"Dining\" or \"Trading Policy\".",
        "interaction_utterance": [
            "What are the prices of products called \"Trading Policy\"?",
            "How bout \"Dining\"?",
            "Show those together, please."
        ],
        "interaction_query": [
            "SELECT Product_Price FROM Products WHERE Product_Name  =  \"Trading Policy\"",
            "SELECT Product_Price FROM Products WHERE Product_Name  =  \"Dining\"",
            "SELECT Product_Price FROM Products WHERE Product_Name  =  \"Dining\" OR Product_Name  =  \"Trading Policy\""
        ]
    },
    {
        "db_id": "solvency_ii",
        "final_query": "SELECT Product_Name FROM Products ORDER BY Product_Price DESC LIMIT 1",
        "final_utterance": "What is the name of the product with the highest price?",
        "interaction_utterance": [
            "What are the prices of the products?",
            "Can you sort that by descending product price?",
            "Just show the product name with the highest price"
        ],
        "interaction_query": [
            "SELECT Product_Name, Product_Price FROM Products",
            "SELECT Product_Name, Product_Price FROM Products ORDER BY Product_Price DESC",
            "SELECT Product_Name FROM Products ORDER BY Product_Price DESC LIMIT 1"
        ]
    },
    {
        "db_id": "solvency_ii",
        "final_query": "SELECT Product_Type_Code FROM Products GROUP BY Product_Type_Code ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the most common type code across products.",
        "interaction_utterance": [
            "What are the type codes for products?",
            "Can you count the products for each type code?",
            "Which is most common?",
            "Show the ones with at least two products.",
            "Show those ones that have products with price higher than 4500 and products with price lower than 3000."
        ],
        "interaction_query": [
            "SELECT Product_Name, Product_Type_Code FROM Products",
            "SELECT Product_Type_Code, COUNT(*) FROM Products group by product_type_code",
            "SELECT Product_Type_Code FROM Products GROUP BY Product_Type_Code ORDER BY COUNT(*) DESC LIMIT 1",
            "SELECT Product_Type_Code FROM Products GROUP BY Product_Type_Code HAVING COUNT(*)  >=  2",
            "SELECT Product_Type_Code FROM Products WHERE Product_Price  >  4500 INTERSECT SELECT Product_Type_Code FROM Products WHERE Product_Price  <  3000"
        ]
    },
    {
        "db_id": "cinema",
        "final_query": "SELECT LOCATION FROM cinema EXCEPT SELECT LOCATION FROM cinema WHERE capacity  >  800",
        "final_utterance": "Show all the locations where no cinema has capacity over 800.",
        "interaction_utterance": [
            "Show the locations for all cinemas.",
            "What are the locations for the cinemas that have a capacity over 800?",
            "Show all locations except for those."
        ],
        "interaction_query": [
            "SELECT LOCATION FROM cinema",
            "SELECT LOCATION FROM cinema WHERE capacity  >  800",
            "SELECT LOCATION FROM cinema EXCEPT SELECT LOCATION FROM cinema WHERE capacity  >  800"
        ]
    },
    {
        "db_id": "cinema",
        "final_query": "SELECT LOCATION FROM cinema WHERE openning_year  =  2010 INTERSECT SELECT LOCATION FROM cinema WHERE openning_year  =  2011",
        "final_utterance": "Show all the locations where some cinemas were opened in both year 2010 and year 2011.",
        "interaction_utterance": [
            "List the locations where a cinema was opened in 2010.",
            "How about the locations where of cinema was opened in 2011?",
            "Show the locations that belong to both groups."
        ],
        "interaction_query": [
            "SELECT LOCATION FROM cinema WHERE openning_year  =  2010",
            "SELECT LOCATION FROM cinema WHERE openning_year  =  2011",
            "SELECT LOCATION FROM cinema WHERE openning_year  =  2010 INTERSECT SELECT LOCATION FROM cinema WHERE openning_year  =  2011"
        ]
    },
    {
        "db_id": "cinema",
        "final_query": "SELECT count(*) FROM cinema",
        "final_utterance": "How many cinema do we have?",
        "interaction_utterance": [
            "Show all cinemas.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM cinema",
            "SELECT count(*) FROM cinema"
        ]
    },
    {
        "db_id": "cinema",
        "final_query": "SELECT name ,  openning_year ,  capacity FROM cinema",
        "final_utterance": "Show name, opening year, and capacity for each cinema.",
        "interaction_utterance": [
            "Show all information for cinemas.",
            "Only list name, opening year, and capacity for them."
        ],
        "interaction_query": [
            "SELECT * FROM cinema",
            "SELECT name ,  openning_year ,  capacity FROM cinema"
        ]
    },
    {
        "db_id": "cinema",
        "final_query": "SELECT name ,  LOCATION FROM cinema WHERE capacity  >  (SELECT avg(capacity) FROM cinema)",
        "final_utterance": "Show the cinema name and location for cinemas with capacity above average.",
        "interaction_utterance": [
            "What is are the capacities for cinemas?",
            "What is the average?",
            "Show the name and location for any cinemas with a capacity above this."
        ],
        "interaction_query": [
            "SELECT capacity FROM cinema",
            "SELECT avg(capacity) FROM cinema",
            "SELECT name ,  LOCATION FROM cinema WHERE capacity  >  (SELECT avg(capacity) FROM cinema)"
        ]
    },
    {
        "db_id": "cinema",
        "final_query": "SELECT DISTINCT LOCATION FROM cinema",
        "final_utterance": "What are all the locations with a cinema?",
        "interaction_utterance": [
            "Show all information for cinemas.",
            "Show all distinct locations containing cinemas."
        ],
        "interaction_query": [
            "SELECT * FROM cinema",
            "SELECT DISTINCT LOCATION FROM cinema"
        ]
    },
    {
        "db_id": "cinema",
        "final_query": "SELECT name ,  openning_year FROM cinema ORDER BY openning_year DESC",
        "final_utterance": "Show all the cinema names and opening years in descending order of opening year.",
        "interaction_utterance": [
            "Show name and opening year for each cinema.",
            "Sort them in descending order by opening year."
        ],
        "interaction_query": [
            "SELECT name ,  openning_year FROM cinema",
            "SELECT name ,  openning_year FROM cinema ORDER BY openning_year DESC"
        ]
    },
    {
        "db_id": "cinema",
        "final_query": "SELECT name ,  LOCATION FROM cinema ORDER BY capacity DESC LIMIT 1",
        "final_utterance": "What are the name and location of the cinema with the largest capacity?",
        "interaction_utterance": [
            "Show name and location for all cinemas.",
            "Order by them their capacity in descending order.",
            "What is the top cinema in the list?"
        ],
        "interaction_query": [
            "SELECT name ,  LOCATION FROM cinema",
            "SELECT name ,  LOCATION FROM cinema ORDER BY capacity DESC",
            "SELECT name ,  LOCATION FROM cinema ORDER BY capacity DESC LIMIT 1"
        ]
    },
    {
        "db_id": "cinema",
        "final_query": "SELECT avg(capacity) ,  min(capacity) ,  max(capacity) FROM cinema WHERE openning_year  >=  2011",
        "final_utterance": "Show the average, minimum, and maximum capacity for all the cinemas opened in year 2011 or later.",
        "interaction_utterance": [
            "Show the capacities for all cinemas.",
            "How about the capacities for those that opened in 2011 or later?",
            "What is the average, minimum, and maximum among these?"
        ],
        "interaction_query": [
            "Select capacity from cinema",
            "Select capacity from cinema WHERE openning_year  >=  2011",
            "SELECT avg(capacity) ,  min(capacity) ,  max(capacity) FROM cinema WHERE openning_year  >=  2011"
        ]
    },
    {
        "db_id": "cinema",
        "final_query": "SELECT LOCATION ,  count(*) FROM cinema GROUP BY LOCATION",
        "final_utterance": "Show each location and the number of cinemas there.",
        "interaction_utterance": [
            "Show all locations for cinemas.",
            "Also show the number of cinemas in each location."
        ],
        "interaction_query": [
            "select location from cinema",
            "SELECT LOCATION ,  count(*) FROM cinema GROUP BY LOCATION"
        ]
    },
    {
        "db_id": "cinema",
        "final_query": "SELECT LOCATION FROM cinema WHERE openning_year  >=  2010 GROUP BY LOCATION ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the location with the most cinemas opened in year 2010 or later?",
        "interaction_utterance": [
            "Show all locations with cinemas.",
            "How about locations for those that opened in year 2010 or later?",
            "What is the location with the most such cinemas?"
        ],
        "interaction_query": [
            "SELECT LOCATION FROM cinema",
            "SELECT LOCATION FROM cinema WHERE openning_year  >=  2010",
            "SELECT LOCATION FROM cinema WHERE openning_year  >=  2010 GROUP BY LOCATION ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "cinema",
        "final_query": "SELECT LOCATION FROM cinema WHERE capacity  >  300 GROUP BY LOCATION HAVING count(*)  >=  2",
        "final_utterance": "Show all the locations with at least two cinemas with capacity above 300.",
        "interaction_utterance": [
            "Show all locations of cinemas.",
            "What are locations for the cinemas with a capacity above 300?",
            "What are locations with at least two such cinemas?"
        ],
        "interaction_query": [
            "SELECT LOCATION FROM cinema",
            "SELECT LOCATION FROM cinema WHERE capacity  >  300",
            "SELECT LOCATION FROM cinema WHERE capacity  >  300 GROUP BY LOCATION HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "cinema",
        "final_query": "SELECT title ,  directed_by FROM film",
        "final_utterance": "Show the title and director for all films.",
        "interaction_utterance": [
            "Show all information of films.",
            "How about the title and director for those?"
        ],
        "interaction_query": [
            "SELECT * FROM film",
            "SELECT title ,  directed_by FROM film"
        ]
    },
    {
        "db_id": "cinema",
        "final_query": "SELECT DISTINCT directed_by FROM film",
        "final_utterance": "Show all directors.",
        "interaction_utterance": [
            "Show the information for all films.",
            "Who are the directors for those?"
        ],
        "interaction_query": [
            "SELECT * FROM film",
            "SELECT DISTINCT directed_by FROM film"
        ]
    },
    {
        "db_id": "cinema",
        "final_query": "SELECT directed_by ,  count(*) FROM film GROUP BY directed_by",
        "final_utterance": "List all directors along with the number of films directed by each director.",
        "interaction_utterance": [
            "Show directors for all films.",
            "Also show the number of films made by each director."
        ],
        "interaction_query": [
            "SELECT directed_by FROM film",
            "SELECT directed_by ,  count(*) FROM film GROUP BY directed_by"
        ]
    },
    {
        "db_id": "cinema",
        "final_query": "SELECT T2.name ,  sum(T1.show_times_per_day) FROM schedule AS T1 JOIN cinema AS T2 ON T1.cinema_id  =  T2.cinema_id GROUP BY T1.cinema_id",
        "final_utterance": "What is total number of show times per day for each cinema?",
        "interaction_utterance": [
            "Show the names for all cinemas.",
            "Also show the showtimes per day for those cinemas.",
            "For each cinema, also show the total number of showtimes per day."
        ],
        "interaction_query": [
            "select name from cinema",
            "SELECT T2.name ,  T1.show_times_per_day FROM schedule AS T1 JOIN cinema AS T2 ON T1.cinema_id  =  T2.cinema_id",
            "SELECT T2.name ,  sum(T1.show_times_per_day) FROM schedule AS T1 JOIN cinema AS T2 ON T1.cinema_id  =  T2.cinema_id GROUP BY T1.cinema_id"
        ]
    },
    {
        "db_id": "cinema",
        "final_query": "SELECT T2.title ,  max(T1.price) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id GROUP BY T1.film_id",
        "final_utterance": "What are the title and maximum price of each film?",
        "interaction_utterance": [
            "Show the title for each film.",
            "Also show the prices for each of them.",
            "What is the maximum price for each?"
        ],
        "interaction_query": [
            "select title from film",
            "SELECT T2.title ,  T1.price FROM schedule AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id",
            "SELECT T2.title ,  max(T1.price) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id GROUP BY T1.film_id"
        ]
    },
    {
        "db_id": "cinema",
        "final_query": "SELECT T3.name ,  T2.title ,  T1.date ,  T1.price FROM schedule AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id JOIN cinema AS T3 ON T1.cinema_id  =  T3.cinema_id",
        "final_utterance": "Show cinema name, film title, date, and price for each record in schedule.",
        "interaction_utterance": [
            "Show the title for films.",
            "Show the name for cinemas.",
            "Show all the schedule record.",
            "How about the date and the price for each of those records along with the film title and cinema name."
        ],
        "interaction_query": [
            "select title from film",
            "select name from cinema",
            "select * from schedule",
            "SELECT T3.name ,  T2.title ,  T1.date ,  T1.price FROM schedule AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id JOIN cinema AS T3 ON T1.cinema_id  =  T3.cinema_id"
        ]
    },
    {
        "db_id": "cinema",
        "final_query": "SELECT title ,  directed_by FROM film WHERE film_id NOT IN (SELECT film_id FROM schedule)",
        "final_utterance": "What are the title and director of the films without any schedule?",
        "interaction_utterance": [
            "Show all film ids in the schedule.",
            "Show the title and director for all films.",
            "Only show the title and director for films not in the schedule."
        ],
        "interaction_query": [
            "SELECT film_id FROM schedule",
            "SELECT title ,  directed_by FROM film",
            "SELECT title ,  directed_by FROM film WHERE film_id NOT IN (SELECT film_id FROM schedule)"
        ]
    },
    {
        "db_id": "cinema",
        "final_query": "SELECT T2.directed_by FROM schedule AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id GROUP BY T2.directed_by ORDER BY sum(T1.show_times_per_day) DESC LIMIT 1",
        "final_utterance": "Show director with the largest number of show times in total.",
        "interaction_utterance": [
            "Show all the directors.",
            "List those directors in descending order by the total number of showtimes.",
            "Who has the most?"
        ],
        "interaction_query": [
            "select directed_by from film",
            "SELECT T2.directed_by FROM schedule AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id GROUP BY T2.directed_by ORDER BY sum(T1.show_times_per_day) DESC",
            "SELECT T2.directed_by FROM schedule AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id GROUP BY T2.directed_by ORDER BY sum(T1.show_times_per_day) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "cinema",
        "final_query": "SELECT LOCATION FROM cinema WHERE capacity  >  300 GROUP BY LOCATION HAVING count(*)  >  1",
        "final_utterance": "Find the locations that have more than one movie theater with capacity above 300.",
        "interaction_utterance": [
            "Show all locations for the cinemas.",
            "Only show locations of cinemas with a capacity above 300.",
            "How about locations with more than one such cinema?"
        ],
        "interaction_query": [
            "SELECT LOCATION FROM cinema",
            "SELECT LOCATION FROM cinema WHERE capacity  >  300",
            "SELECT LOCATION FROM cinema WHERE capacity  >  300 GROUP BY LOCATION HAVING count(*)  >  1"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT count(*) FROM BOOKINGS",
        "final_utterance": "How many bookings do we have?",
        "interaction_utterance": [
            "What are all the bookings?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM BOOKINGS",
            "SELECT count(*) FROM BOOKINGS"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT Order_Date FROM BOOKINGS",
        "final_utterance": "List the order dates of all the bookings.",
        "interaction_utterance": [
            "What are all the bookings?",
            "What are their order dates?"
        ],
        "interaction_query": [
            "SELECT * FROM BOOKINGS",
            "SELECT Order_Date FROM BOOKINGS"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT Planned_Delivery_Date ,  Actual_Delivery_Date FROM BOOKINGS",
        "final_utterance": "Show all the planned delivery dates and actual delivery dates of bookings.",
        "interaction_utterance": [
            "What are all the bookings?",
            "What are their planned delivery dates and actual delivery dates?"
        ],
        "interaction_query": [
            "SELECT * FROM BOOKINGS",
            "SELECT Planned_Delivery_Date ,  Actual_Delivery_Date FROM BOOKINGS"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT count(*) FROM CUSTOMERS",
        "final_utterance": "How many customers do we have?",
        "interaction_utterance": [
            "What are all the customers?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM CUSTOMERS",
            "SELECT count(*) FROM CUSTOMERS"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT Customer_Phone ,  Customer_Email_Address FROM CUSTOMERS WHERE Customer_Name  =  \"Harold\"",
        "final_utterance": "What are the phone and email for customer Harold?",
        "interaction_utterance": [
            "What are all the customers?",
            "Who is Harold?",
            "Show Harold's phone and email."
        ],
        "interaction_query": [
            "SELECT * FROM CUSTOMERS",
            "SELECT * FROM CUSTOMERS WHERE Customer_Name  =  \"Harold\"",
            "SELECT Customer_Phone ,  Customer_Email_Address FROM CUSTOMERS WHERE Customer_Name  =  \"Harold\""
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT Store_Name FROM Drama_Workshop_Groups",
        "final_utterance": "Show all the Store_Name of drama workshop groups.",
        "interaction_utterance": [
            "What are all the drama workshop groups?",
            "What are their names?"
        ],
        "interaction_query": [
            "SELECT * FROM Drama_Workshop_Groups",
            "SELECT Store_Name FROM Drama_Workshop_Groups"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT min(Order_Quantity) ,  avg(Order_Quantity) ,  max(Order_Quantity) FROM INVOICES",
        "final_utterance": "Show the minimum, average, maximum order quantity of all invoices.",
        "interaction_utterance": [
            "What are all the invoices?",
            "What are their order quantities?",
            "Show the minimum, average, maximum of them."
        ],
        "interaction_query": [
            "SELECT * FROM INVOICES",
            "SELECT Order_Quantity FROM INVOICES",
            "SELECT min(Order_Quantity) ,  avg(Order_Quantity) ,  max(Order_Quantity) FROM INVOICES"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT DISTINCT payment_method_code FROM INVOICES",
        "final_utterance": "What are the distinct payment method codes in all the invoices?",
        "interaction_utterance": [
            "What are all the invoices?",
            "What are their payment method codes?",
            "Only show the distinct ones."
        ],
        "interaction_query": [
            "SELECT * FROM INVOICES",
            "SELECT payment_method_code FROM INVOICES",
            "SELECT DISTINCT payment_method_code FROM INVOICES"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name  =  \"China\"",
        "final_utterance": "What is the description of the marketing region China?",
        "interaction_utterance": [
            "What are all the marketing regions?",
            "Show me the region named China.",
            "Show the description of it."
        ],
        "interaction_query": [
            "SELECT * FROM Marketing_Regions",
            "SELECT * FROM Marketing_Regions WHERE Marketing_Region_Name  =  \"China\"",
            "SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name  =  \"China\""
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price  >  (SELECT avg(Product_Price) FROM PRODUCTS)",
        "final_utterance": "Show all the distinct product names with price higher than the average.",
        "interaction_utterance": [
            "What are all the products?",
            "What about those with price higher than average?",
            "Show their distinct names."
        ],
        "interaction_query": [
            "SELECT * FROM PRODUCTS",
            "SELECT * FROM PRODUCTS WHERE Product_Price  >  (SELECT avg(Product_Price) FROM PRODUCTS)",
            "SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price  >  (SELECT avg(Product_Price) FROM PRODUCTS)"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT Product_Name FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1",
        "final_utterance": "What is the name of the most expensive product?",
        "interaction_utterance": [
            "What are all the products?",
            "which is the one with the highest price?",
            "Only show its name."
        ],
        "interaction_query": [
            "SELECT * FROM PRODUCTS",
            "SELECT * FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1",
            "SELECT Product_Name FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name  =  \"Ashley\"",
        "final_utterance": "What is the phone number of the performer Ashley?",
        "interaction_utterance": [
            "What are all the performers?",
            "Show the phone number of the performer whose name is Ashley."
        ],
        "interaction_query": [
            "SELECT * FROM PERFORMERS",
            "SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name  =  \"Ashley\""
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT payment_method_code ,  count(*) FROM INVOICES GROUP BY payment_method_code",
        "final_utterance": "Show all payment method codes and the number of orders for each code.",
        "interaction_utterance": [
            "What are all the invoices?",
            "Show all kinds of payment method codes among them.",
            "How many orders are there for each of them?"
        ],
        "interaction_query": [
            "SELECT * FROM INVOICES",
            "SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code",
            "SELECT payment_method_code ,  count(*) FROM INVOICES GROUP BY payment_method_code"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the payment method code used by the most orders?",
        "interaction_utterance": [
            "What are all the invoices?",
            "Show all kinds of payment method codes among them.",
            "Which one is used by most orders?"
        ],
        "interaction_query": [
            "SELECT * FROM INVOICES",
            "SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code",
            "SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T2.Store_Name  =  \"FJA Filming\"",
        "final_utterance": "Which city is the address of the store named \"FJA Filming\" located in?",
        "interaction_utterance": [
            "Show me information about the store named \"FJA Filming\".",
            "Which city is that store located in?"
        ],
        "interaction_query": [
            "SELECT * FROM Stores WHERE Store_Name  =  \"FJA Filming\"",
            "SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T2.Store_Name  =  \"FJA Filming\""
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T2.Marketing_Region_Code  =  \"CA\"",
        "final_utterance": "What are the states or counties of the address of the stores with marketing region code \"CA\"?",
        "interaction_utterance": [
            "What are the stores with marketing region code \"CA\"?",
            "What are their addresses?",
            "What are the states or counties those addresses belong to?"
        ],
        "interaction_query": [
            "SELECT * FROM Stores where Marketing_Region_Code  =  \"CA\"",
            "SELECT line_1, line_2 FROM Stores AS T1 JOIN addresses AS T2 on T1.address_ID = T2.address_ID where Marketing_Region_Code  =  \"CA\"",
            "SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T2.Marketing_Region_Code  =  \"CA\""
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code  =  T2.Marketing_Region_Code WHERE T2.Store_Name  =  \"Rob Dinning\"",
        "final_utterance": "What is the name of the marketing region that the store Rob Dinning belongs to?",
        "interaction_utterance": [
            "Show me information about the store named Rob Dinning?",
            "What is the name of its marketing region?"
        ],
        "interaction_query": [
            "SELECT * FROM Stores WHERE Store_Name  =  \"Rob Dinning\"",
            "SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code  =  T2.Marketing_Region_Code WHERE T2.Store_Name  =  \"Rob Dinning\""
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code WHERE T2.Product_Price  >  100",
        "final_utterance": "What are the descriptions of the service types with product price above 100?",
        "interaction_utterance": [
            "What are the services with product price above 100?",
            "What are the descriptions of the service types of them?"
        ],
        "interaction_query": [
            "SELECT * FROM Services WHERE Product_Price  >  100",
            "SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code WHERE T2.Product_Price  >  100"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT T1.Service_Type_Description ,  T2.Service_Type_Code ,  COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T2.Service_Type_Code",
        "final_utterance": "What is the description, code and the corresponding count of each service type?",
        "interaction_utterance": [
            "What are all the service types?",
            "For each of them, what is the description, code and the corresponding count of service?"
        ],
        "interaction_query": [
            "SELECT * FROM Ref_Service_Types",
            "SELECT T1.Service_Type_Description ,  T2.Service_Type_Code ,  COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T2.Service_Type_Code"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT T1.Service_Type_Description , T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "What is the description and code of the type of service that is performed the most often?",
        "interaction_utterance": [
            "What are all the service types?",
            "How many times has each of them being performed?",
            "Show the description and code of the one that is performed the most often."
        ],
        "interaction_query": [
            "SELECT * FROM Ref_Service_Types",
            "SELECT T1.Service_Type_Description , T1.Service_Type_Code, count(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T1.Service_Type_Code",
            "SELECT T1.Service_Type_Description , T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT T1.Store_Phone ,  T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID",
        "final_utterance": "What are the phones and emails of workshop groups in which services are performed?",
        "interaction_utterance": [
            "What are all the workshop groups?",
            "What about those that services are performed?",
            "Show their phones and emails."
        ],
        "interaction_query": [
            "SELECT * FROM Drama_Workshop_Groups",
            "SELECT * FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID",
            "SELECT T1.Store_Phone ,  T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT T1.Store_Phone ,  T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID WHERE T2.Product_Name  =  \"film\"",
        "final_utterance": "What are the names of workshop groups in which services with product name \"film\" are performed?",
        "interaction_utterance": [
            "What are all the services with product name \"film\"?",
            "What are the names of workshop groups in which they are performed?"
        ],
        "interaction_query": [
            "SELECT * FROM Services WHERE Product_Name = \"film\"",
            "SELECT T1.Store_Phone ,  T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID WHERE T2.Product_Name  =  \"film\""
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT Product_Name ,  avg(Product_Price) FROM PRODUCTS GROUP BY Product_Name",
        "final_utterance": "What are the different product names? What is the average product price for each of them?",
        "interaction_utterance": [
            "What are all the products?",
            "Show all product names.",
            "Show the average price for each name."
        ],
        "interaction_query": [
            "SELECT * FROM PRODUCTS",
            "SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name",
            "SELECT Product_Name ,  avg(Product_Price) FROM PRODUCTS GROUP BY Product_Name"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING avg(Product_Price)  <  1000000",
        "final_utterance": "What are the product names with average product price smaller than 1000000?",
        "interaction_utterance": [
            "What are the names for all products?",
            "Show the one that has average price smaller than 1000000."
        ],
        "interaction_query": [
            "SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name",
            "SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING avg(Product_Price)  <  1000000"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT sum(T1.Order_Quantity) FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID  =  T2.Product_ID WHERE T2.Product_Name  =  \"photo\"",
        "final_utterance": "What are the total order quantities of photo products?",
        "interaction_utterance": [
            "What are all the photo products?",
            "What are the total order quantities of them?"
        ],
        "interaction_query": [
            "SELECT * FROM Products where Product_Name = \"photo\"",
            "SELECT sum(T1.Order_Quantity) FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID  =  T2.Product_ID WHERE T2.Product_Name  =  \"photo\""
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT T1.Other_Item_Details FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID  =  T2.Product_ID WHERE T2.Product_price  >  2000",
        "final_utterance": "What are the order details of the products with price higher than 2000?",
        "interaction_utterance": [
            "What are all the products with price higher than 2000?",
            "What are the order details of them?"
        ],
        "interaction_query": [
            "SELECT * FROM Products where Product_price  >  2000",
            "SELECT T1.Other_Item_Details FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID  =  T2.Product_ID WHERE T2.Product_price  >  2000"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID  =  T2.Order_ID WHERE T2.Order_Quantity  =  1",
        "final_utterance": "What are the actual delivery dates of orders with quantity 1?",
        "interaction_utterance": [
            "What are the orders with quantity 1?",
            "Show the actual delivery dates of them."
        ],
        "interaction_query": [
            "SELECT * FROM ORDER_ITEMS WHERE Order_Quantity  =  1",
            "SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID  =  T2.Order_ID WHERE T2.Order_Quantity  =  1"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT T1.Order_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID  =  T2.Order_ID JOIN Products AS T3 ON T2.Product_ID  =  T3.Product_ID WHERE T3.Product_price  >  1000",
        "final_utterance": "What are the order dates of orders with price higher than 1000?",
        "interaction_utterance": [
            "What are the products with price higher than 1000?",
            "What are their order dates?"
        ],
        "interaction_query": [
            "SELECT * FROM Products where Product_price  >  1000",
            "SELECT T1.Order_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID  =  T2.Order_ID JOIN Products AS T3 ON T2.Product_ID  =  T3.Product_ID WHERE T3.Product_price  >  1000"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups",
        "final_utterance": "How many distinct currency codes are there for all drama workshop groups?",
        "interaction_utterance": [
            "What are the currency codes for all drama workshop groups?",
            "Only show the distinct ones.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT Currency_Code FROM Drama_Workshop_Groups",
            "SELECT DISTINCT Currency_Code FROM Drama_Workshop_Groups",
            "SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T1.City_Town  =  \"Feliciaberg\"",
        "final_utterance": "What are the names of the drama workshop groups with address in Feliciaberg city?",
        "interaction_utterance": [
            "What are the addresses in Feliciaberg city?",
            "Show the drama workshop groups that are in those addresses."
        ],
        "interaction_query": [
            "SELECT * FROM Addresses where City_Town = \"Feliciaberg\"",
            "SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T1.City_Town  =  \"Feliciaberg\""
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT T2.Store_Email_Address FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T1.State_County  =  \"Alaska\"",
        "final_utterance": "What are the email addresses of the drama workshop groups with address in Alaska state?",
        "interaction_utterance": [
            "What are the addresses in Alaska state?",
            "Show the names of drama workshop groups that are using those addresses?"
        ],
        "interaction_query": [
            "SELECT * FROM Addresses where State_County = \"Alaska\"",
            "SELECT T2.Store_Email_Address FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T1.State_County  =  \"Alaska\""
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT T1.City_Town ,  count(*) FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID  =  T2.Address_ID GROUP BY T1.City_Town",
        "final_utterance": "Show all cities along with the number of drama workshop groups in each city.",
        "interaction_utterance": [
            "What are all the cities?",
            "How many drama workshop groups are in each of them?"
        ],
        "interaction_query": [
            "SELECT City_Town FROM Addresses GROUP BY City_Town",
            "SELECT T1.City_Town ,  count(*) FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID  =  T2.Address_ID GROUP BY T1.City_Town"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the marketing region code that has the most drama workshop groups?",
        "interaction_utterance": [
            "What are the market region codes of all the drama workshop groups?",
            "Which one of them has the most drama workshop groups?"
        ],
        "interaction_query": [
            "SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code",
            "SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID  =  T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID  =  T2.Address_ID",
        "final_utterance": "Show all cities where at least one customer lives in but no performer lives in.",
        "interaction_utterance": [
            "Show me all the cities.",
            "Which ones of them has at least one customer?",
            "Among those cities, show ones that has no performer."
        ],
        "interaction_query": [
            "SELECT City_Town FROM Addresses",
            "SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID  =  T2.Address_ID",
            "SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID  =  T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID  =  T2.Address_ID"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT Status_Code FROM BOOKINGS GROUP BY Status_Code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the most frequent status of bookings?",
        "interaction_utterance": [
            "What are the status of all the bookings?",
            "Which one of them is the most frequent one?"
        ],
        "interaction_query": [
            "SELECT distinct Status_Code FROM BOOKINGS",
            "SELECT Status_Code FROM BOOKINGS GROUP BY Status_Code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID WHERE T1.Status_Code  =  \"stop\"",
        "final_utterance": "What are the names of the workshop groups that have bookings with status code \"stop\"?",
        "interaction_utterance": [
            "Which bookings have status code \"stop\"?",
            "Show the names of the workshop groups that have those bookings."
        ],
        "interaction_query": [
            "SELECT * FROM BOOKINGS WHERE Status_Code  =  \"stop\"",
            "SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID WHERE T1.Status_Code  =  \"stop\""
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT Customer_Name FROM Clients EXCEPT SELECT T2.Customer_Name FROM Bookings AS T1 JOIN Clients AS T2 ON T1.Customer_ID  =  T2.Client_ID",
        "final_utterance": "Show the names of all the clients with no booking.",
        "interaction_utterance": [
            "What are the names of all the clients?",
            "How about those who have no booking?"
        ],
        "interaction_query": [
            "SELECT Customer_Name FROM Clients",
            "SELECT Customer_Name FROM Clients EXCEPT SELECT T2.Customer_Name FROM Bookings AS T1 JOIN Clients AS T2 ON T1.Customer_ID  =  T2.Client_ID"
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT avg(Order_Quantity) FROM Invoices WHERE payment_method_code  =  \"MasterCard\"",
        "final_utterance": "What is the average quantities ordered with payment method code \"MasterCard\" on invoices?",
        "interaction_utterance": [
            "What are all the invoices using \"MasterCard\"?",
            "Show the average quantities of them."
        ],
        "interaction_query": [
            "SELECT * FROM Invoices WHERE payment_method_code  =  \"MasterCard\"",
            "SELECT avg(Order_Quantity) FROM Invoices WHERE payment_method_code  =  \"MasterCard\""
        ]
    },
    {
        "db_id": "cre_Drama_Workshop_Groups",
        "final_query": "SELECT Product_ID FROM INVOICES GROUP BY Product_ID ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "What is the product ID of the most frequently ordered item on invoices?",
        "interaction_utterance": [
            "What are the product IDs of all the invoices?",
            "Show the one that has been ordered the most."
        ],
        "interaction_query": [
            "SELECT Product_ID FROM INVOICES",
            "SELECT Product_ID FROM INVOICES GROUP BY Product_ID ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "cre_Theme_park",
        "final_query": "SELECT avg(price_range) FROM HOTELS WHERE star_rating_code  =  \"5\" AND pets_allowed_yn  =  1",
        "final_utterance": "Show the average price range of hotels that have 5 star ratings and allow pets.",
        "interaction_utterance": [
            "How many hotels have 5 star ratings?",
            "Among the results, how many are hotels that allow pets?",
            "What one has the highest price range?",
            "Please show the average price range of these hotels."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM HOTELS WHERE star_rating_code  =  \"5\"",
            "SELECT COUNT(*) FROM HOTELS  WHERE star_rating_code  =  \"5\" AND pets_allowed_yn  =  1",
            "SELECT hotel_id FROM HOTELS  WHERE star_rating_code  =  \"5\" AND pets_allowed_yn  =  1 ORDER BY price_range DESC LIMIT 1",
            "SELECT avg(price_range) FROM HOTELS WHERE star_rating_code  =  \"5\" AND pets_allowed_yn  =  1"
        ]
    },
    {
        "db_id": "cre_Theme_park",
        "final_query": "SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE \"%film%\"",
        "final_utterance": "Which location names contain the word \"film\"?",
        "interaction_utterance": [
            "Please show the location names.",
            "Which one contains the word \"UK\"?",
            "Then, which one contains the word \"film\"?"
        ],
        "interaction_query": [
            "SELECT Location_Name FROM LOCATIONS",
            "SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE \"%UK%\"",
            "SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE \"%film%\""
        ]
    },
    {
        "db_id": "cre_Theme_park",
        "final_query": "SELECT Name ,  Opening_Hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There  =  \"bus\" OR How_to_Get_There  =  \"walk\"",
        "final_utterance": "What are the names and opening hours of the tourist attractions that can be accessed by bus or walk?",
        "interaction_utterance": [
            "How many tourist attractions are there?",
            "How many of them could be accessed by bus or walking?",
            "Please show their names and opening hours."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM TOURIST_ATTRACTIONS",
            "SELECT COUNT(*) FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There  =  \"bus\" OR How_to_Get_There  =  \"walk\"",
            "SELECT Name ,  Opening_Hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There  =  \"bus\" OR How_to_Get_There  =  \"walk\""
        ]
    },
    {
        "db_id": "cre_Theme_park",
        "final_query": "SELECT T2.star_rating_description FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code  =  T2.star_rating_code WHERE T1.price_range  >  10000",
        "final_utterance": "What are the star rating descriptions of the hotels with price above 10000?",
        "interaction_utterance": [
            "How many hotels are there?",
            "What is the average price range of these hotels?",
            "How many of hotels have a price above 10000?",
            "Please show the star rating descriptions of these hotels."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM HOTELS",
            "SELECT AVG(price_range) FROM HOTELS",
            "SELECT COUNT(*) FROM HOTELS WHERE price_range  >  10000",
            "SELECT T2.star_rating_description FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code  =  T2.star_rating_code WHERE T1.price_range  >  10000"
        ]
    },
    {
        "db_id": "cre_Theme_park",
        "final_query": "SELECT T2.Name FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T1.Name  =  \"game1\"",
        "final_utterance": "What is the name of the tourist attraction that is associated with the photo \"game1\"?",
        "interaction_utterance": [
            "How many tourist attractions are there?",
            "How many of them are associated with the photo \"fun1\"?",
            "How about the photo \"game1\"?",
            "Please show the name of these tourist attractions?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM TOURIST_ATTRACTIONS",
            "SELECT COUNT(*) FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T1.Name  =  \"fun1\"",
            "SELECT COUNT(*) FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T1.Name  =  \"game1\"",
            "SELECT T2.Name FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T1.Name  =  \"game1\""
        ]
    },
    {
        "db_id": "cre_Theme_park",
        "final_query": "SELECT T1.Name ,  T1.Description FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T2.Name  =  \"film festival\"",
        "final_utterance": "What are the names and descriptions of the photos taken at the tourist attraction \"film festival\"?",
        "interaction_utterance": [
            "How can I get to the tourist attraction \"film festival\"?",
            "How many photos have been taken at this tourist attraction?",
            "Please show its name and descriptions."
        ],
        "interaction_query": [
            "SELECT How_to_Get_There FROM TOURIST_ATTRACTIONS WHERE Name  =  \"film festival\"",
            "SELECT COUNT(*) FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T2.Name  =  \"film festival\"",
            "SELECT T1.Name ,  T1.Description FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T2.Name  =  \"film festival\""
        ]
    },
    {
        "db_id": "cre_Theme_park",
        "final_query": "SELECT T1.Shop_Details FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  \"walk\"",
        "final_utterance": "What are the details of the shops that can be accessed by walk?",
        "interaction_utterance": [
            "How many shops are there?",
            "How many of them could be accessed by bus?",
            "How about the number of those that could be accessed by walking?",
            "Please show the details of these shops."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM SHOPS",
            "SELECT COUNT(*) FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  \"bus\"",
            "SELECT COUNT(*) FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  \"walk\"",
            "SELECT T1.Shop_Details FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  \"walk\""
        ]
    },
    {
        "db_id": "cre_Theme_park",
        "final_query": "SELECT T1.Name FROM STAFF AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T2.Name  =  \"US museum\"",
        "final_utterance": "What is the name of the staff that is in charge of the attraction named \"US museum\"?",
        "interaction_utterance": [
            "Please show the description of the the attraction named \"US museum\".",
            "How can I get to this place?",
            "Who is in charge of it?"
        ],
        "interaction_query": [
            "SELECT Description FROM TOURIST_ATTRACTIONS WHERE Name  =  \"US museum\"",
            "SELECT How_to_Get_There FROM TOURIST_ATTRACTIONS WHERE Name  =  \"US museum\"",
            "SELECT T1.Name FROM STAFF AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T2.Name  =  \"US museum\""
        ]
    },
    {
        "db_id": "cre_Theme_park",
        "final_query": "SELECT T1.Market_Details FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  \"walk\" OR  T2.How_to_Get_There  =  \"bus\"",
        "final_utterance": "What are the details of the markets that can be accessed by walk or bus?",
        "interaction_utterance": [
            "How many markets are there?",
            "How many of them could be accessed by shuttle?",
            "How about the number of those that could be accessed by walking or bus?",
            "Please show the details of these markets."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Street_Markets",
            "SELECT COUNT(*) FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  \"shuttle\"",
            "SELECT COUNT(*) FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  \"walk\" OR  T2.How_to_Get_There  =  \"bus\"",
            "SELECT T1.Market_Details FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  \"walk\" OR  T2.How_to_Get_There  =  \"bus\""
        ]
    },
    {
        "db_id": "cre_Theme_park",
        "final_query": "SELECT T2.Visit_Date ,  T2.Visit_Details FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID  =  T2.Tourist_ID WHERE T1.Tourist_Details  =  \"Vincent\"",
        "final_utterance": "What are the visit date and details of the visitor whose detail is 'Vincent'?",
        "interaction_utterance": [
            "How many visitors are there?",
            "What is the Tourist_ID of the visitor whose detail is 'Vincent'?",
            "Please show his visit date and detail."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM VISITORS",
            "SELECT Tourist_ID FROM VISITORS WHERE Tourist_Details  =  \"Vincent\"",
            "SELECT T2.Visit_Date ,  T2.Visit_Details FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID  =  T2.Tourist_ID WHERE T1.Tourist_Details  =  \"Vincent\""
        ]
    },
    {
        "db_id": "cre_Theme_park",
        "final_query": "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID JOIN VISITORS AS T3 ON T2.Tourist_ID  =  T3.Tourist_ID WHERE T3.Tourist_Details  =  \"Vincent\"",
        "final_utterance": "Which tourist attractions does the visitor with detail 'Vincent' visit?",
        "interaction_utterance": [
            "What is the Tourist_ID of the visitor whose detail is 'Vivian'?",
            "Which tourist attractions does she visit?",
            "How about Vincent?"
        ],
        "interaction_query": [
            "SELECT Tourist_ID FROM VISITORS WHERE Tourist_Details  =  \"Vivian\"",
            "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID JOIN VISITORS AS T3 ON T2.Tourist_ID  =  T3.Tourist_ID WHERE T3.Tourist_Details  =  \"Vivian\"",
            "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID JOIN VISITORS AS T3 ON T2.Tourist_ID  =  T3.Tourist_ID WHERE T3.Tourist_Details  =  \"Vincent\""
        ]
    },
    {
        "db_id": "cre_Theme_park",
        "final_query": "SELECT T1.Name ,  T3.Visit_Date FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  \"Vincent\" OR T2.Tourist_Details  =  \"Vivian\"",
        "final_utterance": "What are the names of the tourist attractions and the dates when the tourists named Vincent or Vivian visited there?",
        "interaction_utterance": [
            "How many tourist attractions has Vincent visited?",
            "How about Vivian?",
            "Among these attractions, please show the names and dates of the ones that Vincent or Vivian has visited."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  \"Vincent\"",
            "SELECT COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  \"Vivian\"",
            "SELECT T1.Name ,  T3.Visit_Date FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  \"Vincent\" OR T2.Tourist_Details  =  \"Vivian\""
        ]
    },
    {
        "db_id": "cre_Theme_park",
        "final_query": "SELECT other_hotel_details FROM HOTELS ORDER BY price_range DESC LIMIT 3",
        "final_utterance": "Show the details of the top 3 most expensive hotels.",
        "interaction_utterance": [
            "What is the price range of the most expensive hotel?",
            "How about the top 3?",
            "Please show the details."
        ],
        "interaction_query": [
            "SELECT price_range FROM HOTELS ORDER BY price_range DESC LIMIT 1",
            "SELECT price_range FROM HOTELS ORDER BY price_range DESC LIMIT 3",
            "SELECT other_hotel_details FROM HOTELS ORDER BY price_range DESC LIMIT 3"
        ]
    },
    {
        "db_id": "cre_Theme_park",
        "final_query": "SELECT other_hotel_details ,  star_rating_code FROM HOTELS ORDER BY price_range ASC LIMIT 3",
        "final_utterance": "Show the details and star ratings of the 3 least expensive hotels.",
        "interaction_utterance": [
            "What is the lowest price range of the hotels?",
            "How about the last 3?",
            "Please show the details and star ratings of these three hotels."
        ],
        "interaction_query": [
            "SELECT price_range FROM HOTELS ORDER BY price_range LIMIT 1",
            "SELECT price_range FROM HOTELS ORDER BY price_range LIMIT 3",
            "SELECT other_hotel_details ,  star_rating_code FROM HOTELS ORDER BY price_range ASC LIMIT 3"
        ]
    },
    {
        "db_id": "cre_Theme_park",
        "final_query": "SELECT How_to_Get_There FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the transportation method most people choose to get to tourist attractions.",
        "interaction_utterance": [
            "How many people choose to get to the tourist attractions by walking?",
            "How about by bus?",
            "Then, which transportation method is the most popular?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM Tourist_Attractions WHERE How_to_Get_There = \"walk\"",
            "SELECT count(*) FROM Tourist_Attractions WHERE How_to_Get_There = \"bus\"",
            "SELECT How_to_Get_There FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "cre_Theme_park",
        "final_query": "SELECT T1.Attraction_Type_Description ,  T2.Attraction_Type_Code FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code  =  T2.Attraction_Type_Code GROUP BY T2.Attraction_Type_Code ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the description and code of the attraction type most tourist attractions belong to.",
        "interaction_utterance": [
            "How many attraction types are there?",
            "What is the description of the attraction with attraction type code being 2?",
            "For each attraction type, how many attractions are there?",
            "Please show the description and code of the attraction type that includes the most tourist attractions."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Ref_Attraction_Types",
            "SELECT Attraction_Type_Description FROM Ref_Attraction_Types WHERE Attraction_Type_Code = 2",
            "SELECT T2.Attraction_Type_Code, COUNT(*) FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code  =  T2.Attraction_Type_Code GROUP BY T2.Attraction_Type_Code",
            "SELECT T1.Attraction_Type_Description ,  T2.Attraction_Type_Code FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code  =  T2.Attraction_Type_Code GROUP BY T2.Attraction_Type_Code ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "cre_Theme_park",
        "final_query": "SELECT T1.Name ,  T2.Tourist_Attraction_ID ,   COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID",
        "final_utterance": "Show different tourist attractions' names, ids, and the corresponding number of visits.",
        "interaction_utterance": [
            "How many tourist attractions are there?",
            "For each attraction, how many visits does it have?",
            "Please also show the ids of these attractions."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Tourist_Attractions",
            "SELECT T1.Name, COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID",
            "SELECT T1.Name ,  T2.Tourist_Attraction_ID ,   COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID"
        ]
    },
    {
        "db_id": "cre_Theme_park",
        "final_query": "SELECT T1.Name ,  T2.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*)  >=  2",
        "final_utterance": "Show the names and ids of tourist attractions that are visited at least two times.",
        "interaction_utterance": [
            "How many tourist attractions have been visited at least once?",
            "How about the number of those that have been visited at least two times?",
            "Please show their names and ids."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM (SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*)  >=  1)",
            "SELECT COUNT(*) FROM (SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*)  >=  2)",
            "SELECT T1.Name ,  T2.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "cre_Theme_park",
        "final_query": "SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID  =  T2.Location_ID WHERE T1.Address  =  \"660 Shea Crescent\" OR T2.How_to_Get_There  =  \"walk\"",
        "final_utterance": "What are the names of tourist attractions that can be reached by walk or is at address 660 Shea Crescent?",
        "interaction_utterance": [
            "How many tourist attractions are there at address 660 Shea Crescent?",
            "How many tourist attractions can be reached by walking?",
            "Please show the names of these tourist attractions or those that are at address 660 Shea Crescent."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID  =  T2.Location_ID WHERE T1.Address  =  \"660 Shea Crescent\"",
            "SELECT COUNT(*) FROM Tourist_Attractions WHERE How_to_Get_There  =  \"walk\"",
            "SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID  =  T2.Location_ID WHERE T1.Address  =  \"660 Shea Crescent\" OR T2.How_to_Get_There  =  \"walk\""
        ]
    },
    {
        "db_id": "cre_Theme_park",
        "final_query": "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id  =  T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID  =  T3.Feature_ID WHERE T3.feature_Details  =  'park' UNION SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id  =  T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID  =  T3.Feature_ID WHERE T3.feature_Details  =  'shopping'",
        "final_utterance": "What are the names of the tourist attractions that have parking or shopping as their feature details?",
        "interaction_utterance": [
            "How many features could be provided by tourist attractions?",
            "Please show their details.",
            "How many tourist attractions have parking as their feature details?",
            "How about the number of those that have either parking or shopping as their feature details?",
            "Please show the names of these attractions."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Features",
            "SELECT Feature_Details FROM Features",
            "SELECT COUNT(*) FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id  =  T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID  =  T3.Feature_ID WHERE T3.feature_Details  =  'park'",
            "SELECT COUNT(*) FROM (SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id  =  T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID  =  T3.Feature_ID WHERE T3.feature_Details  =  'park' UNION SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id  =  T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID  =  T3.Feature_ID WHERE T3.feature_Details  =  'shopping')",
            "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id  =  T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID  =  T3.Feature_ID WHERE T3.feature_Details  =  'park' UNION SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id  =  T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID  =  T3.Feature_ID WHERE T3.feature_Details  =  'shopping'"
        ]
    },
    {
        "db_id": "cre_Theme_park",
        "final_query": "SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID  =  T2.Location_ID WHERE T1.Address  =  \"254 Ottilie Junction\" OR T2.How_to_Get_There  =  \"bus\"",
        "final_utterance": "What are the names of tourist attractions that can be reached by bus or is at address 254 Ottilie Junction?",
        "interaction_utterance": [
            "How many tourist attractions can be reached by bus?",
            "How about the number of tourist attractions that can be reached by bus or are at address 254 Ottilie Junction?",
            "Please show the names of these tourist attractions."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Tourist_Attractions WHERE How_to_Get_There = \"bus\"",
            "SELECT COUNT(*) FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID  =  T2.Location_ID WHERE T1.Address  =  \"254 Ottilie Junction\" OR T2.How_to_Get_There  =  \"bus\"",
            "SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID  =  T2.Location_ID WHERE T1.Address  =  \"254 Ottilie Junction\" OR T2.How_to_Get_There  =  \"bus\""
        ]
    },
    {
        "db_id": "cre_Theme_park",
        "final_query": "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  \"Alison\" EXCEPT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  \"Rosalind\"",
        "final_utterance": "What are the names of tourist attraction that Alison visited but Rosalind did not visit?",
        "interaction_utterance": [
            "How many tourist attractions are there that Alison has visited?",
            "Please show their names.",
            "What are the names of tourist attractions that Rosalind has visited?",
            "How about the names of tourist attractions that Alison visited but Rosalind did not visit?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  \"Alison\"",
            "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  \"Alison\"",
            "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  \"Rosalind\"",
            "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  \"Alison\" EXCEPT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  \"Rosalind\""
        ]
    },
    {
        "db_id": "candidate_poll",
        "final_query": "SELECT poll_source FROM candidate GROUP BY poll_source ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which poll resource provided the most number of candidate information?",
        "interaction_utterance": [
            "what different poll resources exist?",
            "how many are there?",
            "which one provides the greatest amount of candidate information?"
        ],
        "interaction_query": [
            "SELECT distinct poll_source FROM candidate",
            "SELECT count(distinct poll_source) FROM candidate",
            "SELECT poll_source FROM candidate GROUP BY poll_source ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "candidate_poll",
        "final_query": "SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3",
        "final_utterance": "what are the top 3 highest support rates?",
        "interaction_utterance": [
            "what is the highest support rate?",
            "show me the top 3."
        ],
        "interaction_query": [
            "SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 1",
            "SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3"
        ]
    },
    {
        "db_id": "candidate_poll",
        "final_query": "SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1",
        "final_utterance": "Find the id of the candidate who got the lowest oppose rate.",
        "interaction_utterance": [
            "show the id of the candidate who got the highest oppose rate.",
            "how about the one with the lowest oppose rate?"
        ],
        "interaction_query": [
            "SELECT Candidate_ID FROM candidate ORDER BY oppose_rate DESC LIMIT 1",
            "SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1"
        ]
    },
    {
        "db_id": "candidate_poll",
        "final_query": "SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1",
        "final_utterance": "which poll source does the highest oppose rate come from?",
        "interaction_utterance": [
            "which candidate has the highest oppose rate?",
            "just show the poll source."
        ],
        "interaction_query": [
            "SELECT * FROM candidate ORDER BY oppose_rate DESC LIMIT 1",
            "SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1"
        ]
    },
    {
        "db_id": "candidate_poll",
        "final_query": "SELECT avg(height) ,  avg(weight) FROM people WHERE sex  =  'M'",
        "final_utterance": "Find the average height and weight for all males (sex is M).",
        "interaction_utterance": [
            "show all males.",
            "what is their average height?",
            "also what is the average weight?"
        ],
        "interaction_query": [
            "SELECT * FROM people WHERE sex  =  'M'",
            "SELECT avg(height) FROM people WHERE sex  =  'M'",
            "SELECT avg(height) ,  avg(weight) FROM people WHERE sex  =  'M'"
        ]
    },
    {
        "db_id": "candidate_poll",
        "final_query": "SELECT name FROM people WHERE height  >  200 OR height  <  190",
        "final_utterance": "find the names of people who are taller than 200 or lower than 190.",
        "interaction_utterance": [
            "show the info of people who are taller than 200.",
            "also list the people whose height is lower than 190.",
            "just show their names."
        ],
        "interaction_query": [
            "SELECT * FROM people WHERE height > 200",
            "SELECT * FROM people WHERE height > 200 OR height  <  190",
            "SELECT name FROM people WHERE height  >  200 OR height  <  190"
        ]
    },
    {
        "db_id": "candidate_poll",
        "final_query": "SELECT avg(weight) ,  min(weight) ,  sex FROM people GROUP BY sex",
        "final_utterance": "Find the average and minimum weight for each gender.",
        "interaction_utterance": [
            "what is the average weight?",
            "what is the minimum?",
            "show these values for each gender."
        ],
        "interaction_query": [
            "SELECT avg(weight) FROM people",
            "SELECT min(weight) FROM people",
            "SELECT avg(weight), min(weight), sex FROM people GROUP BY sex"
        ]
    },
    {
        "db_id": "candidate_poll",
        "final_query": "SELECT t1.name,  t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id ORDER BY t2.support_rate DESC LIMIT 1",
        "final_utterance": "Find the name and gender of the candidate who got the highest support rate.",
        "interaction_utterance": [
            "order the candidate table by support rate from high to the low.",
            "what is the name of the candidate in first place?",
            "show the gender as well."
        ],
        "interaction_query": [
            "SELECT * FROM candidate ORDER BY support_rate DESC",
            "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id ORDER BY t2.support_rate DESC LIMIT 1",
            "SELECT t1.name,  t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id ORDER BY t2.support_rate DESC LIMIT 1"
        ]
    },
    {
        "db_id": "candidate_poll",
        "final_query": "SELECT t1.name ,  t1.sex ,  min(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id GROUP BY t1.sex",
        "final_utterance": "Find the name of the candidates whose oppose percentage is the lowest for each sex.",
        "interaction_utterance": [
            "what are the names of all candidates?",
            "among them, whose oppose percentage is the lowest?",
            "for each gender?"
        ],
        "interaction_query": [
            "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id",
            "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id ORDER BY oppose_rate LIMIT 1",
            "SELECT t1.name ,  t1.sex ,  min(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id GROUP BY t1.sex"
        ]
    },
    {
        "db_id": "candidate_poll",
        "final_query": "SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id GROUP BY t1.sex ORDER BY avg(t2.unsure_rate) DESC LIMIT 1",
        "final_utterance": "which gender got the highest average uncertain ratio.",
        "interaction_utterance": [
            "what is the average uncertain ratio of all candidates?",
            "what are the numbers for each sex?",
            "which gender got the higher number?"
        ],
        "interaction_query": [
            "SELECT avg(unsure_rate) FROM candidate",
            "SELECT t1.sex, avg(t2.unsure_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id GROUP BY t1.sex",
            "SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id GROUP BY t1.sex ORDER BY avg(t2.unsure_rate) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "candidate_poll",
        "final_query": "SELECT name FROM people WHERE people_id NOT IN (SELECT people_id FROM candidate)",
        "final_utterance": "what are the names of people who did not participate in the candidate election.",
        "interaction_utterance": [
            "give me info of all candidates.",
            "what are their names?",
            "how about those who were not candidates in the election?"
        ],
        "interaction_query": [
            "SELECT * FROM candidate",
            "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id",
            "SELECT name FROM people WHERE people_id NOT IN (SELECT people_id FROM candidate)"
        ]
    },
    {
        "db_id": "candidate_poll",
        "final_query": "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id WHERE t2.support_rate  <  t2.oppose_rate",
        "final_utterance": "Find the names of the candidates whose support percentage is lower than their oppose rate.",
        "interaction_utterance": [
            "show the name of all candidates with their support and oppose percentages.",
            "just show those whose support percentage is higher than their oppose rate.",
            "no need to show the support and oppose rates.",
            "how about those whose support percentage is lower than their oppose rate."
        ],
        "interaction_query": [
            "SELECT t1.name, t2.support_rate, t2.oppose_rate FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id",
            "SELECT t1.name, t2.support_rate, t2.oppose_rate FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id WHERE t2.support_rate  > t2.oppose_rate",
            "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id WHERE t2.support_rate  > t2.oppose_rate",
            "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id WHERE t2.support_rate  <  t2.oppose_rate"
        ]
    },
    {
        "db_id": "candidate_poll",
        "final_query": "SELECT count(*) ,  sex FROM people WHERE weight  >  85 GROUP BY sex",
        "final_utterance": "how many people are there whose weight is higher than 85 for each gender?",
        "interaction_utterance": [
            "what are the names of people whose weight is less than 85?",
            "how about those whose weight is greater than 85?",
            "how many are there in total?",
            "what is the number for each gender?"
        ],
        "interaction_query": [
            "SELECT name FROM people WHERE weight < 85",
            "SELECT name FROM people WHERE weight > 85",
            "SELECT count(*) FROM people WHERE weight > 85",
            "SELECT count(*) ,  sex FROM people WHERE weight  >  85 GROUP BY sex"
        ]
    },
    {
        "db_id": "candidate_poll",
        "final_query": "SELECT max(support_rate) ,  min(consider_rate) ,  min(oppose_rate) FROM candidate",
        "final_utterance": "find the highest support percentage, lowest consider rate and oppose rate of all candidates.",
        "interaction_utterance": [
            "what is the highest support percentage for all candidates?",
            "how about the lowest consider rate and oppose rate?"
        ],
        "interaction_query": [
            "SELECT max(support_rate) FROM candidate",
            "SELECT min(consider_rate), min(oppose_rate) FROM candidate"
        ]
    },
    {
        "db_id": "candidate_poll",
        "final_query": "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id WHERE t1.sex  =  'F' ORDER BY t1.name",
        "final_utterance": "list all female (sex is F) candidate names in the alphabetical order.",
        "interaction_utterance": [
            "show info for all females (sex is F).",
            "who are candidates among them? Just show their names.",
            "list the result in the alphabetical order."
        ],
        "interaction_query": [
            "SELECT * FROM people WHERE sex  =  'F'",
            "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id WHERE t1.sex  =  'F'",
            "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id WHERE t1.sex  =  'F' ORDER BY t1.name"
        ]
    },
    {
        "db_id": "twitter_1",
        "final_query": "SELECT name ,  email FROM user_profiles WHERE name LIKE '%Swift%'",
        "final_utterance": "Find the name and email of the user whose name contains the word \u2018Swift\u2019.",
        "interaction_utterance": [
            "How many users are there?",
            "Please list their names and email.",
            "Among these names, whose name contains \u2018Swift\u2019?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM user_profiles",
            "SELECT name, email FROM user_profiles",
            "SELECT name ,  email FROM user_profiles WHERE name LIKE '%Swift%'"
        ]
    },
    {
        "db_id": "twitter_1",
        "final_query": "SELECT name FROM user_profiles WHERE email LIKE '%superstar%' OR email LIKE '%edu%'",
        "final_utterance": "Find the names of users whose emails contain \u2018superstar\u2019 or \u2018edu\u2019.",
        "interaction_utterance": [
            "How many users are there?",
            "Please list their names and email.",
            "How many followers do they have?",
            "How many users' emails contain \u2018superstar\u2019 or \u2018edu\u2019?",
            "Please list their names."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM user_profiles",
            "SELECT name, email FROM user_profiles",
            "SELECT name, email, followers FROM user_profiles",
            "SELECT COUNT(*) FROM user_profiles WHERE email LIKE '%superstar%' OR email LIKE '%edu%'",
            "SELECT name FROM user_profiles WHERE email LIKE '%superstar%' OR email LIKE '%edu%'"
        ]
    },
    {
        "db_id": "twitter_1",
        "final_query": "SELECT text FROM tweets WHERE text LIKE '%intern%'",
        "final_utterance": "Return the text of tweets about the topic 'intern'.",
        "interaction_utterance": [
            "How many tweets are there?",
            "Among these tweets, how many of them are about the topic 'intern'?",
            "Please show their texts."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM tweets",
            "SELECT COUNT(*) FROM tweets WHERE text LIKE '%intern%'",
            "SELECT text FROM tweets WHERE text LIKE '%intern%'"
        ]
    },
    {
        "db_id": "twitter_1",
        "final_query": "SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f1 GROUP BY T2.f1 HAVING count(*)  >  (SELECT count(*) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f1 WHERE T1.name  =  'Tyler Swift')",
        "final_utterance": "Find the names of the users whose number of followers is greater than that of the user named \"Tyler Swift\".",
        "interaction_utterance": [
            "How many followers does the user named \"Tyler Swift\" have?",
            "How many users are there whose number of followers is greater than that of the user named \"Tyler Swift\"?",
            "Show the names of these users."
        ],
        "interaction_query": [
            "SELECT count(*) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f1 WHERE T1.name  =  'Tyler Swift'",
            "SELECT COUNT(*) FROM (SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f1 GROUP BY T2.f1 HAVING count(*)  >  (SELECT count(*) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f1 WHERE T1.name  =  'Tyler Swift'))",
            "SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f1 GROUP BY T2.f1 HAVING count(*)  >  (SELECT count(*) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f1 WHERE T1.name  =  'Tyler Swift')"
        ]
    },
    {
        "db_id": "twitter_1",
        "final_query": "SELECT T1.name ,  T1.email FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f1 GROUP BY T2.f1 HAVING count(*)  >  1",
        "final_utterance": "Find the name and email for the users who have more than one follower.",
        "interaction_utterance": [
            "Who has the least number of followers?",
            "How many users have more than one follower?",
            "Show their names and emails."
        ],
        "interaction_query": [
            "SELECT Name FROM user_profiles ORDER BY followers LIMIT 1",
            "SELECT COUNT(*) FROM (SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f1 GROUP BY T2.f1 HAVING count(*)  >  1)",
            "SELECT T1.name ,  T1.email FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f1 GROUP BY T2.f1 HAVING count(*)  >  1"
        ]
    },
    {
        "db_id": "twitter_1",
        "final_query": "SELECT T1.name FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid  =  T2.uid GROUP BY T2.uid HAVING count(*)  >  1",
        "final_utterance": "Find the names of users who have more than one tweet.",
        "interaction_utterance": [
            "How many tweets are there?",
            "What is the text of the tweet with id 1?",
            "How many tweets does each user have?",
            "Who has more than one tweet?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM tweets",
            "SELECT text FROM tweets WHERE id = 1",
            "SELECT T1.name, COUNT(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid  =  T2.uid GROUP BY T2.uid",
            "SELECT T1.name FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid  =  T2.uid GROUP BY T2.uid HAVING count(*)  >  1"
        ]
    },
    {
        "db_id": "twitter_1",
        "final_query": "SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f2 WHERE T1.name  =  \"Mary\" OR T1.name  =  \"Susan\"",
        "final_utterance": "Find the id of users who are followed by Mary or Susan.",
        "interaction_utterance": [
            "How many followers does Mary have?",
            "How about that of Susan?",
            "Who is followed by either one of them?",
            "What are their ids?"
        ],
        "interaction_query": [
            "SELECT Followers FROM user_profiles WHERE name  =  \"Mary\"",
            "SELECT Followers FROM user_profiles WHERE name  =  \"Susan\"",
            "SELECT T3.NAME FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f2 JOIN user_profiles AS T3 ON T3.uid = T2.f1 WHERE T1.name  =  \"Mary\" OR T1.name  =  \"Susan\"",
            "SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f2 WHERE T1.name  =  \"Mary\" OR T1.name  =  \"Susan\""
        ]
    },
    {
        "db_id": "twitter_1",
        "final_query": "SELECT name ,  email FROM user_profiles ORDER BY followers LIMIT 1",
        "final_utterance": "Find the name and email of the user followed by the least number of people.",
        "interaction_utterance": [
            "Who has the most followers?",
            "What is the minimum number of followers of all users?",
            "Please show the name of the user with that number of followers.",
            "Please also show the email."
        ],
        "interaction_query": [
            "SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 1",
            "SELECT followers FROM user_profiles ORDER BY followers LIMIT 1",
            "SELECT name FROM user_profiles ORDER BY followers LIMIT 1",
            "SELECT name ,  email FROM user_profiles ORDER BY followers LIMIT 1"
        ]
    },
    {
        "db_id": "twitter_1",
        "final_query": "SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 5",
        "final_utterance": "List the names of 5 users followed by the largest number of other users.",
        "interaction_utterance": [
            "How many followers does each user have?",
            "Who has the most followers?",
            "Which top 5 users have the most followers?"
        ],
        "interaction_query": [
            "SELECT name, followers FROM user_profiles",
            "SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 1",
            "SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 5"
        ]
    },
    {
        "db_id": "twitter_1",
        "final_query": "SELECT T1.name ,  count(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid  =  T2.uid GROUP BY T2.uid",
        "final_utterance": "Find the name of each user and number of tweets tweeted by each of them.",
        "interaction_utterance": [
            "How many users are there?",
            "Show their names.",
            "Please also show the number of tweets tweeted by each of them."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM user_profiles",
            "SELECT Name FROM user_profiles",
            "SELECT T1.name ,  count(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid  =  T2.uid GROUP BY T2.uid"
        ]
    },
    {
        "db_id": "twitter_1",
        "final_query": "SELECT T1.name ,  T1.partitionid FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid  =  T2.uid GROUP BY T2.uid HAVING count(*)  <  2",
        "final_utterance": "Find the name and partition id for users who tweeted less than twice.",
        "interaction_utterance": [
            "How many users tweeted less than twice?",
            "Show their names.",
            "Please also show their partition id"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM (SELECT count(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid  =  T2.uid GROUP BY T2.uid HAVING count(*) <  2)",
            "SELECT T1.name FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid  =  T2.uid GROUP BY T2.uid HAVING count(*)  <  2",
            "SELECT T1.name ,  T1.partitionid FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid  =  T2.uid GROUP BY T2.uid HAVING count(*)  <  2"
        ]
    },
    {
        "db_id": "twitter_1",
        "final_query": "SELECT T1.name ,  count(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid  =  T2.uid GROUP BY T2.uid HAVING count(*)  >  1",
        "final_utterance": "Find the name of the user who tweeted more than once, and number of tweets tweeted by them.",
        "interaction_utterance": [
            "How many users have some tweets?",
            "How about the number of users that have tweeted more than once?",
            "Show their names and number of tweets tweeted by them."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM user_profiles WHERE UID IN (SELECT UID FROM tweets)",
            "SELECT COUNT(*) FROM (SELECT count(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid  =  T2.uid GROUP BY T2.uid HAVING count(*)  >  1)",
            "SELECT T1.name ,  count(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid  =  T2.uid GROUP BY T2.uid HAVING count(*)  >  1"
        ]
    },
    {
        "db_id": "twitter_1",
        "final_query": "SELECT avg(followers) FROM user_profiles WHERE UID IN (SELECT UID FROM tweets)",
        "final_utterance": "Find the average number of followers for the users who had some tweets.",
        "interaction_utterance": [
            "How many users have some tweets?",
            "Show the name of these users and their number of followers.",
            "What is the average number of followers for these users?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM user_profiles WHERE UID IN (SELECT UID FROM tweets)",
            "SELECT Name, followers FROM user_profiles WHERE UID IN (SELECT UID FROM tweets)",
            "SELECT avg(followers) FROM user_profiles WHERE UID IN (SELECT UID FROM tweets)"
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT order_id FROM orders ORDER BY date_order_placed DESC LIMIT 1",
        "final_utterance": "What is the id of the most recent order?",
        "interaction_utterance": [
            "What is the id of the customer who made the most recent order?",
            "What's its status?",
            "What's its id?"
        ],
        "interaction_query": [
            "SELECT customer_id FROM orders ORDER BY date_order_placed DESC LIMIT 1",
            "SELECT order_status FROM orders ORDER BY date_order_placed DESC LIMIT 1",
            "SELECT order_id FROM orders ORDER BY date_order_placed DESC LIMIT 1"
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT order_id ,  customer_id FROM orders ORDER BY date_order_placed LIMIT 1",
        "final_utterance": "what are the order id and customer id of the oldest order?",
        "interaction_utterance": [
            "When was the oldest order placed?",
            "What's the id of the customer who placed it?",
            "What's the id of the order?",
            "Show me both id's."
        ],
        "interaction_query": [
            "SELECT date_order_placed FROM orders ORDER BY date_order_placed LIMIT 1",
            "SELECT customer_id FROM orders ORDER BY date_order_placed LIMIT 1",
            "SELECT order_id FROM orders ORDER BY date_order_placed LIMIT 1",
            "SELECT order_id ,  customer_id FROM orders ORDER BY date_order_placed LIMIT 1"
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Packing\"",
        "final_utterance": "List the name of all the distinct customers who have orders with status \"Packing\".",
        "interaction_utterance": [
            "Show me all the orders with status \"Packing\"",
            "Who made those orders?",
            "Show me the distinct customer names."
        ],
        "interaction_query": [
            "SELECT * FROM orders WHERE order_status = \"Packing\"",
            "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Packing\"",
            "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Packing\""
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT DISTINCT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\"",
        "final_utterance": "Find the details of all the distinct customers who have orders with status \"On Road\".",
        "interaction_utterance": [
            "Show me all the orders with status \"On Road\"",
            "Who made those orders?",
            "Show me the distinct customer names."
        ],
        "interaction_query": [
            "SELECT * FROM orders WHERE order_status = \"On Road\"",
            "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\"",
            "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\""
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the name of the customer who has the most orders?",
        "interaction_utterance": [
            "What is the id of the customer who has the most orders?",
            "Show me details",
            "Show me his or her name."
        ],
        "interaction_query": [
            "SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the customer id of the customer who has the most orders?",
        "interaction_utterance": [
            "What is the name of the customer who has the most orders?",
            "What's his or her id?"
        ],
        "interaction_query": [
            "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT T2.order_id ,  T2.order_status FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = \"Jeramie\"",
        "final_utterance": "Give me a list of id and status of orders which belong to the customer named \"Jeramie\".",
        "interaction_utterance": [
            "Any customer named Jeramie?",
            "Show me the status of his orders",
            "Show me the id's of his orders as well."
        ],
        "interaction_query": [
            "SELECT * FROM Customers WHERE customer_name = \"Jeramie\"",
            "SELECT T2.order_status FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = \"Jeramie\"",
            "SELECT T2.order_id, T2.order_status FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = \"Jeramie\""
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = \"Jeramie\"",
        "final_utterance": "Find the dates of orders which belong to the customer named \"Jeramie\".",
        "interaction_utterance": [
            "Any customer named Jeramie?",
            "Show me the status of his orders",
            "Now show me the dates of those orders."
        ],
        "interaction_query": [
            "SELECT * FROM Customers WHERE customer_name = \"Jeramie\"",
            "SELECT T2.order_status FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = \"Jeramie\"",
            "SELECT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = \"Jeramie\""
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed >= \"2009-01-01\" AND T2.date_order_placed <= \"2010-01-01\"",
        "final_utterance": "Give me the names of customers who have placed orders between 2009-01-01 and 2010-01-01.",
        "interaction_utterance": [
            "Show me the orders placed between 2009-01-01 and 2010-01-01.",
            "Show me the customers who made those orders."
        ],
        "interaction_query": [
            "SELECT * FROM orders WHERE date_order_placed >= \"2009-01-01\" AND date_order_placed <= \"2010-01-01\"",
            "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed >= \"2009-01-01\" AND T2.date_order_placed <= \"2010-01-01\""
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT DISTINCT T2.product_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id WHERE T1.date_order_placed >= \"1975-01-01\" AND T1.date_order_placed <= \"1976-01-01\"",
        "final_utterance": "Give me a list of distinct product ids from orders placed between 1975-01-01 and 1976-01-01?",
        "interaction_utterance": [
            "Show me the orders placed between 1975-01-01 and 1976-01-01.",
            "Show me the product ids of those orders."
        ],
        "interaction_query": [
            "SELECT * FROM orders WHERE date_order_placed >= \"1975-01-01\" AND date_order_placed <= \"1976-01-01\"",
            "SELECT DISTINCT T2.product_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id WHERE T1.date_order_placed >= \"1975-01-01\" AND T1.date_order_placed <= \"1976-01-01\""
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\" INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Shipped\"",
        "final_utterance": "Find the names of the customers who have order status both \"On Road\" and \"Shipped\".",
        "interaction_utterance": [
            "Find me customers who have order status \"On Road\".",
            "Now find me customers who have order status \"Shipped\".",
            "Now show me customers with both of those order statuses."
        ],
        "interaction_query": [
            "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\"",
            "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Shipped\"",
            "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\" INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Shipped\""
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\" INTERSECT SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Shipped\"",
        "final_utterance": "Find the id of the customers who have order status both \"On Road\" and \"Shipped\".",
        "interaction_utterance": [
            "Find me ids of customers who have order status \"On Road\".",
            "Now find me ids of customers who have order status \"Shipped\".",
            "Now show me ids of customers with both of those order statuses."
        ],
        "interaction_query": [
            "SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\"",
            "SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Shipped\"",
            "SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\" INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Shipped\""
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = 3452",
        "final_utterance": "When was the order placed whose shipment tracking number is 3452? Give me the date.",
        "interaction_utterance": [
            "Show me the order with shipment tracking number 3452.",
            "When was that order placed?"
        ],
        "interaction_query": [
            "SELECT * FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE shipment_tracking_number = 3452",
            "SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = 3452"
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.invoice_number = 10",
        "final_utterance": "What is the placement date of the order whose invoice number is 10?",
        "interaction_utterance": [
            "Show me the order with invoice number 10.",
            "When was that order placed? Give me the date."
        ],
        "interaction_query": [
            "SELECT * FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE invoice_number = 10",
            "SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.invoice_number = 10"
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT count(*) ,  T3.product_id FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id",
        "final_utterance": "List the count and id of each product in all the orders.",
        "interaction_utterance": [
            "Show me all the products.",
            "Show me only the products that have been ordered.",
            "Show me only the count and id of each product"
        ],
        "interaction_query": [
            "SELECT * FROM Products",
            "SELECT * FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id",
            "SELECT count(*) ,  T3.product_id FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id"
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT T3.product_name ,  count(*) FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id",
        "final_utterance": "List the name and count of each product in all orders.",
        "interaction_utterance": [
            "Show me all the products.",
            "Show me only the products that have been ordered.",
            "Show me only the name and count of each product"
        ],
        "interaction_query": [
            "SELECT * FROM Products",
            "SELECT * FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id",
            "SELECT T3.product_name ,  count(*) FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id"
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT order_id FROM shipments WHERE shipment_date  =  (SELECT max(shipment_date) FROM shipments)",
        "final_utterance": "Find the id of the order which is shipped most recently.",
        "interaction_utterance": [
            "Show me the 10 most recently shipped orders.",
            "Ok, show me only the most recent one.",
            "Show me its id."
        ],
        "interaction_query": [
            "SELECT * FROM shipments ORDER BY shipment_date DESC LIMIT 10",
            "SELECT * FROM shipments ORDER BY shipment_date DESC LIMIT 1",
            "SELECT order_id FROM shipments WHERE shipment_date  =  (SELECT max(shipment_date) FROM shipments)"
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT T1.order_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the id of the order which has the most items?",
        "interaction_utterance": [
            "Who ordered the order with most items?",
            "What is its order id?"
        ],
        "interaction_query": [
            "SELECT T1.customer_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT T1.order_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the name of the customer who has the largest number of orders?",
        "interaction_utterance": [
            "What is the id of the order with the most items?",
            "What is the id of the customer who ordered it?"
        ],
        "interaction_query": [
            "SELECT T1.order_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT invoice_number FROM invoices WHERE invoice_date < \"1989-09-03\" OR invoice_date > \"2007-12-25\"",
        "final_utterance": "Find the invoice numbers which are created before 1989-09-03 or after 2007-12-25.",
        "interaction_utterance": [
            "Show me all the dates between 1989-09-03 and 2007-12-25 that invoice number was created.",
            "Sorry, I meant dates before 1989-09-03 and after 2007-12-25.",
            "Now show me their invoice numbers."
        ],
        "interaction_query": [
            "SELECT invoice_date FROM invoices WHERE invoice_date > \"1989-09-03\" AND invoice_date < \"2007-12-25\"",
            "SELECT invoice_date FROM invoices WHERE invoice_date < \"1989-09-03\" OR invoice_date > \"2007-12-25\"",
            "SELECT invoice_number FROM invoices WHERE invoice_date < \"1989-09-03\" OR invoice_date > \"2007-12-25\""
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT DISTINCT invoice_details FROM invoices WHERE invoice_date < \"1989-09-03\" OR invoice_date > \"2007-12-25\"",
        "final_utterance": "Find the distinct details of invoices which are created before 1989-09-03 or after 2007-12-25.",
        "interaction_utterance": [
            "Show me all the details of invoices created between 1989-09-03 and 2007-12-25.",
            "Now show me the distinct details of all the other invoices."
        ],
        "interaction_query": [
            "SELECT invoice_date FROM invoices WHERE invoice_date > \"1989-09-03\" AND invoice_date < \"2007-12-25\"",
            "SELECT DISTINCT invoice_details FROM invoices WHERE invoice_date < \"1989-09-03\" OR invoice_date > \"2007-12-25\""
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT T2.customer_name ,  count(*) FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*)  >=  2",
        "final_utterance": "For each customer who has at least two orders, find the customer name and number of orders made.",
        "interaction_utterance": [
            "Show me the names of all customers who have at least two orders.",
            "Show me the number of orders each of them made as well."
        ],
        "interaction_query": [
            "SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*)  >=  2",
            "SELECT T2.customer_name ,  count(*) FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*)  <=  2",
        "final_utterance": "Find the name of the customers who have at most two orders.",
        "interaction_utterance": [
            "Show me the names of all customers who have at least two orders.",
            "Now show me names of customers who have at most two orders."
        ],
        "interaction_query": [
            "SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*)  >=  2",
            "SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*)  <=  2"
        ]
    },
    {
        "db_id": "tracking_orders",
        "final_query": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = \"food\" GROUP BY T1.customer_id HAVING count(*)  >=  1",
        "final_utterance": "List the names of the customers who have once bought product \"food\".",
        "interaction_utterance": [
            "List the ids of the customers who have once bought product \"food\".",
            "Now list the names."
        ],
        "interaction_query": [
            "SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = \"food\" GROUP BY T1.customer_id HAVING count(*)  >=  1",
            "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = \"food\" GROUP BY T1.customer_id HAVING count(*)  >=  1"
        ]
    },
    {
        "db_id": "tracking_software_problems",
        "final_query": "SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1",
        "final_utterance": "What is the id of the problem log that is created most recently?",
        "interaction_utterance": [
            "What is the most recent log_entry_date?",
            "the latest?",
            "what is the product id that has this?"
        ],
        "interaction_query": [
            "SELECT log_entry_date FROM problem_log ORDER BY log_entry_date ASC LIMIT 1",
            "SELECT log_entry_date FROM problem_log ORDER BY log_entry_date DESC LIMIT 1",
            "SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1"
        ]
    },
    {
        "db_id": "tracking_software_problems",
        "final_query": "SELECT problem_log_id ,  problem_id FROM problem_log ORDER BY log_entry_date LIMIT 1",
        "final_utterance": "What is the oldest log id and its corresponding problem id?",
        "interaction_utterance": [
            "How many problem logs are there?",
            "Of those, what is the oldest entry date used?",
            "Show all the problem_log information for this date!",
            "Actually, just show the log id and problem id."
        ],
        "interaction_query": [
            "SELECT count(*) FROM problem_log",
            "SELECT log_entry_date FROM problem_log ORDER BY log_entry_date LIMIT 1",
            "SELECT * FROM problem_log ORDER BY log_entry_date LIMIT 1",
            "SELECT problem_log_id ,  problem_id FROM problem_log ORDER BY log_entry_date LIMIT 1"
        ]
    },
    {
        "db_id": "tracking_software_problems",
        "final_query": "SELECT DISTINCT staff_first_name ,  staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1",
        "final_utterance": "List the first and last names of all distinct staff members who are assigned to the problem whose id is 1.",
        "interaction_utterance": [
            "How many problem logs have to do with problem id 1?",
            "Show the log ids, dates, descriptions for these.",
            "Also show the staff for each.",
            "Can you give me a distinct list of the names of all staff members!"
        ],
        "interaction_query": [
            "SELECT count(*) FROM problem_log where problem_id = 1",
            "SELECT problem_log_id, log_entry_date, log_entry_description FROM problem_log where problem_id = 1",
            "SELECT problem_log_id, log_entry_date, log_entry_description, assigned_to_staff_id FROM problem_log where problem_id = 1",
            "SELECT DISTINCT staff_first_name ,  staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1"
        ]
    },
    {
        "db_id": "tracking_software_problems",
        "final_query": "SELECT DISTINCT T2.problem_id ,  T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = \"Rylan\" AND T1.staff_last_name = \"Homenick\"",
        "final_utterance": "List the problem id and log id which are assigned to the staff named Rylan Homenick.",
        "interaction_utterance": [
            "What are the problem reported by named Ryan Homenick.",
            "How about the problems on which closure is authorized by him?",
            "Actually can you show the different problem_logs that he is assigned to!",
            "For these, show the distinct problem ids and log ids!"
        ],
        "interaction_query": [
            "SELECT * FROM staff AS T1 JOIN problems AS T2 ON T1.staff_id = T2.reported_by_staff_id WHERE T1.staff_first_name = \"Rylan\" AND T1.staff_last_name = \"Homenick\"",
            "SELECT  FROM staff AS T1 JOIN problems AS T2 ON T1.staff_id = T2.closure_authorised_by_staff_id WHERE T1.staff_first_name = \"Rylan\" AND T1.staff_last_name = \"Homenick\"",
            "SELECT * FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = \"Rylan\" AND T1.staff_last_name = \"Homenick\"",
            "SELECT DISTINCT T2.problem_id ,  T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = \"Rylan\" AND T1.staff_last_name = \"Homenick\""
        ]
    },
    {
        "db_id": "tracking_software_problems",
        "final_query": "SELECT count(*) FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id WHERE T1.product_name = \"voluptatem\"",
        "final_utterance": "How many problems are there for product voluptatem?",
        "interaction_utterance": [
            "Show me all the problems on the product with name voluptatem.",
            "What are the statuses of each?",
            "How many are solved?",
            "Actually how many are there in total?"
        ],
        "interaction_query": [
            "SELECT * FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id WHERE T1.product_name = \"voluptatem\"",
            "SELECT *, T3.problem_status_code FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id join problem_log as T3 on T2.problem_id = T3.problem_id WHERE T1.product_name = \"voluptatem\"",
            "SELECT count(*) FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id join problem_log as T3 on T2.problem_id = T3.problem_id WHERE T1.product_name = \"voluptatem\" and T3.problem_status_code = \"Solved\"",
            "SELECT count(*) FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id WHERE T1.product_name = \"voluptatem\""
        ]
    },
    {
        "db_id": "tracking_software_problems",
        "final_query": "SELECT count(*) ,  T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "How many problems does the product with the most problems have? List the number of the problems and product name.",
        "interaction_utterance": [
            "How many problems are there?",
            "What products are they associated with?",
            "Now show how many problems exist per product name?",
            "Which one has the most problems?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM problems",
            "SELECT * FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id",
            "SELECT count(*) ,  T1.product_id FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_id",
            "SELECT count(*) ,  T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "tracking_software_problems",
        "final_query": "SELECT T1.problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Christop\"",
        "final_utterance": "Give me a list of descriptions of the problems that are reported by the staff whose first name is Christop.",
        "interaction_utterance": [
            "How many staff members have the first name Christop.",
            "What problem are these members authorized to close!",
            "How about what problems have these members reported!",
            "List just the problem descriptions for each?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM staff where staff_first_name = \"Christop\"",
            "SELECT * FROM problems AS T1 JOIN staff AS T2 ON T1.closure_authorised_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Christop\"",
            "SELECT * FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Christop\"",
            "SELECT T1.problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Christop\""
        ]
    },
    {
        "db_id": "tracking_software_problems",
        "final_query": "SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = \"Bosco\"",
        "final_utterance": "Find the ids of the problems that are reported by the staff whose last name is Bosco.",
        "interaction_utterance": [
            "List all the problem ids!",
            "What are the names of the staff members that reported each!",
            "Show me the ids of those reported by the last name Bosco!"
        ],
        "interaction_query": [
            "SELECT problem_id FROM problems",
            "SELECT T1.problem_id, T2.staff_first_name, T2.staff_last_name FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id",
            "SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = \"Bosco\""
        ]
    },
    {
        "db_id": "tracking_software_problems",
        "final_query": "SELECT count(*),  T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_id",
        "final_utterance": "For each product which has problems, what are the number of problems and the product id?",
        "interaction_utterance": [
            "How many products do not have any problems?",
            "What are they?",
            "Show all the different ids of the products other than these!",
            "Also provide the number of problems they each have!"
        ],
        "interaction_query": [
            "SELECT count(*) FROM product where product_id not in (SELECT product_id FROM problems)",
            "SELECT product_id FROM product where product_id not in (SELECT product_id FROM problems)",
            "SELECT distinct product_id FROM problems",
            "SELECT count(*),  T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_id"
        ]
    },
    {
        "db_id": "tracking_software_problems",
        "final_query": "SELECT count(*) ,  T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > \"1986-11-13\" GROUP BY T2.product_id",
        "final_utterance": "For each product that has problems, find the number of problems reported after 1986-11-13 and the product id?",
        "interaction_utterance": [
            "How many problems were reported on or before 1986-11-13?",
            "how about after?",
            "Show me their problem ids and product ids!",
            "For these, show the number of problems by product id!"
        ],
        "interaction_query": [
            "SELECT count(*) FROM problems WHERE date_problem_reported <= \"1986-11-13\"",
            "SELECT count(*) FROM problems WHERE date_problem_reported > \"1986-11-13\"",
            "SELECT problem_id,  product_id FROM problems WHERE date_problem_reported > \"1986-11-13\"",
            "SELECT count(*) ,  T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > \"1986-11-13\" GROUP BY T2.product_id"
        ]
    },
    {
        "db_id": "tracking_software_problems",
        "final_query": "SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Dameon\" AND T2.staff_last_name = \"Frami\" UNION SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Jolie\" AND T2.staff_last_name = \"Weber\"",
        "final_utterance": "What are the id of problems reported by the staff named Dameon Frami or Jolie Weber?",
        "interaction_utterance": [
            "What are all the products reported by staff named Jolie Weber?",
            "How about Dameon Fami?",
            "Which products are reported by either one?",
            "What are their ids?"
        ],
        "interaction_query": [
            "SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Jolie\" AND T2.staff_last_name = \"Weber\"",
            "SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Dameon\" AND T2.staff_last_name = \"Fami\"",
            "SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Dameon\" AND T2.staff_last_name = \"Frami\"",
            "SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Dameon\" AND T2.staff_last_name = \"Frami\" UNION SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Jolie\" AND T2.staff_last_name = \"Weber\""
        ]
    },
    {
        "db_id": "tracking_software_problems",
        "final_query": "SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Christop\" AND T2.staff_last_name = \"Berge\" INTERSECT SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.closure_authorised_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Ashley\" AND T2.staff_last_name = \"Medhurst\"",
        "final_utterance": "What are the product ids for the problems reported by Christop Berge with closure authorised by Ashley Medhurst?",
        "interaction_utterance": [
            "For each problem, What are the different names of staff members who can authorize closure!",
            "Also provide the product_ids!",
            "Show me the product ids that have closure authorized by Ashley Medhurst!",
            "Of those, only those that were reported  by Christop Beege!"
        ],
        "interaction_query": [
            "SELECT distinct T2.staff_first_name, T2.staff_last_name FROM problems AS T1 JOIN staff AS T2 ON T1.closure_authorised_by_staff_id = T2.staff_id",
            "SELECT product_id, T2.staff_first_name, T2.staff_last_name FROM problems AS T1 JOIN staff AS T2 ON T1.closure_authorised_by_staff_id = T2.staff_id",
            "SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.closure_authorised_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Ashley\" AND T2.staff_last_name = \"Medhurst\"",
            "SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Christop\" AND T2.staff_last_name = \"Berge\" INTERSECT SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.closure_authorised_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Ashley\" AND T2.staff_last_name = \"Medhurst\""
        ]
    },
    {
        "db_id": "tracking_software_problems",
        "final_query": "SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported  <  ( SELECT min(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = \"Lysanne\" AND T4.staff_last_name = \"Turcotte\" )",
        "final_utterance": "What are the ids of the problems reported before the date of any problem reported by Lysanne Turcotte?",
        "interaction_utterance": [
            "How many problems has staff named Lysanne Turcotte reported?",
            "Show me their ids, and problem descriptions.",
            "What is the oldest date these were reported?",
            "Show me the ids of all the other problems that were reported before this date! :"
        ],
        "interaction_query": [
            "SELECT count(*) FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Lysanne\" AND T2.staff_last_name = \"Turcotte\"",
            "SELECT problem_id, problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Lysanne\" AND T2.staff_last_name = \"Turcotte\"",
            "SELECT min(date_problem_reported) FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Lysanne\" AND T2.staff_last_name = \"Turcotte\"",
            "SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported  <  ( SELECT min(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = \"Lysanne\" AND T4.staff_last_name = \"Turcotte\" )"
        ]
    },
    {
        "db_id": "tracking_software_problems",
        "final_query": "SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported  >  ( SELECT max(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = \"Rylan\" AND T4.staff_last_name = \"Homenick\" )",
        "final_utterance": "What are the ids of the problems reported after the date of any problems reported by Rylan Homenick?",
        "interaction_utterance": [
            "What are all the names of the staff members that have reported problems?",
            "What was the problem id and date of the last problem they each reported?",
            "Show me the date for staff named Ryan Homenick",
            "Now show any problem id that was reported after this date!"
        ],
        "interaction_query": [
            "SELECT T2.staff_first_name, T2.staff_last_name FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id",
            "SELECT T2.staff_first_name, T2.staff_last_name, T1.problem_id, max(date_problem_reported) FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id group by T2.staff_first_name, T2.staff_last_name",
            "SELECT max(date_problem_reported) FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Rylan\" AND T2.staff_last_name = \"Homenick\"",
            "SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported  >  ( SELECT max(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = \"Rylan\" AND T4.staff_last_name = \"Homenick\" )"
        ]
    },
    {
        "db_id": "tracking_software_problems",
        "final_query": "SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY count(*) DESC LIMIT 3",
        "final_utterance": "Find the top 3 products which have the largest number of problems?",
        "interaction_utterance": [
            "Show me all different products with problems!",
            "How many problems do they each have for each product name?",
            "Show me the names of the products in the bottom 3!",
            "What about the top 3?"
        ],
        "interaction_query": [
            "SELECT * FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id",
            "SELECT T2.product_name, count(*) FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name",
            "SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY count(*) ASC LIMIT 3",
            "SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY count(*) DESC LIMIT 3"
        ]
    },
    {
        "db_id": "tracking_software_problems",
        "final_query": "SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = \"voluptatem\" AND T1.date_problem_reported > \"1995\"",
        "final_utterance": "List the ids of the problems FROM the product \"voluptatem\" that are reported after 1995?",
        "interaction_utterance": [
            "What are all the problems that are reported after 1995?",
            "Show the product names that each are associated with?",
            "Show the ids of the ones with the product named Rose.",
            "How about those with the product named voluptatem"
        ],
        "interaction_query": [
            "SELECT * FROM problems where date_problem_reported > \"1995\"",
            "SELECT *, T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > \"1995\"",
            "SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = \"rose\" AND T1.date_problem_reported > \"1995\"",
            "SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = \"voluptatem\" AND T1.date_problem_reported > \"1995\""
        ]
    },
    {
        "db_id": "tracking_software_problems",
        "final_query": "SELECT T3.staff_first_name ,  T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = \"rem\" EXCEPT SELECT T3.staff_first_name ,  T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = \"aut\"",
        "final_utterance": "Find the first and last name of the staff members who reported problems FROM the product \"rem\" but not \"aut\"?",
        "interaction_utterance": [
            "What are first and last names of all the staff members?",
            "Which ones reported on problems with products named \"rem\" or \"aut\"?",
            "Of these, who reported on \"rem\"?",
            "Of these, who did not report on \"aut\""
        ],
        "interaction_query": [
            "SELECT staff_first_name ,  staff_last_name FROM staff",
            "SELECT T3.staff_first_name ,  T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = \"rem\" or T2.product_name = \"aut\"",
            "SELECT T3.staff_first_name ,  T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = \"rem\"",
            "SELECT T3.staff_first_name ,  T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = \"rem\" EXCEPT SELECT T3.staff_first_name ,  T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = \"aut\""
        ]
    },
    {
        "db_id": "student_assessment",
        "final_query": "SELECT T1.course_name FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_Id GROUP BY T1.course_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "which course has most number of registered students?",
        "interaction_utterance": [
            "What are the course names?",
            "Which course has the least number of registered students?",
            "Most number?"
        ],
        "interaction_query": [
            "SELECT course_name FROM courses",
            "SELECT T1.course_name FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_Id GROUP BY T1.course_id ORDER BY count(*) ASC LIMIT 1",
            "SELECT T1.course_name FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_Id GROUP BY T1.course_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "student_assessment",
        "final_query": "SELECT student_id FROM student_course_registrations GROUP BY student_id ORDER BY count(*) LIMIT 1",
        "final_utterance": "what is id of students who registered some courses but the least number of courses in these students?",
        "interaction_utterance": [
            "What are the course ids that students registered for?",
            "What about student ids.",
            "Which one registered for the least number of courses."
        ],
        "interaction_query": [
            "SELECT course_id FROM student_course_registrations",
            "SELECT student_id FROM student_course_registrations",
            "SELECT student_id FROM student_course_registrations GROUP BY student_id ORDER BY count(*) LIMIT 1"
        ]
    },
    {
        "db_id": "student_assessment",
        "final_query": "SELECT student_id FROM students WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance)",
        "final_utterance": "List the id of students who never attends courses?",
        "interaction_utterance": [
            "Who are the students? Give the id and details.",
            "Which students attend courses?",
            "Which ones do not? Just give the student id."
        ],
        "interaction_query": [
            "SELECT student_id, student_details FROM students",
            "SELECT student_id, student_details FROM students WHERE student_id IN (SELECT student_id FROM student_course_attendance)",
            "SELECT student_id FROM students WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance)"
        ]
    },
    {
        "db_id": "student_assessment",
        "final_query": "SELECT T2.student_details FROM student_course_registrations AS T1 JOIN students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.registration_date DESC LIMIT 1",
        "final_utterance": "What is detail of the student who most recently registered course?",
        "interaction_utterance": [
            "What is the course id of the most recent course registration?",
            "Give the student id instead.",
            "Give the student details."
        ],
        "interaction_query": [
            "SELECT course_id FROM student_course_registrations ORDER BY registration_date DESC LIMIT 1",
            "SELECT student_id FROM student_course_registrations ORDER BY registration_date DESC LIMIT 1",
            "SELECT T2.student_details FROM student_course_registrations AS T1 JOIN students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.registration_date DESC LIMIT 1"
        ]
    },
    {
        "db_id": "student_assessment",
        "final_query": "SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"English\"",
        "final_utterance": "How many students attend course English?",
        "interaction_utterance": [
            "Which students attended the course with course id 301?",
            "Count how many did so.",
            "What about the course English?"
        ],
        "interaction_query": [
            "SELECT student_id FROM student_course_attendance WHERE course_id = 301",
            "SELECT count(*) FROM student_course_attendance WHERE course_id = 301",
            "SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"English\""
        ]
    },
    {
        "db_id": "student_assessment",
        "final_query": "SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T2.student_id = 171",
        "final_utterance": "How many courses do the student whose id is 171 attend?",
        "interaction_utterance": [
            "What are the dates of attendance for the student with id 141?",
            "With id 171?",
            "What are the courses that this student attends? Give the course names.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT date_of_attendance FROM student_course_attendance WHERE student_id = 141",
            "SELECT date_of_attendance FROM student_course_attendance WHERE student_id = 171",
            "SELECT course_name FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T2.student_id = 171",
            "SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T2.student_id = 171"
        ]
    },
    {
        "db_id": "student_assessment",
        "final_query": "SELECT T2.candidate_id FROM people AS T1 JOIN candidates AS T2 ON T1.person_id = T2.candidate_id WHERE T1.email_address = \"stanley.monahan@example.org\"",
        "final_utterance": "Find id of the candidate whose email is stanley.monahan@example.org?",
        "interaction_utterance": [
            "What is the first name of the candidate with login name mkou?",
            "Give the candidate id instead.",
            "Find the same for the candidate with emailstanley.monahan@example.org."
        ],
        "interaction_query": [
            "SELECT first_name FROM people WHERE login_name = \"mkou\"",
            "SELECT T2.candidate_id FROM people AS T1 JOIN candidates AS T2 ON T1.person_id = T2.candidate_id WHERE T1.login_name = \"mkou\"",
            "SELECT T2.candidate_id FROM people AS T1 JOIN candidates AS T2 ON T1.person_id = T2.candidate_id WHERE T1.email_address = \"stanley.monahan@example.org\""
        ]
    },
    {
        "db_id": "student_assessment",
        "final_query": "SELECT candidate_id FROM candidate_assessments ORDER BY assessment_date DESC LIMIT 1",
        "final_utterance": "Find id of the candidate who most recently accessed the course?",
        "interaction_utterance": [
            "What is the oldest date of assessment of the candidates?",
            "Most recent?",
            "Give the candidate id instead."
        ],
        "interaction_query": [
            "SELECT assessment_date FROM candidate_assessments ORDER BY assessment_date ASC LIMIT 1",
            "SELECT assessment_date FROM candidate_assessments ORDER BY assessment_date DESC LIMIT 1",
            "SELECT candidate_id FROM candidate_assessments ORDER BY assessment_date DESC LIMIT 1"
        ]
    },
    {
        "db_id": "student_assessment",
        "final_query": "SELECT T1.student_details FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What are the details of the student who registered the most number of courses?",
        "interaction_utterance": [
            "Which student registered for the least number of courses? Give the student id.",
            "Most number of courses?",
            "Give the student details."
        ],
        "interaction_query": [
            "SELECT student_id FROM student_course_registrations GROUP BY student_id ORDER BY count(*) ASC LIMIT 1",
            "SELECT student_id FROM student_course_registrations GROUP BY student_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT T1.student_details FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "student_assessment",
        "final_query": "SELECT T1.student_id ,  count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id",
        "final_utterance": "List the id of students who registered some courses and the number of their registered courses?",
        "interaction_utterance": [
            "How many students registered for each course?",
            "How many courses did each student register for?",
            "Give the student id as well."
        ],
        "interaction_query": [
            "SELECT count(*) FROM student_course_registrations GROUP BY course_id",
            "SELECT count(*) FROM student_course_registrations GROUP BY student_id",
            "SELECT T1.student_id ,  count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id"
        ]
    },
    {
        "db_id": "student_assessment",
        "final_query": "SELECT T3.course_name ,  count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id JOIN courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id",
        "final_utterance": "How many registered students does each course have? List course name and the number of their registered students.",
        "interaction_utterance": [
            "How many registered students are there?",
            "How many are there for each course?",
            "Give the course name as well."
        ],
        "interaction_query": [
            "SELECT count(DISTINCT student_id) FROM student_course_registrations",
            "SELECT count(*) FROM student_course_registrations GROUP BY course_id",
            "SELECT T3.course_name ,  count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id JOIN courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id"
        ]
    },
    {
        "db_id": "student_assessment",
        "final_query": "SELECT T3.cell_mobile_number FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN people AS T3 ON T1.candidate_id = T3.person_id WHERE T2.asessment_outcome_code = \"Fail\"",
        "final_utterance": "Find the cell mobile number of the candidates whose assessment code is \"Fail\"?",
        "interaction_utterance": [
            "Find the qualifications of the candidates with assessment code \"Pass\"",
            "Give their candidate details instead.",
            "What about with assessment code \"Fail\"",
            "Find the cell mobile number instead."
        ],
        "interaction_query": [
            "SELECT qualification FROM candidate_assessments WHERE asessment_outcome_code = \"Pass\"",
            "SELECT T1.candidate_details FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id WHERE T2.asessment_outcome_code = \"Pass\"",
            "SELECT T1.candidate_details FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id WHERE T2.asessment_outcome_code = \"Fail\"",
            "SELECT T3.cell_mobile_number FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN people AS T3 ON T1.candidate_id = T3.person_id WHERE T2.asessment_outcome_code = \"Fail\""
        ]
    },
    {
        "db_id": "student_assessment",
        "final_query": "SELECT student_id FROM student_course_attendance WHERE course_id = 301 ORDER BY date_of_attendance DESC LIMIT 1",
        "final_utterance": "What is the id of the student who most recently attended course is 301?",
        "interaction_utterance": [
            "Give the most recently attended course.",
            "What about for the course 301?",
            "Give the student id instead."
        ],
        "interaction_query": [
            "SELECT course_id FROM student_course_attendance ORDER BY date_of_attendance DESC LIMIT 1",
            "SELECT course_id FROM student_course_attendance WHERE course_id = 301 ORDER BY date_of_attendance DESC LIMIT 1",
            "SELECT student_id FROM student_course_attendance WHERE course_id = 301 ORDER BY date_of_attendance DESC LIMIT 1"
        ]
    },
    {
        "db_id": "student_assessment",
        "final_query": "SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id JOIN students AS T3 ON T2.person_id = T3.student_id",
        "final_utterance": "Find distinct cities of address of students?",
        "interaction_utterance": [
            "What are the distinct address ids of the people?",
            "Give the same for the students.",
            "Give their cities of addresses too."
        ],
        "interaction_query": [
            "SELECT DISTINCT address_id FROM people_addresses",
            "SELECT DISTINCT T1.address_id FROM people_addresses AS T1 JOIN students AS T2 ON T1.person_id = T2.student_id",
            "SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id JOIN students AS T3 ON T2.person_id = T3.student_id"
        ]
    },
    {
        "db_id": "student_assessment",
        "final_query": "SELECT student_id FROM student_course_registrations UNION SELECT student_id FROM student_course_attendance",
        "final_utterance": "What are the id of students who registered courses or attended courses?",
        "interaction_utterance": [
            "What are the ids of students who registered courses?",
            "What about for students who also attended courses?",
            "Give the ids for students who did either."
        ],
        "interaction_query": [
            "SELECT student_id FROM student_course_registrations",
            "SELECT student_id FROM student_course_registrations INTERSECT SELECT student_id FROM student_course_attendance",
            "SELECT student_id FROM student_course_registrations UNION SELECT student_id FROM student_course_attendance"
        ]
    },
    {
        "db_id": "student_assessment",
        "final_query": "SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121",
        "final_utterance": "Find the id of courses which are registered or attended by student whose id is 121?",
        "interaction_utterance": [
            "Find the course ids of the courses registered by the student with id 171.",
            "Find the same for the student with id 121.",
            "Give also the id of courses which are attended by that student."
        ],
        "interaction_query": [
            "SELECT course_id FROM student_course_registrations WHERE student_id = 171",
            "SELECT course_id FROM student_course_registrations WHERE student_id = 121",
            "SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121"
        ]
    },
    {
        "db_id": "student_assessment",
        "final_query": "SELECT * FROM student_course_registrations WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance)",
        "final_utterance": "What are all info of students who registered courses but not attended courses?",
        "interaction_utterance": [
            "How many students registered for courses?",
            "Of them, how many did not attend course 301?",
            "How many did not even attend any course?",
            "Give all the info instead."
        ],
        "interaction_query": [
            "SELECT count(*) FROM student_course_registrations",
            "SELECT count(*) FROM student_course_registrations WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance WHERE course_id = 301)",
            "SELECT count(*) FROM student_course_registrations WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance)",
            "SELECT * FROM student_course_registrations WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance)"
        ]
    },
    {
        "db_id": "student_assessment",
        "final_query": "SELECT T2.student_id FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"statistics\" ORDER BY T2.registration_date",
        "final_utterance": "List the id of students who registered course statistics in the order of registration date.",
        "interaction_utterance": [
            "Give the registration dates of registrations for the course 305.",
            "How about for the course statistics?",
            "Give the student ids, ordered by the registration date."
        ],
        "interaction_query": [
            "SELECT registration_date FROM student_course_registrations WHERE course_id = 305",
            "SELECT T2.registration_date FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"statistics\"",
            "SELECT T2.student_id FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"statistics\" ORDER BY T2.registration_date"
        ]
    },
    {
        "db_id": "wrestler",
        "final_query": "SELECT Name FROM wrestler ORDER BY Days_held ASC LIMIT 1",
        "final_utterance": "What is the name of the wrestler with the fewest days held?",
        "interaction_utterance": [
            "What are the names of the wrestlers?",
            "Who has the most number of days held",
            "Least number instead."
        ],
        "interaction_query": [
            "SELECT name FROM wrestler",
            "SELECT name FROM wrestler ORDER BY Days_held DESC LIMIT 1",
            "SELECT name FROM wrestler ORDER BY Days_held ASC LIMIT 1"
        ]
    },
    {
        "db_id": "wrestler",
        "final_query": "SELECT T2.Name ,  T1.Team FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID  =  T2.Wrestler_ID ORDER BY T2.Days_held DESC",
        "final_utterance": "List the names of wrestlers and the teams in elimination in descending order of days held.",
        "interaction_utterance": [
            "What are the teams in elimination?",
            "Show the respective names of the wrestlers.",
            "Order this by increasing time.",
            "Decreasing instead.",
            "Sort by days held in the same order."
        ],
        "interaction_query": [
            "SELECT team FROM elimination",
            "SELECT T2.Name, T1.Team  FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID",
            "SELECT T2.Name, T1.Team  FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T1.Time ASC",
            "SELECT T2.Name, T1.Team  FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T1.Time DESC",
            "SELECT T2.Name ,  T1.Team FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID  =  T2.Wrestler_ID ORDER BY T2.Days_held DESC"
        ]
    },
    {
        "db_id": "wrestler",
        "final_query": "SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID  =  T2.Wrestler_ID ORDER BY T2.Days_held DESC LIMIT 1",
        "final_utterance": "List the time of elimination of the wrestlers with largest days held.",
        "interaction_utterance": [
            "Which wrestler has the largest reign?",
            "Largest days held instead.",
            "List the elimination move of this, not the name.",
            "List the elimination time instead."
        ],
        "interaction_query": [
            "SELECT name FROM wrestler ORDER BY Reign DESC LIMIT 1",
            "SELECT name FROM wrestler ORDER BY Days_held DESC LIMIT 1",
            "SELECT T1.Elimination_Move FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY Days_held DESC LIMIT 1",
            "SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID  =  T2.Wrestler_ID ORDER BY T2.Days_held DESC LIMIT 1"
        ]
    },
    {
        "db_id": "wrestler",
        "final_query": "SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID  =  T2.Wrestler_ID WHERE T2.Days_held  >  50",
        "final_utterance": "Show times of elimination of wrestlers with days held more than 50.",
        "interaction_utterance": [
            "What are the names of the wrestlers who have more than 1 reign?",
            "More than 50 days held instead.",
            "Give the times of elimination only."
        ],
        "interaction_query": [
            "SELECT name FROM wrestler WHERE reign > 1",
            "SELECT name FROM wrestler WHERE Days_held > 50",
            "SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID  =  T2.Wrestler_ID WHERE T2.Days_held  >  50"
        ]
    },
    {
        "db_id": "wrestler",
        "final_query": "SELECT Team FROM elimination GROUP BY Team HAVING COUNT(*)  >  3",
        "final_utterance": "Show teams that have suffered more than three eliminations.",
        "interaction_utterance": [
            "What are the teams who have suffered elimination?",
            "Which ones have had only two eliminations?",
            "Which ones have had more than three?"
        ],
        "interaction_query": [
            "SELECT Team FROM elimination",
            "SELECT Team FROM elimination GROUP BY Team HAVING COUNT(*) = 2",
            "SELECT Team FROM elimination GROUP BY Team HAVING COUNT(*)  >  3"
        ]
    },
    {
        "db_id": "wrestler",
        "final_query": "SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Please show the most common reigns of wrestlers.",
        "interaction_utterance": [
            "Show the reigns of the wrestlers.",
            "What is the least common reign?",
            "Opposite?"
        ],
        "interaction_query": [
            "SELECT Reign FROM wrestler",
            "SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT(*) ASC LIMIT 1",
            "SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "wrestler",
        "final_query": "SELECT LOCATION FROM wrestler GROUP BY LOCATION HAVING COUNT(*)  >  2",
        "final_utterance": "List the locations that are shared by more than two wrestlers.",
        "interaction_utterance": [
            "List the events of the wrestlers.",
            "Locations instead.",
            "Which ones are shared by one wrestler?",
            "More than two instead?"
        ],
        "interaction_query": [
            "SELECT Event FROM wrestler",
            "SELECT Location FROM wrestler",
            "SELECT LOCATION FROM wrestler GROUP BY LOCATION HAVING COUNT(*) = 1",
            "SELECT LOCATION FROM wrestler GROUP BY LOCATION HAVING COUNT(*)  >  2"
        ]
    },
    {
        "db_id": "wrestler",
        "final_query": "SELECT Name FROM wrestler WHERE Wrestler_ID NOT IN (SELECT Wrestler_ID FROM elimination)",
        "final_utterance": "List the names of wrestlers that have not been eliminated.",
        "interaction_utterance": [
            "Show the names of the wrestlers.",
            "Who has been eliminated?",
            "Who hasn't been?"
        ],
        "interaction_query": [
            "SELECT Name FROM wrestler",
            "SELECT Name FROM wrestler WHERE Wrestler_ID IN (SELECT Wrestler_ID FROM elimination)",
            "SELECT Name FROM wrestler WHERE Wrestler_ID NOT IN (SELECT Wrestler_ID FROM elimination)"
        ]
    },
    {
        "db_id": "wrestler",
        "final_query": "SELECT Team FROM Elimination WHERE Eliminated_By  =  \"Orton\" INTERSECT SELECT Team FROM Elimination WHERE Eliminated_By  =  \"Benjamin\"",
        "final_utterance": "Show the teams that have both wrestlers eliminated by \"Orton\" and wrestlers eliminated by \"Benjamin\".",
        "interaction_utterance": [
            "Give the teams that have wrestlers eliminated by the move \"Go To Sleep\"",
            "How about the ones eliminated by \"Orton\"",
            "Give the ones that were also eliminated by \"Benjamin\""
        ],
        "interaction_query": [
            "SELECT Team FROM Elimination WHERE Elimination_Move = \"Go To Sleep\"",
            "SELECT Team FROM Elimination WHERE Eliminated_By = \"Orton\"",
            "SELECT Team FROM Elimination WHERE Eliminated_By  =  \"Orton\" INTERSECT SELECT Team FROM Elimination WHERE Eliminated_By  =  \"Benjamin\""
        ]
    },
    {
        "db_id": "local_govt_and_lot",
        "final_query": "SELECT T1.property_id ,  count(*) FROM properties AS T1 JOIN residents AS T2 ON T1.property_id  =  T2.property_id GROUP BY T1.property_id",
        "final_utterance": "How many residents does each property have? List property id and resident count.",
        "interaction_utterance": [
            "How many residents are there total?",
            "How many different properties are there?",
            "Show the property id and count of residents for the property with the most residents.",
            "Show this data for each property."
        ],
        "interaction_query": [
            "SELECT count(*) FROM residents",
            "SELECT count(DISTINCT property_id) FROM properties",
            "SELECT T1.property_id, count(*) FROM properties AS T1 JOIN residents AS T2 ON T1.property_id  =  T2.property_id GROUP BY T1.property_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT T1.property_id ,  count(*) FROM properties AS T1 JOIN residents AS T2 ON T1.property_id  =  T2.property_id GROUP BY T1.property_id"
        ]
    },
    {
        "db_id": "local_govt_and_lot",
        "final_query": "SELECT DISTINCT T1.service_type_code FROM services AS T1 JOIN organizations AS T2 ON T1.organization_id  =  T2.organization_id WHERE T2.organization_details  =  'Denesik and Sons Party'",
        "final_utterance": "What is the distinct service types that are provided by the organization which has detail 'Denesik and Sons Party'?",
        "interaction_utterance": [
            "What is the id of the parent organization to the 'Robel-Schulist Group'?",
            "What is the detail of this organization id?",
            "What are the distinct service types that are provided by the organization which has detail 'Denesik and Sons Party'?"
        ],
        "interaction_query": [
            "SELECT parent_organization_id FROM organizations WHERE organization_details = 'Robel-Schulist Group'",
            "SELECT organization_details FROM organizations WHERE organization_id = (SELECT parent_organization_id FROM organizations WHERE organization_details = 'Robel-Schulist Group')",
            "SELECT DISTINCT T1.service_type_code FROM services AS T1 JOIN organizations AS T2 ON T1.organization_id  =  T2.organization_id WHERE T2.organization_details  =  'Denesik and Sons Party'"
        ]
    },
    {
        "db_id": "local_govt_and_lot",
        "final_query": "SELECT t1.resident_id ,  t1.other_details ,  count(*) FROM residents AS t1 JOIN residents_services AS t2 ON t1.resident_id  =  t2.resident_id GROUP BY t1.resident_id ORDER BY count(*) DESC",
        "final_utterance": "How many services has each resident requested? List the resident id, details, and the count in descending order of the count.",
        "interaction_utterance": [
            "How many residential services were requested?",
            "How about for each resident?",
            "Also show the other details for each resident.",
            "Order the previous table in descending order of the number of requests."
        ],
        "interaction_query": [
            "SELECT count(*) FROM residents_services",
            "SELECT t1.resident_id , count(*) FROM residents AS t1 JOIN residents_services AS t2 ON t1.resident_id = t2.resident_id GROUP BY t1.resident_id",
            "SELECT t1.resident_id , t1.other_details , count(*) FROM residents AS t1 JOIN residents_services AS t2 ON t1.resident_id = t2.resident_id GROUP BY t1.resident_id",
            "SELECT t1.resident_id , t1.other_details , count(*) FROM residents AS t1 JOIN residents_services AS t2 ON t1.resident_id = t2.resident_id GROUP BY t1.resident_id ORDER BY count(*) DESC"
        ]
    },
    {
        "db_id": "local_govt_and_lot",
        "final_query": "SELECT T1.service_id ,  T1.service_details ,  count(*) FROM Services AS T1 JOIN Residents_Services AS T2 ON T1.service_id  =  T2.service_id GROUP BY T1.service_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the maximum number that a certain service is provided? List the service id, details and number.",
        "interaction_utterance": [
            "Show the ID numbers for all the different services that are available.",
            "How many times has a resident service of the type 'Moving Out' been provided?",
            "Which services have not been provided, if any?",
            "What is the most number of times any particular service was provided?",
            "What service was it? Show the service_id and service_details."
        ],
        "interaction_query": [
            "SELECT DISTINCT service_id FROM services",
            "SELECT count(*) FROM services AS t1 JOIN residents_services AS t2 ON t1.service_id = t2.service_id WHERE service_type_code = 'Moving Out'",
            "SELECT count(*) FROM services WHERE service_id NOT IN (SELECT DISTINCT t1.service_id FROM services AS t1 JOIN residents_services AS T2 ON t1.service_id = t2.service_id)",
            "SELECT count(*) FROM Services AS T1 JOIN Residents_Services AS T2 ON T1.service_id  =  T2.service_id GROUP BY T1.service_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT T1.service_id ,  T1.service_details ,  count(*) FROM Services AS T1 JOIN Residents_Services AS T2 ON T1.service_id  =  T2.service_id GROUP BY T1.service_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "local_govt_and_lot",
        "final_query": "SELECT T1.customer_id ,  T1.customer_details FROM Customers AS T1 JOIN Customer_Events AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >=  3",
        "final_utterance": "What are the id and details of the customers who have at least 3 events?",
        "interaction_utterance": [
            "Show the customer id numbers for those who have events.",
            "How about those with at least 3?",
            "Also show customer details."
        ],
        "interaction_query": [
            "SELECT t1.customer_id FROM customers AS t1 JOIN customer_events AS t2 ON t1.customer_id = t2.customer_id",
            "SELECT t1.customer_id FROM Customers AS t1 JOIN Customer_Events AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_id HAVING count(*)  >=  3",
            "SELECT t1.customer_id , t1.customer_details FROM Customers AS t1 JOIN Customer_Events AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_id HAVING count(*)  >=  3"
        ]
    },
    {
        "db_id": "local_govt_and_lot",
        "final_query": "SELECT T1.Customer_Event_ID  ,  T1.property_id FROM Customer_Events AS T1 JOIN Customer_Event_Notes AS T2 ON T1.Customer_Event_ID  =  T2.Customer_Event_ID GROUP BY T1.customer_event_id HAVING count(*) BETWEEN 1 AND 3",
        "final_utterance": "Which events have the number of notes between one and three? List the event id and the property id.",
        "interaction_utterance": [
            "Show any customer event id numbers that have corresponding notes.",
            "How many appear have more than 5 notes?",
            "How about between 1 and 3 notes? Also show property id."
        ],
        "interaction_query": [
            "SELECT t1.customer_event_id FROM customer_events AS t1 JOIN customer_event_notes AS t2 ON t1.customer_event_id = t2.customer_event_id",
            "SELECT t1.customer_event_id FROM customer_events AS t1 JOIN customer_event_notes AS t2 ON t1.customer_event_id = t2.customer_event_id GROUP BY t1.customer_event_id HAVING count(*) > 5",
            "SELECT T1.Customer_Event_ID  ,  T1.property_id FROM Customer_Events AS T1 JOIN Customer_Event_Notes AS T2 ON T1.Customer_Event_ID  =  T2.Customer_Event_ID GROUP BY T1.customer_event_id HAVING count(*) BETWEEN 1 AND 3"
        ]
    },
    {
        "db_id": "local_govt_and_lot",
        "final_query": "SELECT DISTINCT T2.thing_id ,  T2.Type_of_Thing_Code FROM Timed_Status_of_Things AS T1 JOIN Things AS T2 ON T1.thing_id  =  T2.thing_id WHERE T1.Status_of_Thing_Code  =  'Close' OR T1.Date_and_Date  <  '2017-06-19 02:59:21'",
        "final_utterance": "What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21'",
        "interaction_utterance": [
            "What is the earliest status record date?",
            "Which things have a status record before the date '2017-06-19 02:59:21'?",
            "Also show the things that have the status 'Close'.",
            "Show the distinct ids and also the type of thing."
        ],
        "interaction_query": [
            "SELECT min(Date_and_Date) FROM Timed_Status_of_Things",
            "SELECT * FROM Timed_Status_of_Things WHERE Date_and_Date < '2017-06-19 02:59:21'",
            "SELECT * FROM Timed_Status_of_Things WHERE Status_of_Thing_Code = 'Close' OR Date_and_Date < '2017-06-19 02:59:21'",
            "SELECT DISTINCT t2.thing_id ,  t2.Type_of_Thing_Code FROM Timed_Status_of_Things AS t1 JOIN Things AS t2 ON t1.thing_id  =  t2.thing_id WHERE t1.Status_of_Thing_Code  =  'Close' OR t1.Date_and_Date  <  '2017-06-19 02:59:21'"
        ]
    },
    {
        "db_id": "local_govt_and_lot",
        "final_query": "SELECT count(DISTINCT T2.Location_Code) FROM Things AS T1 JOIN Timed_Locations_of_Things AS T2 ON T1.thing_id  =  T2.thing_id WHERE T1.service_details  =  'Unsatisfied'",
        "final_utterance": "How many distinct locations have the things with service detail 'Unsatisfied' been located in?",
        "interaction_utterance": [
            "What are all the different types of service details for things?",
            "How many of each?",
            "Show only the things with the detail being 'Unsatisfied'.",
            "At how many distinct locations have they been located?"
        ],
        "interaction_query": [
            "SELECT DISTINCT service_details FROM things",
            "SELECT count(*), service_details FROM things GROUP BY service_details",
            "SELECT * FROM things WHERE service_details = 'Unsatisfied'",
            "SELECT count(DISTINCT T2.Location_Code) FROM Things AS T1 JOIN Timed_Locations_of_Things AS T2 ON T1.thing_id  =  T2.thing_id WHERE T1.service_details  =  'Unsatisfied'"
        ]
    },
    {
        "db_id": "local_govt_and_lot",
        "final_query": "SELECT organization_id FROM organizations EXCEPT SELECT parent_organization_id FROM organizations",
        "final_utterance": "Which organizations are not a parent organization of others? List the organization id.",
        "interaction_utterance": [
            "What are all the different parent organization ids?",
            "How many organizations are their own parent?",
            "Which organizations are not a parent to any others?"
        ],
        "interaction_query": [
            "SELECT DISTINCT parent_organization_id FROM organizations",
            "SELECT count(*) FROM organizations WHERE parent_organization_id = organization_id",
            "SELECT organization_id FROM organizations EXCEPT SELECT parent_organization_id FROM organizations"
        ]
    },
    {
        "db_id": "local_govt_and_lot",
        "final_query": "SELECT other_details FROM Residents WHERE other_details LIKE '%Miss%'",
        "final_utterance": "What are the resident details containing the substring 'Miss'?",
        "interaction_utterance": [
            "Order the resident list alphabetically by other details.",
            "How many residents have the title of 'Prof'?",
            "Alright, what about 'Miss'?"
        ],
        "interaction_query": [
            "SELECT * FROM residents ORDER BY other_details",
            "SELECT count(*) FROM residents WHERE other_details LIKE '%Prof.%'",
            "SELECT other_details FROM residents WHERE other_details LIKE '%Miss%'"
        ]
    },
    {
        "db_id": "product_catalog",
        "final_query": "SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING count(*)  >  3",
        "final_utterance": "Find the list of attribute data types possessed by more than 3 attribute definitions.",
        "interaction_utterance": [
            "What are the different attribute data types?",
            "How many attributes are of each type?",
            "What datatypes have more than 1?",
            "How about more than 3?"
        ],
        "interaction_query": [
            "SELECT distinct attribute_data_type FROM Attribute_Definitions",
            "SELECT attribute_data_type, count(*) FROM Attribute_Definitions GROUP BY attribute_data_type",
            "SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING count(*)  >  1",
            "SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING count(*)  >  3"
        ]
    },
    {
        "db_id": "product_catalog",
        "final_query": "SELECT distinct(catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE \"%Murray%\"",
        "final_utterance": "Find all the catalog publishers whose name contains \"Murray\"",
        "interaction_utterance": [
            "How many different catalog publishers are there?",
            "How many have a name that contaSELECT count(distinct(catalog_publisher)) FROM catalogs WHERE catalog_publisher LIKE \"%Murray%\"ins \"Murray\"",
            "Which ones?"
        ],
        "interaction_query": [
            "SELECT count(distinct catalog_publisher) FROM catalogs",
            "SELECT count(distinct catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE \"%Murray%\"",
            "SELECT distinct(catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE \"%Murray%\""
        ]
    },
    {
        "db_id": "product_catalog",
        "final_query": "SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which catalog publisher has published the most catalogs?",
        "interaction_utterance": [
            "List all the catalog ids and their respective catalog publisher?",
            "How many catalogs have each publisher published?",
            "Which publisher has the least?",
            "How about the most?"
        ],
        "interaction_query": [
            "SELECT catalog_id, catalog_publisher FROM catalogs",
            "SELECT catalog_publisher, count(*) FROM catalogs GROUP BY catalog_publisher",
            "SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY count(*) ASC LIMIT 1",
            "SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "product_catalog",
        "final_query": "SELECT t1.catalog_name ,  t1.date_of_publication FROM catalogs AS t1 JOIN catalog_structure AS t2 ON t1.catalog_id  =  t2.catalog_id WHERE catalog_level_number  >  5",
        "final_utterance": "Find the names and publication dates of all catalogs that have catalog level number greater than 5.",
        "interaction_utterance": [
            "Show all the catalog information and their respective levels numbers!",
            "Show me only those with a level number greater than five.",
            "Show me just the names of these catalogs?",
            "Also show their publication dates."
        ],
        "interaction_query": [
            "SELECT * FROM catalogs AS t1 JOIN catalog_structure AS t2 ON t1.catalog_id  =  t2.catalog_id",
            "SELECT * FROM catalogs AS t1 JOIN catalog_structure AS t2 ON t1.catalog_id  =  t2.catalog_id WHERE catalog_level_number  >  5",
            "SELECT t1.catalog_name FROM catalogs AS t1 JOIN catalog_structure AS t2 ON t1.catalog_id  =  t2.catalog_id WHERE catalog_level_number  >  5",
            "SELECT t1.catalog_name ,  t1.date_of_publication FROM catalogs AS t1 JOIN catalog_structure AS t2 ON t1.catalog_id  =  t2.catalog_id WHERE catalog_level_number  >  5"
        ]
    },
    {
        "db_id": "product_catalog",
        "final_query": "SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id  =  t2.catalog_entry_id WHERE t2.attribute_value  =  (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY count(*) DESC LIMIT 1)",
        "final_utterance": "What are the entry names of catalog with the attribute possessed by most entries.",
        "interaction_utterance": [
            "How many different attributes are there?",
            "What is the id of the one that is used in the most catalog content entries?",
            "Which catalog content entries use this attribute value?",
            "Show me just their catalog entry names?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM attribute_definitions",
            "SELECT attribute_id FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT * FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id  =  t2.catalog_entry_id WHERE t2.attribute_id  =  (SELECT attribute_id FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_id ORDER BY count(*) DESC LIMIT 1)",
            "SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id  =  t2.catalog_entry_id WHERE t2.attribute_id  =  (SELECT attribute_id FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_id ORDER BY count(*) DESC LIMIT 1)"
        ]
    },
    {
        "db_id": "product_catalog",
        "final_query": "SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1",
        "final_utterance": "What is the entry name of the most expensive catalog (in USD)?",
        "interaction_utterance": [
            "What are prices of each catalog entry id?",
            "Show me only the prices in USD!",
            "Which are the contents of the catalog with the highest one?",
            "What is its entry name?"
        ],
        "interaction_query": [
            "SELECT catalog_entry_id, price_in_dollars, price_in_euros, price_in_pounds FROM catalog_contents",
            "SELECT catalog_entry_id, price_in_dollars FROM catalog_contents",
            "SELECT * FROM catalog_contents  ORDER BY price_in_dollars DESC LIMIT 1",
            "SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1"
        ]
    },
    {
        "db_id": "product_catalog",
        "final_query": "SELECT t2.catalog_level_name FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number  =  t2.catalog_level_number ORDER BY t1.price_in_dollars LIMIT 1",
        "final_utterance": "What is the level name of the cheapest catalog (in USD)?",
        "interaction_utterance": [
            "What are the prices of each catalog in USD?",
            "What is the one with the highest price?",
            "How about the lowest?",
            "What is its catalog level name?"
        ],
        "interaction_query": [
            "SELECT catalog_entry_id, price_in_dollars FROM catalog_contents",
            "SELECT * FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number  =  t2.catalog_level_number ORDER BY t1.price_in_dollars DESC LIMIT 1",
            "SELECT * FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number  =  t2.catalog_level_number ORDER BY t1.price_in_dollars LIMIT 1",
            "SELECT t2.catalog_level_name FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number  =  t2.catalog_level_number ORDER BY t1.price_in_dollars LIMIT 1"
        ]
    },
    {
        "db_id": "product_catalog",
        "final_query": "SELECT avg(price_in_euros) ,  min(price_in_euros) FROM catalog_contents",
        "final_utterance": "What are the average and minimum price (in Euro) of all products?",
        "interaction_utterance": [
            "What are all the catalog entry names?",
            "What are the prices in euros of each?",
            "Show me the average price in euros!",
            "Also provide the lowest price!"
        ],
        "interaction_query": [
            "SELECT catalog_entry_name FROM catalog_contents",
            "SELECT catalog_entry_name, price_in_euros FROM catalog_contents",
            "SELECT avg(price_in_euros) FROM catalog_contents",
            "SELECT avg(price_in_euros) ,  min(price_in_euros) FROM catalog_contents"
        ]
    },
    {
        "db_id": "product_catalog",
        "final_query": "SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1",
        "final_utterance": "What is the product with the highest height? Give me the catalog entry name.",
        "interaction_utterance": [
            "Show the name, length, height, and width of every catalog product.",
            "Can you show me the list sorted on width FROM greatest to least!",
            "How about based on height!",
            "Show me the entry_name of just the first row!"
        ],
        "interaction_query": [
            "SELECT catalog_entry_name, height, width, length FROM catalog_contents",
            "SELECT catalog_entry_name, height, width, length FROM catalog_contents ORDER BY width DESC",
            "SELECT catalog_entry_name, height, width, length FROM catalog_contents ORDER BY height DESC",
            "SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1"
        ]
    },
    {
        "db_id": "product_catalog",
        "final_query": "SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity ASC LIMIT 1",
        "final_utterance": "Find the name of the product that has the smallest capacity.",
        "interaction_utterance": [
            "What are the distinct capacity each catalog can have?",
            "Which one is the most common?",
            "Which one is the smallest?",
            "What is the name of a catalog product that has this?"
        ],
        "interaction_query": [
            "SELECT distinct capacity FROM catalog_contents",
            "SELECT capacity FROM catalog_contents group by capacity order by count(*) DESC LIMIT 1",
            "SELECT capacity FROM catalog_contents ORDER BY capacity ASC LIMIT 1",
            "SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity ASC LIMIT 1"
        ]
    },
    {
        "db_id": "product_catalog",
        "final_query": "SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE \"2%\"",
        "final_utterance": "Find the names of all the products whose stock number starts with \"2\".",
        "interaction_utterance": [
            "What are all the names of all the catalog products?",
            "Could you also show me their product stock numbers?!",
            "How many have stock number that starts with \"2\"?",
            "What are their names?"
        ],
        "interaction_query": [
            "SELECT catalog_entry_name FROM catalog_contents",
            "SELECT catalog_entry_name, product_stock_number FROM catalog_contents",
            "SELECT count(*) FROM catalog_contents WHERE product_stock_number LIKE \"2%\"",
            "SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE \"2%\""
        ]
    },
    {
        "db_id": "product_catalog",
        "final_query": "SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id  =  t2.catalog_entry_id WHERE t2.catalog_level_number  =  \"8\"",
        "final_utterance": "Find the names of catalog entries with level number 8.",
        "interaction_utterance": [
            "Show me each catalog entry id and their catalog level numbers.",
            "Which ones have more than one catalog level number?",
            "Which ones have a catalog level number of 8?",
            "Show me the entry names of each!"
        ],
        "interaction_query": [
            "SELECT catalog_entry_id, catalog_level_number FROM Catalog_Contents_Additional_Attributes",
            "SELECT catalog_entry_id, catalog_level_number FROM Catalog_Contents_Additional_Attributes group by catalog_entry_id having count (distinct catalog_level_number) > 1",
            "SELECT catalog_entry_id, catalog_level_number FROM Catalog_Contents_Additional_Attributes WHERE catalog_level_number  =  \"8\"",
            "SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id  =  t2.catalog_entry_id WHERE t2.catalog_level_number  =  \"8\""
        ]
    },
    {
        "db_id": "product_catalog",
        "final_query": "SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH  <  3 OR width  >  5",
        "final_utterance": "Find the names of the products with length smaller than 3 or height greater than 5.",
        "interaction_utterance": [
            "What catalog products have a length smaller than 3?",
            "Show me their names!",
            "Also include those with a height that are greater than 5!"
        ],
        "interaction_query": [
            "SELECT * FROM catalog_contents WHERE LENGTH  <  3",
            "SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH  <  3",
            "SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH  <  3 OR height  >  5"
        ]
    },
    {
        "db_id": "product_catalog",
        "final_query": "SELECT t1.attribute_name ,  t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id  =  t2.attribute_id WHERE t2.attribute_value  =  0",
        "final_utterance": "Find the name and attribute ID of the attribute definitions with attribute value 0.",
        "interaction_utterance": [
            "For each catalog id, show the attribute ids and values!!",
            "Show me just those that a value of 1!",
            "Actually, how about those with a value of 0?",
            "What are the just the names and attribute IDs of each?"
        ],
        "interaction_query": [
            "SELECT attribute_id,  attribute_value FROM Catalog_Contents_Additional_Attributes",
            "SELECT attribute_id,  attribute_value FROM Catalog_Contents_Additional_Attributes WHERE attribute_value  =  1",
            "SELECT attribute_id,  attribute_value FROM Catalog_Contents_Additional_Attributes WHERE attribute_value  =  0",
            "SELECT t1.attribute_name ,  t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id  =  t2.attribute_id WHERE t2.attribute_value  =  0"
        ]
    },
    {
        "db_id": "entertainment_awards",
        "final_query": "SELECT LOCATION FROM festival_detail ORDER BY Num_of_Audience DESC LIMIT 1",
        "final_utterance": "What is the location of the festival with the largest number of audience?",
        "interaction_utterance": [
            "What festivals are there?",
            "What is the audience size for each of these festivals?",
            "Which of these festivals has the largest audience?",
            "Where is this festival located?"
        ],
        "interaction_query": [
            "SELECT festival_name FROM festival_detail",
            "SELECT festival_name, num_of_audience FROM festival_detail",
            "SELECT festival_name FROM festival_detail WHERE num_of_audience = (SELECT max(num_of_audience)from festival_detail)",
            "SELECT LOCATION FROM festival_detail ORDER BY Num_of_Audience DESC LIMIT 1"
        ]
    },
    {
        "db_id": "entertainment_awards",
        "final_query": "SELECT Festival_Name FROM festival_detail ORDER BY YEAR DESC LIMIT 3",
        "final_utterance": "Show the names of the three most recent festivals.",
        "interaction_utterance": [
            "Tell me the names of all the festivals available.",
            "When did these festivals occur?",
            "Which one of these festivals occurred most recently?",
            "Ok, what about the top three most recent ones?"
        ],
        "interaction_query": [
            "SELECT festival_name FROM festival_detail",
            "SELECT festival_name, year FROM festival_detail",
            "SELECT festival_name FROM festival_detail ORDER BY year DESC LIMIT 1",
            "SELECT Festival_Name FROM festival_detail ORDER BY YEAR DESC LIMIT 3"
        ]
    },
    {
        "db_id": "entertainment_awards",
        "final_query": "SELECT T2.Name ,  T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID",
        "final_utterance": "For each nomination, show the name of the artwork and name of the festival where it is nominated.",
        "interaction_utterance": [
            "Show me the names of the artworks.",
            "Can you also tell me the types of these artworks?",
            "Which of these artworks were nominated in some festival?",
            "What were the names of these festivals?"
        ],
        "interaction_query": [
            "SELECT name FROM artwork",
            "SELECT name, type FROM artwork",
            "SELECT t1.name FROM artwork as t1 JOIN nomination AS t2 ON t1.artwork_id = t2.artwork_id JOIN festival_detail AS t3 ON t2.festival_id = t3.festival_id",
            "SELECT T2.Name ,  T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID"
        ]
    },
    {
        "db_id": "entertainment_awards",
        "final_query": "SELECT DISTINCT T2.Type FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID WHERE T3.Year  =  2007",
        "final_utterance": "Show distinct types of artworks that are nominated in festivals in 2007.",
        "interaction_utterance": [
            "Tell me about the names of all the artworks.",
            "What are the types of all these artworks?",
            "Which of these were nominated?",
            "Which of these were nominated in 2007?"
        ],
        "interaction_query": [
            "SELECT name FROM artwork",
            "SELECT DISTINCT type FROM artwork",
            "SELECT DISTINCT t1.type FROM artwork as t1 JOIN nomination AS t2 ON t1.artwork_id = t2.artwork_id JOIN festival_detail AS t3 ON t2.festival_id = t3.festival_id",
            "SELECT DISTINCT T2.Type FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID WHERE T3.Year  =  2007"
        ]
    },
    {
        "db_id": "entertainment_awards",
        "final_query": "SELECT T2.Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID ORDER BY T3.Year",
        "final_utterance": "Show the names of artworks in ascending order of the year they are nominated in.",
        "interaction_utterance": [
            "List the names of all the artworks.",
            "At which festivals were these artworks nominated?",
            "What year were these artworks nominated?",
            "Can you list them in ascending order?"
        ],
        "interaction_query": [
            "SELECT name FROM artwork",
            "SELECT t1.name, t3.festival_name FROM artwork as t1 JOIN nomination AS t2 ON t1.artwork_id = t2.artwork_id JOIN festival_detail AS t3 ON t2.festival_id = t3.festival_id",
            "SELECT t1.name, t3.year FROM artwork as t1 JOIN nomination AS t2 ON t1.artwork_id = t2.artwork_id JOIN festival_detail AS t3 ON t2.festival_id = t3.festival_id",
            "SELECT T2.Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID ORDER BY T3.Year"
        ]
    },
    {
        "db_id": "entertainment_awards",
        "final_query": "SELECT T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID WHERE T2.Type  =  \"Program Talent Show\"",
        "final_utterance": "Show the names of festivals that have nominated artworks of type \"Program Talent Show\".",
        "interaction_utterance": [
            "What are the names of all the festivals?",
            "What are the nominated artworks of these festivals?",
            "Show the types of these artworks given these festivals.",
            "Which of these festivals have type \"Program Talent Show\"?"
        ],
        "interaction_query": [
            "SELECT festival_name FROM festival_detail",
            "SELECT t3.festival_name, t1.name FROM artwork as t1 JOIN nomination AS t2 ON t1.artwork_id = t2.artwork_id JOIN festival_detail AS t3 ON t2.festival_id = t3.festival_id",
            "SELECT t3.festival_name, t1.type FROM artwork as t1 JOIN nomination AS t2 ON t1.artwork_id = t2.artwork_id JOIN festival_detail AS t3 ON t2.festival_id = t3.festival_id",
            "SELECT T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID WHERE T2.Type  =  \"Program Talent Show\""
        ]
    },
    {
        "db_id": "entertainment_awards",
        "final_query": "SELECT T1.Festival_ID ,  T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID GROUP BY T1.Festival_ID HAVING COUNT(*)  >=  2",
        "final_utterance": "Show the ids and names of festivals that have at least two nominations for artworks.",
        "interaction_utterance": [
            "List the names of the festivals.",
            "Show me the names of the nominated artworks for the festivals listed.",
            "Which of these festivals have at least two nominations for artworks?",
            "Show me their ids as well."
        ],
        "interaction_query": [
            "SELECT festival_name FROM festival_detail",
            "SELECT t3.festival_name, t1.name FROM artwork as t1 JOIN nomination AS t2 ON t1.artwork_id = t2.artwork_id JOIN festival_detail AS t3 ON t2.festival_id = t3.festival_id",
            "SELECT t3.festival_name FROM artwork as t1 JOIN nomination AS t2 ON t1.artwork_id = t2.artwork_id JOIN festival_detail AS t3 ON t2.festival_id = t3.festival_id GROUP BY t3.festival_id HAVING  count(*)  >= 2",
            "SELECT T1.Festival_ID ,  T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID GROUP BY T1.Festival_ID HAVING COUNT(*)  >=  2"
        ]
    },
    {
        "db_id": "entertainment_awards",
        "final_query": "SELECT T1.Festival_ID ,  T3.Festival_Name ,  COUNT(*) FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID GROUP BY T1.Festival_ID",
        "final_utterance": "Show the id, name of each festival and the number of artworks it has nominated.",
        "interaction_utterance": [
            "Show me the ids of the festivals.",
            "Show me the names as well.",
            "Add in the artworks nominated as well.",
            "Instead of showing the artworks nominated, show me the number of nominated artworks for each of these festivals."
        ],
        "interaction_query": [
            "SELECT festival_id FROM festival_detail",
            "SELECT festival_id, festival_name FROM festival_detail",
            "SELECT t3.festival_id, t3.festival_name, t1.name FROM artwork as t1 JOIN nomination AS t2 ON t1.artwork_id = t2.artwork_id JOIN festival_detail AS t3 ON t2.festival_id = t3.festival_id",
            "SELECT T1.Festival_ID ,  T3.Festival_Name ,  COUNT(*) FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID GROUP BY T1.Festival_ID"
        ]
    },
    {
        "db_id": "entertainment_awards",
        "final_query": "SELECT TYPE FROM artwork GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "List the most common type of artworks.",
        "interaction_utterance": [
            "Show me the names of all the artworks.",
            "Show me their types as well.",
            "What is the number of artworks for each type?",
            "Which of these types is the most common?"
        ],
        "interaction_query": [
            "SELECT name FROM artwork",
            "SELECT name, type FROM artwork",
            "SELECT type, count(*) FROM artwork GROUP BY type",
            "SELECT TYPE FROM artwork GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "entertainment_awards",
        "final_query": "SELECT YEAR FROM festival_detail GROUP BY YEAR HAVING COUNT(*)  >  1",
        "final_utterance": "List the year in which there are more than one festivals.",
        "interaction_utterance": [
            "Show all the names of all the festivals.",
            "Show me the corresponding year for these festivals.",
            "What were the amount of festivals for each of these years?",
            "Which of these years has more than one festival?"
        ],
        "interaction_query": [
            "SELECT festival_name FROM festival_detail",
            "SELECT festival_name, year FROM festival_detail",
            "SELECT year, count(*) FROM festival_detail GROUP BY Year",
            "SELECT YEAR FROM festival_detail GROUP BY YEAR HAVING COUNT(*)  >  1"
        ]
    },
    {
        "db_id": "entertainment_awards",
        "final_query": "SELECT Name FROM Artwork WHERE Artwork_ID NOT IN (SELECT Artwork_ID FROM nomination)",
        "final_utterance": "List the name of artworks that are not nominated.",
        "interaction_utterance": [
            "Tell me everything about all the artworks.",
            "List only the names of all these artworks.",
            "Which of these were nominated?",
            "Which of those weren't?"
        ],
        "interaction_query": [
            "SELECT * FROM artwork",
            "SELECT name FROM artwork",
            "SELECT t1.name FROM artwork as t1 JOIN nomination AS t2 ON t1.artwork_id = t2.artwork_id JOIN festival_detail AS t3 ON t2.festival_id = t3.festival_id",
            "SELECT Name FROM Artwork WHERE Artwork_ID NOT IN (SELECT Artwork_ID FROM nomination)"
        ]
    },
    {
        "db_id": "entertainment_awards",
        "final_query": "SELECT Num_of_Audience FROM festival_detail WHERE YEAR  =  2008 OR YEAR  =  2010",
        "final_utterance": "Show the number of audience in year 2008 or 2010.",
        "interaction_utterance": [
            "Show me the names of all the festivals.",
            "Show the year for each of them.",
            "Can you only show the audience size for year 2008?",
            "Can you only show the audience sizes for year 2008 and 2010?"
        ],
        "interaction_query": [
            "SELECT festival_name FROM festival_detail",
            "SELECT festival_name, year FROM festival_detail",
            "SELECT Num_of_Audience FROM festival_detail WHERE YEAR  =  2008",
            "SELECT Num_of_Audience FROM festival_detail WHERE YEAR  =  2008 OR YEAR  =  2010"
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT email_address FROM Students WHERE first_name  =  \"Emma\" AND last_name  =  \"Rohan\"",
        "final_utterance": "What is the email of the student with first name \"Emma\" and last name \"Rohan\"?",
        "interaction_utterance": [
            "Show me the mobile number of the student Emma Rohan.",
            "What about her email?"
        ],
        "interaction_query": [
            "SELECT cell_mobile_number FROM Students WHERE first_name  =  \"Emma\" AND last_name  =  \"Rohan\"",
            "SELECT email_address FROM Students WHERE first_name  =  \"Emma\" AND last_name  =  \"Rohan\""
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT max(monthly_rental) ,  min(monthly_rental) FROM Student_Addresses",
        "final_utterance": "Find the maximum and minimum monthly rental for all student addresses.",
        "interaction_utterance": [
            "Show me the names of all students.",
            "What are their monthly rentals?",
            "Show me the maximum and minimum of them."
        ],
        "interaction_query": [
            "SELECT first_name, last_name FROM Students",
            "SELECT t1.first_name, t1.last_name, t2.monthly_rental FROM Students as t1 JOIN Student_Addresses as t2 on t1.student_id = t2.student_id",
            "SELECT max(monthly_rental) ,  min(monthly_rental) FROM Student_Addresses"
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT first_name FROM Teachers WHERE email_address LIKE '%man%'",
        "final_utterance": "Find the first names of teachers whose email address contains the word \"man\".",
        "interaction_utterance": [
            "Show me the name of all teachers.",
            "What are their mobile numbers?",
            "What about email addresses?",
            "Which ones contain the word \"man\"?",
            "Show me the first name only."
        ],
        "interaction_query": [
            "SELECT first_name, last_name FROM Teachers",
            "SELECT first_name,last_name,cell_mobile_number FROM Teachers",
            "SELECT first_name,last_name,email_address FROM Teachers",
            "SELECT first_name,last_name,email_address FROM Teachers WHERE email_address LIKE '%man%'",
            "SELECT first_name FROM Teachers WHERE email_address LIKE '%man%'"
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT T1.student_id ,  T2.first_name FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the id and first name of the student that has the most number of assessment notes?",
        "interaction_utterance": [
            "How many assessment notes are there?",
            "How many does each student have?",
            "Give me the id and first name of the student with the largest number of them."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Assessment_Notes",
            "SELECT student_id, count(*) FROM Assessment_Notes GROUP BY student_id",
            "SELECT T1.student_id ,  T2.first_name FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT T1.teacher_id ,  T2.first_name FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id  =  T2.teacher_id GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 3",
        "final_utterance": "Find the ids and first names of the 3 teachers that have the most number of assessment notes?",
        "interaction_utterance": [
            "How many assessment notes are there?",
            "How many does each teacher have?",
            "List them in the descending order of number of assessment notes.",
            "Show me the ids and first name of the top 3 teachers."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Assessment_Notes",
            "SELECT teacher_id, count(*) FROM Assessment_Notes GROUP BY teacher_id",
            "SELECT teacher_id, count(*) FROM Assessment_Notes GROUP BY teacher_id ORDER BY count(*) DESC",
            "SELECT T1.teacher_id ,  T2.first_name FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id  =  T2.teacher_id GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 3"
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT T1.student_id ,  T2.last_name FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the id and last name of the student that has the most behavior incidents?",
        "interaction_utterance": [
            "What behavior incident types are there?",
            "How many behavior incidents are there?",
            "How many does each student have?",
            "Show me the id and last name of the one with the largest number."
        ],
        "interaction_query": [
            "SELECT incident_type_code FROM Behavior_Incident GROUP BY incident_type_code",
            "SELECT count(*) FROM Behavior_Incident",
            "SELECT student_id, count(*) FROM Behavior_Incident GROUP BY student_id",
            "SELECT T1.student_id ,  T2.last_name FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT T1.teacher_id ,  T2.last_name FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id  =  T2.teacher_id WHERE T1.detention_type_code  =  \"AFTER\" GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the id and last name of the teacher that has the most detentions with detention type code \"AFTER\"?",
        "interaction_utterance": [
            "How many detentions are there?",
            "What about detentions with type code \"AFTER\"?",
            "How many does each teacher have?",
            "Give me the id and last name of the teacher with the largest number."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Detention",
            "SELECT count(*) FROM Detention WHERE detention_type_code  =  \"AFTER\"",
            "SELECT T1.teacher_id ,  T2.last_name, count(*) FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id  =  T2.teacher_id WHERE T1.detention_type_code  =  \"AFTER\" GROUP BY T1.teacher_id",
            "SELECT T1.teacher_id ,  T2.last_name FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id  =  T2.teacher_id WHERE T1.detention_type_code  =  \"AFTER\" GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT T1.student_id ,  T2.first_name FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id ORDER BY AVG(monthly_rental) DESC LIMIT 1",
        "final_utterance": "What are the id and first name of the student whose addresses have the highest average monthly rental?",
        "interaction_utterance": [
            "Show me the first name of all students.",
            "What are their monthly rentals?",
            "What about each student's average rentals across different address?",
            "Give me the id and first name of the student with the highest of them."
        ],
        "interaction_query": [
            "SELECT first_name FROM Students",
            "SELECT t1.first_name, t2.monthly_rental FROM Students as t1 JOIN Student_Addresses as t2 on t1.student_id = t2.student_id",
            "SELECT T2.first_name ,  AVG(T1.monthly_rental) FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T2.first_name",
            "SELECT T1.student_id ,  T2.first_name FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id ORDER BY AVG(monthly_rental) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT T2.address_id ,  T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id  =  T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1",
        "final_utterance": "Find the id and city of the student address with the highest average monthly rental.",
        "interaction_utterance": [
            "Show me all the monthly rentals from student addresses.",
            "Give me the average monthly rental in terms of each address.",
            "Show me their cities.",
            "Give me the id and city of the one with largest average monthly rental."
        ],
        "interaction_query": [
            "SELECT monthly_rental FROM Student_Addresses",
            "SELECT address_id, AVG(monthly_rental) FROM Student_Addresses GROUP BY address_id",
            "SELECT   T1.city,T2.address_id , AVG(T2.monthly_rental) FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id  =  T2.address_id GROUP BY T2.address_id",
            "SELECT T2.address_id ,  T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id  =  T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT T1.incident_type_code ,  T2.incident_type_description FROM Behavior_Incident AS T1 JOIN Ref_Incident_Type AS T2 ON T1.incident_type_code  =  T2.incident_type_code GROUP BY T1.incident_type_code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What are the code and description of the most frequent behavior incident type?",
        "interaction_utterance": [
            "What behavior incident types are there?",
            "How many behavior incidents are there in terms of each type?",
            "Show me the code and description of the most frequent one of them."
        ],
        "interaction_query": [
            "SELECT incident_type_code FROM Behavior_Incident GROUP BY incident_type_code",
            "SELECT incident_type_code,count(*) FROM Behavior_Incident GROUP BY incident_type_code",
            "SELECT T1.incident_type_code ,  T2.incident_type_description FROM Behavior_Incident AS T1 JOIN Ref_Incident_Type AS T2 ON T1.incident_type_code  =  T2.incident_type_code GROUP BY T1.incident_type_code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT T1.detention_type_code ,  T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code  =  T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY count(*) ASC LIMIT 1",
        "final_utterance": "What are the code and description of the least frequent detention type ?",
        "interaction_utterance": [
            "What detention types are there?",
            "How many detentions are there in terms of each type?",
            "Show me the code and description of the least frequent one of them."
        ],
        "interaction_query": [
            "SELECT detention_type_code FROM Detention GROUP BY detention_type_code",
            "SELECT detention_type_code, count(*) FROM Detention GROUP BY detention_type_code",
            "SELECT T1.detention_type_code ,  T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code  =  T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY count(*) ASC LIMIT 1"
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT T1.date_of_notes FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.first_name  =  \"Fanny\"",
        "final_utterance": "Find the dates of assessment notes for students with first name \"Fanny\".",
        "interaction_utterance": [
            "How many assessment notes are there?",
            "Show me the first name of students that had assessment notes in record.",
            "When did Fanny have assessment nodes?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM Assessment_Notes",
            "SELECT T2.first_name FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id",
            "SELECT T1.date_of_notes FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.first_name  =  \"Fanny\""
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT T1.text_of_notes FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id  =  T2.teacher_id WHERE T2.last_name  =  \"Schuster\"",
        "final_utterance": "Find the texts of assessment notes for teachers with last name \"Schuster\".",
        "interaction_utterance": [
            "How many assessment notes are there?",
            "Show me the last name of teachers that had assessment notes in record.",
            "Give me the texts of assessment notes that Schuster had."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Assessment_Notes",
            "SELECT T2.last_name FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id  =  T2.teacher_id",
            "SELECT T1.text_of_notes FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id  =  T2.teacher_id WHERE T2.last_name  =  \"Schuster\""
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT T1.date_incident_start ,  date_incident_end FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.last_name  =  \"Fahey\"",
        "final_utterance": "Find the start and end dates of behavior incidents of students with last name \"Fahey\".",
        "interaction_utterance": [
            "How many behavior incidents are there in record?",
            "Show me the last name of students that were in any incidents.",
            "Give me the start and end dates of Fahey's ones."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Behavior_Incident",
            "SELECT T2.last_name FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id",
            "SELECT T1.date_incident_start ,  date_incident_end FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.last_name  =  \"Fahey\""
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT T1.datetime_detention_start ,  datetime_detention_end FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id  =  T2.teacher_id WHERE T2.last_name  =  \"Schultz\"",
        "final_utterance": "Find the start and end dates of detentions of teachers with last name \"Schultz\".",
        "interaction_utterance": [
            "How many detentions are there in record?",
            "Show me the last name of teachers that were in any detentions.",
            "Give me the start and end dates of Schultz's ones."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Detention",
            "SELECT T2.last_name FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id  =  T2.teacher_id",
            "SELECT T1.datetime_detention_start ,  datetime_detention_end FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id  =  T2.teacher_id WHERE T2.last_name  =  \"Schultz\""
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT T2.address_id ,  T1.zip_postcode FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id  =  T2.address_id ORDER BY monthly_rental DESC LIMIT 1",
        "final_utterance": "What are the id and zip code of the address with the highest monthly rental?",
        "interaction_utterance": [
            "Show me the monthly rentals for all student addresses.",
            "Give me the id of address with highest monthly rental.",
            "What about its zip code?"
        ],
        "interaction_query": [
            "SELECT address_id, monthly_rental FROM Student_Addresses",
            "SELECT address_id FROM Student_Addresses ORDER BY monthly_rental DESC LIMIT 1",
            "SELECT T2.address_id ,  T1.zip_postcode FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id  =  T2.address_id ORDER BY monthly_rental DESC LIMIT 1"
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT T2.cell_mobile_number FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id ORDER BY T1.monthly_rental ASC LIMIT 1",
        "final_utterance": "What is the cell phone number of the student whose address has the lowest monthly rental?",
        "interaction_utterance": [
            "Show me the monthly rentals for all student addresses.",
            "Give me the id of student with the lowest of them.",
            "What about that student's cell phone number?"
        ],
        "interaction_query": [
            "SELECT address_id, monthly_rental FROM Student_Addresses",
            "SELECT student_id FROM Student_Addresses ORDER BY monthly_rental ASC LIMIT 1",
            "SELECT T2.cell_mobile_number FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id ORDER BY T1.monthly_rental ASC LIMIT 1"
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT T2.monthly_rental FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id  =  T2.address_id WHERE T1.state_province_county  =  \"Texas\"",
        "final_utterance": "What are the monthly rentals of student addresses in Texas state?",
        "interaction_utterance": [
            "Show me the monthly rentals for all student addresses.",
            "What are their corresponding state, province, or county?",
            "Show me the monthly rentals from Texas."
        ],
        "interaction_query": [
            "SELECT address_id, monthly_rental FROM Student_Addresses",
            "SELECT T2.address_id, T2.monthly_rental,T1.state_province_county FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id  =  T2.address_id",
            "SELECT T2.monthly_rental FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id  =  T2.address_id WHERE T1.state_province_county  =  \"Texas\""
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT T2.first_name ,  T2.last_name FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id  =  T2.address_id WHERE T1.state_province_county  =  \"Wisconsin\"",
        "final_utterance": "What are the first names and last names of students with address in Wisconsin state?",
        "interaction_utterance": [
            "How many students are there in the record?",
            "What about those with address in Wisconsin?",
            "Show me the first and last names of those students."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Students",
            "SELECT count(*) FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id  =  T2.address_id WHERE T1.state_province_county  =  \"Wisconsin\"",
            "SELECT T2.first_name ,  T2.last_name FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id  =  T2.address_id WHERE T1.state_province_county  =  \"Wisconsin\""
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT T1.line_1 ,  avg(T2.monthly_rental) FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id  =  T2.address_id GROUP BY T2.address_id",
        "final_utterance": "What are the line 1 and average monthly rentals of all student addresses?",
        "interaction_utterance": [
            "How many students are there in file?",
            "What about student addresses?",
            "Show me the line 1 and average montly rentals of those addresses."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Students",
            "SELECT count(*) FROM Student_Addresses",
            "SELECT T1.line_1 ,  avg(T2.monthly_rental) FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id  =  T2.address_id GROUP BY T2.address_id"
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id  =  T2.address_id WHERE T2.first_name  =  \"Lyla\"",
        "final_utterance": "What is the zip code of the address where the teacher with first name \"Lyla\" lives?",
        "interaction_utterance": [
            "Show me the first name of all teachers.",
            "Which city does Lyla live?",
            "What about the zip code?"
        ],
        "interaction_query": [
            "SELECT first_name FROM Teachers",
            "SELECT T1.city FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id  =  T2.address_id WHERE T2.first_name  =  \"Lyla\"",
            "SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id  =  T2.address_id WHERE T2.first_name  =  \"Lyla\""
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT T2.email_address FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id  =  T2.address_id WHERE T1.zip_postcode  =  \"918\"",
        "final_utterance": "What are the email addresses of teachers whose address has zip code \"918\"?",
        "interaction_utterance": [
            "Show me the first name of all teachers.",
            "Who live in addresses with zip code 918?",
            "What about their email addresses?"
        ],
        "interaction_query": [
            "SELECT first_name FROM Teachers",
            "SELECT T2.first_name FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id  =  T2.address_id WHERE T1.zip_postcode  =  \"918\"",
            "SELECT T2.email_address FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id  =  T2.address_id WHERE T1.zip_postcode  =  \"918\""
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT count(*) FROM STUDENTS WHERE student_id NOT IN ( SELECT student_id FROM Behavior_Incident )",
        "final_utterance": "How many students are not involved in any behavior incident?",
        "interaction_utterance": [
            "How many students are there in file?",
            "Give me the id of the students involved in any behavior incident.",
            "How many students are not among those?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM STUDENTS",
            "SELECT distinct student_id FROM Behavior_Incident",
            "SELECT count(*) FROM STUDENTS WHERE student_id NOT IN ( SELECT student_id FROM Behavior_Incident )"
        ]
    },
    {
        "db_id": "behavior_monitoring",
        "final_query": "SELECT last_name FROM Teachers EXCEPT SELECT T1.last_name FROM Teachers AS T1 JOIN Detention AS T2 ON T1.teacher_id  =  T2.teacher_id",
        "final_utterance": "Find the last names of teachers who are not involved in any detention.",
        "interaction_utterance": [
            "Show me the last name of all teachers in file.",
            "How many teachers are involved in any detention?",
            "Give me the last name of teachers who are not one of those."
        ],
        "interaction_query": [
            "SELECT last_name FROM Teachers",
            "SELECT count(*) FROM Teachers AS T1 JOIN Detention AS T2 ON T1.teacher_id  =  T2.teacher_id",
            "SELECT last_name FROM Teachers EXCEPT SELECT T1.last_name FROM Teachers AS T1 JOIN Detention AS T2 ON T1.teacher_id  =  T2.teacher_id"
        ]
    },
    {
        "db_id": "e_government",
        "final_query": "SELECT individual_first_name ,  individual_middle_name ,  individual_last_name FROM individuals ORDER BY individual_last_name",
        "final_utterance": "List every individual's first name, middle name and last name in alphabetical order by last name.",
        "interaction_utterance": [
            "Show information for all individuals.",
            "What are their first names, middle names and last names?",
            "Order the results by the last name."
        ],
        "interaction_query": [
            "SELECT * FROM individuals",
            "SELECT individual_first_name ,  individual_middle_name ,  individual_last_name FROM individuals ORDER BY individual_last_name",
            "SELECT individual_first_name ,  individual_middle_name ,  individual_last_name FROM individuals ORDER BY individual_last_name"
        ]
    },
    {
        "db_id": "e_government",
        "final_query": "SELECT DISTINCT form_type_code FROM forms",
        "final_utterance": "List all the types of forms.",
        "interaction_utterance": [
            "Show all the forms.",
            "What are the distinct type codes of forms?"
        ],
        "interaction_query": [
            "SELECT * FROM forms",
            "SELECT DISTINCT form_type_code FROM forms"
        ]
    },
    {
        "db_id": "e_government",
        "final_query": "SELECT t1.form_name FROM forms AS t1 JOIN party_forms AS t2 ON t1.form_id  =  t2.form_id GROUP BY t2.form_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the name of the most popular party form.",
        "interaction_utterance": [
            "Show all the party forms.",
            "Show the form name of each party form.",
            "Which one is the most popular party form?"
        ],
        "interaction_query": [
            "SELECT * FROM party_forms",
            "SELECT t1.form_name FROM forms AS t1 JOIN party_forms AS t2 ON t1.form_id  =  t2.form_id",
            "SELECT t1.form_name FROM forms AS t1 JOIN party_forms AS t2 ON t1.form_id  =  t2.form_id GROUP BY t2.form_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "e_government",
        "final_query": "SELECT payment_method_code ,  party_phone FROM parties WHERE party_email  =  \"enrico09@example.com\"",
        "final_utterance": "Find the payment method and phone of the party with email \"enrico09@example.com\".",
        "interaction_utterance": [
            "Return all the information for each party.",
            "Show me the information for the one with email \"enrico09@example.com\".",
            "What are their payment method and phone number?"
        ],
        "interaction_query": [
            "SELECT * FROM parties",
            "SELECT * FROM parties WHERE party_email  =  \"enrico09@example.com\"",
            "SELECT payment_method_code ,  party_phone FROM parties WHERE party_email  =  \"enrico09@example.com\""
        ]
    },
    {
        "db_id": "e_government",
        "final_query": "SELECT t1.party_email FROM parties AS t1 JOIN party_forms AS t2 ON t1.party_id  =  t2.party_id WHERE t2.form_id  =  (SELECT form_id FROM party_forms GROUP BY form_id ORDER BY count(*) DESC LIMIT 1)",
        "final_utterance": "Find the emails of parties with the most popular party form.",
        "interaction_utterance": [
            "What is the most popular party form?",
            "Find the emails of parties using this form."
        ],
        "interaction_query": [
            "SELECT * FROM party_forms GROUP BY form_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT t1.party_email FROM parties AS t1 JOIN party_forms AS t2 ON t1.party_id  =  t2.party_id WHERE t2.form_id  =  (SELECT form_id FROM party_forms GROUP BY form_id ORDER BY count(*) DESC LIMIT 1)"
        ]
    },
    {
        "db_id": "e_government",
        "final_query": "SELECT organization_name FROM organizations ORDER BY date_formed ASC",
        "final_utterance": "List all the name of organizations in order of the date formed.",
        "interaction_utterance": [
            "Show all the organizations.",
            "Sort them in order of the date formed.",
            "Just show the organization names."
        ],
        "interaction_query": [
            "SELECT * FROM organizations",
            "SELECT * FROM organizations ORDER BY date_formed ASC",
            "SELECT organization_name FROM organizations ORDER BY date_formed ASC"
        ]
    },
    {
        "db_id": "e_government",
        "final_query": "SELECT organization_name FROM organizations ORDER BY date_formed DESC LIMIT 1",
        "final_utterance": "Find the name of the youngest organization.",
        "interaction_utterance": [
            "When was each organization formed?",
            "Find the name of the organization formed most recently."
        ],
        "interaction_query": [
            "SELECT date_formed FROM organizations",
            "SELECT organization_name FROM organizations ORDER BY date_formed DESC LIMIT 1"
        ]
    },
    {
        "db_id": "e_government",
        "final_query": "SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id JOIN individuals AS t3 ON t2.individual_id  =  t3.individual_id WHERE t1.organization_name  =  \"Labour Party\" ORDER BY t2.date_contact_to DESC LIMIT 1",
        "final_utterance": "Find the last name of the latest contact individual of the organization \"Labour Party\".",
        "interaction_utterance": [
            "Show the organization whose name is \"Labour Party\".",
            "What are the contact individuals for this organization?",
            "Of these, find the last name of the latest contact individual."
        ],
        "interaction_query": [
            "SELECT * FROM organizations WHERE organization_name  =  \"Labour Party\"",
            "SELECT * FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id JOIN individuals AS t3 ON t2.individual_id  =  t3.individual_id WHERE t1.organization_name  =  \"Labour Party\"",
            "SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id JOIN individuals AS t3 ON t2.individual_id  =  t3.individual_id WHERE t1.organization_name  =  \"Labour Party\" ORDER BY t2.date_contact_to DESC LIMIT 1"
        ]
    },
    {
        "db_id": "e_government",
        "final_query": "SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id JOIN individuals AS t3 ON t2.individual_id  =  t3.individual_id WHERE t1.uk_vat_number  =  (SELECT max(uk_vat_number) FROM organizations) ORDER BY t2.date_contact_to ASC LIMIT 1",
        "final_utterance": "Find the last name of the first ever contact person of the organization with the highest UK Vat number.",
        "interaction_utterance": [
            "What is the highest UK Vat number?",
            "Show the contact persons of the organization with this UK Vat number.",
            "From the results, find the last name of the first ever contact person."
        ],
        "interaction_query": [
            "SELECT max(uk_vat_number) FROM organizations",
            "SELECT * FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id JOIN individuals AS t3 ON t2.individual_id  =  t3.individual_id WHERE t1.uk_vat_number  =  (SELECT max(uk_vat_number) FROM organizations)",
            "SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id JOIN individuals AS t3 ON t2.individual_id  =  t3.individual_id WHERE t1.uk_vat_number  =  (SELECT max(uk_vat_number) FROM organizations) ORDER BY t2.date_contact_to ASC LIMIT 1"
        ]
    },
    {
        "db_id": "e_government",
        "final_query": "SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id  =  t2.service_id",
        "final_utterance": "Find the names of the services that have never been used.",
        "interaction_utterance": [
            "List all the available service names.",
            "Which of these have been used in some party service?",
            "How about those never used in any party service?"
        ],
        "interaction_query": [
            "SELECT service_name FROM services",
            "SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id  =  t2.service_id",
            "SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id  =  t2.service_id"
        ]
    },
    {
        "db_id": "e_government",
        "final_query": "SELECT town_city FROM addresses UNION SELECT state_province_county FROM addresses",
        "final_utterance": "Find the name of all the cities and states.",
        "interaction_utterance": [
            "Show all the address information.",
            "Find the names of all the cities.",
            "Find the names of all the cities and states."
        ],
        "interaction_query": [
            "SELECT * FROM addresses",
            "SELECT town_city FROM addresses",
            "SELECT town_city FROM addresses UNION SELECT state_province_county FROM addresses"
        ]
    },
    {
        "db_id": "e_government",
        "final_query": "SELECT count(*) FROM addresses WHERE state_province_county  =  \"Colorado\"",
        "final_utterance": "How many cities are there in state \"Colorado\"?",
        "interaction_utterance": [
            "How many addresses are there?",
            "How many are in the state \"Colorado\"?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM addresses",
            "SELECT count(*) FROM addresses WHERE state_province_county  =  \"Colorado\""
        ]
    },
    {
        "db_id": "e_government",
        "final_query": "SELECT payment_method_code FROM parties GROUP BY payment_method_code HAVING count(*)  >  3",
        "final_utterance": "Find the payment method code used by more than 3 parties.",
        "interaction_utterance": [
            "Show the payment method codes used by parties.",
            "Which of them are used by more than 3 parties"
        ],
        "interaction_query": [
            "SELECT payment_method_code FROM parties",
            "SELECT payment_method_code FROM parties GROUP BY payment_method_code HAVING count(*)  >  3"
        ]
    },
    {
        "db_id": "e_government",
        "final_query": "SELECT organization_name FROM organizations WHERE organization_name LIKE \"%Party%\"",
        "final_utterance": "Find the name of organizations whose names contain \"Party\".",
        "interaction_utterance": [
            "Find all the organization names.",
            "Which of them contain the string \"Party\"?"
        ],
        "interaction_query": [
            "SELECT organization_name FROM organizations",
            "SELECT organization_name FROM organizations WHERE organization_name LIKE \"%Party%\""
        ]
    },
    {
        "db_id": "e_government",
        "final_query": "SELECT count(DISTINCT payment_method_code) FROM parties",
        "final_utterance": "How many distinct payment methods are used by parties?",
        "interaction_utterance": [
            "What is the payment method code used by each party?",
            "How many distinct payment methods are used by parties?"
        ],
        "interaction_query": [
            "SELECT payment_method_code FROM parties",
            "SELECT count(DISTINCT payment_method_code) FROM parties"
        ]
    },
    {
        "db_id": "e_government",
        "final_query": "SELECT t1.party_email FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id  =  t2.customer_id GROUP BY t1.party_email ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which is the email of the party that has used the services the most number of times?",
        "interaction_utterance": [
            "How many times did each party use services?",
            "Which party used party services the most number of times?",
            "What is their email?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id  =  t2.customer_id GROUP BY t1.party_id",
            "SELECT * FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id  =  t2.customer_id GROUP BY t1.party_id ORDER BY count(*)  DESC LIMIT 1",
            "SELECT t1.party_email FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id  =  t2.customer_id GROUP BY t1.party_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "e_government",
        "final_query": "SELECT state_province_county FROM addresses WHERE line_1_number_building LIKE \"%6862 Kaitlyn Knolls%\"",
        "final_utterance": "Which state can address \"6862 Kaitlyn Knolls\" possibly be in?",
        "interaction_utterance": [
            "What is the state of each address?",
            "What one has building name that contains \"6862 Kaitlyn Knolls\"?"
        ],
        "interaction_query": [
            "SELECT state_province_county FROM addresses",
            "SELECT state_province_county FROM addresses WHERE line_1_number_building LIKE \"%6862 Kaitlyn Knolls%\""
        ]
    },
    {
        "db_id": "e_government",
        "final_query": "SELECT t1.organization_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id GROUP BY t1.organization_name ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the name of organization that has the greatest number of contact individuals?",
        "interaction_utterance": [
            "How many contact individuals does each organization have?",
            "What is the name of organization that has the greatest number of contact individuals?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id",
            "SELECT t1.organization_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id GROUP BY t1.organization_name ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "products_for_hire",
        "final_query": "SELECT T1.good_or_bad_customer FROM customers AS T1 JOIN discount_coupons AS T2 ON T1.coupon_id  =  T2.coupon_id WHERE T2.coupon_amount  =  500",
        "final_utterance": "Are the customers holding coupons with amount 500 bad or good?",
        "interaction_utterance": [
            "Show me the name of customers.",
            "What about their coupon amounts?",
            "Show me those with amount 500.",
            "Show me if they are bad or good."
        ],
        "interaction_query": [
            "SELECT first_name, last_name FROM Customers",
            "SELECT t1.first_name, t1.last_name, t2.coupon_amount FROM Customers as t1 JOIN discount_coupons as t2 ON t1.coupon_id = t2.coupon_id",
            "SELECT t1.first_name, t1.last_name, t2.coupon_amount FROM Customers as t1 JOIN discount_coupons as t2 ON t1.coupon_id = t2.coupon_id WHERE t2.coupon_amount = 500",
            "SELECT T1.good_or_bad_customer FROM customers AS T1 JOIN discount_coupons AS T2 ON T1.coupon_id  =  T2.coupon_id WHERE T2.coupon_amount  =  500"
        ]
    },
    {
        "db_id": "products_for_hire",
        "final_query": "SELECT T1.customer_id ,  T1.first_name ,  count(*) FROM Customers AS T1 JOIN bookings AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id",
        "final_utterance": "How many bookings did each customer make? List the customer id, first name, and the count.",
        "interaction_utterance": [
            "Show me the first name of all customers.",
            "How many bookings are there in record?",
            "What about that in terms of those customers?",
            "Could you also show me those customers' ids?"
        ],
        "interaction_query": [
            "SELECT first_name FROM Customers",
            "SELECT count(*) FROM bookings",
            "SELECT T1.first_name ,  count(*) FROM Customers AS T1 JOIN bookings AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id",
            "SELECT T1.customer_id ,  T1.first_name ,  count(*) FROM Customers AS T1 JOIN bookings AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id"
        ]
    },
    {
        "db_id": "products_for_hire",
        "final_query": "SELECT customer_id ,  sum(amount_paid) FROM Payments GROUP BY customer_id ORDER BY sum(amount_paid) DESC LIMIT 1",
        "final_utterance": "What is the maximum total amount paid by a customer? List the customer id and amount.",
        "interaction_utterance": [
            "How many payment records are there?",
            "Show me the maximum amount paid?",
            "What about the total maximum amount paid by a single customer?",
            "Show me the customer id also."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Payments",
            "SELECT amount_paid FROM Payments ORDER BY amount_paid DESC LIMIT 1",
            "SELECT sum(amount_paid) FROM Payments GROUP BY customer_id ORDER BY sum(amount_paid) DESC LIMIT 1",
            "SELECT customer_id ,  sum(amount_paid) FROM Payments GROUP BY customer_id ORDER BY sum(amount_paid) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "products_for_hire",
        "final_query": "SELECT T1.booking_id ,  T1.amount_of_refund FROM Bookings AS T1 JOIN Payments AS T2 ON T1.booking_id  =  T2.booking_id GROUP BY T1.booking_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What are the id and the amount of refund of the booking that incurred the most times of payments?",
        "interaction_utterance": [
            "How many payments are there in record?",
            "How many did each booking incur?",
            "Which one has the largest number?",
            "Show me its id and the amount of refund."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Payments",
            "SELECT booking_id, count(*) FROM Payments GROUP BY booking_id",
            "SELECT booking_id FROM Payments GROUP BY booking_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT T1.booking_id ,  T1.amount_of_refund FROM Bookings AS T1 JOIN Payments AS T2 ON T1.booking_id  =  T2.booking_id GROUP BY T1.booking_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "products_for_hire",
        "final_query": "SELECT product_id FROM products_booked GROUP BY product_id HAVING count(*)  =  3",
        "final_utterance": "What is the id of the product that is booked for 3 times?",
        "interaction_utterance": [
            "Show me the number of products that have been booked.",
            "How many times has each of them been booked?",
            "Show me the id of the product with 3 bookings."
        ],
        "interaction_query": [
            "SELECT product_id FROM products_booked",
            "SELECT product_id,count(*) FROM products_booked GROUP BY product_id",
            "SELECT product_id FROM products_booked GROUP BY product_id HAVING count(*)  =  3"
        ]
    },
    {
        "db_id": "products_for_hire",
        "final_query": "SELECT T2.product_description FROM products_booked AS T1 JOIN products_for_hire AS T2 ON T1.product_id  =  T2.product_id WHERE T1.booked_amount  =  102.76",
        "final_utterance": "What is the product description of the product booked with an amount of 102.76?",
        "interaction_utterance": [
            "What are the product that have been booked?",
            "Show me the one with booked amount 102.76.",
            "What about its description?"
        ],
        "interaction_query": [
            "SELECT DISTINCT product_id FROM products_booked",
            "SELECT product_id FROM products_booked WHERE booked_amount  =  102.76",
            "SELECT T2.product_description FROM products_booked AS T1 JOIN products_for_hire AS T2 ON T1.product_id  =  T2.product_id WHERE T1.booked_amount  =  102.76"
        ]
    },
    {
        "db_id": "products_for_hire",
        "final_query": "SELECT T3.booking_start_date ,   T3.booking_end_date FROM Products_for_hire AS T1 JOIN products_booked AS T2 ON T1.product_id  =  T2.product_id JOIN bookings AS T3 ON T2.booking_id  =  T3.booking_id WHERE T1.product_name  =  'Book collection A'",
        "final_utterance": "What are the start date and end date of the booking that has booked the product named 'Book collection A'?",
        "interaction_utterance": [
            "Show me the name of all the products in file.",
            "How many times has Book collection A been booked?",
            "What are the start date and end date of those bookings?"
        ],
        "interaction_query": [
            "SELECT product_name FROM Products_for_hire",
            "SELECT count(*) FROM products_booked AS t1 JOIN Products_for_hire AS t2 on t1.product_id = t2.product_id where t2.product_name  =  'Book collection A'",
            "SELECT T3.booking_start_date ,   T3.booking_end_date FROM Products_for_hire AS T1 JOIN products_booked AS T2 ON T1.product_id  =  T2.product_id JOIN bookings AS T3 ON T2.booking_id  =  T3.booking_id WHERE T1.product_name  =  'Book collection A'"
        ]
    },
    {
        "db_id": "products_for_hire",
        "final_query": "SELECT T2.product_name FROM view_product_availability AS T1 JOIN products_for_hire AS T2 ON T1.product_id  =  T2.product_id WHERE T1.available_yn  =  1",
        "final_utterance": "What are the names of products whose availability equals to 1?",
        "interaction_utterance": [
            "Show me the name of all the products in file.",
            "Show me those with availability equal to 1."
        ],
        "interaction_query": [
            "SELECT product_name FROM Products_for_hire",
            "SELECT T2.product_name FROM view_product_availability AS T1 JOIN products_for_hire AS T2 ON T1.product_id  =  T2.product_id WHERE T1.available_yn  =  1"
        ]
    },
    {
        "db_id": "products_for_hire",
        "final_query": "SELECT first_name ,  last_name ,  gender_mf FROM customers WHERE good_or_bad_customer  =  'good' ORDER BY last_name",
        "final_utterance": "What are the first name, last name, and gender of all the good customers? Order by their last name.",
        "interaction_utterance": [
            "Show me the name of all the customers.",
            "What about those good customers?",
            "Also show me their genders.",
            "Order them by their last name."
        ],
        "interaction_query": [
            "SELECT first_name ,  last_name FROM customers",
            "SELECT first_name ,  last_name FROM customers WHERE good_or_bad_customer  =  'good'",
            "SELECT first_name ,  last_name ,  gender_mf FROM customers WHERE good_or_bad_customer  =  'good'",
            "SELECT first_name ,  last_name ,  gender_mf FROM customers WHERE good_or_bad_customer  =  'good' ORDER BY last_name"
        ]
    },
    {
        "db_id": "products_for_hire",
        "final_query": "SELECT max(booked_count) ,  min(booked_count) ,  avg(booked_count) FROM products_booked",
        "final_utterance": "What are the maximum, minimum, and average booked count for the products booked?",
        "interaction_utterance": [
            "How many times has any product been booked?",
            "Show me the product at each time.",
            "What about their booked amount?",
            "Show me the maximum, minimum, and average of them."
        ],
        "interaction_query": [
            "SELECT count(*) FROM products_booked",
            "SELECT product_id FROM products_booked",
            "SELECT booked_count FROM products_booked",
            "SELECT max(booked_count) ,  min(booked_count) ,  avg(booked_count) FROM products_booked"
        ]
    },
    {
        "db_id": "products_for_hire",
        "final_query": "SELECT daily_hire_cost FROM Products_for_hire WHERE product_name LIKE '%Book%'",
        "final_utterance": "What are the daily hire costs for the products with substring 'Book' in its name?",
        "interaction_utterance": [
            "Show me all the product names.",
            "What are their description?",
            "What about their daily hire costs?",
            "Only show the cost of those which has 'Book' in its name."
        ],
        "interaction_query": [
            "SELECT product_name FROM products_for_hire",
            "SELECT product_name, product_description FROM products_for_hire",
            "SELECT product_name, daily_hire_cost FROM products_for_hire",
            "SELECT daily_hire_cost FROM Products_for_hire WHERE product_name LIKE '%Book%'"
        ]
    },
    {
        "db_id": "products_for_hire",
        "final_query": "SELECT count(*) FROM Products_for_hire WHERE product_id NOT IN ( SELECT product_id FROM products_booked WHERE booked_amount  >  200 )",
        "final_utterance": "How many products are never booked with amount higher than 200?",
        "interaction_utterance": [
            "Show me the id of products that have been booked.",
            "Show me their maximum booked amount.",
            "Give me the id of those which has been booked with amount higher than 200.",
            "What about the id of products which are not one of those?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT DISTINCT product_id FROM products_booked",
            "SELECT product_id, MAX(booked_amount) FROM products_booked GROUP BY product_id",
            "SELECT product_id FROM products_booked WHERE booked_amount  >  200",
            "SELECT product_id FROM products_for_hire WHERE product_id NOT IN ( SELECT product_id FROM products_booked WHERE booked_amount  >  200)",
            "SELECT count(*) FROM Products_for_hire WHERE product_id NOT IN ( SELECT product_id FROM products_booked WHERE booked_amount  >  200 )"
        ]
    },
    {
        "db_id": "products_for_hire",
        "final_query": "SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id  =  T2.coupon_id WHERE T2.good_or_bad_customer  =  'good' INTERSECT SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id  =  T2.coupon_id WHERE T2.good_or_bad_customer  =  'bad'",
        "final_utterance": "What are the coupon amount of the coupons owned by both good and bad customers?",
        "interaction_utterance": [
            "Show me the first name of good customers.",
            "What coupon amounts did they own?",
            "What about those owned by bad customers?",
            "Show me the coupon amounts owned by both of them."
        ],
        "interaction_query": [
            "SELECT first_name from CUSTOMERS where good_or_bad_customer = 'good'",
            "SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id  =  T2.coupon_id WHERE T2.good_or_bad_customer  =  'good'",
            "SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id  =  T2.coupon_id WHERE T2.good_or_bad_customer  =  'bad'",
            "SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id  =  T2.coupon_id WHERE T2.good_or_bad_customer  =  'good' INTERSECT SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id  =  T2.coupon_id WHERE T2.good_or_bad_customer  =  'bad'"
        ]
    },
    {
        "db_id": "products_for_hire",
        "final_query": "SELECT payment_date FROM payments WHERE amount_paid  >  300 OR payment_type_code  =  'Check'",
        "final_utterance": "What are the payment date of the payment with amount paid higher than 300 or with payment type is 'Check'",
        "interaction_utterance": [
            "How many payment types are there?",
            "Show me the date of payments using Check as payment type.",
            "Also include those with amount paid higher than 300."
        ],
        "interaction_query": [
            "SELECT DISTINCT payment_type_code FROM payments",
            "SELECT payment_date FROM payments WHERE payment_type_code  =  'Check'",
            "SELECT payment_date FROM payments WHERE amount_paid  >  300 OR payment_type_code  =  'Check'"
        ]
    },
    {
        "db_id": "journal_committee",
        "final_query": "SELECT Name FROM editor WHERE Age  =  24 OR Age  =  25",
        "final_utterance": "Show the names of editors of age either 24 or 25.",
        "interaction_utterance": [
            "Tell me Kamila Porczyk's age.",
            "How about Mariusz Zalejski's age?",
            "Tell me the names of editors of age either 24 or 25."
        ],
        "interaction_query": [
            "SELECT Age FROM editor WHERE Name = \"Kamila Porczyk\"",
            "SELECT Age FROM editor WHERE Name = \"Mariusz Zalejski\"",
            "SELECT Name FROM editor WHERE Age  =  24 OR Age  =  25"
        ]
    },
    {
        "db_id": "journal_committee",
        "final_query": "SELECT Name FROM editor ORDER BY Age ASC LIMIT 1",
        "final_utterance": "What is the name of the youngest editor?",
        "interaction_utterance": [
            "Tell me Szymon Wydra's journal's themes.",
            "How old is he?",
            "What is the name of the youngest editor?"
        ],
        "interaction_query": [
            "SELECT T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T2.Name = \"Szymon Wydra\"",
            "SELECT Age FROM editor WHERE Name = \"Szymon Wydra\"",
            "SELECT Name FROM editor ORDER BY Age ASC LIMIT 1"
        ]
    },
    {
        "db_id": "journal_committee",
        "final_query": "SELECT Age FROM editor GROUP BY Age ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Please show the most common age of editors.",
        "interaction_utterance": [
            "Tell me the work types of Anna Powierza.",
            "What is her age?",
            "Tell me the most common age of editors."
        ],
        "interaction_query": [
            "SELECT T1.Work_Type FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID WHERE T2.Name = \"Anna Powierza\"",
            "SELECT Age FROM editor WHERE Name = \"Anna Powierza\"",
            "SELECT Age FROM editor GROUP BY Age ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "journal_committee",
        "final_query": "SELECT T2.Name ,  T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID",
        "final_utterance": "Show the names of editors and the theme of journals for which they serve on committees.",
        "interaction_utterance": [
            "Tell me the number of journals of editor Szymon Wydra?",
            "Tell me about the sales of journals of editor Szymon Wydra.",
            "What are the names of editors and the theme of journals for which they serve on committees?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T2.Name = \"Szymon Wydra\"",
            "SELECT T3.Sales FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T2.Name = \"Szymon Wydra\"",
            "SELECT T2.Name ,  T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID"
        ]
    },
    {
        "db_id": "journal_committee",
        "final_query": "SELECT T2.Name ,  T2.age ,  T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID ORDER BY T3.Theme ASC",
        "final_utterance": "Show the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme.",
        "interaction_utterance": [
            "Tell me the date of the journal with the theme Tampa Bay Buccaneers.",
            "Who is its editor?",
            "I want to know the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme."
        ],
        "interaction_query": [
            "SELECT Date FROM journal WHERE Theme = \"Tampa Bay Buccaneers\"",
            "SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T3.Theme = \"Tampa Bay Buccaneers\"",
            "SELECT T2.Name ,  T2.age ,  T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID ORDER BY T3.Theme ASC"
        ]
    },
    {
        "db_id": "journal_committee",
        "final_query": "SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T3.Sales  >  3000",
        "final_utterance": "Show the names of editors that are on the committee of journals with sales bigger than 3000.",
        "interaction_utterance": [
            "Tell me Anna Powierza's journal's themes.",
            "How about her sales?",
            "What are the names of editors that are on the committee of journals with sales bigger than 3000?"
        ],
        "interaction_query": [
            "SELECT T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T2.Name = \"Anna Powierza\"",
            "SELECT T3.Sales FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T2.Name = \"Anna Powierza\"",
            "SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T3.Sales  >  3000"
        ]
    },
    {
        "db_id": "journal_committee",
        "final_query": "SELECT T1.editor_id ,  T1.Name ,  COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID  =  T2.Editor_ID GROUP BY T1.editor_id",
        "final_utterance": "Show the id, name of each editor and the number of journal committees they are on.",
        "interaction_utterance": [
            "Tell me Marek Siudym's age.",
            "Show me his journals.",
            "Okay, now I want to know the id, name of each editor and the number of journal committees they are on."
        ],
        "interaction_query": [
            "SELECT Age FROM editor WHERE Name = \"Marek Siudym\"",
            "SELECT T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T2.Name = \"Marek Siudym\"",
            "SELECT T1.editor_id ,  T1.Name ,  COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID  =  T2.Editor_ID GROUP BY T1.editor_id"
        ]
    },
    {
        "db_id": "journal_committee",
        "final_query": "SELECT T1.Name FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID  =  T2.Editor_ID GROUP BY T1.Name HAVING COUNT(*)  >=  2",
        "final_utterance": "Show the names of editors that are on at least two journal committees.",
        "interaction_utterance": [
            "Tell me the sales of the journal with theme Jacksonville Jaguars.",
            "Who is its editor?",
            "tell me the names of editors that are on at least two journal committees."
        ],
        "interaction_query": [
            "SELECT Sales FROM journal WHERE Theme = \"Jacksonville Jaguars\"",
            "SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T3.Theme = \"Jacksonville Jaguars\"",
            "SELECT T1.Name FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID  =  T2.Editor_ID GROUP BY T1.Name HAVING COUNT(*)  >=  2"
        ]
    },
    {
        "db_id": "journal_committee",
        "final_query": "SELECT Name FROM editor WHERE editor_id NOT IN (SELECT editor_id FROM journal_committee)",
        "final_utterance": "List the names of editors that are not on any journal committee.",
        "interaction_utterance": [
            "tell me the number of journal committees of editor Kamila Porczyk.",
            "Okay, I want to know the themes of his journals.",
            "Tell me the names of editors that are not on any journal committee."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID  =  T2.Editor_ID WHERE T1.Name = \"Kamila Porczyk\"",
            "SELECT T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T2.Name = \"Szymon Wydra\"",
            "SELECT Name FROM editor WHERE editor_id NOT IN (SELECT editor_id FROM journal_committee)"
        ]
    },
    {
        "db_id": "journal_committee",
        "final_query": "SELECT date ,  theme ,  sales FROM journal EXCEPT SELECT T1.date ,  T1.theme ,  T1.sales FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID  =  T2.journal_ID",
        "final_utterance": "List the date, theme and sales of the journal which did not have any of the listed editors serving on committee.",
        "interaction_utterance": [
            "Tell me the themes of Marek Siudym's journals.",
            "Okay, tell me the date of the journal with theme \"at Jacksonville Jaguars\".",
            "list the date, theme and sales of the journal which did not have any of the listed editors serving on committee."
        ],
        "interaction_query": [
            "SELECT T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T2.Name = \"Marek Siudym\"",
            "SELECT Date FROM journal WHERE Theme = \"at Jacksonville Jaguars\"",
            "SELECT date ,  theme ,  sales FROM journal EXCEPT SELECT T1.date ,  T1.theme ,  T1.sales FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID  =  T2.journal_ID"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT product_id FROM product_suppliers ORDER BY total_amount_purchased DESC LIMIT 3",
        "final_utterance": "What are the ids of the top three products that were purchased in the largest amount?",
        "interaction_utterance": [
            "What is the total amount purchased for each product?",
            "List the ids of products in decreasing order of their total amount purchased.",
            "Just give me the top three."
        ],
        "interaction_query": [
            "SELECT product_id, total_amount_purchased FROM product_suppliers",
            "SELECT product_id FROM product_suppliers ORDER BY total_amount_purchased DESC",
            "SELECT product_id FROM product_suppliers ORDER BY total_amount_purchased DESC LIMIT 3"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT product_id ,  product_type_code FROM products ORDER BY product_price LIMIT 1",
        "final_utterance": "What are the product id and product type of the cheapest product?",
        "interaction_utterance": [
            "List all the product ids.",
            "Order them by the product price.",
            "Show the product id and product type of the cheapest product."
        ],
        "interaction_query": [
            "SELECT product_id FROM products",
            "SELECT product_id FROM products ORDER BY product_price",
            "SELECT product_id ,  product_type_code FROM products ORDER BY product_price LIMIT 1"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT count(DISTINCT product_type_code) FROM products",
        "final_utterance": "Find the number of different product types.",
        "interaction_utterance": [
            "What are all the product types?",
            "Show me all the distinct product types.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT product_type_code FROM products",
            "SELECT DISTINCT product_type_code FROM products",
            "SELECT count(DISTINCT product_type_code) FROM products"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT T1.address_details FROM addresses AS T1 JOIN customer_addresses AS T2 ON T1.address_id  =  T2.address_id WHERE T2.customer_id  =  10",
        "final_utterance": "Return the address of customer 10.",
        "interaction_utterance": [
            "Show all the information about customer addresses.",
            "What is the address id of customer 10?",
            "What are address details of customer 10?"
        ],
        "interaction_query": [
            "Select * from customer_addresses",
            "Select address_id from customer_addresses where customer_id  =  10",
            "SELECT T1.address_details FROM addresses AS T1 JOIN customer_addresses AS T2 ON T1.address_id  =  T2.address_id WHERE T2.customer_id  =  10"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT T1.staff_id ,  T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.job_title_code  =  \"Department Manager\"",
        "final_utterance": "What are the staff ids and genders of all staffs whose job title is Department Manager?",
        "interaction_utterance": [
            "Show all staff information.",
            "What are the staff ids and genders of all staffs?",
            "What are the staff ids and genders of all staffs whose job title is Department Manager?"
        ],
        "interaction_query": [
            "SELECT * FROM staff",
            "SELECT staff_id ,  staff_gender FROM staff",
            "SELECT T1.staff_id ,  T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.job_title_code  =  \"Department Manager\""
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT payment_method_code ,  count(*) FROM customers GROUP BY payment_method_code",
        "final_utterance": "For each payment method, return how many customers use it.",
        "interaction_utterance": [
            "Show all the customers.",
            "How many customers are there?",
            "For each payment method, find how many customers use it."
        ],
        "interaction_query": [
            "SELECT * FROM customers",
            "SELECT count(*) FROM customers",
            "SELECT payment_method_code ,  count(*) FROM customers GROUP BY payment_method_code"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT product_id FROM order_items GROUP BY product_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the id of the product that was ordered the most often?",
        "interaction_utterance": [
            "Show all the order items.",
            "Show the number of times each product was ordered.",
            "What is the id of the product that was ordered the most often?"
        ],
        "interaction_query": [
            "SELECT * FROM order_items",
            "SELECT count(*) FROM order_items GROUP BY product_id",
            "SELECT product_id FROM order_items GROUP BY product_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT T1.customer_name ,  T1.customer_phone ,  T1.customer_email FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T2.customer_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What are the name, phone number and email address of the customer who made the largest number of orders?",
        "interaction_utterance": [
            "Show all the customer information.",
            "How many orders did each customer make?",
            "Which customer made the largest number of orders?",
            "What are the name, phone number and email address of this customer?"
        ],
        "interaction_query": [
            "SELECT * FROM customers",
            "SELECT count(*) FROM customer_orders GROUP BY customer_id",
            "SELECT * FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T2.customer_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT T1.customer_name ,  T1.customer_phone ,  T1.customer_email FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T2.customer_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT product_type_code ,  avg(product_price) FROM products GROUP BY product_type_code",
        "final_utterance": "What is the average price for each type of product?",
        "interaction_utterance": [
            "Show all the products.",
            "Group all the products by product type.",
            "What is the average price for each type of product?"
        ],
        "interaction_query": [
            "SELECT * FROM products",
            "SELECT * FROM products GROUP BY product_type_code",
            "SELECT product_type_code ,  avg(product_price) FROM products GROUP BY product_type_code"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT count(*) FROM department_stores AS T1 JOIN department_store_chain AS T2 ON T1.dept_store_chain_id  =  T2.dept_store_chain_id WHERE T2.dept_store_chain_name  =  \"South\"",
        "final_utterance": "How many department stores does the store chain South have?",
        "interaction_utterance": [
            "What are all the department stores?",
            "What are all the department stores that the store chain South has?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM department_stores",
            "SELECT * FROM department_stores AS T1 JOIN department_store_chain AS T2 ON T1.dept_store_chain_id  =  T2.dept_store_chain_id WHERE T2.dept_store_chain_name  =  \"South\"",
            "SELECT count(*) FROM department_stores AS T1 JOIN department_store_chain AS T2 ON T1.dept_store_chain_id  =  T2.dept_store_chain_id WHERE T2.dept_store_chain_name  =  \"South\""
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT T1.staff_name ,  T2.job_title_code FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id  =  T2.staff_id ORDER BY T2.date_assigned_to DESC LIMIT 1",
        "final_utterance": "What is the name and job title of the staff who was assigned the latest?",
        "interaction_utterance": [
            "Show all the staff.",
            "Sort all the staff by their assigned date in a descending manner.",
            "What is the name and job title of the staff who was assigned the latest?"
        ],
        "interaction_query": [
            "SELECT * FROM staff",
            "SELECT * FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id  =  T2.staff_id ORDER BY T2.date_assigned_to DESC LIMIT 1",
            "SELECT T1.staff_name ,  T2.job_title_code FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id  =  T2.staff_id ORDER BY T2.date_assigned_to DESC LIMIT 1"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT T2.product_type_code ,  T2.product_name ,  T2.product_price FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id  =  T2.product_id WHERE T1.supplier_id  =  3",
        "final_utterance": "Give me the product type, name and price for all the products supplied by supplier id 3.",
        "interaction_utterance": [
            "What are all the products?",
            "Which products are supplied by supplier id 3?",
            "Give me the product type, name and price for these products."
        ],
        "interaction_query": [
            "SELECT * FROM products",
            "SELECT * FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id  =  T2.product_id WHERE T1.supplier_id  =  3",
            "SELECT T2.product_type_code ,  T2.product_name ,  T2.product_price FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id  =  T2.product_id WHERE T1.supplier_id  =  3"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.order_status_code  =  \"Pending\" ORDER BY T2.customer_id",
        "final_utterance": "Return the distinct name of customers whose order status is Pending, in the order of customer id.",
        "interaction_utterance": [
            "Find all the customers.",
            "Which customers have order status Pending? Show their names.",
            "Sort them in the order of customer id."
        ],
        "interaction_query": [
            "SELECT * FROM customers",
            "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.order_status_code  =  \"Pending\"",
            "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.order_status_code  =  \"Pending\" ORDER BY T2.customer_id"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT T1.customer_name ,  T1.customer_address FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.order_status_code  =  \"New\" INTERSECT SELECT T1.customer_name ,  T1.customer_address FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.order_status_code  =  \"Pending\"",
        "final_utterance": "Find the name and address of the customers who have both New and Pending orders.",
        "interaction_utterance": [
            "Show all the customers.",
            "Which customers have both New and Pending orders?",
            "Show these customers' names and addresses."
        ],
        "interaction_query": [
            "SELECT * FROM customers",
            "SELECT * FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.order_status_code  =  \"New\" INTERSECT SELECT * FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.order_status_code  =  \"Pending\"",
            "SELECT T1.customer_name ,  T1.customer_address FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.order_status_code  =  \"New\" INTERSECT SELECT T1.customer_name ,  T1.customer_address FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.order_status_code  =  \"Pending\""
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT T1.product_id FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id  =  T2.product_id WHERE T1.supplier_id  =  2 AND T2.product_price  >  (SELECT avg(product_price) FROM products)",
        "final_utterance": "Return ids of all the products that are supplied by supplier id 2 and are more expensive than the average price of all products.",
        "interaction_utterance": [
            "Show me all the products.",
            "Which products are supplied by supplier id 2?",
            "Which products are more expensive than the average price of all products?",
            "Return ids of all the products that are supplied by supplier id 2 and are more expensive than the average price of all products."
        ],
        "interaction_query": [
            "SELECT * FROM products",
            "SELECT T1.product_id FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id  =  T2.product_id WHERE T1.supplier_id  =  2",
            "SELECT product_id FROM products WHERE product_price  >  (SELECT avg(product_price) FROM products)",
            "SELECT T1.product_id FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id  =  T2.product_id WHERE T1.supplier_id  =  2 AND T2.product_price  >  (SELECT avg(product_price) FROM products)"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT T2.dept_store_id ,  T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id  =  T2.dept_store_id WHERE T1.department_name  =  \"marketing\" INTERSECT SELECT T2.dept_store_id ,  T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id  =  T2.dept_store_id WHERE T1.department_name  =  \"managing\"",
        "final_utterance": "What is the id and name of the department store that has both marketing and managing department?",
        "interaction_utterance": [
            "Which department store has a marketing department?",
            "Which department store has both a marketing and a managing department?",
            "Give me their id and name."
        ],
        "interaction_query": [
            "SELECT * FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id  =  T2.dept_store_id WHERE T1.department_name  =  \"marketing\"",
            "SELECT * FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id  =  T2.dept_store_id WHERE T1.department_name  =  \"marketing\" INTERSECT SELECT * FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id  =  T2.dept_store_id WHERE T1.department_name  =  \"managing\"",
            "SELECT T2.dept_store_id ,  T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id  =  T2.dept_store_id WHERE T1.department_name  =  \"marketing\" INTERSECT SELECT T2.dept_store_id ,  T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id  =  T2.dept_store_id WHERE T1.department_name  =  \"managing\""
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT dept_store_chain_id FROM department_stores GROUP BY dept_store_chain_id ORDER BY count(*) DESC LIMIT 2",
        "final_utterance": "What are the ids of the two department store chains with the largest number of department stores?",
        "interaction_utterance": [
            "Count the number of department stores each department store chain has.",
            "Which department store chain has the largest number of department stores?",
            "What are the ids of the top two department store chains by number of department stores?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM department_stores GROUP BY dept_store_chain_id",
            "SELECT * FROM department_stores GROUP BY dept_store_chain_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT dept_store_chain_id FROM department_stores GROUP BY dept_store_chain_id ORDER BY count(*) DESC LIMIT 2"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT department_id FROM staff_department_assignments GROUP BY department_id ORDER BY count(*) LIMIT 1",
        "final_utterance": "What is the id of the department with the least number of staff?",
        "interaction_utterance": [
            "Count the number of staff for each department.",
            "Which department has the least number of staff?",
            "What is the id of this department?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM staff_department_assignments GROUP BY department_id",
            "SELECT * FROM staff_department_assignments GROUP BY department_id ORDER BY count(*) LIMIT 1",
            "SELECT department_id FROM staff_department_assignments GROUP BY department_id ORDER BY count(*) LIMIT 1"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT product_type_code ,  max(product_price) ,  min(product_price) FROM products GROUP BY product_type_code",
        "final_utterance": "For each product type, return the maximum and minimum price.",
        "interaction_utterance": [
            "Show all the product types.",
            "Order all the products by their types.",
            "Give me the maximum and minimum price for each product type."
        ],
        "interaction_query": [
            "SELECT product_type_code FROM products",
            "SELECT * FROM products ORDER BY product_type_code",
            "SELECT product_type_code ,  max(product_price) ,  min(product_price) FROM products GROUP BY product_type_code"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT product_type_code FROM products GROUP BY product_type_code HAVING avg(product_price)  >  (SELECT avg(product_price) FROM products)",
        "final_utterance": "Find the product type whose average price is higher than the average price of all products.",
        "interaction_utterance": [
            "What are all the product types?",
            "What is the average price of products?",
            "Find the product type whose average price is higher than the average price of all products."
        ],
        "interaction_query": [
            "SELECT product_type_code FROM products",
            "SELECT avg(product_price) FROM products",
            "SELECT product_type_code FROM products GROUP BY product_type_code HAVING avg(product_price)  >  (SELECT avg(product_price) FROM products)"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT T1.staff_id ,  T1.staff_name FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id  =  T2.staff_id ORDER BY date_assigned_to - date_assigned_from LIMIT 1",
        "final_utterance": "Find the id and name of the staff who has been assigned for the shortest period.",
        "interaction_utterance": [
            "Show all the staff.",
            "What is the assignment period for each staff?",
            "Find the id and name of the staff who has been assigned for the shortest period."
        ],
        "interaction_query": [
            "SELECT * FROM staff",
            "SELECT date_assigned_to - date_assigned_from FROM Staff_Department_Assignments",
            "SELECT T1.staff_id ,  T1.staff_name FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id  =  T2.staff_id ORDER BY date_assigned_to - date_assigned_from LIMIT 1"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT product_name ,  product_id FROM products WHERE product_price BETWEEN 600 AND 700",
        "final_utterance": "Return the names and ids of all products whose price is between 600 and 700.",
        "interaction_utterance": [
            "What is the price of each product?",
            "Which product costs between 600 and 700?",
            "Give me their product names and ids."
        ],
        "interaction_query": [
            "SELECT product_price FROM products",
            "SELECT * FROM products WHERE product_price BETWEEN 600 AND 700",
            "SELECT product_name ,  product_id FROM products WHERE product_price BETWEEN 600 AND 700"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT DISTINCT customer_id FROM Customer_Orders WHERE order_date  >  (SELECT min(order_date) FROM Customer_Orders WHERE order_status_code  =  \"Cancelled\")",
        "final_utterance": "Find the ids of all distinct customers who made order after some orders that were Cancelled.",
        "interaction_utterance": [
            "Show all distinct customer ids.",
            "When was the first time some orders were cancelled?",
            "Find the ids of all distinct customers who made orders after this date."
        ],
        "interaction_query": [
            "SELECT DISTINCT customer_id FROM Customer_Orders",
            "SELECT min(order_date) FROM Customer_Orders WHERE order_status_code  =  \"Cancelled\"",
            "SELECT DISTINCT customer_id FROM Customer_Orders WHERE order_date  >  (SELECT min(order_date) FROM Customer_Orders WHERE order_status_code  =  \"Cancelled\")"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT staff_id FROM Staff_Department_Assignments WHERE date_assigned_to  <  (SELECT max(date_assigned_to) FROM Staff_Department_Assignments WHERE job_title_code  =  'Clerical Staff')",
        "final_utterance": "What is id of the staff who had a Staff Department Assignment earlier than any Clerical Staff?",
        "interaction_utterance": [
            "Show the information about all the staff department assignments.",
            "When was the latest department assignment of Clerical Staff?",
            "What is id of the staff who had a Staff Department Assignment earlier than this date?"
        ],
        "interaction_query": [
            "SELECT * FROM Staff_Department_Assignments",
            "SELECT max(date_assigned_to) FROM Staff_Department_Assignments WHERE job_title_code  =  'Clerical Staff'",
            "SELECT staff_id FROM Staff_Department_Assignments WHERE date_assigned_to  <  (SELECT max(date_assigned_to) FROM Staff_Department_Assignments WHERE job_title_code  =  'Clerical Staff')"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT customer_name ,  customer_id FROM customers WHERE customer_address LIKE \"%TN%\"",
        "final_utterance": "What are the names and ids of customers whose address contains TN?",
        "interaction_utterance": [
            "Give me the information about all the customers.",
            "Which customers have an address that contains TN?",
            "What are their names and ids?"
        ],
        "interaction_query": [
            "SELECT * FROM customers",
            "SELECT * FROM customers WHERE customer_address LIKE \"%TN%\"",
            "SELECT customer_name ,  customer_id FROM customers WHERE customer_address LIKE \"%TN%\""
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT T1.staff_name ,  T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.date_assigned_from LIKE \"2016%\"",
        "final_utterance": "Return the name and gender of the staff who was assigned in 2016.",
        "interaction_utterance": [
            "Show all the staff department assignments.",
            "Which staff was assigned in 2016?",
            "What are their names and genders?"
        ],
        "interaction_query": [
            "SELECT * FROM staff_department_assignments",
            "SELECT * FROM staff_department_assignments WHERE date_assigned_from LIKE \"2016%\"",
            "SELECT T1.staff_name ,  T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.date_assigned_from LIKE \"2016%\""
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT T1.staff_name FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id  =  T2.staff_id GROUP BY T2.staff_id HAVING COUNT (*)  >  1",
        "final_utterance": "List the name of staff who has been assigned multiple jobs.",
        "interaction_utterance": [
            "Return all the staff department assignments.",
            "Count the number of assignments for each staff.",
            "List the names of staff who have been assigned multiple jobs."
        ],
        "interaction_query": [
            "SELECT * FROM staff_department_assignments",
            "SELECT COUNT (*) FROM staff_department_assignments GROUP BY staff_id",
            "SELECT T1.staff_name FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id  =  T2.staff_id GROUP BY T2.staff_id HAVING COUNT (*)  >  1"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT T1.supplier_name ,  T1.supplier_phone FROM Suppliers AS T1 JOIN supplier_addresses AS T2 ON T1.supplier_id  =  T2.supplier_id JOIN addresses AS T3 ON T2.address_id  =  T3.address_id ORDER BY T3.address_details",
        "final_utterance": "List the name and phone number of all suppliers in the alphabetical order of their addresses.",
        "interaction_utterance": [
            "Find the information about all the suppliers.",
            "Sort them in the alphabetical order of their addresses.",
            "Show the name and phone number of all suppliers in the alphabetical order of their addresses."
        ],
        "interaction_query": [
            "SELECT * FROM Suppliers",
            "SELECT * FROM Suppliers AS T1 JOIN supplier_addresses AS T2 ON T1.supplier_id  =  T2.supplier_id JOIN addresses AS T3 ON T2.address_id  =  T3.address_id ORDER BY T3.address_details",
            "SELECT T1.supplier_name ,  T1.supplier_phone FROM Suppliers AS T1 JOIN supplier_addresses AS T2 ON T1.supplier_id  =  T2.supplier_id JOIN addresses AS T3 ON T2.address_id  =  T3.address_id ORDER BY T3.address_details"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT customer_phone FROM customers UNION SELECT supplier_phone FROM suppliers",
        "final_utterance": "What are the phone numbers of all customers and suppliers?",
        "interaction_utterance": [
            "Show all the customers.",
            "What are the phone numbers of all customers?",
            "What are the phone numbers of all customers and suppliers?"
        ],
        "interaction_query": [
            "SELECT * FROM customers",
            "SELECT customer_phone FROM customers",
            "SELECT customer_phone FROM customers UNION SELECT supplier_phone FROM suppliers"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT product_id FROM Order_Items GROUP BY product_id HAVING count(*)  >  3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING sum(total_amount_purchased)  >  80000",
        "final_utterance": "Return the ids of all products that were ordered more than three times or supplied more than 80000.",
        "interaction_utterance": [
            "Which products were ordered more than three times?",
            "Which products were purchased for a total amount of more than 80000?",
            "Find the ids of all products that were ordered more than three times or purchased for a total amount of more than 80000."
        ],
        "interaction_query": [
            "SELECT * FROM Order_Items GROUP BY product_id HAVING count(*)  >  3",
            "SELECT * FROM Product_Suppliers GROUP BY product_id HAVING sum(total_amount_purchased)  >  80000",
            "SELECT product_id FROM Order_Items GROUP BY product_id HAVING count(*)  >  3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING sum(total_amount_purchased)  >  80000"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT product_id ,  product_name FROM products WHERE product_price  <  600 OR product_price  >  900",
        "final_utterance": "What are id and name of the products whose price is lower than 600 or higher than 900?",
        "interaction_utterance": [
            "What are the ids and names of all products?",
            "How about those with a price lower than 600?",
            "How about those with price above 600 or below 900?"
        ],
        "interaction_query": [
            "SELECT product_id ,  product_name FROM products",
            "SELECT product_id ,  product_name FROM products WHERE product_price  <  600",
            "SELECT product_id ,  product_name FROM products WHERE product_price  <  600 OR product_price  >  900"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id HAVING avg(total_amount_purchased)  >  50000 OR avg(total_amount_purchased)  <  30000",
        "final_utterance": "Find the id of suppliers whose average amount purchased for each product is above 50000 or below 30000.",
        "interaction_utterance": [
            "What are the ids of all suppliers?",
            "What is the average of total amount purchased?",
            "Find the id of suppliers whose average amount purchased for each product is above 50000 or below 30000."
        ],
        "interaction_query": [
            "SELECT supplier_id FROM Product_Suppliers",
            "SELECT avg(total_amount_purchased) FROM Product_Suppliers",
            "SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id HAVING avg(total_amount_purchased)  >  50000 OR avg(total_amount_purchased)  <  30000"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT avg(total_amount_purchased) ,  avg(total_value_purchased) FROM Product_Suppliers WHERE supplier_id  =  (SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id ORDER BY count(*) DESC LIMIT 1)",
        "final_utterance": "What are the average amount purchased and value purchased for the supplier who supplies the most products.",
        "interaction_utterance": [
            "How many products does each suppler supply?",
            "Which suppler supplies the most products? Give me the supplier id.",
            "What are the average amount purchased and value purchased for this supplier."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Product_Suppliers GROUP BY supplier_id",
            "SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT avg(total_amount_purchased) ,  avg(total_value_purchased) FROM Product_Suppliers WHERE supplier_id  =  (SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id ORDER BY count(*) DESC LIMIT 1)"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT max(customer_code) ,  min(customer_code) FROM Customers",
        "final_utterance": "What is the largest and smallest customer codes?",
        "interaction_utterance": [
            "Show all the customer codes.",
            "What is the largest code among those?",
            "Show me both the largest and smallest codes."
        ],
        "interaction_query": [
            "SELECT customer_code FROM Customers",
            "SELECT max(customer_code) FROM Customers",
            "SELECT max(customer_code) ,  min(customer_code) FROM Customers"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id JOIN order_items AS T3 ON T2.order_id  =  T3.order_id JOIN products AS T4 ON T3.product_id  =  T4.product_id WHERE T4.product_name  =  \"keyboard\"",
        "final_utterance": "List the names of all the distinct customers who bought a keyboard.",
        "interaction_utterance": [
            "Find the information for the product \"keyboard\".",
            "Return all the distinct customers who bought a keyboard.",
            "What are their names?"
        ],
        "interaction_query": [
            "SELECT * FROM products WHERE product_name  =  \"keyboard\"",
            "SELECT DISTINCT *  FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id JOIN order_items AS T3 ON T2.order_id  =  T3.order_id JOIN products AS T4 ON T3.product_id  =  T4.product_id WHERE T4.product_name  =  \"keyboard\"",
            "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id JOIN order_items AS T3 ON T2.order_id  =  T3.order_id JOIN products AS T4 ON T3.product_id  =  T4.product_id WHERE T4.product_name  =  \"keyboard\""
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT DISTINCT T1.supplier_name ,  T1.supplier_phone FROM suppliers AS T1 JOIN product_suppliers AS T2 ON T1.supplier_id  =  T2.supplier_id JOIN products AS T3 ON T2.product_id  =  T3.product_id WHERE T3.product_name  =  \"red jeans\"",
        "final_utterance": "List the names and phone numbers of all the distinct suppliers who supply red jeans.",
        "interaction_utterance": [
            "Show the information for the product \"red jeans\".",
            "Find all the distinct suppliers who supply red jeans.",
            "What are their names and phone numbers?"
        ],
        "interaction_query": [
            "SELECT * FROM products WHERE product_name  =  \"red jeans\"",
            "SELECT DISTINCT * FROM suppliers AS T1 JOIN product_suppliers AS T2 ON T1.supplier_id  =  T2.supplier_id JOIN products AS T3 ON T2.product_id  =  T3.product_id WHERE T3.product_name  =  \"red jeans\"",
            "SELECT DISTINCT T1.supplier_name ,  T1.supplier_phone FROM suppliers AS T1 JOIN product_suppliers AS T2 ON T1.supplier_id  =  T2.supplier_id JOIN products AS T3 ON T2.product_id  =  T3.product_id WHERE T3.product_name  =  \"red jeans\""
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT max(product_price) ,  min(product_price) ,  product_type_code FROM products GROUP BY product_type_code ORDER BY product_type_code",
        "final_utterance": "What are the highest and lowest prices of products, grouped by and alphabetically ordered by product type?",
        "interaction_utterance": [
            "What are the highest and lowest prices of products?",
            "What are the highest and lowest prices of products, grouped by product type?",
            "Sort the results by the product type."
        ],
        "interaction_query": [
            "SELECT max(product_price) ,  min(product_price) FROM products",
            "SELECT max(product_price) ,  min(product_price) ,  product_type_code FROM products GROUP BY product_type_code",
            "SELECT max(product_price) ,  min(product_price) ,  product_type_code FROM products GROUP BY product_type_code ORDER BY product_type_code"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT order_id ,  customer_id FROM customer_orders WHERE order_status_code  =   \"Cancelled\" ORDER BY order_date",
        "final_utterance": "List the order id, customer id for orders in Cancelled status, ordered by their order dates.",
        "interaction_utterance": [
            "Find customer orders whose status is \"Cancelled\".",
            "List the order id, customer id for orders in Cancelled status.",
            "Sort the results by the order date."
        ],
        "interaction_query": [
            "SELECT * FROM customer_orders WHERE order_status_code  =   \"Cancelled\"",
            "SELECT order_id ,  customer_id FROM customer_orders WHERE order_status_code  =   \"Cancelled\"",
            "SELECT order_id ,  customer_id FROM customer_orders WHERE order_status_code  =   \"Cancelled\" ORDER BY order_date"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT DISTINCT T3.product_name FROM customer_orders AS T1 JOIN order_items AS T2 ON T1.order_id  =  T2.order_id JOIN products AS T3 ON T2.product_id  =  T3.product_id GROUP BY T3.product_id HAVING COUNT (DISTINCT T1.customer_id)  >=  2",
        "final_utterance": "Find the names of products that were bought by at least two distinct customers.",
        "interaction_utterance": [
            "How many customers bought each product?",
            "Which products were bought by at least two distinct customers?",
            "What are the product names?"
        ],
        "interaction_query": [
            "SELECT COUNT (DISTINCT T1.customer_id) FROM customer_orders AS T1 JOIN order_items AS T2 ON T1.order_id  =  T2.order_id JOIN products AS T3 ON T2.product_id  =  T3.product_id GROUP BY T3.product_id",
            "SELECT * FROM customer_orders AS T1 JOIN order_items AS T2 ON T1.order_id  =  T2.order_id JOIN products AS T3 ON T2.product_id  =  T3.product_id GROUP BY T3.product_id HAVING COUNT (DISTINCT T1.customer_id)  >=  2",
            "SELECT DISTINCT T3.product_name FROM customer_orders AS T1 JOIN order_items AS T2 ON T1.order_id  =  T2.order_id JOIN products AS T3 ON T2.product_id  =  T3.product_id GROUP BY T3.product_id HAVING COUNT (DISTINCT T1.customer_id)  >=  2"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id JOIN order_items AS T3 ON T2.order_id  =  T3.order_id GROUP BY T1.customer_id HAVING COUNT (DISTINCT T3.product_id)  >=  3",
        "final_utterance": "Find the names of customers who have bought at least three distinct products.",
        "interaction_utterance": [
            "Count the number of distinct products each customer ordered.",
            "Find customers who have bought at least three distinct products.",
            "What are their names?"
        ],
        "interaction_query": [
            "SELECT COUNT (T3.product_id) FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id JOIN order_items AS T3 ON T2.order_id  =  T3.order_id GROUP BY T1.customer_id",
            "SELECT DISTINCT * FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id JOIN order_items AS T3 ON T2.order_id  =  T3.order_id GROUP BY T1.customer_id HAVING COUNT (DISTINCT T3.product_id)  >=  3",
            "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id JOIN order_items AS T3 ON T2.order_id  =  T3.order_id GROUP BY T1.customer_id HAVING COUNT (DISTINCT T3.product_id)  >=  3"
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT T1.staff_name ,  T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.job_title_code  =  \"Sales Person\" EXCEPT SELECT T1.staff_name ,  T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.job_title_code  =  \"Clerical Staff\"",
        "final_utterance": "Find the name and gender of the staff who has been assigned the job of Sales Person but never Clerical Staff.",
        "interaction_utterance": [
            "What are the name and gender of each staff?",
            "What about the staff that has been assigned the job of Sales Person?",
            "What about the staff who has been assigned the job of Sales Person but never Clerical Staff?"
        ],
        "interaction_query": [
            "SELECT staff_name ,  staff_gender FROM staff",
            "SELECT T1.staff_name ,  T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.job_title_code  =  \"Sales Person\"",
            "SELECT T1.staff_name ,  T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.job_title_code  =  \"Sales Person\" EXCEPT SELECT T1.staff_name ,  T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.job_title_code  =  \"Clerical Staff\""
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT customer_id ,  customer_name FROM customers WHERE customer_address LIKE \"%WY%\" AND payment_method_code != \"Credit Card\"",
        "final_utterance": "Find the id and name of customers whose address contains WY state and do not use credit card for payment.",
        "interaction_utterance": [
            "What are the id and name of each customer?",
            "Only return those for customers whose address contains WY.",
            "Find the ids and names of customers whose address contains WY state and do not use credit cards for payment."
        ],
        "interaction_query": [
            "SELECT customer_id ,  customer_name FROM customers",
            "SELECT customer_id ,  customer_name FROM customers WHERE customer_address LIKE \"%WY%\"",
            "SELECT customer_id ,  customer_name FROM customers WHERE customer_address LIKE \"%WY%\" AND payment_method_code != \"Credit Card\""
        ]
    },
    {
        "db_id": "department_store",
        "final_query": "SELECT avg(product_price) FROM products WHERE product_type_code  =  'Clothes'",
        "final_utterance": "Find the average price of all product clothes.",
        "interaction_utterance": [
            "Show me all the products.",
            "What is the average price of all products?",
            "What is the average price of all products whose type is Clothes."
        ],
        "interaction_query": [
            "SELECT * FROM products",
            "SELECT avg(product_price) FROM products",
            "SELECT avg(product_price) FROM products WHERE product_type_code  =  'Clothes'"
        ]
    },
    {
        "db_id": "mountain_photos",
        "final_query": "SELECT count(*) FROM camera_lens WHERE focal_length_mm  >  15",
        "final_utterance": "How many camera lenses have a focal length longer than 15 mm?",
        "interaction_utterance": [
            "Find camera lens whose focal length is longer than 15 mm.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM camera_lens WHERE focal_length_mm  >  15",
            "SELECT count(*) FROM camera_lens WHERE focal_length_mm  >  15"
        ]
    },
    {
        "db_id": "mountain_photos",
        "final_query": "SELECT brand ,  name FROM camera_lens ORDER BY max_aperture DESC",
        "final_utterance": "Find the brand and name for each camera lens, and sort in descending order of maximum aperture.",
        "interaction_utterance": [
            "What are the brand and name of each camera lens?",
            "Sort the results in descending order of the lens' maximum aperture."
        ],
        "interaction_query": [
            "SELECT brand ,  name FROM camera_lens",
            "SELECT brand ,  name FROM camera_lens ORDER BY max_aperture DESC"
        ]
    },
    {
        "db_id": "mountain_photos",
        "final_query": "SELECT id ,  color ,  name FROM photos",
        "final_utterance": "List the id, color scheme, and name for all the photos.",
        "interaction_utterance": [
            "Give me the information for all photos.",
            "List the id, color scheme, and name for each."
        ],
        "interaction_query": [
            "SELECT * FROM photos",
            "SELECT id ,  color ,  name FROM photos"
        ]
    },
    {
        "db_id": "mountain_photos",
        "final_query": "SELECT height FROM mountain",
        "final_utterance": "What are the maximum and average height of the mountains?",
        "interaction_utterance": [
            "What is the height of each mountain?",
            "What is the maximum height?",
            "Also show the average height."
        ],
        "interaction_query": [
            "SELECT max(height) ,  avg(height) FROM mountain",
            "SELECT max(height) FROM mountain",
            "SELECT max(height) ,  avg(height) FROM mountain"
        ]
    },
    {
        "db_id": "mountain_photos",
        "final_query": "SELECT avg(prominence) FROM mountain WHERE country  =  'Morocco'",
        "final_utterance": "What are the average prominence of the mountains in country 'Morocco'?",
        "interaction_utterance": [
            "What is the prominence of each mountain?",
            "What is the prominence of mountains in country 'Morocco'?",
            "What is the average of them?"
        ],
        "interaction_query": [
            "SELECT prominence FROM mountain",
            "SELECT prominence FROM mountain WHERE country  =  'Morocco'",
            "SELECT avg(prominence) FROM mountain WHERE country  =  'Morocco'"
        ]
    },
    {
        "db_id": "mountain_photos",
        "final_query": "SELECT name ,  height ,  prominence FROM mountain WHERE range != 'Aberdare Range'",
        "final_utterance": "What are the name, height and prominence of mountains which do not belong to the range 'Aberdare Range'?",
        "interaction_utterance": [
            "Show all the mountains.",
            "Which mountains do not belong to the range 'Aberdare Range'?",
            "What are those mountains' name, height and prominence?"
        ],
        "interaction_query": [
            "SELECT * FROM mountain",
            "SELECT * FROM mountain WHERE range != 'Aberdare Range'",
            "SELECT name ,  height ,  prominence FROM mountain WHERE range != 'Aberdare Range'"
        ]
    },
    {
        "db_id": "mountain_photos",
        "final_query": "SELECT T1.id ,  T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id WHERE T1.height  >  4000",
        "final_utterance": "What are the id and name of mountains that have photos and height above 4000?",
        "interaction_utterance": [
            "Show the id and name of all mountains.",
            "Show the id and name of all the mountains that have photos.",
            "What are the id and name of mountains that have photos and heights above 4000?"
        ],
        "interaction_query": [
            "SELECT id ,  name FROM mountain",
            "SELECT T1.id ,  T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id",
            "SELECT T1.id ,  T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id WHERE T1.height  >  4000"
        ]
    },
    {
        "db_id": "mountain_photos",
        "final_query": "SELECT T1.id ,  T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id GROUP BY T1.id HAVING count(*)  >=  2",
        "final_utterance": "What are the id and name of the mountains that have at least 2 photos?",
        "interaction_utterance": [
            "Show the ids and names of all mountains.",
            "Show the ids and names of those that have photos.",
            "Which ones have at least 2 photos?"
        ],
        "interaction_query": [
            "SELECT id ,  name FROM mountain",
            "SELECT T1.id ,  T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id",
            "SELECT T1.id ,  T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id GROUP BY T1.id HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "mountain_photos",
        "final_query": "SELECT T2.name FROM photos AS T1 JOIN camera_lens AS T2 ON T1.camera_lens_id  =  T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What are the names of the cameras that have taken picture of the most mountains?",
        "interaction_utterance": [
            "Show the id of the camera lens that has taken picture of each mountain.",
            "Which one has taken pictures of the most mountains.",
            "What is the name of this camera?"
        ],
        "interaction_query": [
            "SELECT camera_lens_id FROM photos",
            "SELECT camera_lens_id FROM photos GROUP BY camera_lens_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT T2.name FROM photos AS T1 JOIN camera_lens AS T2 ON T1.camera_lens_id  =  T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "mountain_photos",
        "final_query": "SELECT T2.name FROM camera_lens AS T1 JOIN photos AS T2 ON T2.camera_lens_id  =  T1.id WHERE T1.brand  =  'Sigma' OR T1.brand  =  'Olympus'",
        "final_utterance": "What are the names of photos taken with the lens brand 'Sigma' or 'Olympus'?",
        "interaction_utterance": [
            "For each photo, show the id of the camera lens that has taken it.",
            "Which photos were taken with the lens brand 'Sigma' or 'Olympus'?",
            "Give me the photo names."
        ],
        "interaction_query": [
            "SELECT camera_lens_id FROM photos",
            "SELECT * FROM camera_lens AS T1 JOIN photos AS T2 ON T2.camera_lens_id  =  T1.id WHERE T1.brand  =  'Sigma' OR T1.brand  =  'Olympus'",
            "SELECT T2.name FROM camera_lens AS T1 JOIN photos AS T2 ON T2.camera_lens_id  =  T1.id WHERE T1.brand  =  'Sigma' OR T1.brand  =  'Olympus'"
        ]
    },
    {
        "db_id": "mountain_photos",
        "final_query": "SELECT count(DISTINCT brand) FROM camera_lens",
        "final_utterance": "How many different kinds of lens brands are there?",
        "interaction_utterance": [
            "What is the brand of each camera lens?",
            "How many different kinds are there?"
        ],
        "interaction_query": [
            "SELECT brand FROM camera_lens",
            "SELECT count(DISTINCT brand) FROM camera_lens"
        ]
    },
    {
        "db_id": "mountain_photos",
        "final_query": "SELECT count(*) FROM camera_lens WHERE id NOT IN ( SELECT camera_lens_id FROM photos )",
        "final_utterance": "How many camera lenses are not used in taking any photos?",
        "interaction_utterance": [
            "Show the id of all the camera lenses used for taking photos.",
            "Which camera lenses were not used for taking any photos?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT camera_lens_id FROM photos",
            "SELECT * FROM camera_lens WHERE id NOT IN ( SELECT camera_lens_id FROM photos )",
            "SELECT count(*) FROM camera_lens WHERE id NOT IN ( SELECT camera_lens_id FROM photos )"
        ]
    },
    {
        "db_id": "mountain_photos",
        "final_query": "SELECT count(DISTINCT T2.camera_lens_id) FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id WHERE T1.country  =  'Ethiopia'",
        "final_utterance": "How many distinct kinds of camera lenses are used to take photos of mountains in the country 'Ethiopia'?",
        "interaction_utterance": [
            "Which mountains are in the country 'Ethiopia'?",
            "Which camera lenses are used to take photos of these mountains? Return the camera lens ids.",
            "How many distinct kinds of camera lenses are there, among these?"
        ],
        "interaction_query": [
            "SELECT * FROM mountain WHERE country  =  'Ethiopia'",
            "SELECT T2.camera_lens_id FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id WHERE T1.country  =  'Ethiopia'",
            "SELECT count(DISTINCT T2.camera_lens_id) FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id WHERE T1.country  =  'Ethiopia'"
        ]
    },
    {
        "db_id": "mountain_photos",
        "final_query": "SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id  =  T3.id WHERE T1.range  =  'Toubkal Atlas' INTERSECT SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id  =  T3.id WHERE T1.range  =  'Lasta Massif'",
        "final_utterance": "List the brands of lenses that took both a picture of mountains with range 'Toubkal Atlas' and a picture of mountains with range 'Lasta Massif'",
        "interaction_utterance": [
            "Which mountains are in the range 'Toubkal Atlas'?",
            "Find the brands of lenses that took a picture of mountains with range 'Toubkal Atlas'",
            "Of these, which ones have also taken a picture of mountains with range 'Lasta Massif'"
        ],
        "interaction_query": [
            "SELECT * FROM mountain WHERE range  =  'Toubkal Atlas'",
            "SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id  =  T3.id WHERE T1.range  =  'Toubkal Atlas'",
            "SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id  =  T3.id WHERE T1.range  =  'Toubkal Atlas' INTERSECT SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id  =  T3.id WHERE T1.range  =  'Lasta Massif'"
        ]
    },
    {
        "db_id": "mountain_photos",
        "final_query": "SELECT name ,  prominence FROM mountain EXCEPT SELECT T1.name ,  T1.prominence FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id  =  T3.id WHERE T3.brand  =  'Sigma'",
        "final_utterance": "Show the name and prominence of the mountains whose picture is not taken by a lens of brand 'Sigma'.",
        "interaction_utterance": [
            "Which pictures are taken by a lens of brand 'Sigma'?",
            "Show the name and prominence of the mountains whose picture is not taken by a lens of brand 'Sigma'."
        ],
        "interaction_query": [
            "SELECT * FROM photos AS T2 JOIN camera_lens AS T3 ON T2.camera_lens_id  =  T3.id WHERE T3.brand  =  'Sigma'",
            "SELECT name ,  prominence FROM mountain EXCEPT SELECT T1.name ,  T1.prominence FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id  =  T3.id WHERE T3.brand  =  'Sigma'"
        ]
    },
    {
        "db_id": "mountain_photos",
        "final_query": "SELECT name FROM camera_lens WHERE name LIKE \"%Digital%\"",
        "final_utterance": "List the camera lens names containing substring \"Digital\".",
        "interaction_utterance": [
            "Show the name of each camera lens.",
            "Find the camera lens names containing substring \"Digital\"."
        ],
        "interaction_query": [
            "SELECT name FROM camera_lens",
            "SELECT name FROM camera_lens WHERE name LIKE \"%Digital%\""
        ]
    },
    {
        "db_id": "insurance_policies",
        "final_query": "SELECT T1.Date_Claim_Made ,  T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id  =  T2.Claim_id GROUP BY T1.Claim_id HAVING count(*)  >  2 UNION SELECT T1.Date_Claim_Made ,  T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id  =  T2.Claim_id WHERE T1.Amount_Claimed  =  ( SELECT max(Amount_Claimed) FROM Claims )",
        "final_utterance": "Which claims caused more than 2 settlements or have the maximum claim value? List the date the claim was made and the claim id.",
        "interaction_utterance": [
            "Tell me claim 143's settled amount.",
            "Tell me its number of settlements.",
            "Which claims caused more than 2 settlements or have the maximum claim value? List the date the claim was made and the claim id."
        ],
        "interaction_query": [
            "SELECT Amount_Settled FROM Claims WHERE Claim_ID = 143",
            "SELECT COUNT(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_ID  =  T2.Claim_ID WHERE T1.Claim_ID = 143",
            "SELECT T1.Date_Claim_Made ,  T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id  =  T2.Claim_id GROUP BY T1.Claim_id HAVING count(*)  >  2 UNION SELECT T1.Date_Claim_Made ,  T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id  =  T2.Claim_id WHERE T1.Amount_Claimed  =  ( SELECT max(Amount_Claimed) FROM Claims )"
        ]
    },
    {
        "db_id": "insurance_policies",
        "final_query": "SELECT T1.customer_details ,  T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >=  2 EXCEPT SELECT T1.customer_details ,  T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.customer_id JOIN Claims AS T3 ON T2.policy_id  =  T3.policy_id",
        "final_utterance": "Which customer had at least 2 policies but did not file any claims? List the customer details and id.",
        "interaction_utterance": [
            "Tell me the claims id of the customer named Ellsworth Paucek.",
            "Tell me the number of policies of the customer named Ellsworth Paucek.",
            "Which customer had at least 2 policies but did not file any claims? List the customer details and id."
        ],
        "interaction_query": [
            "SELECT T3.Claim_ID FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.customer_id JOIN Claims AS T3 ON T2.policy_id  =  T3.policy_id WHERE T1.customer_details = \"Ellsworth Paucek\"",
            "SELECT COUNT(*) FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.customer_id WHERE T1.customer_details = \"Ellsworth Paucek\"",
            "SELECT T1.customer_details ,  T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >=  2 EXCEPT SELECT T1.customer_details ,  T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.customer_id JOIN Claims AS T3 ON T2.policy_id  =  T3.policy_id"
        ]
    },
    {
        "db_id": "insurance_policies",
        "final_query": "SELECT Amount_Settled ,  Amount_Claimed FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1",
        "final_utterance": "Among all the claims, what is the settlement amount of the claim with the largest claim amount? List both the settlement amount and claim amount.",
        "interaction_utterance": [
            "What is the claim settled date of the claim with id 571.",
            "What is its settlement amount?",
            "Among all the claims, what is the settlement amount of the claim with the largest claim amount? List both the settlement amount and claim amount"
        ],
        "interaction_query": [
            "SELECT Date_Claim_Settled FROM Claims WHERE Claim_ID = 571",
            "SELECT Amount_Settled FROM Claims WHERE Claim_ID = 571",
            "SELECT Amount_Settled ,  Amount_Claimed FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1"
        ]
    },
    {
        "db_id": "insurance_policies",
        "final_query": "SELECT Amount_Settled ,  Amount_Claimed FROM Claims ORDER BY Amount_Settled ASC LIMIT 1",
        "final_utterance": "Among all the claims, what is the amount claimed in the claim with the least amount settled? List both the settlement amount and claim amount.",
        "interaction_utterance": [
            "Tell me the claims id of the customer named Dr. Diana Rathk.",
            "What was their claim amount?",
            "Among all the claims, what is the amount claimed in the claim with the least amount settled? List both the settlement amount and claim amount"
        ],
        "interaction_query": [
            "SELECT T3.Claim_ID FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.customer_id JOIN Claims AS T3 ON T2.policy_id  =  T3.policy_id WHERE T1.customer_details = \"Dr. Diana Rathk\"",
            "SELECT T3.Amount_Claimed FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.customer_id JOIN Claims AS T3 ON T2.policy_id  =  T3.policy_id WHERE T1.customer_details = \"Dr. Diana Rathk\"",
            "SELECT Amount_Settled ,  Amount_Claimed FROM Claims ORDER BY Amount_Settled ASC LIMIT 1"
        ]
    },
    {
        "db_id": "insurance_policies",
        "final_query": "SELECT Date_Claim_Made ,  Date_Claim_Settled FROM Claims WHERE Amount_Claimed  >  ( SELECT avg(Amount_Claimed) FROM Claims )",
        "final_utterance": "Among all the claims, which claims have a claimed amount larger than the average? List the date the claim was made and the date it was settled.",
        "interaction_utterance": [
            "Among all the claims, which one has the largest claim amount?",
            "Which one has the least claim amount?",
            "Which claims have a claimed amount larger than the average? Tell me the date the claim was made and the date it was settled."
        ],
        "interaction_query": [
            "SELECT Claim_ID FROM Claims ORDER BY Amount_Settled ASC LIMIT 1",
            "SELECT Claim_ID FROM Claims ORDER BY Amount_Settled DESC LIMIT 1",
            "SELECT Date_Claim_Made ,  Date_Claim_Settled FROM Claims WHERE Amount_Claimed  >  ( SELECT avg(Amount_Claimed) FROM Claims )"
        ]
    },
    {
        "db_id": "insurance_policies",
        "final_query": "SELECT Date_Claim_Made FROM Claims WHERE Amount_Settled  <=  ( SELECT avg(Amount_Settled) FROM Claims )",
        "final_utterance": "Among all the claims, which settlements have a claimed amount that is no more than the average? List the claim start date.",
        "interaction_utterance": [
            "Tell me claim 563's claim amount.",
            "How about that of claim 621?",
            "Among all the claims, which settlements have a claimed amount that is no more than the average? List the claim start date."
        ],
        "interaction_query": [
            "SELECT Amount_Claimed FROM Claims WHERE Claim_ID = 563",
            "SELECT Amount_Claimed FROM Claims WHERE Claim_ID = 621",
            "SELECT Date_Claim_Made FROM Claims WHERE Amount_Settled  <=  ( SELECT avg(Amount_Settled) FROM Claims )"
        ]
    },
    {
        "db_id": "insurance_policies",
        "final_query": "SELECT T1.Claim_id ,  count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id  =  T2.claim_id GROUP BY T1.claim_id",
        "final_utterance": "How many settlements does each claim correspond to? List the claim id and the number of settlements.",
        "interaction_utterance": [
            "Tell me claim 621's claim amount.",
            "How about its settlement claim amount?",
            "How many settlements does each claim correspond to? List the claim id and the number of settlements."
        ],
        "interaction_query": [
            "SELECT Amount_Claimed FROM Claims WHERE Claim_ID = 621",
            "SELECT T2.Amount_Claimed FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_ID  =  T2.Claim_ID WHERE T1.Claim_ID = 621",
            "SELECT T1.Claim_id ,  count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id  =  T2.claim_id GROUP BY T1.claim_id"
        ]
    },
    {
        "db_id": "insurance_policies",
        "final_query": "SELECT T1.claim_id ,  T1.date_claim_made ,  count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id  =  T2.claim_id GROUP BY T1.claim_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which claim incurred the most number of settlements? List the claim id, the date the claim was made, and the number.",
        "interaction_utterance": [
            "Tell me the number of settlements of claim 957",
            "How about the settlement claim amount?",
            "Which claim incurred the most number of settlements? List the claim id, the date the claim was made, and the number"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_ID  =  T2.Claim_ID WHERE T1.Claim_ID = 957",
            "SELECT T2.Amount_Claimed FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_ID  =  T2.Claim_ID WHERE T1.Claim_ID = 957",
            "SELECT T1.claim_id ,  T1.date_claim_made ,  count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id  =  T2.claim_id GROUP BY T1.claim_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "insurance_policies",
        "final_query": "SELECT count(*) ,  T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id  =  T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1",
        "final_utterance": "How many settlements were made on the claim with the most recent claim settlement date? List the number and the claim id.",
        "interaction_utterance": [
            "Tell me the settlement amount of settlement 564.",
            "What is the date on which the claim was made?",
            "How many settlements were made on the claim with the most recent claim settlement date? Tell me the number and the claim id."
        ],
        "interaction_query": [
            "SELECT Amount_Settled FROM Settlements WHERE Settlement_ID = 564",
            "SELECT Date_Claim_Made FROM Settlements WHERE Settlement_ID = 564",
            "SELECT count(*) ,  T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id  =  T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1"
        ]
    },
    {
        "db_id": "insurance_policies",
        "final_query": "SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made ASC LIMIT 1",
        "final_utterance": "Of all the claims, what was the earliest date when any claim was made?",
        "interaction_utterance": [
            "Tell me which claim has the largest claim amount.",
            "How about the latest one?",
            "How about the earliest one?"
        ],
        "interaction_query": [
            "SELECT Claim_ID FROM Claims ORDER BY Amount_Settled ASC LIMIT 1",
            "SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made DESC LIMIT 1",
            "SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made ASC LIMIT 1"
        ]
    },
    {
        "db_id": "insurance_policies",
        "final_query": "SELECT T1.customer_details ,  T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.Customer_id GROUP BY T1.customer_id HAVING count(*)  >  1",
        "final_utterance": "Who are the customers that had more than 1 policy? List the customer details and id.",
        "interaction_utterance": [
            "Tell me the policy types of the customer named Augustine Kerluke",
            "How many are there?",
            "Who are the customers that have had more than 1 policy?"
        ],
        "interaction_query": [
            "SELECT T2.Policy_Type_Code FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.Customer_id WHERE Customer_Details = \"Augustine Kerluke\"",
            "SELECT COUNT(T2.Policy_Type_Code) FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.Customer_id WHERE Customer_Details = \"Augustine Kerluke\"",
            "SELECT T1.customer_details ,  T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.Customer_id GROUP BY T1.customer_id HAVING count(*)  >  1"
        ]
    },
    {
        "db_id": "insurance_policies",
        "final_query": "SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the most popular payment method?",
        "interaction_utterance": [
            "Tell me payment method code of the most recent payment.",
            "Tell me the amount of the most recent payment.",
            "What is the most popular payment method?"
        ],
        "interaction_query": [
            "SELECT Payment_Method_Code FROM Payments ORDER BY Date_Payment_Made DESC LIMIT 1",
            "SELECT Amount_Payment FROM Payments ORDER BY Date_Payment_Made DESC LIMIT 1",
            "SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "insurance_policies",
        "final_query": "SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) ASC LIMIT 1",
        "final_utterance": "With which kind of payment method were the least number of payments processed?",
        "interaction_utterance": [
            "Tell me how many payments are processed by MasterCard?",
            "How about that of Discover Card?",
            "With which kind of payment method were the least number of payments processed?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Payments WHERE Payment_Method_Code = \"MasterCard\"",
            "SELECT COUNT(*) FROM Payments WHERE Payment_Method_Code = \"Discover Card\"",
            "SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) ASC LIMIT 1"
        ]
    },
    {
        "db_id": "insurance_policies",
        "final_query": "SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which kind of policy type was chosen by the most customers?",
        "interaction_utterance": [
            "Tell me the policy types of the customer named Augustine Kerluke.",
            "How many are there?",
            "Which kind of policy type was chosen by the most customers?"
        ],
        "interaction_query": [
            "SELECT T2.Policy_Type_Code FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.Customer_id WHERE Customer_Details = \"Augustine Kerluke\"",
            "SELECT COUNT(T2.Policy_Type_Code) FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.Customer_id WHERE Customer_Details = \"Augustine Kerluke\"",
            "SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "insurance_policies",
        "final_query": "SELECT customer_details FROM Customers EXCEPT SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.customer_id  =  T2.customer_id",
        "final_utterance": "List the details of the customers who do not have any policies.",
        "interaction_utterance": [
            "Tell me the policy types of the customer named Selena Gerhold.",
            "How about that of the customer named Sydnie Friesen?",
            "Tell me the details of the customers who do not have any policies."
        ],
        "interaction_query": [
            "SELECT * FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.Customer_id WHERE Customer_Details = \"Selena Gerhold\"",
            "SELECT * FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.Customer_id WHERE Customer_Details = \"Sydnie Friesen\"",
            "SELECT customer_details FROM Customers EXCEPT SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.customer_id  =  T2.customer_id"
        ]
    },
    {
        "db_id": "train_station",
        "final_query": "SELECT count(*) FROM station",
        "final_utterance": "How many train stations are there?",
        "interaction_utterance": [
            "Show information for all train stations.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM station",
            "SELECT count(*) FROM station"
        ]
    },
    {
        "db_id": "train_station",
        "final_query": "SELECT name ,  LOCATION ,  number_of_platforms FROM station",
        "final_utterance": "Show the name, location, and number of platforms for all stations.",
        "interaction_utterance": [
            "Show the name for all stations.",
            "Also show the location for them.",
            "Also add the number of platforms for each."
        ],
        "interaction_query": [
            "SELECT name FROM station",
            "SELECT name ,  LOCATION  FROM station",
            "SELECT name ,  LOCATION ,  number_of_platforms FROM station"
        ]
    },
    {
        "db_id": "train_station",
        "final_query": "SELECT DISTINCT LOCATION FROM station",
        "final_utterance": "What are all locations of train stations?",
        "interaction_utterance": [
            "Show the location for each train station.",
            "Show only distinct results."
        ],
        "interaction_query": [
            "SELECT LOCATION FROM station",
            "SELECT DISTINCT LOCATION FROM station"
        ]
    },
    {
        "db_id": "train_station",
        "final_query": "SELECT name ,  total_passengers FROM station WHERE LOCATION != 'London'",
        "final_utterance": "Show the names and total passengers for all train stations not in London.",
        "interaction_utterance": [
            "Show the name for all train stations.",
            "Also show the total passenger for them.",
            "How about the results for those stations not in London?"
        ],
        "interaction_query": [
            "SELECT name FROM station",
            "SELECT name ,  total_passengers FROM station",
            "SELECT name ,  total_passengers FROM station WHERE LOCATION != 'London'"
        ]
    },
    {
        "db_id": "train_station",
        "final_query": "SELECT name ,  main_services FROM station ORDER BY total_passengers DESC LIMIT 3",
        "final_utterance": "Show the names and main services for train stations that have the top three total number of passengers.",
        "interaction_utterance": [
            "Show the names of the stations.",
            "Also show the main services for them.",
            "Order the results by the total number of passengers, descending.",
            "Only show the top three."
        ],
        "interaction_query": [
            "SELECT name FROM station",
            "SELECT name ,  main_services FROM station",
            "SELECT name ,  main_services FROM station ORDER BY total_passengers DESC",
            "SELECT name ,  main_services FROM station ORDER BY total_passengers DESC LIMIT 3"
        ]
    },
    {
        "db_id": "train_station",
        "final_query": "SELECT avg(total_passengers) ,  max(total_passengers) FROM station WHERE LOCATION  =  'London' OR LOCATION  =  'Glasgow'",
        "final_utterance": "What is the average and maximum number of total passengers for train stations in London or Glasgow?",
        "interaction_utterance": [
            "Show the total passengers for all train stations.",
            "Show the total passengers for those in either London or Glasgow.",
            "What is the average?",
            "Also show the maximum."
        ],
        "interaction_query": [
            "SELECT total_passengers  FROM station",
            "SELECT total_passengers  FROM station WHERE LOCATION  =  'London' OR LOCATION  =  'Glasgow'",
            "SELECT avg(total_passengers)  FROM station WHERE LOCATION  =  'London' OR LOCATION  =  'Glasgow'",
            "SELECT avg(total_passengers) ,  max(total_passengers) FROM station WHERE LOCATION  =  'London' OR LOCATION  =  'Glasgow'"
        ]
    },
    {
        "db_id": "train_station",
        "final_query": "SELECT LOCATION ,  sum(number_of_platforms) ,  sum(total_passengers) FROM station GROUP BY LOCATION",
        "final_utterance": "Show all locations and the total number of platforms and passengers for all train stations in each location.",
        "interaction_utterance": [
            "Show the location for train stations.",
            "For each location of them, show the total number of platforms.",
            "For each of them, also show the total number of passengers."
        ],
        "interaction_query": [
            "SELECT LOCATION FROM station",
            "SELECT LOCATION ,  sum(number_of_platforms) FROM station GROUP BY LOCATION",
            "SELECT LOCATION ,  sum(number_of_platforms) ,  sum(total_passengers) FROM station GROUP BY LOCATION"
        ]
    },
    {
        "db_id": "train_station",
        "final_query": "SELECT DISTINCT LOCATION FROM station WHERE number_of_platforms  >=  15 AND total_passengers  >  25",
        "final_utterance": "Show all locations that have train stations with at least 15 platforms and train stations with more than 25 total passengers.",
        "interaction_utterance": [
            "Show locations for stations.",
            "Show locations for stations with at least 15 platforms.",
            "Among those, which locations also have stations with more than 25 total passengers?",
            "Show distinct locations of them."
        ],
        "interaction_query": [
            "select LOCATION FROM station",
            "SELECT LOCATION FROM station WHERE number_of_platforms  >=  15",
            "SELECT LOCATION FROM station WHERE number_of_platforms  >=  15 AND total_passengers  >  25",
            "SELECT DISTINCT LOCATION FROM station WHERE number_of_platforms  >=  15 AND total_passengers  >  25"
        ]
    },
    {
        "db_id": "train_station",
        "final_query": "SELECT LOCATION FROM station EXCEPT SELECT LOCATION FROM station WHERE number_of_platforms  >=  15",
        "final_utterance": "Show all locations which don't have a train station with at least 15 platforms.",
        "interaction_utterance": [
            "Show all locations of train stations.",
            "Show locations with a station having at least 15 platforms.",
            "Show all locations that don't."
        ],
        "interaction_query": [
            "SELECT LOCATION FROM station",
            "SELECT LOCATION FROM station WHERE number_of_platforms  >=  15",
            "SELECT LOCATION FROM station EXCEPT SELECT LOCATION FROM station WHERE number_of_platforms  >=  15"
        ]
    },
    {
        "db_id": "train_station",
        "final_query": "SELECT LOCATION FROM station GROUP BY LOCATION ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Show the location with most number of train stations.",
        "interaction_utterance": [
            "Show the location for all train stations.",
            "Show them in descending order of the number of train stations.",
            "Which one has the most?"
        ],
        "interaction_query": [
            "SELECT LOCATION FROM station",
            "SELECT LOCATION FROM station GROUP BY LOCATION ORDER BY count(*) DESC",
            "SELECT LOCATION FROM station GROUP BY LOCATION ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "train_station",
        "final_query": "SELECT name ,  TIME ,  service FROM train",
        "final_utterance": "Show the name, time, and service for all trains.",
        "interaction_utterance": [
            "Show the name for all trains.",
            "Also show the time and service for them."
        ],
        "interaction_query": [
            "SELECT name FROM train",
            "SELECT name ,  TIME ,  service FROM train"
        ]
    },
    {
        "db_id": "train_station",
        "final_query": "SELECT count(*) FROM train",
        "final_utterance": "Show the number of trains",
        "interaction_utterance": [
            "Show information for all trains.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM train",
            "SELECT count(*) FROM train"
        ]
    },
    {
        "db_id": "train_station",
        "final_query": "SELECT name ,  service FROM train ORDER BY TIME",
        "final_utterance": "Show the name and service for all trains in order by time.",
        "interaction_utterance": [
            "Show the names of the trains.",
            "Also show the services.",
            "Order the result by time."
        ],
        "interaction_query": [
            "SELECT name FROM train",
            "SELECT name ,  service FROM train",
            "SELECT name ,  service FROM train ORDER BY TIME"
        ]
    },
    {
        "db_id": "train_station",
        "final_query": "SELECT T2.name ,  count(*) FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id GROUP BY T1.station_id",
        "final_utterance": "Show the station name and number of trains in each station.",
        "interaction_utterance": [
            "Show the name for each station.",
            "For each station name, also count the number of trains."
        ],
        "interaction_query": [
            "select name from station",
            "SELECT T2.name ,  count(*) FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id GROUP BY T1.station_id"
        ]
    },
    {
        "db_id": "train_station",
        "final_query": "SELECT T2.name ,  T3.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id",
        "final_utterance": "show the train name and station name for each train.",
        "interaction_utterance": [
            "Show the name for each train.",
            "For each train, also show the station name."
        ],
        "interaction_query": [
            "select name from train",
            "SELECT T2.name ,  T3.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id"
        ]
    },
    {
        "db_id": "train_station",
        "final_query": "SELECT T3.name ,  T3.time FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T2.location  =  'London' ORDER BY T3.time DESC",
        "final_utterance": "Show all train names and times in stations in London in descending order by train time.",
        "interaction_utterance": [
            "Show all train names and times.",
            "Show the results only for trains in stations in London.",
            "Order them in descending order by train time."
        ],
        "interaction_query": [
            "select name, time from train",
            "SELECT T3.name ,  T3.time FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T2.location  =  'London'",
            "SELECT T3.name ,  T3.time FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T2.location  =  'London' ORDER BY T3.time DESC"
        ]
    },
    {
        "db_id": "train_station",
        "final_query": "SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id GROUP BY T1.station_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Show the station name with greatest number of trains.",
        "interaction_utterance": [
            "Show the name for all train stations.",
            "Order those names in descending order of the number of trains.",
            "Which one has the most?"
        ],
        "interaction_query": [
            "SELECT name FROM station",
            "SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id GROUP BY T1.station_id ORDER BY count(*) DESC",
            "SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id GROUP BY T1.station_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "train_station",
        "final_query": "SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id GROUP BY T1.station_id HAVING count(*)  >=  2",
        "final_utterance": "Show the station name with at least two trains.",
        "interaction_utterance": [
            "List the name for all stations.",
            "Also count the number of trains for each.",
            "Show those names with at least two trains."
        ],
        "interaction_query": [
            "SELECT name FROM station",
            "SELECT T2.name, count(*) FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id GROUP BY T1.station_id",
            "SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id GROUP BY T1.station_id HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "train_station",
        "final_query": "SELECT LOCATION FROM station GROUP BY LOCATION HAVING count(*)  =  1",
        "final_utterance": "Show all locations with only 1 station.",
        "interaction_utterance": [
            "Show the location for all stations.",
            "What are those locations with only 1 station?"
        ],
        "interaction_query": [
            "SELECT LOCATION FROM station",
            "SELECT LOCATION FROM station GROUP BY LOCATION HAVING count(*)  =  1"
        ]
    },
    {
        "db_id": "train_station",
        "final_query": "SELECT name FROM station WHERE station_id NOT IN (SELECT station_id FROM train_station)",
        "final_utterance": "Show station names without any trains.",
        "interaction_utterance": [
            "Show station id for all stations with a train.",
            "Show the name of stations without any train."
        ],
        "interaction_query": [
            "SELECT station_id FROM train_station",
            "SELECT name FROM station WHERE station_id NOT IN (SELECT station_id FROM train_station)"
        ]
    },
    {
        "db_id": "train_station",
        "final_query": "SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T3.Name  =  \"Ananthapuri Express\" INTERSECT SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T3.Name  =  \"Guruvayur Express\"",
        "final_utterance": "What are the names of the stations which serve both \"Ananthapuri Express\" and \"Guruvayur Express\" trains?",
        "interaction_utterance": [
            "What are the names for all the stations?",
            "What are the names for those serving \"Ananthapuri Express\" trains?",
            "How about those serving \"Guruvayur Express\"?",
            "Which serve both?"
        ],
        "interaction_query": [
            "select name from station",
            "SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T3.Name  =  \"Ananthapuri Express\"",
            "SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T3.Name  =  \"Guruvayur Express\"",
            "SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T3.Name  =  \"Ananthapuri Express\" INTERSECT SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T3.Name  =  \"Guruvayur Express\""
        ]
    },
    {
        "db_id": "train_station",
        "final_query": "SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id  =  T2.train_id WHERE T1.station_id NOT IN (SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id  =  T4.station_id WHERE t4.location  =  \"London\")",
        "final_utterance": "Find the names of the trains that do not pass any station located in London.",
        "interaction_utterance": [
            "Show station ids for stations located in London.",
            "Show the names for all trains.",
            "Only show the names for the trains that do not pass any station located in London."
        ],
        "interaction_query": [
            "SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id  =  T4.station_id WHERE t4.location  =  \"London\"",
            "SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id  =  T2.train_id",
            "SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id  =  T2.train_id WHERE T1.station_id NOT IN (SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id  =  T4.station_id WHERE t4.location  =  \"London\")"
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT t3.Lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubName  =  \"Bootup Baltimore\"",
        "final_utterance": "Find the last names of the members of the club \"Bootup Baltimore\".",
        "interaction_utterance": [
            "Tell me the age of the student named Tracy.",
            "Tell me the club she is in.",
            "Tell me the last names of the members of the club \"Bootup Baltimore\"?"
        ],
        "interaction_query": [
            "SELECT Age FROM Student WHERE Fname = \"Tracy\"",
            "SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.Fname  =  \"Tracy\"",
            "SELECT t3.Lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubName  =  \"Bootup Baltimore\""
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Hopkins Student Enterprises\"",
        "final_utterance": "Who are the members of the club named \"Hopkins Student Enterprises\"? Show the last name.",
        "interaction_utterance": [
            "Tell me the description of the club named \"Hopkins Student Enterprises\".",
            "How about its location?",
            "Tell me who are the members of the club named \"Hopkins Student Enterprises\"? Show me the last name."
        ],
        "interaction_query": [
            "SELECT ClubDesc FROM Club WHERE ClubName = \"Hopkins Student Enterprises\"",
            "SELECT ClubLocation FROM Club WHERE ClubName = \"Hopkins Student Enterprises\"",
            "SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubName  =  \"Hopkins Student Enterprises\""
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Tennis Club\"",
        "final_utterance": "How many members does the club \"Tennis Club\" has?",
        "interaction_utterance": [
            "Tell me the major of the student named \"Eric\".",
            "What club did he join?",
            "How many members does the club \"Tennis Club\" have?"
        ],
        "interaction_query": [
            "SELECT Major FROM Student WHERE Fname = \"Eric\"",
            "SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.Fname  =  \"Eric\"",
            "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Tennis Club\""
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Pen and Paper Gaming\"",
        "final_utterance": "Find the number of members of club \"Pen and Paper Gaming\".",
        "interaction_utterance": [
            "Tell me the positions of the student named Lisa.",
            "Tell me the club she is in.",
            "Show me the the number of members of club \"Pen and Paper Gaming\"."
        ],
        "interaction_query": [
            "SELECT Position FROM member_of_club AS t1 JOIN student AS t2 ON t1.stuid  =  t2.stuid WHERE T2.Fname = \"Lisa\"",
            "SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.Fname  =  \"Lisa\"",
            "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Pen and Paper Gaming\""
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.fname  =  \"Linda\" AND t3.lname  =  \"Smith\"",
        "final_utterance": "How many clubs does \"Linda Smith\" belong to?",
        "interaction_utterance": [
            "Tell me the advisor of \"Linda Smith\".",
            "Tell me her age.",
            "How many clubs does \"Linda Smith\" belong to?"
        ],
        "interaction_query": [
            "SELECT Advisor FROM Student WHERE LName = \"Smith\" AND Fname = \"Linda\"",
            "SELECT Age FROM Student WHERE LName = \"Smith\" AND Fname = \"Linda\"",
            "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.fname  =  \"Linda\" AND t3.lname  =  \"Smith\""
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.fname  =  \"Tracy\" AND t3.lname  =  \"Kim\"",
        "final_utterance": "Find the number of clubs where \"Tracy Kim\" is a member.",
        "interaction_utterance": [
            "Tell me Paul's sex.",
            "Tell me the number of clubs where he is a member.",
            "What is the number of clubs where \"Tracy Kim\" is a member?"
        ],
        "interaction_query": [
            "SELECT Sex FROM Student WHERE Fname = \"Paul\"",
            "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.Fname = \"Paul\"",
            "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.fname  =  \"Tracy\" AND t3.lname  =  \"Kim\""
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Bootup Baltimore\" AND t3.sex  =  \"F\"",
        "final_utterance": "Find all the female members of club \"Bootup Baltimore\". Show the first name and last name.",
        "interaction_utterance": [
            "Tell me the location of club \"Tennis Club\".",
            "What is the first name of the members in it?",
            "Tell me all the female members of the club \"Bootup Baltimore\". Show the first name and last name."
        ],
        "interaction_query": [
            "SELECT ClubLocation FROM Club WHERE ClubName = \"Tennis Club\"",
            "SELECT t3.Fname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubName  =  \"Tennis Club\"",
            "SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Bootup Baltimore\" AND t3.sex  =  \"F\""
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Hopkins Student Enterprises\" AND t3.sex  =  \"M\"",
        "final_utterance": "Find all the male members of club \"Hopkins Student Enterprises\". Show the first name and last name.",
        "interaction_utterance": [
            "What is the description of the club named \"Hopkins Student Enterprises\"?",
            "What are all the female members of the club? Show me the first name.",
            "Who are the male members of the club? Show me the first name and last name."
        ],
        "interaction_query": [
            "SELECT ClubDesc FROM Club WHERE ClubName = \"Hopkins Student Enterprises\"",
            "SELECT t3.fname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Hopkins Student Enterprises\" AND t3.sex  =  \"F\"",
            "SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Hopkins Student Enterprises\" AND t3.sex  =  \"M\""
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Bootup Baltimore\" AND t3.major  =  \"600\"",
        "final_utterance": "Find all members of \"Bootup Baltimore\" whose major is \"600\". Show the first name and last name.",
        "interaction_utterance": [
            "Tell me the first names of all the female students.",
            "Tell me their majors.",
            "Find all members of \"Bootup Baltimore\" whose major is \"600\". Show the first name and last name"
        ],
        "interaction_query": [
            "SELECT Fname FROM Student WHERE Sex = \"F\"",
            "SELECT Major FROM Student WHERE Sex = \"F\"",
            "SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Bootup Baltimore\" AND t3.major  =  \"600\""
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.major  =  \"600\" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which club has the most members majoring in \"600\"?",
        "interaction_utterance": [
            "Tell me the first names of students whose advisor is 1121.",
            "Tell me the last names of students whose major is 600.",
            "Tell me which club has the most members majoring in \"600\"."
        ],
        "interaction_query": [
            "SELECT Fname FROM Student WHERE advisor = 1121",
            "SELECT LName FROM Student WHERE major = 600",
            "SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.major  =  \"600\" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.sex  =  \"F\" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the name of the club that has the most female students.",
        "interaction_utterance": [
            "Tell me the club Andy is in.",
            "What is Andy's sex?",
            "What is the name of the club that has the most female students."
        ],
        "interaction_query": [
            "SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.Fname  =  \"Andy\"",
            "SELECT Sex FROM Student WHERE Fname = \"Andy\"",
            "SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.sex  =  \"F\" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Bootup Baltimore\" AND t2.position  =  \"President\"",
        "final_utterance": "What are the first and last name of the president of the club \"Bootup Baltimore\"?",
        "interaction_utterance": [
            "How many students are in club \"Bootup Baltimore\"?",
            "Tell me its location.",
            "What is the first and last name of the president of this club?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Bootup Baltimore\"",
            "SELECT ClubLocation FROM Club WHERE ClubName = \"Bootup Baltimore\"",
            "SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Bootup Baltimore\" AND t2.position  =  \"President\""
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Hopkins Student Enterprises\" AND t2.position  =  \"CTO\"",
        "final_utterance": "Who is the \"CTO\" of club \"Hopkins Student Enterprises\"? Show the first name and last name.",
        "interaction_utterance": [
            "Tell me the position of the student Jandy.",
            "Tell me the club she is in.",
            "Who is the \"CTO\" of club \"Hopkins Student Enterprises\"? Show the first name and last name."
        ],
        "interaction_query": [
            "SELECT Position FROM member_of_club AS t1 JOIN student AS t2 ON t1.stuid  =  t2.stuid WHERE T2.Fname = \"Jandy\"",
            "SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.Fname  =  \"Jandy\"",
            "SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Hopkins Student Enterprises\" AND t2.position  =  \"CTO\""
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT count(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid WHERE t1.clubname  =  \"Bootup Baltimore\"",
        "final_utterance": "How many different roles are there in the club \"Bootup Baltimore\"?",
        "interaction_utterance": [
            "How many clubs are there in AKW?",
            "Tell me their name.",
            "How many different roles are there in the club \"Bootup Baltimore\"?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Club WHERE ClubLocation = \"AKW\"",
            "SELECT ClubName FROM Club WHERE ClubLocation = \"AKW\"",
            "SELECT count(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid WHERE t1.clubname  =  \"Bootup Baltimore\""
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Bootup Baltimore\" AND t3.age  >  18",
        "final_utterance": "How many members of \"Bootup Baltimore\" are older than 18?",
        "interaction_utterance": [
            "How many students are there living in NYC?",
            "Tell me the clubs they are in.",
            "Tell me how many members of \"Bootup Baltimore\" are older than 18?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Student WHERE city_code = \"NYC\"",
            "SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.city_code  =  \"NYC\"",
            "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Bootup Baltimore\" AND t3.age  >  18"
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Bootup Baltimore\" AND t3.age  <  18",
        "final_utterance": "How many members of club \"Bootup Baltimore\" are younger than 18?",
        "interaction_utterance": [
            "What's the age of the student named Derek?",
            "Tell me the age of students in the club \"Bootup Baltimore\"?",
            "How many members of that club are younger than 18?"
        ],
        "interaction_query": [
            "SELECT Age FROM Student WHERE Fname = \"Derek\"",
            "SELECT Age FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Bootup Baltimore\"",
            "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Bootup Baltimore\" AND t3.age  <  18"
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.city_code  =  \"BAL\"",
        "final_utterance": "Find the names of all the clubs that have at least a member from the city with city code \"BAL\".",
        "interaction_utterance": [
            "Tell me first names of the students living in the city with city code \"LON\"",
            "How about that of city with city code \"BAL\"",
            "Tell me the names of all the clubs that have at least a member from the city with city code \"BAL\"."
        ],
        "interaction_query": [
            "SELECT Fname FROM Student WHERE city_code = \"LON\"",
            "SELECT Fname FROM Student WHERE city_code = \"BAL\"",
            "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.city_code  =  \"BAL\""
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.city_code  =  \"HOU\"",
        "final_utterance": "Find the names of the clubs that have at least a member from the city with city code \"HOU\".",
        "interaction_utterance": [
            "Tell me the location of the club \"Bootup Baltimore\".",
            "Tell me the city code of the cities where at least a member of that club live in.",
            "What are the names of the clubs that have at least a member from the city with the city code \"HOU\"?"
        ],
        "interaction_query": [
            "SELECT ClubLocation FROM Club WHERE ClubName = \"Bootup Baltimore\"",
            "SELECT t3.city_code FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.ClubName = \"Bootup Baltimore\"",
            "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.city_code  =  \"HOU\""
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT count(DISTINCT t1.clubname) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.fname  =  \"Eric\" AND t3.lname  =  \"Tai\"",
        "final_utterance": "How many clubs does the student named \"Eric Tai\" belong to?",
        "interaction_utterance": [
            "Tell me the age of the student named \"Eric Tai\".",
            "How about his advisor?",
            "How many clubs does the student named \"Eric Tai\" belong to?"
        ],
        "interaction_query": [
            "SELECT Age FROM Student WHERE Fname  =  \"Eric\" AND LName  =  \"Tai\"",
            "SELECT Advisor FROM Student WHERE Fname  =  \"Eric\" AND LName  =  \"Tai\"",
            "SELECT count(DISTINCT t1.clubname) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.fname  =  \"Eric\" AND t3.lname  =  \"Tai\""
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.fname  =  \"Davis\" AND t3.lname  =  \"Steven\"",
        "final_utterance": "List the clubs having \"Davis Steven\" as a member.",
        "interaction_utterance": [
            "Tell me the city code of the city where \"Davis Steven\" lives.",
            "What is his major?",
            "Tell me the clubs having \"Davis Steven\" as a member."
        ],
        "interaction_query": [
            "SELECT city_code FROM Student WHERE Lname  =  \"Davis\" AND FName  =  \"Steven\"",
            "SELECT Major FROM Student WHERE Lname  =  \"Davis\" AND FName  =  \"Steven\"",
            "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.fname  =  \"Davis\" AND t3.lname  =  \"Steven\""
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.advisor  =  1121",
        "final_utterance": "List the clubs that have at least a member with advisor \"1121\".",
        "interaction_utterance": [
            "What is the student id of the student with first name \"Arthur\"?",
            "Who is his advisor?",
            "Tell me the clubs that have at least a member with advisor \"1121\"."
        ],
        "interaction_query": [
            "SELECT StuID FROM Student WHERE Fname = \"Arthur\"",
            "SELECT Advisor FROM Student WHERE Fname = \"Arthur\"",
            "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.advisor  =  1121"
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Bootup Baltimore\"",
        "final_utterance": "What is the average age of the members of the club \"Bootup Baltimore\"?",
        "interaction_utterance": [
            "Tell me the age of the members of the club \"Tennis Club\".",
            "How about that of the club \"Bootup Baltimore\"?",
            "Can you show me the average number?"
        ],
        "interaction_query": [
            "SELECT t3.age FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Tennis Club\"",
            "SELECT t3.age FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Bootup Baltimore\"",
            "SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Bootup Baltimore\""
        ]
    },
    {
        "db_id": "club_1",
        "final_query": "SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Hopkins Student Enterprises\"",
        "final_utterance": "Find the average age of members of the club \"Hopkins Student Enterprises\".",
        "interaction_utterance": [
            "Tell me the number of females in club \"Hopkins Student Enterprises\".",
            "How about that of the members with age > 18?",
            "I want to know the average age of members in that club."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Hopkins Student Enterprises\" and t3.Sex = \"F\"",
            "SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Hopkins Student Enterprises\" and t3.Age > 18",
            "SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  \"Hopkins Student Enterprises\""
        ]
    },
    {
        "db_id": "wedding",
        "final_query": "SELECT count(*) FROM Church WHERE Open_Date  <  1850",
        "final_utterance": "How many churches opened before 1850 are there?",
        "interaction_utterance": [
            "How many churches are there?",
            "What if we only count those opened before 1850?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM Church",
            "SELECT count(*) FROM Church WHERE Open_Date  <  1850"
        ]
    },
    {
        "db_id": "wedding",
        "final_query": "SELECT name ,  open_date ,  organized_by FROM Church",
        "final_utterance": "Show the name, open date, and organizer for all churches.",
        "interaction_utterance": [
            "Show all churches.",
            "Give me their name, open data, and organizer."
        ],
        "interaction_query": [
            "SELECT * FROM Church",
            "SELECT name ,  open_date ,  organized_by FROM Church"
        ]
    },
    {
        "db_id": "wedding",
        "final_query": "SELECT name FROM church ORDER BY open_date DESC",
        "final_utterance": "List all church names in descending order of opening date.",
        "interaction_utterance": [
            "Show all churches.",
            "Sort them in descending order of opening date.",
            "Show the church names."
        ],
        "interaction_query": [
            "SELECT * FROM Church",
            "SELECT * FROM church ORDER BY open_date DESC",
            "SELECT name FROM church ORDER BY open_date DESC"
        ]
    },
    {
        "db_id": "wedding",
        "final_query": "SELECT open_date FROM church GROUP BY open_date HAVING count(*)  >=  2",
        "final_utterance": "Show the opening year in which at least two churches opened.",
        "interaction_utterance": [
            "What is the opening date of each church?",
            "Show the opening year in which at least two churches opened."
        ],
        "interaction_query": [
            "SELECT open_date FROM church",
            "SELECT open_date FROM church GROUP BY open_date HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "wedding",
        "final_query": "SELECT organized_by ,  name FROM church WHERE open_date BETWEEN 1830 AND 1840",
        "final_utterance": "Show the organizer and name for churches that opened between 1830 and 1840.",
        "interaction_utterance": [
            "Which churches opened between 1830 and 1840?",
            "Show their names and organizers."
        ],
        "interaction_query": [
            "SELECT * FROM church WHERE open_date BETWEEN 1830 AND 1840",
            "SELECT organized_by ,  name FROM church WHERE open_date BETWEEN 1830 AND 1840"
        ]
    },
    {
        "db_id": "wedding",
        "final_query": "SELECT open_date ,  count(*) FROM church GROUP BY open_date",
        "final_utterance": "Show all opening years and the number of churches that opened in that year.",
        "interaction_utterance": [
            "What is the opening year of each church?",
            "Show all opening years and the number of churches that opened in that year."
        ],
        "interaction_query": [
            "SELECT open_date FROM church",
            "SELECT open_date ,  count(*) FROM church GROUP BY open_date"
        ]
    },
    {
        "db_id": "wedding",
        "final_query": "SELECT name ,  open_date FROM church ORDER BY open_date DESC LIMIT 3",
        "final_utterance": "Show the name and opening year for three churches that opened most recently.",
        "interaction_utterance": [
            "What is the opening date of each church?",
            "Which churches opened most recently?",
            "Show the name and opening year for three churches that opened most recently."
        ],
        "interaction_query": [
            "SELECT open_date FROM church",
            "SELECT * FROM church ORDER BY open_date DESC LIMIT 1",
            "SELECT name ,  open_date FROM church ORDER BY open_date DESC LIMIT 3"
        ]
    },
    {
        "db_id": "wedding",
        "final_query": "SELECT count(*) FROM people WHERE is_male  =  'F' AND age  >  30",
        "final_utterance": "How many female people are older than 30 in our record?",
        "interaction_utterance": [
            "Count the number of people in the record.",
            "How many are female?",
            "How many of them are older than 30?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM people",
            "SELECT count(*) FROM people WHERE is_male  =  'F'",
            "SELECT count(*) FROM people WHERE is_male  =  'F' AND age  >  30"
        ]
    },
    {
        "db_id": "wedding",
        "final_query": "SELECT country FROM people WHERE age  <  25 INTERSECT SELECT country FROM people WHERE age  >  30",
        "final_utterance": "Show the country where people older than 30 and younger than 25 are from.",
        "interaction_utterance": [
            "Show all people whose age is below 25.",
            "What are their countries?",
            "Which of these countries also have people older than 30?"
        ],
        "interaction_query": [
            "SELECT * FROM people WHERE age  <  25",
            "SELECT country FROM people WHERE age  <  25",
            "SELECT country FROM people WHERE age  <  25 INTERSECT SELECT country FROM people WHERE age  >  30"
        ]
    },
    {
        "db_id": "wedding",
        "final_query": "SELECT min(age) ,  max(age) ,  avg(age) FROM people",
        "final_utterance": "Show the minimum, maximum, and average age for all people.",
        "interaction_utterance": [
            "What is the age of each person?",
            "What is the average age?",
            "What are the minimum, maximum, and average age?"
        ],
        "interaction_query": [
            "SELECT age FROM people",
            "SELECT min(age) FROM people",
            "SELECT min(age) ,  max(age) ,  avg(age) FROM people"
        ]
    },
    {
        "db_id": "wedding",
        "final_query": "SELECT name ,  country FROM people WHERE age  <  (SELECT avg(age) FROM people)",
        "final_utterance": "Show the name and country for all people whose age is smaller than the average.",
        "interaction_utterance": [
            "What is the average age of people?",
            "Show people whose age is smaller than the average.",
            "What are their names and countries?"
        ],
        "interaction_query": [
            "SELECT min(age) FROM people",
            "SELECT * FROM people WHERE age  <  (SELECT avg(age) FROM people)",
            "SELECT name ,  country FROM people WHERE age  <  (SELECT avg(age) FROM people)"
        ]
    },
    {
        "db_id": "wedding",
        "final_query": "SELECT T2.name ,  T3.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id  =  T2.people_id JOIN people AS T3 ON T1.female_id  =  T3.people_id WHERE T1.year  >  2014",
        "final_utterance": "Show the pair of male and female names in all weddings after year 2014",
        "interaction_utterance": [
            "Show the information about weddings after year 2014.",
            "Show the male names in all weddings after 2014.",
            "Show the pair of male and female names in all weddings after year 2014."
        ],
        "interaction_query": [
            "SELECT * FROM wedding WHERE year  >  2014",
            "SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id  =  T2.people_id  WHERE T1.year  >  2014",
            "SELECT T2.name ,  T3.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id  =  T2.people_id JOIN people AS T3 ON T1.female_id  =  T3.people_id WHERE T1.year  >  2014"
        ]
    },
    {
        "db_id": "wedding",
        "final_query": "SELECT name ,  age FROM people WHERE is_male  =  'T' AND people_id NOT IN (SELECT male_id FROM wedding)",
        "final_utterance": "Show the name and age for all male people who don't have a wedding.",
        "interaction_utterance": [
            "What are the ids of the males who had a wedding?",
            "Show all the male people who have not had a wedding.",
            "What are their names and ages?"
        ],
        "interaction_query": [
            "SELECT male_id FROM wedding",
            "SELECT * FROM people WHERE is_male  =  'T' AND people_id NOT IN (SELECT male_id FROM wedding)",
            "SELECT name ,  age FROM people WHERE is_male  =  'T' AND people_id NOT IN (SELECT male_id FROM wedding)"
        ]
    },
    {
        "db_id": "wedding",
        "final_query": "SELECT name FROM church EXCEPT SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id  =  T2.church_id WHERE T2.year  =  2015",
        "final_utterance": "Show all church names except for those that had a wedding in year 2015.",
        "interaction_utterance": [
            "Which churches had a wedding in year 2015?",
            "Show all names of the churches except for those."
        ],
        "interaction_query": [
            "SELECT * FROM church AS T1 JOIN wedding AS T2 ON T1.church_id  =  T2.church_id WHERE T2.year  =  2015",
            "SELECT name FROM church EXCEPT SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id  =  T2.church_id WHERE T2.year  =  2015"
        ]
    },
    {
        "db_id": "wedding",
        "final_query": "SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id  =  T2.church_id GROUP BY T1.church_id HAVING count(*)  >=  2",
        "final_utterance": "Show all church names that have hosted least two weddings.",
        "interaction_utterance": [
            "How many weddings were hosted in each church?",
            "Show all church names that have hosted least two weddings."
        ],
        "interaction_query": [
            "SELECT count(*) FROM church AS T1 JOIN wedding AS T2 ON T1.church_id  =  T2.church_id GROUP BY T1.church_id",
            "SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id  =  T2.church_id GROUP BY T1.church_id HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "wedding",
        "final_query": "SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id  =  T2.people_id WHERE T1.year  =  2016 AND T2.is_male  =  'F' AND T2.country  =  'Canada'",
        "final_utterance": "Show the names for all females from Canada having a wedding in year 2016.",
        "interaction_utterance": [
            "Show all female people from Canada.",
            "Show those that had a wedding in year 2016.",
            "What are their names?"
        ],
        "interaction_query": [
            "SELECT * FROM people WHERE is_male  =  'F' AND country  =  'Canada'",
            "SELECT * FROM wedding AS T1 JOIN people AS T2 ON T1.female_id  =  T2.people_id WHERE T1.year  =  2016 AND T2.is_male  =  'F' AND T2.country  =  'Canada'",
            "SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id  =  T2.people_id WHERE T1.year  =  2016 AND T2.is_male  =  'F' AND T2.country  =  'Canada'"
        ]
    },
    {
        "db_id": "wedding",
        "final_query": "SELECT count(*) FROM wedding WHERE YEAR  =  2016",
        "final_utterance": "How many weddings are there in year 2016?",
        "interaction_utterance": [
            "How many weddings are there in total?",
            "What about in the year 2016?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM wedding",
            "SELECT count(*) FROM wedding WHERE YEAR  =  2016"
        ]
    },
    {
        "db_id": "wedding",
        "final_query": "SELECT T4.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id  =  T2.people_id JOIN people AS T3 ON T1.female_id  =  T3.people_id JOIN church AS T4 ON T4.church_id  =  T1.church_id WHERE T2.age  >  30 OR T3.age  >  30",
        "final_utterance": "Show the church names for the weddings of all people older than 30.",
        "interaction_utterance": [
            "Show all people older than 30.",
            "Show all the weddings of people older than 30.",
            "Show the church names for the weddings of all people older than 30."
        ],
        "interaction_query": [
            "SELECT * FROM people WHERE age  >  30",
            "SELECT * FROM wedding AS T1 JOIN people AS T2 ON T1.male_id  =  T2.people_id JOIN people AS T3 ON T1.female_id  =  T3.people_id WHERE T2.age  >  30 OR T3.age  >  30",
            "SELECT T4.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id  =  T2.people_id JOIN people AS T3 ON T1.female_id  =  T3.people_id JOIN church AS T4 ON T4.church_id  =  T1.church_id WHERE T2.age  >  30 OR T3.age  >  30"
        ]
    },
    {
        "db_id": "wedding",
        "final_query": "SELECT country ,  count(*) FROM people GROUP BY country",
        "final_utterance": "Show all countries and the number of people from each country.",
        "interaction_utterance": [
            "Show the country of each person.",
            "Count the number of people from each country.",
            "Also show the country name."
        ],
        "interaction_query": [
            "SELECT country FROM people",
            "SELECT count(*) FROM people GROUP BY country",
            "SELECT country ,  count(*) FROM people GROUP BY country"
        ]
    },
    {
        "db_id": "debate",
        "final_query": "SELECT Name FROM  people WHERE Age  =  35 OR Age  =  36",
        "final_utterance": "Show the names of people aged either 35 or 36.",
        "interaction_utterance": [
            "How many people are there?",
            "How many people aged 40?",
            "How many people aged either 35 or 36?",
            "Please show their names."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM people",
            "SELECT COUNT(*) FROM  people WHERE Age  =  40",
            "SELECT COUNT(*) FROM  people WHERE Age  =  35 OR Age  =  36",
            "SELECT Name FROM  people WHERE Age  =  35 OR Age  =  36"
        ]
    },
    {
        "db_id": "debate",
        "final_query": "SELECT Party FROM people ORDER BY Age ASC LIMIT 1",
        "final_utterance": "What is the party of the youngest people?",
        "interaction_utterance": [
            "Who is the oldest person?",
            "Who is the youngest person?",
            "What is his party?"
        ],
        "interaction_query": [
            "SELECT name FROM people ORDER BY Age DESC LIMIT 1",
            "SELECT name FROM people ORDER BY Age ASC LIMIT 1",
            "SELECT Party FROM people ORDER BY Age ASC LIMIT 1"
        ]
    },
    {
        "db_id": "debate",
        "final_query": "SELECT Party FROM people GROUP BY Party ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the party that has the most people.",
        "interaction_utterance": [
            "How many parties are there?",
            "How many people are there in each party?",
            "Which party has the most people?"
        ],
        "interaction_query": [
            "SELECT COUNT(DISTINCT Party) FROM people",
            "SELECT Party, COUNT(*) FROM people GROUP BY Party",
            "SELECT Party FROM people GROUP BY Party ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "debate",
        "final_query": "SELECT T3.Name ,  T2.Date ,  T2.Venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID  =  T2.Debate_ID JOIN people AS T3 ON T1.Affirmative  =  T3.People_ID",
        "final_utterance": "Show the names of people, and dates and venues of debates they are on the affirmative side.",
        "interaction_utterance": [
            "How many people have been on the negative side?",
            "How about the affirmative side?",
            "Please give their full names.",
            "Please also show the dates and venues of debates."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM debate_people AS T1  JOIN people AS T2 ON T1.Negative  =  T2.People_ID",
            "SELECT COUNT(*) FROM debate_people AS T1  JOIN people AS T2 ON T1.Affirmative  =  T2.People_ID",
            "SELECT T2.Name FROM debate_people AS T1  JOIN people AS T2 ON T1.Affirmative  =  T2.People_ID",
            "SELECT T3.Name ,  T2.Date ,  T2.Venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID  =  T2.Debate_ID JOIN people AS T3 ON T1.Affirmative  =  T3.People_ID"
        ]
    },
    {
        "db_id": "debate",
        "final_query": "SELECT T3.Name ,  T2.Date ,  T2.Venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID  =  T2.Debate_ID JOIN people AS T3 ON T1.Negative  =  T3.People_ID ORDER BY T3.Name ASC",
        "final_utterance": "Show the names of people, and dates and venues of debates they are on the negative side, ordered in ascending alphabetical order of name.",
        "interaction_utterance": [
            "Show the names of people that won the debate on the nagative side.",
            "Please list the names of people who have been on the negative side.",
            "Please also show the dates and venues of debates",
            "Could you please order the results in ascending alphabetical order of name?"
        ],
        "interaction_query": [
            "SELECT T2.Name FROM debate_people AS T1  JOIN people AS T2 ON T1.Negative  =  T2.People_ID WHERE If_Affirmative_Win = \"F\"",
            "SELECT T2.Name FROM debate_people AS T1  JOIN people AS T2 ON T1.Negative  =  T2.People_ID",
            "SELECT T3.Name ,  T2.Date ,  T2.Venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID  =  T2.Debate_ID JOIN people AS T3 ON T1.Negative  =  T3.People_ID",
            "SELECT T3.Name ,  T2.Date ,  T2.Venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID  =  T2.Debate_ID JOIN people AS T3 ON T1.Negative  =  T3.People_ID ORDER BY T3.Name ASC"
        ]
    },
    {
        "db_id": "debate",
        "final_query": "SELECT T3.Name FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID  =  T2.Debate_ID JOIN people AS T3 ON T1.Affirmative  =  T3.People_ID WHERE T2.Num_of_Audience  >  200",
        "final_utterance": "Show the names of people that are on affirmative side of debates with number of audience bigger than 200.",
        "interaction_utterance": [
            "How many people have ever been on the affirmative side of debates?",
            "What is the average size of the audience in a debate?",
            "How many debates have an audience size bigger than 200?",
            "Show the names of people that are on the affirmative side of these debates."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM people WHERE People_id IN (SELECT Affirmative FROM debate_people)",
            "SELECT AVG(Num_of_Audience) FROM debate",
            "SELECT COUNT(*) FROM debate WHERE Num_of_Audience > 200",
            "SELECT T3.Name FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID  =  T2.Debate_ID JOIN people AS T3 ON T1.Affirmative  =  T3.People_ID WHERE T2.Num_of_Audience  >  200"
        ]
    },
    {
        "db_id": "debate",
        "final_query": "SELECT T2.Name ,  COUNT(*) FROM debate_people AS T1 JOIN people AS T2 ON T1.Affirmative  =  T2.People_ID GROUP BY T2.Name",
        "final_utterance": "Show the names of people and the number of times they have been on the affirmative side of debates.",
        "interaction_utterance": [
            "How many people have ever been on the affirmative side of debates?",
            "Please show their names.",
            "Please also show the number of times they have been on the affirmative side of debates."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM people WHERE People_id IN (SELECT Affirmative FROM debate_people)",
            "SELECT name FROM people WHERE People_id IN (SELECT Affirmative FROM debate_people)",
            "SELECT T2.Name ,  COUNT(*) FROM debate_people AS T1 JOIN people AS T2 ON T1.Affirmative  =  T2.People_ID GROUP BY T2.Name"
        ]
    },
    {
        "db_id": "debate",
        "final_query": "SELECT T2.Name FROM debate_people AS T1 JOIN people AS T2 ON T1.Negative  =  T2.People_ID GROUP BY T2.Name HAVING COUNT(*)  >=  2",
        "final_utterance": "Show the names of people who have been on the negative side of debates at least twice.",
        "interaction_utterance": [
            "How many people have ever been on the negative side of debates?",
            "How many times have they been on the negative side of debates?",
            "How many of them have been on the negative side of debates at least twice?",
            "Show their names."
        ],
        "interaction_query": [
            "SELECT COUNT(DISTINCT T2.People_ID) FROM debate_people AS T1 JOIN people AS T2 ON T1.Negative  =  T2.People_ID",
            "SELECT T2.Name, COUNT(*) FROM debate_people AS T1 JOIN people AS T2 ON T1.Negative  =  T2.People_ID GROUP BY T2.Name",
            "SELECT COUNT(DISTINCT T2.Name) FROM debate_people AS T1 JOIN people AS T2 ON T1.Negative  =  T2.People_ID GROUP BY T2.Name HAVING COUNT(*)  >=  2",
            "SELECT T2.Name FROM debate_people AS T1 JOIN people AS T2 ON T1.Negative  =  T2.People_ID GROUP BY T2.Name HAVING COUNT(*)  >=  2"
        ]
    },
    {
        "db_id": "flight_company",
        "final_query": "SELECT DISTINCT T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id WHERE T2.velocity  <  200",
        "final_utterance": "What are the distinct types of the companies that have operated any flights with velocity less than 200?",
        "interaction_utterance": [
            "Show me all the companies.",
            "Which of these companies operate flights?",
            "Which companies operated flights with velocity less than 200?",
            "What are the distinct types of these companies?"
        ],
        "interaction_query": [
            "SELECT name FROM operate_company",
            "SELECT DISTINCT name FROM operate_company AS t1 JOIN flight AS t2 ON t1.id = t2.company_id",
            "SELECT DISTINCT name FROM operate_company AS t1 JOIN flight AS t2 ON t1.id = t2.company_id WHERE t2.velocity < 200",
            "SELECT DISTINCT T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id WHERE T2.velocity  <  200"
        ]
    },
    {
        "db_id": "flight_company",
        "final_query": "SELECT T1.id ,  T1.name FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id GROUP BY T1.id HAVING count(*)  >  1",
        "final_utterance": "What are the ids and names of the companies that operated more than one flight?",
        "interaction_utterance": [
            "List the names of all the companies.",
            "How many flights did each of these companies operate?",
            "Show me only the companies that operated more than one flight.",
            "Show me only the ids and the names of these companies."
        ],
        "interaction_query": [
            "SELECT name FROM operate_company",
            "SELECT t1.name, count(*) FROM operate_company AS t1 JOIN flight AS t2 ON t1.id = t2.company_id GROUP BY t1.id",
            "SELECT t1.name, count(*) FROM operate_company AS t1 JOIN flight AS t2 ON t1.id = t2.company_id GROUP BY t1.id HAVING count(*) > 1",
            "SELECT T1.id ,  T1.name FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id GROUP BY T1.id HAVING count(*)  >  1"
        ]
    },
    {
        "db_id": "flight_company",
        "final_query": "SELECT T1.id, T1.name, T1.IATA FROM airport as t1 JOIN flight AS t2 ON t1.id = t2.airport_id  GROUP BY t1.id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the id, name and IATA code of the airport that had most number of flights?",
        "interaction_utterance": [
            "Show me the names of all the airports",
            "What are the number of flights for each of these airports?",
            "Which airport had the most number of flights?",
            "Show me the id and IATA code of this airport as well."
        ],
        "interaction_query": [
            "SELECT name FROM airport",
            "SELECT name, count(*) FROM airport as t1 JOIN flight AS t2 ON t1.id = t2.airport_id  GROUP BY t1.id",
            "SELECT t1.name FROM airport as t1 JOIN flight AS t2 ON t1.id = t2.airport_id  GROUP BY t1.id ORDER BY count(*) DESC LIMIT 1",
            "SELECT T1.id, T1.name, T1.IATA FROM airport as t1 JOIN flight AS t2 ON t1.id = t2.airport_id  GROUP BY t1.id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "flight_company",
        "final_query": "SELECT DISTINCT T2.pilot FROM airport AS T1 JOIN flight AS T2 ON T1.id  =  T2.airport_id WHERE T1.country  =  'United States' OR T1.name  =  'Billund Airport'",
        "final_utterance": "What are the different pilot names who had piloted a flight in the country 'United States' or in the airport named 'Billund Airport'?",
        "interaction_utterance": [
            "Show me the names of all the pilots.",
            "Which of these pilots piloted a flight in the United States?",
            "What about the pilots who did it at 'Billund Airport'?",
            "Which pilots did either one of those?"
        ],
        "interaction_query": [
            "SELECT DISTINCT pilot FROM flight",
            "SELECT DISTINCT t2.pilot FROM airport as t1 JOIN flight AS t2 ON t1.id = t2.airport_id  WHERE t1.Country = \"United States\"",
            "SELECT DISTINCT t2.pilot FROM airport as t1 JOIN flight AS t2 ON t1.id = t2.airport_id  WHERE t1.name = \"Billund Airport\"",
            "SELECT DISTINCT T2.pilot FROM airport AS T1 JOIN flight AS T2 ON T1.id  =  T2.airport_id WHERE T1.country  =  'United States' OR T1.name  =  'Billund Airport'"
        ]
    },
    {
        "db_id": "flight_company",
        "final_query": "SELECT TYPE ,  count(*) FROM operate_company GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the most common company type, and how many are there?",
        "interaction_utterance": [
            "Show me all the company names.",
            "What are the types of these companies?",
            "How many companies have type 'Joint Venture'?",
            "Tell me the most common company type."
        ],
        "interaction_query": [
            "SELECT name FROM operate_company",
            "SELECT name, type FROM operate_company",
            "SELECT count(*) FROM operate_company GROUP BY type HAVING type = 'Joint Venture'",
            "SELECT TYPE ,  count(*) FROM operate_company GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "flight_company",
        "final_query": "SELECT count(*) FROM airport WHERE id NOT IN ( SELECT airport_id FROM flight WHERE pilot  =  'Thompson' );",
        "final_utterance": "How many airports haven't the pilot 'Thompson' driven an aircraft?",
        "interaction_utterance": [
            "List the names of all the pilots.",
            "Which companies did Thompson fly for?",
            "List all the airports where he drove an aircraft.",
            "What is the total number of airports where he has not driven an aircraft?"
        ],
        "interaction_query": [
            "SELECT DISTINCT pilot FROM flight",
            "SELECT DISTINCT t2.name FROM flight as t1 join operate_company AS t2 ON t1.company_id = t2.id AND t1.pilot  =  'Thompson'",
            "SELECT DISTINCT t2.name FROM flight as t1 join airport AS t2 ON t1.airport_id = t2.id AND t1.pilot  =  'Thompson'",
            "SELECT count(*) FROM airport WHERE id NOT IN ( SELECT airport_id FROM flight WHERE pilot  =  'Thompson' );"
        ]
    },
    {
        "db_id": "flight_company",
        "final_query": "SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id WHERE T1.principal_activities  =  'Cargo' INTERSECT SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id WHERE T1.principal_activities  =  'Catering services'",
        "final_utterance": "List the name of the pilots who have flied for both a company that mainly provide 'Cargo' services and a company that runs 'Catering services' activities.",
        "interaction_utterance": [
            "Show me the names of all the pilots",
            "Which of these pilots flied for a company that runs 'Cargo' activities?",
            "Which pilots flied for a company that runs 'Catering services' activities?",
            "Which pilots flied for companies that ran both of those activities?"
        ],
        "interaction_query": [
            "SELECT pilot FROM flight",
            "SELECT * FROM flight as t1 join operate_company AS t2 ON t1.company_id = t2.id WHERE principal_activities = 'Cargo'",
            "SELECT * FROM flight as t1 join operate_company AS t2 ON t1.company_id = t2.id WHERE principal_activities = 'Catering services'",
            "SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id WHERE T1.principal_activities  =  'Cargo' INTERSECT SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id WHERE T1.principal_activities  =  'Catering services'"
        ]
    },
    {
        "db_id": "flight_company",
        "final_query": "SELECT name FROM airport WHERE name LIKE '%international%'",
        "final_utterance": "Which of the airport names contains the word 'international'?",
        "interaction_utterance": [
            "Show me all the airports.",
            "Show me the names of all airports.",
            "Which of these airports start with the word 'international'?",
            "What about the ones that contains the word \"international\"?"
        ],
        "interaction_query": [
            "SELECT * FROM airport",
            "SELECT name FROM airport",
            "SELECT name FROM airport WHERE name LIKE \"international%\"",
            "SELECT name FROM airport WHERE name LIKE '%international%'"
        ]
    },
    {
        "db_id": "flight_company",
        "final_query": "SELECT T3.id ,  count(*) FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id JOIN airport AS T3 ON T2.airport_id  =  T3.id GROUP BY T3.id",
        "final_utterance": "How many companies operates airlines in each airport?",
        "interaction_utterance": [
            "Tell me about all the airports.",
            "Tell me the names of these airports.",
            "How many companies operate in \"Akureyi airport\"?",
            "What about for each airport?"
        ],
        "interaction_query": [
            "SELECT * FROM airport",
            "SELECT name FROM airport",
            "SELECT count(t2.company_id) FROM airport as t1 JOIN flight AS t2 ON t1.id = t2.airport_id GROUP BY t1.id HAVING t1.name = \"Akureyri Airport\"",
            "SELECT T3.id ,  count(*) FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id JOIN airport AS T3 ON T2.airport_id  =  T3.id GROUP BY T3.id"
        ]
    },
    {
        "db_id": "flight_company",
        "final_query": "SELECT country FROM airport GROUP BY country HAVING count(*)  >  2",
        "final_utterance": "which countries have more than 2 airports?",
        "interaction_utterance": [
            "Show me everything about the airports.",
            "What are the countries with these airports?",
            "Which of these countries have more than 1 airport?",
            "Which of them have more than 2?"
        ],
        "interaction_query": [
            "SELECT * FROM airport",
            "SELECT distinct country FROM airport",
            "SELECT country FROM airport GROUP BY country HAVING count(*) > 1",
            "SELECT country FROM airport GROUP BY country HAVING count(*)  >  2"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT count(*) FROM county",
        "final_utterance": "How many counties are there in total?",
        "interaction_utterance": [
            "What is all the information about the counties?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM county",
            "SELECT count(*) FROM county"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT County_name ,  Population FROM county",
        "final_utterance": "Show the county name and population of all counties.",
        "interaction_utterance": [
            "Show me all the information about counties.",
            "I want to now the names of these counties.",
            "I also want to know their population."
        ],
        "interaction_query": [
            "SELECT * FROM county",
            "SELECT County_name FROM county",
            "SELECT Population FROM county"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT avg(Population) FROM county",
        "final_utterance": "Show the average population of all counties.",
        "interaction_utterance": [
            "Show me all the information about counties.",
            "I also want to know their population.",
            "Tell me the average number."
        ],
        "interaction_query": [
            "SELECT * FROM county",
            "SELECT Population FROM county",
            "SELECT avg(Population) FROM county"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT max(Population) ,  min(Population) FROM county",
        "final_utterance": "Return the maximum and minimum population among all counties.",
        "interaction_utterance": [
            "Please show me the information of population about all counties.",
            "What's the maximum one?",
            "I want to know the minimum one."
        ],
        "interaction_query": [
            "SELECT Population FROM county",
            "SELECT max(Population) FROM county",
            "SELECT min(Population) FROM county"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT DISTINCT District FROM election",
        "final_utterance": "Show all the distinct districts for elections.",
        "interaction_utterance": [
            "Please tell me all the information about elections.",
            "I only want to know the districts.",
            "Give me the unique ones."
        ],
        "interaction_query": [
            "SELECT * FROM election",
            "SELECT District FROM election",
            "SELECT DISTINCT District FROM election"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT Zip_code FROM county WHERE County_name  =  \"Howard\"",
        "final_utterance": "Show the zip code of the county with name \"Howard\".",
        "interaction_utterance": [
            "Please tell me the information about all counties.",
            "I want to know the county \"Howard\" specifically.",
            "Just show me the zip code of that county?"
        ],
        "interaction_query": [
            "SELECT * FROM county",
            "SELECT * FROM county WHERE County_name  =  \"Howard\"",
            "SELECT Zip_code FROM county WHERE County_name  =  \"Howard\""
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT Delegate FROM election WHERE District  =  1",
        "final_utterance": "Show the delegate from district 1 in election.",
        "interaction_utterance": [
            "Please tell me the information about elections.",
            "Just give me the information about delegates.",
            "How about the one from district 1?"
        ],
        "interaction_query": [
            "SELECT * FROM election",
            "SELECT Delegate FROM election",
            "SELECT Delegate FROM election WHERE District  =  1"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT Delegate ,  Committee FROM election",
        "final_utterance": "Show the delegate and committee information of elections.",
        "interaction_utterance": [
            "Please tell me all the information about elections.",
            "Just give me the information about delegate",
            "I also want to know the committees."
        ],
        "interaction_query": [
            "SELECT * FROM election",
            "SELECT Delegate FROM election",
            "SELECT Delegate ,  Committee FROM election"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT count(DISTINCT Governor) FROM party",
        "final_utterance": "How many distinct governors are there?",
        "interaction_utterance": [
            "Tell me the information about all parties",
            "Who are the governors of those parties",
            "Just give me the distinct results.",
            "Give the number of those governors."
        ],
        "interaction_query": [
            "SELECT * FROM party",
            "SELECT Governor FROM party",
            "SELECT DISTINCT Governor FROM party",
            "SELECT count(DISTINCT Governor) FROM party"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT Lieutenant_Governor ,  Comptroller FROM party WHERE Party  =  \"Democratic\"",
        "final_utterance": "Show the lieutenant governor and comptroller from the democratic party.",
        "interaction_utterance": [
            "Tell me the information about all parties",
            "I want to know the information about the Democratic party specifically.",
            "Who is their lieutenant governor?",
            "Tell me the comptroller of that party."
        ],
        "interaction_query": [
            "SELECT * FROM party",
            "SELECT * FROM party WHERE Party  =  \"Democratic\"",
            "SELECT Lieutenant_Governor FROM party WHERE Party  =  \"Democratic\"",
            "SELECT Comptroller FROM party WHERE Party  =  \"Democratic\""
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT DISTINCT YEAR FROM party WHERE Governor  =  \"Eliot Spitzer\"",
        "final_utterance": "In which distinct years was the governor \"Eliot Spitzer\"?",
        "interaction_utterance": [
            "Tell me all the information about parties whose governor is Eliot Spitzer.",
            "I want to know the years in which he was the governor.",
            "Excellent. Just tell me the distinct ones."
        ],
        "interaction_query": [
            "SELECT * FROM party WHERE Governor  =  \"Eliot Spitzer\"",
            "SELECT YEAR FROM party WHERE Governor  =  \"Eliot Spitzer\"",
            "SELECT DISTINCT YEAR FROM party WHERE Governor  =  \"Eliot Spitzer\""
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT * FROM election",
        "final_utterance": "Show all the information about election.",
        "interaction_utterance": [
            "Please tell me all the information about elections."
        ],
        "interaction_query": [
            "SELECT * FROM election"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT T2.Delegate ,  T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District",
        "final_utterance": "Show the delegates and the names of county they belong to.",
        "interaction_utterance": [
            "Tell me all the names of the counties.",
            "I want to know their delegates including their names."
        ],
        "interaction_query": [
            "SELECT County_name FROM county",
            "SELECT T2.Delegate ,  T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T1.Population  <  100000",
        "final_utterance": "Which delegates are from counties with population smaller than 100000?",
        "interaction_utterance": [
            "Tell me all the names of the counties.",
            "Okay. I want to know their delegates.",
            "Furthermore, please tell me which ones' population is smaller than 100000?"
        ],
        "interaction_query": [
            "SELECT County_name FROM county",
            "SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District",
            "SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T1.Population  <  100000"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT count(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T1.Population  >  50000",
        "final_utterance": "How many distinct delegates are from counties with population larger than 50000?",
        "interaction_utterance": [
            "Tell me all the names of the counties.",
            "Okay. I want to know their delegates.",
            "Furthermore, please tell me which ones' population is larger than 50000?",
            "Wonderful! How many unique ones are there?"
        ],
        "interaction_query": [
            "SELECT County_name FROM county",
            "SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District",
            "SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T1.Population  >  50000",
            "SELECT count(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T1.Population  >  50000"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T2.Committee  =  \"Appropriations\"",
        "final_utterance": "What are the names of the county that the delegates on \"Appropriations\" committee belong to?",
        "interaction_utterance": [
            "Tell me all the names of the counties.",
            "Okay. I want to know their delegates.",
            "Which one's committee is \"Appropriations\"?"
        ],
        "interaction_query": [
            "SELECT County_name FROM county",
            "SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District",
            "SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T2.Committee  =  \"Appropriations\""
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT T1.Delegate ,  T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID",
        "final_utterance": "Show the delegates and the names of the party they belong to.",
        "interaction_utterance": [
            "Tell me all the information about the democratic party.",
            "Okay. I want to know all the party delegates and names."
        ],
        "interaction_query": [
            "SELECT * FROM party WHERE Party = \"Democratic\"",
            "SELECT T1.Delegate ,  T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.District  =  1",
        "final_utterance": "Who were the governors of the parties associated with delegates from district 1?",
        "interaction_utterance": [
            "I want to know the governor of the liberal party.",
            "Which one's delegate is from district 1.",
            "Who is its governor?"
        ],
        "interaction_query": [
            "SELECT Governor FROM party WHERE Party = \"Liberal\"",
            "SELECT * FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.District  =  1",
            "SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.District  =  1"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.District  =  1 OR T1.District  =  2",
        "final_utterance": "Who were the comptrollers of the parties associated with the delegates from district 1 or district 2?",
        "interaction_utterance": [
            "Tell me all the parties.",
            "Which one's delegates are from district 1 or district 2?",
            "Who were these parties' comptrollers?"
        ],
        "interaction_query": [
            "SELECT * FROM party",
            "SELECT * FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.District  =  1 OR T1.District  =  2",
            "SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.District  =  1 OR T1.District  =  2"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T2.Party  =  \"Democratic\"",
        "final_utterance": "Return all the committees that have delegates from Democratic party.",
        "interaction_utterance": [
            "Tell me the delegates from committees Appropriations?",
            "which ones have delegates from Democratic party."
        ],
        "interaction_query": [
            "SELECT Delegate FROM election WHERE Committee = \"Appropriations\"",
            "SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T2.Party  =  \"Democratic\""
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT T1.County_name ,  COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District GROUP BY T1.County_id",
        "final_utterance": "Show the name of each county along with the corresponding number of delegates from that county.",
        "interaction_utterance": [
            "Tell me all the information about the counties.",
            "For now, I just want to know these counties' names.",
            "I also want to know the number of delegates of these counties"
        ],
        "interaction_query": [
            "SELECT * FROM county",
            "SELECT County_name FROM county",
            "SELECT T1.County_name ,  COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District GROUP BY T1.County_id"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT T2.Party ,  COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID GROUP BY T1.Party",
        "final_utterance": "Show the name of each party and the corresponding number of delegates from that party.",
        "interaction_utterance": [
            "Tell me all the information about the counties.",
            "For now, I just want to know the parties.",
            "I also want to know the number of delegates of these parties."
        ],
        "interaction_query": [
            "SELECT * FROM county",
            "SELECT DISTINCT T1.County_name, T3.Party FROM county AS T1 JOIN election AS T2 ON T1.County_Id = T2.District JOIN party AS T3 ON T2.Party = T3.Party_ID",
            "SELECT T2.Party ,  COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID GROUP BY T1.Party"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT County_name FROM county ORDER BY Population ASC",
        "final_utterance": "Return the names of all counties sorted by population in ascending order.",
        "interaction_utterance": [
            "tell me the population of the county named Howard?",
            "I want to know all the counties' names.",
            "Sort them in ascending order by population."
        ],
        "interaction_query": [
            "SELECT Population FROM county WHERE County_name = \"Howard\"",
            "SELECT County_name FROM county",
            "SELECT County_name FROM county ORDER BY Population ASC"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT County_name FROM county ORDER BY County_name DESC",
        "final_utterance": "Return the names of all counties sorted by county name in descending alphabetical order.",
        "interaction_utterance": [
            "Tell me the county with zip code D21.",
            "Okay. I  want to know all the names of the counties.",
            "Sort them in descending alphabetical order."
        ],
        "interaction_query": [
            "SELECT County_name FROM county WHERE Zip_code = \"D21\"",
            "SELECT County_name FROM county",
            "SELECT County_name FROM county ORDER BY County_name DESC"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT County_name FROM county ORDER BY Population DESC LIMIT 1",
        "final_utterance": "Show the name of the county with the biggest population.",
        "interaction_utterance": [
            "Tell me the population of the county named Colony.",
            "How about the one named Mansfield?",
            "Just show me which county has the biggest population."
        ],
        "interaction_query": [
            "SELECT Population FROM county WHERE County_name = \"Colony\"",
            "SELECT Population FROM county WHERE County_name = \"Mansfield\"",
            "SELECT County_name FROM county ORDER BY Population DESC LIMIT 1"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT County_name FROM county ORDER BY Population ASC LIMIT 3",
        "final_utterance": "Show the 3 counties with the smallest population.",
        "interaction_utterance": [
            "Tell me the population of the county named Colony.",
            "How about Mansfield's",
            "just show me 3 ones which have the smallest population."
        ],
        "interaction_query": [
            "SELECT Population FROM county WHERE County_name = \"Colony\"",
            "SELECT Population FROM county WHERE County_name = \"Mansfield\"",
            "SELECT County_name FROM county ORDER BY Population ASC LIMIT 3"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District GROUP BY T1.County_id HAVING COUNT(*)  >=  2",
        "final_utterance": "Show the names of counties that have at least two delegates.",
        "interaction_utterance": [
            "Tell me the delegates of the county named Howard.",
            "How about its committees?",
            "just show me the counties which have at least two delegates."
        ],
        "interaction_query": [
            "SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T1.County_name = \"Howard\"",
            "SELECT T2.Committee FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T1.County_name = \"Howard\"",
            "SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District GROUP BY T1.County_id HAVING COUNT(*)  >=  2"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT Party FROM party GROUP BY Party HAVING COUNT(*)  >=  2",
        "final_utterance": "Show the name of the party that has at least two records.",
        "interaction_utterance": [
            "Tell me the information of all the parties.",
            "I just want to know their names.",
            "just show me the ones which have at least two records."
        ],
        "interaction_query": [
            "SELECT * FROM party",
            "SELECT Party FROM party",
            "SELECT Party FROM party GROUP BY Party HAVING COUNT(*)  >=  2"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the name of the party that has the most delegates.",
        "interaction_utterance": [
            "Tell me the delegates of county Howard.",
            "How about that of the county Colony?",
            "just show me the county which has the most delegates."
        ],
        "interaction_query": [
            "SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T1.County_name = \"Howard\"",
            "SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T1.County_name = \"Colony\"",
            "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the people that have been governor the most times.",
        "interaction_utterance": [
            "Tell me who is the governor of the liberal party.",
            "Okay, tell me how many times he has been governor.",
            "Which governor has been governor the most times?"
        ],
        "interaction_query": [
            "SELECT Governor FROM party WHERE Party = \"Liberal\"",
            "SELECT COUNT(*) FROM party WHERE Governor = \"Eliot Spitzer\"",
            "SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT Comptroller ,  COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the people that have been comptroller the most times and the corresponding number of times.",
        "interaction_utterance": [
            "Tell me the comptrollers of the Independence party.",
            "Okay, how about that of the Liberal party?",
            "Which ones have been comptroller the most times? Show also the corresponding number of times."
        ],
        "interaction_query": [
            "SELECT Comptroller FROM party WHERE Party = \"Independence\"",
            "SELECT Comptroller FROM party WHERE Party = \"Liberal\"",
            "SELECT Comptroller ,  COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT Party FROM party WHERE Party_ID NOT IN (SELECT Party FROM election)",
        "final_utterance": "What are the names of parties that do not have delegates in election?",
        "interaction_utterance": [
            "Tell me the information of all the parties.",
            "which parties have delegates in the election?",
            "Which ones do not?"
        ],
        "interaction_query": [
            "SELECT * FROM party",
            "SELECT Party FROM party WHERE Party_ID IN (SELECT Party FROM election)",
            "SELECT Party FROM party WHERE Party_ID NOT IN (SELECT Party FROM election)"
        ]
    },
    {
        "db_id": "election",
        "final_query": "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.Committee  =  \"Appropriations\" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.Committee  =  \"Economic Matters\"",
        "final_utterance": "What are the names of parties that have both delegates on \"Appropriations\" committee and \"Economic Matters\" committee",
        "interaction_utterance": [
            "tell me which parties have delegates on the \"Appropriations\" committee?",
            "So how about the ones with delegates on the \"Economic Matters\" committee?",
            "Okay. I want to know which ones have delegates on both."
        ],
        "interaction_query": [
            "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.Committee  =  \"Appropriations\"",
            "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.Committee  =  \"Economic Matters\"",
            "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.Committee  =  \"Appropriations\" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.Committee  =  \"Economic Matters\""
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount)",
        "final_utterance": "List the name of all different customers who have an loan sorted by their total loan amount.",
        "interaction_utterance": [
            "List the names of all different customers who have an loan.",
            "For each customer, what is their total amount of loans?",
            "sort the result by the total amount, and no need to show the total amount."
        ],
        "interaction_query": [
            "SELECT DISTINCT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id",
            "SELECT T1.cust_name, sum(T2.amount) FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name",
            "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount)"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT cust_name ,  acc_bal FROM customer WHERE cust_name LIKE '%a%'",
        "final_utterance": "Find the name and account balance of the customer whose name includes the letter \u2018a\u2019.",
        "interaction_utterance": [
            "what are the names of the customers?",
            "just show customers who have the letter \u2018a\u2019 in their name.",
            "list their account balances too."
        ],
        "interaction_query": [
            "SELECT cust_name FROM customer",
            "SELECT cust_name FROM customer WHERE cust_name LIKE '%a%'",
            "SELECT cust_name ,  acc_bal FROM customer WHERE cust_name LIKE '%a%'"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT sum(acc_bal) FROM customer WHERE state  =  'Utah' OR state  =  'Texas'",
        "final_utterance": "Find the total account balance of each customer from Utah or Texas.",
        "interaction_utterance": [
            "which states are the customers from?",
            "find the names of customers from Utah or Texas.",
            "what is their total account balance?"
        ],
        "interaction_query": [
            "SELECT distinct state FROM customer",
            "SELECT cust_name FROM customer WHERE state  =  'Utah' OR state  =  'Texas'",
            "SELECT sum(acc_bal) FROM customer WHERE state  =  'Utah' OR state  =  'Texas'"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT cust_name FROM customer WHERE acc_type  =  'saving' INTERSECT SELECT cust_name FROM customer WHERE acc_type  =  'checking'",
        "final_utterance": "Find the name of customers who have both saving and checking account types.",
        "interaction_utterance": [
            "find the names of customers who have a saving account.",
            "how about those who have a checking account?",
            "which of them have both kinds of accounts?"
        ],
        "interaction_query": [
            "SELECT cust_name FROM customer WHERE acc_type  =  'saving'",
            "SELECT cust_name FROM customer WHERE acc_type  =  'checking'",
            "SELECT cust_name FROM customer WHERE acc_type  =  'saving' INTERSECT SELECT cust_name FROM customer WHERE acc_type  =  'checking'"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT cust_name FROM customer EXCEPT SELECT cust_name FROM customer WHERE acc_type  =  'saving'",
        "final_utterance": "Find the name of customers who do not have a saving account.",
        "interaction_utterance": [
            "how many customers have a saving account?",
            "what are their names?",
            "who are those who do not have a savings account?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM customer WHERE acc_type  =  'saving'",
            "SELECT cust_name FROM customer WHERE acc_type  =  'saving'",
            "SELECT cust_name FROM customer EXCEPT SELECT cust_name FROM customer WHERE acc_type  =  'saving'"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT cust_name FROM customer EXCEPT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id WHERE T2.loan_type  =  'Mortgages'",
        "final_utterance": "Find the name of customers who do not have a loan with a type of Mortgages.",
        "interaction_utterance": [
            "Find the names of customers who have a mortgage loan.",
            "who are those who do not have a mortgage?"
        ],
        "interaction_query": [
            "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id WHERE T2.loan_type  =  'Mortgages'",
            "SELECT cust_name FROM customer EXCEPT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id WHERE T2.loan_type  =  'Mortgages'"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id WHERE loan_type  =  'Mortgages' INTERSECT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id WHERE loan_type  =  'Auto'",
        "final_utterance": "Find the name of customers who have loans of both Mortgages and Auto.",
        "interaction_utterance": [
            "find the names of customers who have a loan.",
            "which of them have a mortgage loan?",
            "among them, who has an Auto loan as well?"
        ],
        "interaction_query": [
            "SELECT DISTINCT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id",
            "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id WHERE loan_type  =  'Mortgages'",
            "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id WHERE loan_type  =  'Mortgages' INTERSECT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id WHERE loan_type  =  'Auto'"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT cust_name FROM customer WHERE credit_score  <  (SELECT avg(credit_score) FROM customer)",
        "final_utterance": "Find the name of customers whose credit score is below the average credit scores of all customers.",
        "interaction_utterance": [
            "what is the average credit score of all customers?",
            "list customers whose credit score is below the average.",
            "just list their names."
        ],
        "interaction_query": [
            "SELECT avg(credit_score) FROM customer",
            "SELECT * FROM customer WHERE credit_score  <  (SELECT avg(credit_score) FROM customer)",
            "SELECT cust_name FROM customer WHERE credit_score  <  (SELECT avg(credit_score) FROM customer)"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT bname FROM bank ORDER BY no_of_customers DESC LIMIT 1",
        "final_utterance": "Find the branch name of the bank that has the most number of customers.",
        "interaction_utterance": [
            "show the name and number of customers for each bank branch.",
            "order the result by the number of customers in descending order.",
            "Find the branch name of the bank that has the most customers."
        ],
        "interaction_query": [
            "SELECT bname, no_of_customers FROM bank",
            "SELECT bname, no_of_customers FROM bank ORDER BY no_of_customers DESC",
            "SELECT bname FROM bank ORDER BY no_of_customers DESC LIMIT 1"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT cust_name FROM customer ORDER BY credit_score LIMIT 1",
        "final_utterance": "Find the name of customer who has the lowest credit score.",
        "interaction_utterance": [
            "what are the names of all customers?",
            "which one has the lowest credit score?"
        ],
        "interaction_query": [
            "SELECT cust_name FROM customer",
            "SELECT cust_name FROM customer ORDER BY credit_score LIMIT 1"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT cust_name ,  acc_type ,  acc_bal FROM customer ORDER BY credit_score DESC LIMIT 1",
        "final_utterance": "Find the name, account type, and account balance of the customer who has the highest credit score.",
        "interaction_utterance": [
            "what is the name of the customer with the lowest credit score?",
            "how about the one who has the highest credit score?",
            "show their account types and balances as well."
        ],
        "interaction_query": [
            "SELECT cust_name FROM customer ORDER BY credit_score LIMIT 1",
            "SELECT cust_name FROM customer ORDER BY credit_score DESC LIMIT 1",
            "SELECT cust_name ,  acc_type ,  acc_bal FROM customer ORDER BY credit_score DESC LIMIT 1"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount) DESC LIMIT 1",
        "final_utterance": "Find the name of customer who has the highest amount of loans.",
        "interaction_utterance": [
            "what is the average amount of all loans?",
            "how about the total amount?",
            "Find the names of customer who have loans.",
            "who has the largest amount of loans?"
        ],
        "interaction_query": [
            "SELECT avg(amount) FROM loan",
            "SELECT sum(amount) FROM loan",
            "SELECT DISTINCT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id",
            "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT state FROM bank GROUP BY state ORDER BY sum(no_of_customers) DESC LIMIT 1",
        "final_utterance": "Find the state which has the most number of customers.",
        "interaction_utterance": [
            "show all different states where banks are located.",
            "which state has the most bank customers?"
        ],
        "interaction_query": [
            "SELECT distinct state FROM bank",
            "SELECT state FROM bank GROUP BY state ORDER BY sum(no_of_customers) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT avg(acc_bal) ,  acc_type FROM customer WHERE credit_score  <  50 GROUP BY acc_type",
        "final_utterance": "For each account type, find the average account balance of customers with credit score lower than 50.",
        "interaction_utterance": [
            "what are the names of customers with a credit score lower than 50?",
            "what is their average account balance?",
            "find their average account balance for each different account type."
        ],
        "interaction_query": [
            "SELECT cust_name FROM customer WHERE credit_score  <  50",
            "SELECT avg(acc_bal) FROM customer WHERE credit_score  <  50",
            "SELECT avg(acc_bal) ,  acc_type FROM customer WHERE credit_score  <  50 GROUP BY acc_type"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT sum(acc_bal) ,  state FROM customer WHERE credit_score  >  100 GROUP BY state",
        "final_utterance": "For each state, find the total account balance of customers whose credit score is above 100.",
        "interaction_utterance": [
            "what states are the customers from?",
            "For each state, how many customers have a credit score above 100?",
            "find their total account balances."
        ],
        "interaction_query": [
            "SELECT distinct state FROM customer",
            "SELECT count(*),  state FROM customer WHERE credit_score  >  100 GROUP BY state",
            "SELECT sum(acc_bal) ,  state FROM customer WHERE credit_score  >  100 GROUP BY state"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT sum(amount) ,  T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id GROUP BY T1.bname",
        "final_utterance": "Find the total amount of loans offered by each bank branch.",
        "interaction_utterance": [
            "how many bank branches are not in the state of New York?",
            "what is the total number of bank branches?",
            "how many loans are offered by each branch?",
            "what is the total amount of loans offered by each of them?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM bank WHERE state != \"New York\"",
            "SELECT count(*) FROM bank",
            "SELECT count(*),  T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id GROUP BY T1.bname",
            "SELECT sum(amount) ,  T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id GROUP BY T1.bname"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name HAVING count(*)  >  1",
        "final_utterance": "Find the name of customers who have more than one loan.",
        "interaction_utterance": [
            "how many loans are there?",
            "what is the total amount of loans?",
            "Find the names of customers who have at least one loan.",
            "which of them have more than one loan?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM loan",
            "SELECT sum(amount) FROM loan",
            "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id",
            "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name HAVING count(*)  >  1"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT T1.cust_name ,  T1.acc_type FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name HAVING sum(T2.amount)  >  5000",
        "final_utterance": "Find the name and account balance of the customers who have loans with a total amount of more than 5000.",
        "interaction_utterance": [
            "Find the names of customers who have at least one loan.",
            "which of them have loans with a total amount of more than 5000?",
            "also show their account balances."
        ],
        "interaction_query": [
            "SELECT DISTINCT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id",
            "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name HAVING sum(T2.amount)  >  5000",
            "SELECT T1.cust_name ,  T1.acc_type FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name HAVING sum(T2.amount)  >  5000"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id GROUP BY T1.bname ORDER BY sum(T2.amount) DESC LIMIT 1",
        "final_utterance": "Find the name of bank branch that provided the greatest total amount of loans.",
        "interaction_utterance": [
            "what is the total amount of all loans?",
            "find the names of bank branches that provided these loans.",
            "which one offered the greatest total amount of loans?"
        ],
        "interaction_query": [
            "SELECT sum(amount) FROM loan",
            "SELECT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id",
            "SELECT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id GROUP BY T1.bname ORDER BY sum(T2.amount) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id  =  T2.branch_id JOIN customer AS T3 ON T1.cust_id  =  T3.cust_id WHERE T3.credit_score  <  100 GROUP BY T2.bname ORDER BY sum(T1.amount) DESC LIMIT 1",
        "final_utterance": "Find the name of bank branch that provided the greatest total amount of loans to customers with credit score is less than 100.",
        "interaction_utterance": [
            "what are the names of customers whose credit score is higher than 200?",
            "how about those whose credit score is less than 100?",
            "what are the names of bank branches that provided any loans to them?",
            "which bank branch gave the greatest total amount of loans to a customer whose credit score is less than 100?"
        ],
        "interaction_query": [
            "SELECT cust_name FROM customer WHERE credit_score > 200",
            "SELECT cust_name FROM customer WHERE credit_score < 100",
            "SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id  =  T2.branch_id JOIN customer AS T3 ON T1.cust_id  =  T3.cust_id WHERE T3.credit_score  <  100",
            "SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id  =  T2.branch_id JOIN customer AS T3 ON T1.cust_id  =  T3.cust_id WHERE T3.credit_score  <  100 GROUP BY T2.bname ORDER BY sum(T1.amount) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id WHERE amount  >  3000",
        "final_utterance": "Find the the name of the customers who have a loan with amount more than 3000.",
        "interaction_utterance": [
            "how many loans have an amount greater than 3000?",
            "what are their types?",
            "Find the names of the customers who own these loans."
        ],
        "interaction_query": [
            "SELECT count(*) FROM loan WHERE amount  >  3000",
            "SELECT distinct loan_type FROM loan WHERE amount  >  3000",
            "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id WHERE amount  >  3000"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT T1.bname,  T1.city FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id WHERE T2.loan_type  =  'Business'",
        "final_utterance": "Find the city and name of bank branches that provide business loans.",
        "interaction_utterance": [
            "what is the total amount of all business loans?",
            "what are the names of bank branches that provide these loans?",
            "which cities are these banks located at?"
        ],
        "interaction_query": [
            "SELECT sum(amount) FROM loan WHERE loan_type  =  'Business'",
            "SELECT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id WHERE T2.loan_type  =  'Business'",
            "SELECT T1.city FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id WHERE T2.loan_type  =  'Business'"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id  =  T2.branch_id JOIN customer AS T3 ON T1.cust_id  =  T3.cust_id WHERE T3.credit_score  <  100",
        "final_utterance": "Find the names of bank branches that have provided a loan to any customer whose credit score is below 100.",
        "interaction_utterance": [
            "show the name and credit score of all customers.",
            "which of them have a credit score below 100?",
            "Find the names of bank branches that have provided a loan to them."
        ],
        "interaction_query": [
            "SELECT cust_name, credit_score FROM customer",
            "SELECT cust_name FROM customer WHERE credit_score  <  100",
            "SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id  =  T2.branch_id JOIN customer AS T3 ON T1.cust_id  =  T3.cust_id WHERE T3.credit_score  <  100"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT sum(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id WHERE T1.state  =  'New York'",
        "final_utterance": "Find the total amount of loans provided by bank branches in the state of New York.",
        "interaction_utterance": [
            "how many bank branches does the state of New York have?",
            "what are their names?",
            "what is the total amount of loans provided by them?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM bank WHERE state  =  'New York'",
            "SELECT bname FROM bank WHERE state  =  'New York'",
            "SELECT sum(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id WHERE T1.state  =  'New York'"
        ]
    },
    {
        "db_id": "loan_1",
        "final_query": "SELECT avg(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan)",
        "final_utterance": "Find the average credit score of the customers who have some loan.",
        "interaction_utterance": [
            "how many customers have at least one loan?",
            "which states are they from?",
            "show their credit scores.",
            "what is the average?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan)",
            "SELECT state FROM customer WHERE cust_id IN (SELECT cust_id FROM loan)",
            "SELECT credit_score FROM customer WHERE cust_id IN (SELECT cust_id FROM loan)",
            "SELECT avg(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan)"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT count(*) FROM Aircraft",
        "final_utterance": "How many aircrafts do we have?",
        "interaction_utterance": [
            "Show all the aircraft information.",
            "How many are there ?"
        ],
        "interaction_query": [
            "SELECT * FROM Aircraft",
            "SELECT count(*) FROM Aircraft"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT name ,  distance FROM Aircraft",
        "final_utterance": "Show name and distance for all aircrafts.",
        "interaction_utterance": [
            "Show the names of all aircraft.",
            "Also show the distances for each of them."
        ],
        "interaction_query": [
            "SELECT name  FROM Aircraft",
            "SELECT name ,  distance FROM Aircraft"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT aid FROM Aircraft WHERE distance  >  1000",
        "final_utterance": "Show ids for all aircrafts with more than 1000 distance.",
        "interaction_utterance": [
            "Show the id for all aircrafts.",
            "Only show the results for those with a distance longer than 1000."
        ],
        "interaction_query": [
            "SELECT aid FROM Aircraft",
            "SELECT aid FROM Aircraft WHERE distance  >  1000"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT count(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000",
        "final_utterance": "How many aircrafts have distance between 1000 and 5000?",
        "interaction_utterance": [
            "How many aircraft are there?",
            "How many of them have a distance between 1000 and 5000?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM Aircraft",
            "SELECT count(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT name ,  distance FROM Aircraft WHERE aid  =  12",
        "final_utterance": "What is the name and distance for aircraft with id 12?",
        "interaction_utterance": [
            "Show the name for all aircraft.",
            "What about the one with id 12?",
            "Also show its distance."
        ],
        "interaction_query": [
            "SELECT name FROM Aircraft",
            "SELECT name FROM Aircraft WHERE aid  =  12",
            "SELECT name ,  distance FROM Aircraft WHERE aid  =  12"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT min(distance) ,  avg(distance) ,  max(distance) FROM Aircraft",
        "final_utterance": "What is the minimum, average, and maximum distance of all aircrafts.",
        "interaction_utterance": [
            "Show the distance for all aircrafts.",
            "Wnat is the minimum?",
            "Also show the average and maximum."
        ],
        "interaction_query": [
            "select distance FROM Aircraft",
            "SELECT min(distance) FROM Aircraft",
            "SELECT min(distance) ,  avg(distance) ,  max(distance) FROM Aircraft"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT aid ,  name FROM Aircraft ORDER BY distance DESC LIMIT 1",
        "final_utterance": "Show the id and name of the aircraft with the maximum distance.",
        "interaction_utterance": [
            "Show the id and name for all aircraft.",
            "Order the results in descending order of distance.",
            "Which one has the maximum?"
        ],
        "interaction_query": [
            "SELECT aid ,  name FROM Aircraft",
            "SELECT aid ,  name FROM Aircraft ORDER BY distance DESC",
            "SELECT aid ,  name FROM Aircraft ORDER BY distance DESC LIMIT 1"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT name FROM Aircraft ORDER BY distance LIMIT 3",
        "final_utterance": "Show the name of aircrafts with top three lowest distances.",
        "interaction_utterance": [
            "Show the name for all aircrafts.",
            "Order them by the distance.",
            "Which three have the lowest?"
        ],
        "interaction_query": [
            "SELECT name FROM Aircraft",
            "SELECT name FROM Aircraft ORDER BY distance",
            "SELECT name FROM Aircraft ORDER BY distance LIMIT 3"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT name FROM Aircraft WHERE distance  >  (SELECT avg(distance) FROM Aircraft)",
        "final_utterance": "Show names for all aircrafts with distances more than the average.",
        "interaction_utterance": [
            "What is the average distance?",
            "Show the name for all aircrafts with a distance above it."
        ],
        "interaction_query": [
            "SELECT avg(distance) FROM Aircraft",
            "SELECT name FROM Aircraft WHERE distance  >  (SELECT avg(distance) FROM Aircraft)"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT count(*) FROM Employee",
        "final_utterance": "How many employees do we have?",
        "interaction_utterance": [
            "Show information for all employees.",
            "Show the number of them."
        ],
        "interaction_query": [
            "SELECT * FROM Employee",
            "SELECT count(*) FROM Employee"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT name ,  salary FROM Employee ORDER BY salary",
        "final_utterance": "Show name and salary for all employees sorted by salary.",
        "interaction_utterance": [
            "Show the name for all employees.",
            "Also show their salaries.",
            "Order the results by their salary."
        ],
        "interaction_query": [
            "SELECT name  FROM Employee",
            "SELECT name ,  salary FROM Employee",
            "SELECT name ,  salary FROM Employee ORDER BY salary"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT eid FROM Employee WHERE salary  >  100000",
        "final_utterance": "Show ids for all employees with at least 100000 salary.",
        "interaction_utterance": [
            "Show the id for all employees.",
            "Which of them have a salary above 100000?"
        ],
        "interaction_query": [
            "SELECT eid FROM Employee",
            "SELECT eid FROM Employee WHERE salary  >  100000"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT count(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000",
        "final_utterance": "How many employees have salary between 100000 and 200000?",
        "interaction_utterance": [
            "Show the total number of employees.",
            "How many of them have a salary between 100000 and 200000?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM Employee",
            "SELECT count(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT name ,  salary FROM Employee WHERE eid  =  242518965",
        "final_utterance": "What is the name and salary for employee with id 242518965?",
        "interaction_utterance": [
            "Show the information for the employee with id 242518965.",
            "What is the name and salary for this employee?"
        ],
        "interaction_query": [
            "SELECT * FROM Employee WHERE eid  =  242518965",
            "SELECT name ,  salary FROM Employee WHERE eid  =  242518965"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT avg(salary) ,  max(salary) FROM Employee",
        "final_utterance": "What is average and maximum salary of all employees.",
        "interaction_utterance": [
            "What is the salary for all employees.",
            "What are the average and maximum salaries."
        ],
        "interaction_query": [
            "select salary FROM Employee",
            "SELECT avg(salary) ,  max(salary) FROM Employee"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT eid ,  name FROM Employee ORDER BY salary DESC LIMIT 1",
        "final_utterance": "Show the id and name of the employee with maximum salary.",
        "interaction_utterance": [
            "Show the id and name of the employees.",
            "Order them by salary.",
            "Who has the maximum salary?"
        ],
        "interaction_query": [
            "SELECT eid ,  name FROM Employee",
            "SELECT eid ,  name FROM Employee ORDER BY salary",
            "SELECT eid ,  name FROM Employee ORDER BY salary DESC LIMIT 1"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT name FROM Employee ORDER BY salary ASC LIMIT 3",
        "final_utterance": "Show the name of employees with three lowest salaries.",
        "interaction_utterance": [
            "Show the names of all employees.",
            "Order the results by their salaries.",
            "Which three have the lowest?"
        ],
        "interaction_query": [
            "SELECT name FROM Employee",
            "SELECT name FROM Employee ORDER BY salary",
            "SELECT name FROM Employee ORDER BY salary ASC LIMIT 3"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT name FROM Employee WHERE salary  >  (SELECT avg(salary) FROM Employee)",
        "final_utterance": "Show names for all employees with salary more than the average.",
        "interaction_utterance": [
            "Show the salaries for all employees.",
            "What is the average of them?",
            "Show the name for all employees with a salary above that."
        ],
        "interaction_query": [
            "SELECT salary FROM Employee",
            "SELECT avg(salary) FROM Employee",
            "SELECT name FROM Employee WHERE salary  >  (SELECT avg(salary) FROM Employee)"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT eid ,  salary FROM Employee WHERE name  =  'Mark Young'",
        "final_utterance": "Show the id and salary of Mark Young.",
        "interaction_utterance": [
            "Show ids for all the employees.",
            "Show the id for employee Mark Young.",
            "Also show his salary."
        ],
        "interaction_query": [
            "SELECT eid  FROM Employee",
            "SELECT eid  FROM Employee WHERE name  =  'Mark Young'",
            "SELECT eid ,  salary FROM Employee WHERE name  =  'Mark Young'"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT count(*) FROM Flight",
        "final_utterance": "How many flights do we have?",
        "interaction_utterance": [
            "Show the info for all flights.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM Flight",
            "SELECT count(*) FROM Flight"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT flno ,  origin ,  destination FROM Flight ORDER BY origin",
        "final_utterance": "Show flight number, origin, destination of all flights in the alphabetical order of the departure cities.",
        "interaction_utterance": [
            "Show the flight number of all flights.",
            "Also show the origin and destination for them.",
            "Order them in the alphabetical order of the departure cities."
        ],
        "interaction_query": [
            "SELECT flno  FROM Flight",
            "SELECT flno ,  origin ,  destination FROM Flight",
            "SELECT flno ,  origin ,  destination FROM Flight ORDER BY origin"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT flno FROM Flight WHERE origin  =  \"Los Angeles\"",
        "final_utterance": "Show all flight number from Los Angeles.",
        "interaction_utterance": [
            "Show all flight numbers",
            "Filter for only those from Los Angeles?"
        ],
        "interaction_query": [
            "SELECT flno FROM Flight",
            "SELECT flno FROM Flight WHERE origin  =  \"Los Angeles\""
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT origin FROM Flight WHERE destination  =  \"Honolulu\"",
        "final_utterance": "Show origins of all flights with destination Honolulu.",
        "interaction_utterance": [
            "Show the origin for all flights.",
            "How about the origin for those with destination Honolulu?"
        ],
        "interaction_query": [
            "SELECT origin FROM Flight",
            "SELECT origin FROM Flight WHERE destination  =  \"Honolulu\""
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT departure_date ,  arrival_date FROM Flight WHERE origin  =  \"Los Angeles\" AND destination  =  \"Honolulu\"",
        "final_utterance": "Show me the departure date and arrival date for all flights from Los Angeles to Honolulu.",
        "interaction_utterance": [
            "Show the  departure date and arrival date for all flights.",
            "How about those from Los Angeles?",
            "From these results, only show those flying to Honolulu."
        ],
        "interaction_query": [
            "SELECT departure_date ,  arrival_date FROM Flight",
            "SELECT departure_date ,  arrival_date FROM Flight WHERE origin  =  \"Los Angeles\"",
            "SELECT departure_date ,  arrival_date FROM Flight WHERE origin  =  \"Los Angeles\" AND destination  =  \"Honolulu\""
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT flno FROM Flight WHERE distance  >  2000",
        "final_utterance": "Show flight number for all flights with more than 2000 distance.",
        "interaction_utterance": [
            "Show the flight numbers for all flights.",
            "How about those with distance longer than 2000?"
        ],
        "interaction_query": [
            "SELECT flno FROM Flight",
            "SELECT flno FROM Flight WHERE distance  >  2000"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT avg(price) FROM Flight WHERE origin  =  \"Los Angeles\" AND destination  =  \"Honolulu\"",
        "final_utterance": "What is the average price for flights from Los Angeles to Honolulu.",
        "interaction_utterance": [
            "Show the price for all flights.",
            "How about those from Los Angeles to Honolulu?",
            "What is the average of them?"
        ],
        "interaction_query": [
            "SELECT price FROM Flight",
            "SELECT price FROM Flight WHERE origin  =  \"Los Angeles\" AND destination  =  \"Honolulu\"",
            "SELECT avg(price) FROM Flight WHERE origin  =  \"Los Angeles\" AND destination  =  \"Honolulu\""
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT origin ,  destination FROM Flight WHERE price  >  300",
        "final_utterance": "Show origin and destination for flights with price higher than 300.",
        "interaction_utterance": [
            "Show the origin for all flights.",
            "How about those with a price higher than 300?",
            "For each of them, also show the destination."
        ],
        "interaction_query": [
            "SELECT origin  FROM Flight",
            "SELECT origin  FROM Flight WHERE price  >  300",
            "SELECT origin ,  destination FROM Flight WHERE price  >  300"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT flno ,  distance FROM Flight ORDER BY price DESC LIMIT 1",
        "final_utterance": "Show the flight number and distance of the flight with maximum price.",
        "interaction_utterance": [
            "Show the flight number and distance of all the flights.",
            "List them in the descending order of the price.",
            "Which has the maximum price?"
        ],
        "interaction_query": [
            "SELECT flno ,  distance FROM Flight",
            "SELECT flno ,  distance FROM Flight ORDER BY price DESC",
            "SELECT flno ,  distance FROM Flight ORDER BY price DESC LIMIT 1"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT flno FROM Flight ORDER BY distance ASC LIMIT 3",
        "final_utterance": "Show the flight number of flights with three lowest distances.",
        "interaction_utterance": [
            "Show all flight numbers.",
            "Order them by the distance.",
            "Show the three shortest."
        ],
        "interaction_query": [
            "SELECT flno FROM Flight",
            "SELECT flno FROM Flight ORDER BY distance",
            "SELECT flno FROM Flight ORDER BY distance ASC LIMIT 3"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT avg(distance) ,  avg(price) FROM Flight WHERE origin  =  \"Los Angeles\"",
        "final_utterance": "What is the average distance and average price for flights from Los Angeles.",
        "interaction_utterance": [
            "Show the distance and price for all flights.",
            "Show the result only for those from Los Angeles.",
            "What is the average distance and average price for them?"
        ],
        "interaction_query": [
            "SELECT distance , price FROM Flight",
            "SELECT distance , price FROM Flight WHERE origin  =  \"Los Angeles\"",
            "SELECT avg(distance) ,  avg(price) FROM Flight WHERE origin  =  \"Los Angeles\""
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT origin ,  count(*) FROM Flight GROUP BY origin",
        "final_utterance": "Show all origins and the number of flights from each origin.",
        "interaction_utterance": [
            "Show the number of flights in total.",
            "Breakdown the count by the origin."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Flight",
            "SELECT origin ,  count(*) FROM Flight GROUP BY origin"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT destination ,  count(*) FROM Flight GROUP BY destination",
        "final_utterance": "Show all destinations and the number of flights to each destination.",
        "interaction_utterance": [
            "Show the destination for all flights.",
            "For each of them, what is the number of flights?"
        ],
        "interaction_query": [
            "SELECT destination FROM Flight",
            "SELECT destination ,  count(*) FROM Flight GROUP BY destination"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT origin FROM Flight GROUP BY origin ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which origin has most number of flights?",
        "interaction_utterance": [
            "Show the origin for all flights.",
            "For each city, how many flights are departing from there?",
            "Order them in descending order of number of departures.",
            "Which origin has the most?"
        ],
        "interaction_query": [
            "SELECT origin FROM Flight",
            "SELECT origin, count(*) FROM Flight GROUP BY origin",
            "SELECT origin FROM Flight GROUP BY origin ORDER BY count(*) DESC",
            "SELECT origin FROM Flight GROUP BY origin ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT destination FROM Flight GROUP BY destination ORDER BY count(*) LIMIT 1",
        "final_utterance": "Which destination has least number of flights?",
        "interaction_utterance": [
            "Show the destination for all flights.",
            "For each destination, show the number of flights arriving there.",
            "Which destination has the fewest?"
        ],
        "interaction_query": [
            "SELECT destination FROM Flight",
            "SELECT destination, count(*) FROM Flight GROUP BY destination",
            "SELECT destination FROM Flight GROUP BY destination ORDER BY count(*) LIMIT 1"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid WHERE T1.flno  =  99",
        "final_utterance": "What is the aircraft name for the flight with number 99",
        "interaction_utterance": [
            "Show the name for all aircraft.",
            "Which one of them is being taken on flight 99?"
        ],
        "interaction_query": [
            "SELECT name FROM Aircraft",
            "SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid WHERE T1.flno  =  99"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT T1.flno FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid WHERE T2.name  =  \"Airbus A340-300\"",
        "final_utterance": "Show all flight numbers with aircraft Airbus A340-300.",
        "interaction_utterance": [
            "Show all flight numbers.",
            "Which of them are on aircraft Airbus A340-300?"
        ],
        "interaction_query": [
            "SELECT flno FROM Flight",
            "SELECT T1.flno FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid WHERE T2.name  =  \"Airbus A340-300\""
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT T2.name ,  count(*) FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid GROUP BY T1.aid",
        "final_utterance": "Show aircraft names and number of flights for each aircraft.",
        "interaction_utterance": [
            "Show the name for all aircraft.",
            "For each of them, count the number of flights."
        ],
        "interaction_query": [
            "Select name from Aircraft",
            "SELECT T2.name ,  count(*) FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid GROUP BY T1.aid"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid GROUP BY T1.aid HAVING count(*)  >= 2",
        "final_utterance": "Show names for all aircraft with at least two flights.",
        "interaction_utterance": [
            "Show names for all aircraft.",
            "For each of them, also show the number of flights.",
            "Which two have the fewest?"
        ],
        "interaction_query": [
            "SELECT name FROM Aircraft",
            "SELECT T2.name, count(*) FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid GROUP BY T1.aid",
            "SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid GROUP BY T1.aid HAVING count(*)  >= 2"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT count(DISTINCT eid) FROM Certificate",
        "final_utterance": "How many employees have certificate.",
        "interaction_utterance": [
            "Show employee ids for all certificates.",
            "What are the distinct ids among them?",
            "How many are there?"
        ],
        "interaction_query": [
            "select eid FROM Certificate",
            "SELECT DISTINCT eid FROM Certificate",
            "SELECT count(DISTINCT eid) FROM Certificate"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT eid FROM Employee EXCEPT SELECT eid FROM Certificate",
        "final_utterance": "Show ids for all employees who do not have a certificate.",
        "interaction_utterance": [
            "Show the employee ids with a certificate.",
            "Show the employee ids without any."
        ],
        "interaction_query": [
            "SELECT eid FROM Certificate",
            "SELECT eid FROM Employee EXCEPT SELECT eid FROM Certificate"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT T3.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T1.name  =  \"John Williams\"",
        "final_utterance": "Show names for all aircrafts of which John Williams has certificates.",
        "interaction_utterance": [
            "Show the name for all aircraft.",
            "For each, also show the names of employees with a certificate on it.",
            "What are the names of aircraft of which John Williams has certificates?"
        ],
        "interaction_query": [
            "SELECT name FROM Aircraft",
            "SELECT T3.name, T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid",
            "SELECT T3.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T1.name  =  \"John Williams\""
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  \"Boeing 737-800\"",
        "final_utterance": "Show names for all employees who have certificate of Boeing 737-800.",
        "interaction_utterance": [
            "Show names for all employees.",
            "Also show the name of aircraft on which they have a certificate.",
            "Which of those employees have certificate of Boeing 737-800?"
        ],
        "interaction_query": [
            "SELECT name FROM Employee",
            "SELECT T1.name, T3.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid",
            "SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  \"Boeing 737-800\""
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  \"Boeing 737-800\" INTERSECT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  \"Airbus A340-300\"",
        "final_utterance": "Show names for all employees who have certificates on both Boeing 737-800 and Airbus A340-300.",
        "interaction_utterance": [
            "Show names for all employees.",
            "Which of those have certificates on Boeing 737-800?",
            "How about those with certificates on Airbus A340-300?",
            "Who have both?"
        ],
        "interaction_query": [
            "SELECT name FROM Employee",
            "SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  \"Boeing 737-800\"",
            "SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  \"Airbus A340-300\"",
            "SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  \"Boeing 737-800\" INTERSECT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  \"Airbus A340-300\""
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT name FROM Employee EXCEPT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  \"Boeing 737-800\"",
        "final_utterance": "Show names for all employees who do not have certificate of Boeing 737-800.",
        "interaction_utterance": [
            "Show the names of employees with a certificate.",
            "Which of them have a certificate on Boeing 737-800?",
            "Show the names for all employees without this particular certificate."
        ],
        "interaction_query": [
            "SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid",
            "SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  \"Boeing 737-800\"",
            "SELECT name FROM Employee EXCEPT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  \"Boeing 737-800\""
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid  =  T1.aid GROUP BY T1.aid ORDER BY count(*) LIMIT 1",
        "final_utterance": "Show the name of aircraft which fewest people have its certificate.",
        "interaction_utterance": [
            "Show the name of all aircrafts.",
            "Also show the number of people with a certificate on each one.",
            "Order the aircraft by these counts.",
            "Which of them has the fewest?"
        ],
        "interaction_query": [
            "select name from Aircraft",
            "SELECT T2.name, count(*) FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid  =  T1.aid GROUP BY T1.aid",
            "SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid  =  T1.aid GROUP BY T1.aid ORDER BY count(*)",
            "SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid  =  T1.aid GROUP BY T1.aid ORDER BY count(*) LIMIT 1"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT T2.name, T2.distance FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid  =  T1.aid WHERE T2.distance  >  5000 GROUP BY T1.aid ORDER BY count(*)  >=  5",
        "final_utterance": "Show the name and distance of the aircrafts with more than 5000 distance and which at least 5 people have its certificate.",
        "interaction_utterance": [
            "Show the name and distance of the aircrafts.",
            "How about those with a distance longer than 5000?",
            "Which also have at least 5 people with the certificate?"
        ],
        "interaction_query": [
            "SELECT name, distance FROM Aircraft",
            "SELECT name, distance FROM Aircraft WHERE distance  >  5000",
            "SELECT T2.name, T2.distance FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid  =  T1.aid WHERE T2.distance  >  5000 GROUP BY T1.aid ORDER BY count(*)  >=  5"
        ]
    },
    {
        "db_id": "flight_1",
        "final_query": "SELECT T1.name ,  T1.salary FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid GROUP BY T1.eid ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "what is the salary and name of the employee who has the most number of aircraft certificates?",
        "interaction_utterance": [
            "Show the employee names with their corresponding counts of aircraft certificates.",
            "Order the employees by these counts.",
            "Who has the most certificates?",
            "what is the name and salary of this employee?"
        ],
        "interaction_query": [
            "select T1.name, count(*) FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid GROUP BY T1.eid",
            "select T1.name, count(*) FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid GROUP BY T1.eid ORDER BY count(*)",
            "select T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid GROUP BY T1.eid ORDER BY count(*) DESC LIMIT 1",
            "SELECT T1.name ,  T1.salary FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid GROUP BY T1.eid ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "party_people",
        "final_query": "SELECT minister FROM party WHERE took_office  >  1961 OR took_office  <  1959",
        "final_utterance": "Show the minister who took office after 1961 or before 1959.",
        "interaction_utterance": [
            "Show me a list of party ministers.",
            "Which ones took office between 1959 and 1961?",
            "How about the others except those?"
        ],
        "interaction_query": [
            "SELECT minister FROM party",
            "SELECT minister FROM party WHERE took_office  >=  1959 AND took_office  <=  1961",
            "SELECT minister FROM party WHERE took_office  >  1961 OR took_office  <  1959"
        ]
    },
    {
        "db_id": "party_people",
        "final_query": "SELECT minister FROM party ORDER BY left_office DESC LIMIT 1",
        "final_utterance": "Return the minister who left office at the latest time.",
        "interaction_utterance": [
            "Who are all the ministers?",
            "When did they each start?",
            "When did they each leave?",
            "Who left most recently?"
        ],
        "interaction_query": [
            "SELECT minister FROM party",
            "SELECT minister, took_office FROM party",
            "SELECT minister, left_office FROM party",
            "SELECT minister FROM party ORDER BY left_office DESC LIMIT 1"
        ]
    },
    {
        "db_id": "party_people",
        "final_query": "SELECT T2.party_name ,  count(*) FROM Member AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id",
        "final_utterance": "Show all party names and the number of members in each party.",
        "interaction_utterance": [
            "What are all the party names?",
            "Show me all the members each have.",
            "How many does each party have?"
        ],
        "interaction_query": [
            "SELECT party_name FROM party",
            "SELECT * FROM Member AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id",
            "SELECT T2.party_name, count(*) FROM Member AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id group by party_name"
        ]
    },
    {
        "db_id": "party_people",
        "final_query": "SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the name of party with most number of members?",
        "interaction_utterance": [
            "What about the least number?",
            "How about the max?",
            "What is the name of the party that has this number per party?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM Member AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id ORDER BY count(*) ASC LIMIT 1",
            "SELECT count(*) FROM Member AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "party_people",
        "final_query": "SELECT party_name FROM party WHERE party_id NOT IN (SELECT party_id FROM Member)",
        "final_utterance": "Show names of parties that does not have any members.",
        "interaction_utterance": [
            "What are the names of all parties?",
            "How many have no members?",
            "Which ones?"
        ],
        "interaction_query": [
            "SELECT party_name FROM party",
            "SELECT count(*) FROM party WHERE party_id NOT IN (SELECT party_id FROM Member)",
            "SELECT party_name FROM party WHERE party_id NOT IN (SELECT party_id FROM Member)"
        ]
    },
    {
        "db_id": "party_people",
        "final_query": "SELECT member_name FROM member WHERE party_id  =  3 INTERSECT SELECT member_name FROM member WHERE party_id  =  1",
        "final_utterance": "Show the member names which are in both the party with id 3 and the party with id 1.",
        "interaction_utterance": [
            "What are all the member names?",
            "Which ones are in party with id 1?",
            "How about in party with id 3?",
            "Can you show me those in both?"
        ],
        "interaction_query": [
            "SELECT member_name FROM member",
            "SELECT member_name FROM member WHERE party_id  =  1",
            "SELECT member_name FROM member WHERE party_id  =  3",
            "SELECT member_name FROM member WHERE party_id  =  3 INTERSECT SELECT member_name FROM member WHERE party_id  =  1"
        ]
    },
    {
        "db_id": "party_people",
        "final_query": "SELECT T1.member_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id WHERE T2.Party_name != \"Progress Party\"",
        "final_utterance": "Show member names that are not in the Progress Party.",
        "interaction_utterance": [
            "How many members are there?",
            "How many are in the Progressive party?",
            "How many are not?",
            "What are their names?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM member",
            "SELECT count(*) FROM Member AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id WHERE T2.Party_name = \"Progress Party\"",
            "SELECT count(*) FROM Member AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id WHERE T2.Party_name != \"Progress Party\"",
            "SELECT T1.member_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id WHERE T2.Party_name != \"Progress Party\""
        ]
    },
    {
        "db_id": "party_people",
        "final_query": "SELECT T2.party_name ,  count(*) FROM party_events AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id",
        "final_utterance": "Show party names and the number of events for each party.",
        "interaction_utterance": [
            "What are the names and ids of all the party events?",
            "What parties are each event affiliated with?",
            "Just show me a distinct list of the names these parties.",
            "Also show how many events each of them!"
        ],
        "interaction_query": [
            "SELECT event_id, event_name FROM party_events",
            "SELECT event_id, event_name, party_id FROM party_events",
            "SELECT distinct T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id",
            "SELECT T2.party_name,  count(*) FROM party_events AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id"
        ]
    },
    {
        "db_id": "party_people",
        "final_query": "SELECT member_name FROM member EXCEPT SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id  =  T2.member_in_charge_id",
        "final_utterance": "Show all member names who are not in charge of any event.",
        "interaction_utterance": [
            "Show me all the information for all the party events?",
            "Also show all the distinct member information of those in charge of them?",
            "Now just show me the distinct members information for all the members other than those?",
            "Just show me their names!"
        ],
        "interaction_query": [
            "SELECT * FROM party_events",
            "SELECT * FROM member AS T1 JOIN party_events AS T2 ON T1.member_id  =  T2.member_in_charge_id",
            "SELECT * FROM member EXCEPT SELECT * FROM member AS T1 JOIN party_events AS T2 ON T1.member_id  =  T2.member_in_charge_id",
            "SELECT member_name FROM member EXCEPT SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id  =  T2.member_in_charge_id"
        ]
    },
    {
        "db_id": "party_people",
        "final_query": "SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id HAVING count(*)  >=  2",
        "final_utterance": "What are the names of parties with at least 2 events?",
        "interaction_utterance": [
            "What parties do not host any events?",
            "Which ones host at least one event?",
            "How about 2?",
            "Show just the names of these!"
        ],
        "interaction_query": [
            "SELECT * FROM party except SELECT * FROM party_events AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id",
            "SELECT distinct * FROM party_events AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id",
            "SELECT * FROM party_events AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id HAVING count(*)  >=  2",
            "SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "party_people",
        "final_query": "SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id  =  T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the name of member in charge of greatest number of events?",
        "interaction_utterance": [
            "How many different member in charges are there for all party_events?",
            "What are their names?",
            "How many events are they each in charge of?",
            "Who has the greatest number?"
        ],
        "interaction_query": [
            "SELECT count(distinct member_in_charge_id) FROM party_events",
            "SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id  =  T2.member_in_charge_id GROUP BY T2.member_in_charge_id",
            "SELECT T1.member_name, count(*) FROM member AS T1 JOIN party_events AS T2 ON T1.member_id  =  T2.member_in_charge_id GROUP BY T2.member_in_charge_id",
            "SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id  =  T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "party_people",
        "final_query": "SELECT event_name FROM party_events GROUP BY event_name HAVING count(*)  >  2",
        "final_utterance": "find the event names that have more than 2 records.",
        "interaction_utterance": [
            "Show me all the event ids, event names and party id for each party_event.",
            "How events are there for every party?",
            "How about for every event name?",
            "Which event names have at least 2?"
        ],
        "interaction_query": [
            "SELECT event_id, event_name, party_id FROM party_events",
            "SELECT party_id, count(*) FROM party_events GROUP BY party_id",
            "SELECT event_name, count(*) FROM party_events GROUP BY event_name",
            "SELECT event_name FROM party_events GROUP BY event_name HAVING count(*)  >  2"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT name ,  nationality ,  id FROM architect WHERE gender  =  'male' ORDER BY name",
        "final_utterance": "List the name, nationality and id of all male architects ordered by their names lexicographically.",
        "interaction_utterance": [
            "List the names and nationalities of all architects.",
            "Include their ids as well.",
            "Only include architects who are male.",
            "List the names alphabetically."
        ],
        "interaction_query": [
            "SELECT name, nationality FROM architect",
            "SELECT name, nationality, id FROM architect",
            "SELECT name, nationality, id FROM architect WHERE gender = \"male\"",
            "SELECT name, nationality, id FROM architect WHERE gender = \"male\" ORDER BY name"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT DISTINCT T1.type FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id  =  T2.id WHERE T2.nationality  =  'American' OR T2.nationality  =  'Canadian'",
        "final_utterance": "What are the distinct types of mills that are built by American or Canadian architects?",
        "interaction_utterance": [
            "What are the different types of mills?",
            "Which ones were built by American architects?",
            "Include those built by Canadian architects as well."
        ],
        "interaction_query": [
            "SELECT DISTINCT type FROM mill",
            "SELECT DISTINCT T1.type FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id  =  T2.id WHERE T2.nationality  =  'American'",
            "SELECT DISTINCT T1.type FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id  =  T2.id WHERE T2.nationality  =  'American' OR T2.nationality  =  'Canadian'"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT T1.id ,  T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  >=  3",
        "final_utterance": "What are the ids and names of the architects who built at least 3 bridges ?",
        "interaction_utterance": [
            "What are the ids and names of all architects?",
            "How many of those architects built less than 3 bridges?",
            "How many built 3 or more bridges?",
            "Please list their ids and names."
        ],
        "interaction_query": [
            "SELECT id, name FROM architect",
            "SELECT count(*) FROM (SELECT T1.id ,  T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  <  3)",
            "SELECT count(*) FROM (SELECT T1.id ,  T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  >=  3)",
            "SELECT T1.id ,  T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  >=  3"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT T1.id ,  T1.name ,  T1.nationality FROM architect AS T1 JOIN mill AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the id, name and nationality of the architect who built most mills?",
        "interaction_utterance": [
            "How many mills did each architect build?",
            "Order by decreasing number of mills built.",
            "Which architect built the most mills?",
            "Please list his id and nationality as well."
        ],
        "interaction_query": [
            "SELECT T1.name , count(*) FROM architect AS T1 JOIN mill AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id ORDER BY count(*)",
            "SELECT T1.name , count(*) FROM architect AS T1 JOIN mill AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id ORDER BY count(*) DESC",
            "SELECT T1.name FROM architect AS T1 JOIN mill AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1",
            "SELECT T1.id ,  T1.name ,  T1.nationality FROM architect AS T1 JOIN mill AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT T1.id ,  T1.name ,  T1.gender FROM architect AS T1 JOIN bridge AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  =  2 UNION SELECT T1.id ,  T1.name ,  T1.gender FROM architect AS T1 JOIN mill AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  =  1",
        "final_utterance": "What are the ids, names and genders of the architects who built two bridges or one mill?",
        "interaction_utterance": [
            "List the names of architects who built 2 bridges.",
            "Include architects who built 1 mill.",
            "Include their ids and genders as well."
        ],
        "interaction_query": [
            "SELECT T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  =  2",
            "SELECT T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  =  2 UNION SELECT T1.name FROM architect AS T1 JOIN mill AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  =  1",
            "SELECT T1.id ,  T1.name ,  T1.gender FROM architect AS T1 JOIN bridge AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  =  2 UNION SELECT T1.id ,  T1.name ,  T1.gender FROM architect AS T1 JOIN mill AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  =  1"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT LOCATION FROM bridge WHERE name  =  'Kolob Arch' OR name  =  'Rainbow Bridge'",
        "final_utterance": "What is the location of the bridge named 'Kolob Arch' or 'Rainbow Bridge'?",
        "interaction_utterance": [
            "List the locations of all bridges.",
            "Where is the bridge named \u2018Kolob Arch\u2019 located?",
            "Include the location of the bridge named \u2018Rainbow Bridge\u2019."
        ],
        "interaction_query": [
            "SELECT DISTINCT LOCATION FROM bridge",
            "SELECT LOCATION FROM bridge WHERE name  =  'Kolob Arch'",
            "SELECT LOCATION FROM bridge WHERE name  =  'Kolob Arch' OR name  =  'Rainbow Bridge'"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT name FROM mill WHERE name LIKE '%Moulin%'",
        "final_utterance": "Which of the mill names contains the french word 'Moulin'?",
        "interaction_utterance": [
            "List all of the mill names.",
            "Just show mill names that contain the word \u2018Moulin\u2019."
        ],
        "interaction_query": [
            "SELECT name FROM mill",
            "SELECT name FROM mill WHERE name LIKE '%Moulin%'"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT DISTINCT T1.name FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id  =  T2.id JOIN bridge AS T3 ON T3.architect_id  =  T2.id WHERE T3.length_meters  >  80",
        "final_utterance": "What are the distinct name of the mills built by the architects who have also built a bridge longer than 80 meters?",
        "interaction_utterance": [
            "Which architects have built bridges?",
            "Which of them have built bridges longer than 80 meters?",
            "How many of those architects have also built mills?",
            "Please list the names of those mills."
        ],
        "interaction_query": [
            "SELECT DISTINCT T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id  =  T2.architect_id",
            "SELECT DISTINCT T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id  =  T2.architect_id WHERE T2.length_meters > 80",
            "SELECT count(DISTINCT T2.name) FROM mill AS T1 JOIN architect AS T2 ON T1.architect_id  =  T2.id JOIN bridge AS T3 ON T3.architect_id  =  T2.id WHERE T3.length_meters  >  80",
            "SELECT DISTINCT T1.name FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id  =  T2.id JOIN bridge AS T3 ON T3.architect_id  =  T2.id WHERE T3.length_meters  >  80"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT TYPE ,  count(*) FROM mill GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the most common mill type, and how many are there?",
        "interaction_utterance": [
            "What are the different mill types?",
            "Order by the number of mills of each type in decreasing order.",
            "What is the most common mill type?",
            "How many mills of that type are there?"
        ],
        "interaction_query": [
            "SELECT DISTINCT TYPE FROM mill",
            "SELECT TYPE FROM mill GROUP BY TYPE ORDER BY count(*) DESC",
            "SELECT TYPE FROM mill GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1",
            "SELECT TYPE ,  count(*) FROM mill GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "architecture",
        "final_query": "SELECT count(*) FROM architect WHERE id NOT IN ( SELECT architect_id FROM mill WHERE built_year  <  1850 );",
        "final_utterance": "How many architects haven't built a mill before year 1850?",
        "interaction_utterance": [
            "Count the total number of architects.",
            "How many have built a mill?",
            "How many did not build a mill before 1850?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM architect",
            "SELECT count(*) FROM architect WHERE id IN ( SELECT architect_id FROM mill )",
            "SELECT count(*) FROM architect WHERE id NOT IN ( SELECT architect_id FROM mill WHERE built_year  <  1850 )"
        ]
    },
    {
        "db_id": "school_player",
        "final_query": "SELECT LOCATION FROM school ORDER BY Enrollment ASC",
        "final_utterance": "List the locations of schools in ascending order of enrollment.",
        "interaction_utterance": [
            "What are the locations of each school ordered in the date founded, oldest first?",
            "Actually, order the result in ascending order of enrollment."
        ],
        "interaction_query": [
            "SELECT LOCATION FROM school ORDER BY Founded ASC;",
            "SELECT LOCATION FROM school ORDER BY Enrollment ASC;"
        ]
    },
    {
        "db_id": "school_player",
        "final_query": "SELECT LOCATION FROM school ORDER BY Founded DESC;",
        "final_utterance": "List the locations of schools in descending order of founded year.",
        "interaction_utterance": [
            "What are the locations of each school?",
            "Order the result in descending order of founded year."
        ],
        "interaction_query": [
            "SELECT LOCATION FROM school;",
            "SELECT LOCATION FROM school ORDER BY Founded DESC;"
        ]
    },
    {
        "db_id": "school_player",
        "final_query": "SELECT Enrollment FROM school WHERE Denomination != \"Catholic\";",
        "final_utterance": "What are the enrollments of schools whose denomination is not \"Catholic\"?",
        "interaction_utterance": [
            "What is the denomination of each school?",
            "What are the enrollments of schools whose denomination is \"Catholic\"?",
            "How about non-Catholic?"
        ],
        "interaction_query": [
            "SELECT Denomination FROM school;",
            "SELECT Enrollment FROM school WHERE Denomination = \"Catholic\";",
            "SELECT Enrollment FROM school WHERE Denomination != \"Catholic\";"
        ]
    },
    {
        "db_id": "school_player",
        "final_query": "SELECT avg(Enrollment) FROM school;",
        "final_utterance": "What is the average enrollment of schools?",
        "interaction_utterance": [
            "What is the combined total enrollment of all schools?",
            "How about the maximum enrollment?",
            "Show me the average enrollment."
        ],
        "interaction_query": [
            "SELECT sum(Enrollment) FROM school;",
            "SELECT Enrollment FROM school ORDER BY Enrollment LIMIT 1;",
            "SELECT avg(Enrollment) FROM school;"
        ]
    },
    {
        "db_id": "school_player",
        "final_query": "SELECT Team FROM player ORDER BY Team ASC;",
        "final_utterance": "What are the teams of the players, sorted in ascending alphabetical order?",
        "interaction_utterance": [
            "What are the ages of the players?",
            "Show their teams instead.",
            "Sort the result in ascending alphabetical order."
        ],
        "interaction_query": [
            "SELECT Age FROM player;",
            "SELECT Team FROM player;",
            "SELECT Team FROM player ORDER BY Team ASC;"
        ]
    },
    {
        "db_id": "school_player",
        "final_query": "SELECT Team FROM player ORDER BY Age DESC LIMIT 1;",
        "final_utterance": "Find the team of the player of the highest age.",
        "interaction_utterance": [
            "Show me all about each player.",
            "Who is the oldest among them?",
            "What's his team?"
        ],
        "interaction_query": [
            "SELECT * FROM player;",
            "SELECT Player FROM player ORDER BY Age DESC LIMIT 1;",
            "SELECT Team FROM player ORDER BY Age DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "school_player",
        "final_query": "SELECT Team FROM player ORDER BY Age DESC LIMIT 5;",
        "final_utterance": "List the teams of the players with the top 5 largest ages.",
        "interaction_utterance": [
            "How many players are there?",
            "What's their average age?",
            "List the teams of the players with the top 5 largest ages."
        ],
        "interaction_query": [
            "SELECT count(*) FROM player;",
            "SELECT avg(Age) FROM player;",
            "SELECT Team FROM player ORDER BY Age DESC LIMIT 5;"
        ]
    },
    {
        "db_id": "school_player",
        "final_query": "SELECT T1.Team ,  T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID  =  T2.School_ID;",
        "final_utterance": "For each player, show the team and the location of school they belong to.",
        "interaction_utterance": [
            "Show me the location of each school.",
            "For each player, show the location of the school they belong to.",
            "Also provide, the team name."
        ],
        "interaction_query": [
            "SELECT Location FROM school;",
            "SELECT T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID  =  T2.School_ID;",
            "SELECT T1.Team ,  T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID  =  T2.School_ID;"
        ]
    },
    {
        "db_id": "school_player",
        "final_query": "SELECT T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID  =  T2.School_ID GROUP BY T1.School_ID HAVING COUNT(*)  >  1;",
        "final_utterance": "Show the locations of schools that have more than 1 player.",
        "interaction_utterance": [
            "How many schools are there?",
            "Show me their locations.",
            "Which of them have more than 3 players?",
            "How about more than 1 player?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM school;",
            "SELECT Location FROM school;",
            "SELECT T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID  =  T2.School_ID GROUP BY T1.School_ID HAVING COUNT(*)  >  3;",
            "SELECT T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID  =  T2.School_ID GROUP BY T1.School_ID HAVING COUNT(*)  >  1;"
        ]
    },
    {
        "db_id": "school_player",
        "final_query": "SELECT T2.Denomination FROM player AS T1 JOIN school AS T2 ON T1.School_ID  =  T2.School_ID GROUP BY T1.School_ID ORDER BY COUNT(*) DESC LIMIT 1;",
        "final_utterance": "Show the denomination of the school that has the most players.",
        "interaction_utterance": [
            "Which school has the least number of players?",
            "How about with the most players?",
            "Show me the denomination of this school."
        ],
        "interaction_query": [
            "SELECT T2.School FROM player AS T1 JOIN school AS T2 ON T1.School_ID  =  T2.School_ID GROUP BY T1.School_ID ORDER BY COUNT(*) ASC LIMIT 1;",
            "SELECT T2.School FROM player AS T1 JOIN school AS T2 ON T1.School_ID  =  T2.School_ID GROUP BY T1.School_ID ORDER BY COUNT(*) DESC LIMIT 1;",
            "SELECT T2.Denomination FROM player AS T1 JOIN school AS T2 ON T1.School_ID  =  T2.School_ID GROUP BY T1.School_ID ORDER BY COUNT(*) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "school_player",
        "final_query": "SELECT T1.Location ,  T2.Nickname FROM school AS T1 JOIN school_details AS T2 ON T1.School_ID  =  T2.School_ID;",
        "final_utterance": "Show locations and nicknames of schools.",
        "interaction_utterance": [
            "Show me the school details.",
            "What's each school's color?",
            "List the location and nickname of each school."
        ],
        "interaction_query": [
            "SELECT * FROM school_details;",
            "SELECT Colors FROM school_details;",
            "SELECT T1.Location ,  T2.Nickname FROM school AS T1 JOIN school_details AS T2 ON T1.School_ID  =  T2.School_ID;"
        ]
    },
    {
        "db_id": "school_player",
        "final_query": "SELECT Denomination ,  COUNT(*) FROM school GROUP BY Denomination",
        "final_utterance": "Please show different denominations and the corresponding number of schools.",
        "interaction_utterance": [
            "Show me whether each school is a boys' or girls' school.",
            "What are the distinct school denominations?",
            "For each denomination, how many schools are there?"
        ],
        "interaction_query": [
            "SELECT Boys_or_Girls FROM school;",
            "SELECT DISTINCT(Denomination) FROM school;",
            "SELECT Denomination ,  COUNT(*) FROM school GROUP BY Denomination;"
        ]
    },
    {
        "db_id": "school_player",
        "final_query": "SELECT Denomination ,  COUNT(*) FROM school GROUP BY Denomination ORDER BY COUNT(*) DESC",
        "final_utterance": "Please show different denominations and the corresponding number of schools in descending order.",
        "interaction_utterance": [
            "How many different denominations does each school have?",
            "What are they?",
            "How many schools are there for every denomination. Show Denomination and number of schools.",
            "Show the results in descending order!"
        ],
        "interaction_query": [
            "SELECT COUNT(distinct Denomination) FROM school;",
            "SELECT distinct Denomination FROM school;",
            "SELECT Denomination ,  COUNT(*) FROM school GROUP BY Denomination",
            "SELECT Denomination ,  COUNT(*) FROM school GROUP BY Denomination ORDER BY COUNT(*) DESC;"
        ]
    },
    {
        "db_id": "school_player",
        "final_query": "SELECT School_Colors FROM school ORDER BY Enrollment DESC LIMIT 1",
        "final_utterance": "List the school color of the school that has the largest enrollment.",
        "interaction_utterance": [
            "What school has the largest enrollment?",
            "What are its school colors?"
        ],
        "interaction_query": [
            "SELECT * FROM school ORDER BY Enrollment DESC LIMIT 1",
            "SELECT School_Colors FROM school ORDER BY Enrollment DESC LIMIT 1"
        ]
    },
    {
        "db_id": "school_player",
        "final_query": "SELECT LOCATION FROM school WHERE School_ID NOT IN (SELECT School_ID FROM Player)",
        "final_utterance": "List the locations of schools that do not have any player.",
        "interaction_utterance": [
            "How many schools are there?",
            "How many don't have any players?",
            "Which ones don't have any players?",
            "Show their locations."
        ],
        "interaction_query": [
            "SELECT count(*) FROM school;",
            "SELECT count(*) FROM school WHERE School_ID NOT IN (SELECT School_ID FROM Player);",
            "SELECT * FROM school WHERE School_ID NOT IN (SELECT School_ID FROM Player);",
            "SELECT LOCATION FROM school WHERE School_ID NOT IN (SELECT School_ID FROM Player);"
        ]
    },
    {
        "db_id": "school_player",
        "final_query": "SELECT Denomination FROM school WHERE Founded  <  1890 INTERSECT SELECT Denomination FROM school WHERE Founded  >  1900;",
        "final_utterance": "Show the denomination shared by schools founded before 1890 and schools founded after 1900",
        "interaction_utterance": [
            "Show the denominations of schools.",
            "Also provide their founding year?",
            "List the denomination shared by schools founded before 1890 and schools founded after 1900."
        ],
        "interaction_query": [
            "SELECT Denomination FROM school;",
            "SELECT Denomination, Founded FROM school;",
            "SELECT Denomination FROM school WHERE Founded  <  1890 INTERSECT SELECT Denomination FROM school WHERE Founded  >  1900;"
        ]
    },
    {
        "db_id": "school_player",
        "final_query": "SELECT Nickname FROM school_details WHERE Division != \"Division 1\";",
        "final_utterance": "Show the nicknames of schools that are not in division 1.",
        "interaction_utterance": [
            "Show me the school names in division 1.",
            "How about those not in division 1?",
            "List their nicknames."
        ],
        "interaction_query": [
            "SELECT School FROM school_details AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T1.Division = \"Division 1\";",
            "SELECT School FROM school_details AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T1.Division != \"Division 1\";",
            "SELECT Nickname FROM school_details WHERE Division != \"Division 1\";"
        ]
    },
    {
        "db_id": "store_product",
        "final_query": "SELECT max_page_size FROM product GROUP BY max_page_size HAVING count(*) > 3",
        "final_utterance": "Find the list of page size which have more than 3 product listed",
        "interaction_utterance": [
            "What are the products available in the stores?",
            "What about the maximum page sizes supported by these products?",
            "Which products have a maximum page size A4?",
            "Which maximum page sizes are the maximum page size for more than 3 products?"
        ],
        "interaction_query": [
            "SELECT product FROM product",
            "SELECT product, max_page_size FROM product",
            "SELECT product FROM product WHERE max_page_size = 'A4'",
            "SELECT max_page_size FROM product GROUP BY max_page_size HAVING count(*) > 3"
        ]
    },
    {
        "db_id": "store_product",
        "final_query": "SELECT district_name FROM district WHERE city_area  >  10 OR City_Population  >  100000",
        "final_utterance": "Find the name all districts with city area greater than 10 or population larger than 100000",
        "interaction_utterance": [
            "What are the districts out there?",
            "What is the name of the headquartered city of each district?",
            "Which of these given districts have a city population larger than 100000?",
            "Also show the districts that have a city area greater than 10."
        ],
        "interaction_query": [
            "SELECT district_name FROM district",
            "SELECT district_name, Headquartered_City FROM district",
            "SELECT district_name FROM district WHERE City_Population > 100000",
            "SELECT district_name FROM district WHERE city_area  >  10 OR City_Population  >  100000"
        ]
    },
    {
        "db_id": "store_product",
        "final_query": "SELECT district_name FROM district ORDER BY city_population DESC LIMIT 1",
        "final_utterance": "Which district has the largest population?",
        "interaction_utterance": [
            "Can you give me the names of the districts.",
            "Tell me the city population of these districts.",
            "Which of these cities have an above average population?",
            "Which district has the largest city population?"
        ],
        "interaction_query": [
            "SELECT district_name FROM district",
            "SELECT district_name, City_Population FROM district",
            "SELECT district_name FROM district WHERE City_Population > (SELECT AVG(City_Population) FROM district)",
            "SELECT district_name FROM district ORDER BY city_population DESC LIMIT 1"
        ]
    },
    {
        "db_id": "store_product",
        "final_query": "SELECT district_name FROM district ORDER BY city_area ASC LIMIT 1",
        "final_utterance": "Which district has the least area?",
        "interaction_utterance": [
            "What are the districts out there?",
            "Tell me the city area of these districts.",
            "Of all these districts, which ones have a below average city area?",
            "Which of these districts has the least city area?"
        ],
        "interaction_query": [
            "SELECT District_name FROM district",
            "SELECT District_name, City_Area FROM district",
            "SELECT District_name FROM district WHERE City_Area < (SELECT AVG(City_Area) FROM district)",
            "SELECT District_name FROM district WHERE City_Area = (SELECT MIN(City_Area) FROM district)"
        ]
    },
    {
        "db_id": "store_product",
        "final_query": "SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id WHERE t3.district_name  =  \"Khanewal District\"",
        "final_utterance": "Find the names of all stores in Khanewal District.",
        "interaction_utterance": [
            "What are the names of the districts?",
            "Tell me which of these districts have stores.",
            "What are the store names of the Hafizabad District?",
            "What about the store names of the Khanewal District?"
        ],
        "interaction_query": [
            "SELECT District_name FROM district",
            "SELECT DISTINCT t1.District_name FROM district as t1 JOIN store_district AS t2 ON t1.District_ID = t2.District_ID JOIN store AS t3 ON t3.Store_ID = t2.Store_ID",
            "SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id WHERE t3.district_name  =  \"Hafizabad District\"",
            "SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id WHERE t3.district_name  =  \"Khanewal District\""
        ]
    },
    {
        "db_id": "store_product",
        "final_query": "SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id WHERE district_id  =  (SELECT district_id FROM district ORDER BY city_population DESC LIMIT 1)",
        "final_utterance": "Find all the stores in the district with the most population.",
        "interaction_utterance": [
            "What are the populations of the districts?",
            "Can you also tell me the stores in each district along with the population?",
            "Which of these stores are from the districts with above average population?",
            "What about the stores from the district with the most population?"
        ],
        "interaction_query": [
            "SELECT City_Population FROM district",
            "SELECT t3.Store_name, t1.City_Population FROM district as t1 JOIN store_district AS t2 ON t1.District_ID = t2.District_ID JOIN store AS t3 ON t3.Store_ID = t2.Store_ID",
            "SELECT t3.Store_name FROM district as t1 JOIN store_district AS t2 ON t1.District_ID = t2.District_ID JOIN store AS t3 ON t3.Store_ID = t2.Store_ID WHERE t1.City_Population > (SELECT AVG(City_Population) FROM district)",
            "SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id WHERE district_id  =  (SELECT district_id FROM district ORDER BY city_population DESC LIMIT 1)"
        ]
    },
    {
        "db_id": "store_product",
        "final_query": "SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id WHERE t1.store_name  =  \"Blackville\"",
        "final_utterance": "Which city is the headquarter of the store named \"Blackville\" in?",
        "interaction_utterance": [
            "Can you tell me about the names of all the stores?",
            "What is the type of the store \"Blackville\"?",
            "In which district is \"Blackville\" located?",
            "Which city is \"Blackville\" headquartered in?"
        ],
        "interaction_query": [
            "SELECT Store_Name FROM store",
            "SELECT Type FROM store WHERE Store_name = \"Blackville\"",
            "SELECT t1.district_name FROM district as t1 JOIN store_district AS t2 ON t1.District_ID = t2.District_ID JOIN store AS t3 ON t3.Store_ID = t2.Store_ID WHERE t3.Store_name = \"Blackville\"",
            "SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id WHERE t1.store_name  =  \"Blackville\""
        ]
    },
    {
        "db_id": "store_product",
        "final_query": "SELECT t3.headquartered_city ,  count(*) FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id GROUP BY t3.headquartered_city",
        "final_utterance": "Find the number of stores in each city.",
        "interaction_utterance": [
            "Show me the names of all the cities.",
            "How about the names of all the stores?",
            "Which cities have these stores?",
            "What is the number of stores for each of these cities?"
        ],
        "interaction_query": [
            "SELECT headquartered_city FROM district",
            "SELECT Store_Name FROM store",
            "SELECT DISTINCT t1.headquartered_city FROM district as t1 JOIN store_district AS t2 ON t1.District_ID = t2.District_ID JOIN store AS t3 ON t3.Store_ID = t2.Store_ID",
            "SELECT t3.headquartered_city ,  count(*) FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id GROUP BY t3.headquartered_city"
        ]
    },
    {
        "db_id": "store_product",
        "final_query": "SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id GROUP BY t3.headquartered_city ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the city with the most number of stores.",
        "interaction_utterance": [
            "Tell me all the cities and their respective stores.",
            "How many stores are there for each city?",
            "Which city has the least number of stores?",
            "What about the one with the most?"
        ],
        "interaction_query": [
            "SELECT t1.headquartered_city, t3.store_name FROM district as t1 JOIN store_district AS t2 ON t1.District_ID = t2.District_ID JOIN store AS t3 ON t3.Store_ID = t2.Store_ID",
            "SELECT t1.headquartered_city, count(*) FROM district as t1 JOIN store_district AS t2 ON t1.District_ID = t2.District_ID JOIN store AS t3 ON t3.Store_ID = t2.Store_ID GROUP BY t1.headquartered_city",
            "SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id GROUP BY t3.headquartered_city ORDER BY count(*) ASC LIMIT 1",
            "SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id GROUP BY t3.headquartered_city ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "store_product",
        "final_query": "SELECT t1.product FROM product AS t1 JOIN store_product AS t2 ON t1.product_id  =  t2.product_id JOIN store AS t3 ON t2.store_id  =  t3.store_id WHERE t3.store_name  =  \"Miramichi\"",
        "final_utterance": "What products are available at store named \"Miramichi\"?",
        "interaction_utterance": [
            "Can you list all the stores?",
            "Which ones have products?",
            "What products do they sell?",
            "Out of those products, which ones are available at \"Miramichi\"?"
        ],
        "interaction_query": [
            "SELECT store_name FROM store",
            "SELECT DISTINCT t1.store_name FROM store AS t1 JOIN store_product AS t2 ON t1.Store_ID = t2.Store_ID JOIN product AS t3 ON t2.Product_ID = t3.Product_ID",
            "SELECT t3.product FROM store AS t1 JOIN store_product AS t2 ON t1.Store_ID = t2.Store_ID JOIN product AS t3 ON t2.Product_ID = t3.Product_ID",
            "SELECT t1.product FROM product AS t1 JOIN store_product AS t2 ON t1.product_id  =  t2.product_id JOIN store AS t3 ON t2.store_id  =  t3.store_id WHERE t3.store_name  =  \"Miramichi\""
        ]
    },
    {
        "db_id": "store_product",
        "final_query": "SELECT product FROM product WHERE max_page_size  =  \"A4\" AND pages_per_minute_color  <  5",
        "final_utterance": "Find products with max page size as \"A4\" and pages per minute color smaller than 5.",
        "interaction_utterance": [
            "What are the products out there?",
            "Tell me the page per minute color of these products.",
            "Which of these have a pages per minute color smaller than 5?",
            "Which of these listed products also have a max page size \"A4\"?"
        ],
        "interaction_query": [
            "SELECT product FROM product",
            "SELECT product, pages_per_minute_color FROM product",
            "SELECT product FROM product WHERE pages_per_minute_color < 5",
            "SELECT product FROM product WHERE max_page_size  =  \"A4\" AND pages_per_minute_color  <  5"
        ]
    },
    {
        "db_id": "store_product",
        "final_query": "SELECT product FROM product WHERE max_page_size  =  \"A4\" OR pages_per_minute_color  <  5",
        "final_utterance": "Find products with max page size as \"A4\" or pages per minute color smaller than 5.",
        "interaction_utterance": [
            "Give me the list of the products.",
            "Tell me the max page size of these products.",
            "Which of these have a max page size of \"A4\"?",
            "Also include those that have a pages per minute color smaller than 5."
        ],
        "interaction_query": [
            "SELECT product FROM product",
            "SELECT product, max_page_size FROM product",
            "SELECT product FROM product WHERE max_page_size = \"A4\"",
            "SELECT product FROM product WHERE max_page_size  =  \"A4\" OR pages_per_minute_color  <  5"
        ]
    },
    {
        "db_id": "store_product",
        "final_query": "SELECT product FROM product WHERE product LIKE \"%Scanner%\"",
        "final_utterance": "Find all the product whose name contains the word \"Scanner\".",
        "interaction_utterance": [
            "List the available products.",
            "Which of these products contains the word word \"Canon\"?",
            "How about the word \"Fujitsu\"?",
            "How about the word \"Scanner\"?"
        ],
        "interaction_query": [
            "SELECT product FROM product",
            "SELECT product FROM product WHERE product LIKE \"%Canon%\"",
            "SELECT product FROM product WHERE product LIKE \"%Fujitsu%\"",
            "SELECT product FROM product WHERE product LIKE \"%Scanner%\""
        ]
    },
    {
        "db_id": "store_product",
        "final_query": "SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the most prominent max page size among all the products.",
        "interaction_utterance": [
            "Tell me all the max page sizes available.",
            "Give me the names of all products.",
            "What are the corresponding max page sizes of these products?",
            "Which max page sizes are the most prominent?"
        ],
        "interaction_query": [
            "SELECT DISTINCT max_page_size FROM product",
            "SELECT product FROM product",
            "SELECT product, max_page_size FROM product",
            "SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "store_product",
        "final_query": "SELECT product FROM product WHERE max_page_size != (SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1)",
        "final_utterance": "Find the name of the products that are not using the most frequently-used max page size.",
        "interaction_utterance": [
            "Can you show me all the products?",
            "Give me the max page sizes for each of these products.",
            "Which of these max page sizes is most frequently used?",
            "Which products do not use this max page size?"
        ],
        "interaction_query": [
            "SELECT product FROM product",
            "SELECT product, max_page_size FROM product",
            "SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*)  DESC LIMIT 1",
            "SELECT product FROM product WHERE max_page_size != (SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1)"
        ]
    },
    {
        "db_id": "store_product",
        "final_query": "SELECT sum(city_population) FROM district WHERE city_area  >  (SELECT avg(city_area) FROM district)",
        "final_utterance": "Find the total population of the districts where the area is bigger than the average city area.",
        "interaction_utterance": [
            "Show me all the districts.",
            "What is the average city area of these districts?",
            "Which districts have a higher than average city area?",
            "What is the total population of these districts?"
        ],
        "interaction_query": [
            "SELECT district_name FROM district",
            "SELECT avg(city_area) FROM district",
            "SELECT district_name FROM district WHERE city_area > (SELECT avg(city_area) FROM district)",
            "SELECT sum(city_population) FROM district WHERE city_area  >  (SELECT avg(city_area) FROM district)"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT count(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T1.name  =  'Dan'",
        "final_utterance": "How many friends does Dan have?",
        "interaction_utterance": [
            "How old is Dan?",
            "What city is she from?",
            "Show all friends of Dan.",
            "How many friends is this?"
        ],
        "interaction_query": [
            "SELECT age FROM person WHERE name = 'Dan'",
            "SELECT city FROM person WHERE name = 'Dan'",
            "SELECT * FROM personfriend WHERE name = 'Dan'",
            "SELECT count(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T1.name  =  'Dan'"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT name FROM Person WHERE age  =  (SELECT max(age) FROM person)",
        "final_utterance": "Who is the oldest person?",
        "interaction_utterance": [
            "Show all ages of people.",
            "What is the average?",
            "What is the maximum?",
            "What is the name of the person with this age?"
        ],
        "interaction_query": [
            "SELECT age FROM person",
            "SELECT avg(age) FROM person",
            "SELECT max(age) FROM person",
            "SELECT name FROM person WHERE age = (SELECT max(age) FROM person)"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT name FROM Person WHERE job  =  'student' AND age  =  (SELECT max(age) FROM person WHERE job  =  'student' )",
        "final_utterance": "Who is the oldest person whose job is student?",
        "interaction_utterance": [
            "How many distinct jobs do the people have?",
            "What are these jobs?",
            "List the names of all students.",
            "What is the maximum age of students?",
            "Print the name of the student with this age."
        ],
        "interaction_query": [
            "SELECT count(DISTINCT job) FROM person",
            "SELECT DISTINCT job FROM person",
            "SELECT name FROM person WHERE job = 'student'",
            "SELECT max(age) FROM person WHERE job = 'student'",
            "SELECT name FROM Person WHERE job  =  'student' AND age  =  (SELECT max(age) FROM person WHERE job  =  'student' )"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT name FROM Person WHERE gender  =  'male' AND age  =  (SELECT min(age) FROM person WHERE gender  =  'male' )",
        "final_utterance": "Who is the youngest male?",
        "interaction_utterance": [
            "List all female names.",
            "How about males?",
            "What are the maximum ages for each gender?",
            "Who is the youngest male?"
        ],
        "interaction_query": [
            "SELECT name FROM person WHERE gender = 'female'",
            "SELECT name FROM person WHERE gender = 'male'",
            "SELECT gender, max(age) FROM person GROUP BY gender",
            "SELECT name FROM Person WHERE gender  =  'male' AND age  =  (SELECT min(age) FROM person WHERE gender  =  'male' )"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT age FROM Person WHERE job  =  'doctor' AND name  =  'Zach'",
        "final_utterance": "How old is the doctor named Zach?",
        "interaction_utterance": [
            "What is the last name alphabetically?",
            "What is the occupation for Zach?",
            "How old is the doctor named Zach?"
        ],
        "interaction_query": [
            "SELECT name FROM person ORDER BY name DESC LIMIT 1",
            "SELECT job FROM person WHERE name = 'Zach'",
            "SELECT age FROM Person WHERE job  =  'doctor' AND name  =  'Zach'"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT count(*) FROM Person WHERE age  >  30 AND job  =  'engineer'",
        "final_utterance": "How many people whose age is greater 30 and job is engineer?",
        "interaction_utterance": [
            "How many people are older than 20?",
            "How about 30?",
            "How many engineers are there?",
            "How many people are both engineers and are over 30 years old?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM person WHERE age > 20",
            "SELECT count(*) FROM person WHERE age > 30",
            "SELECT count(*) FROM person WHERE job = 'engineer'",
            "SELECT count(*) FROM Person WHERE age  >  30 AND job  =  'engineer'"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT avg(age) ,  job FROM Person WHERE gender  =  'male' GROUP BY job",
        "final_utterance": "What is average age of male for different job title?",
        "interaction_utterance": [
            "What is the sum of ages for men?",
            "What about the average?",
            "What is the average for each job?"
        ],
        "interaction_query": [
            "SELECT sum(age) FROM person WHERE gender = 'male'",
            "SELECT avg(age) FROM person WHERE gender = 'male'",
            "SELECT avg(age) FROM person WHERE gender = 'male' GROUP BY job"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT count(*) ,  gender FROM Person WHERE age  <  40 GROUP BY gender",
        "final_utterance": "Find the number of people who is under 40 for each gender.",
        "interaction_utterance": [
            "How many different people are over 40?",
            "How about under?",
            "How many are male?",
            "What is the count under 40 for each gender?"
        ],
        "interaction_query": [
            "SELECT count(DISTINCT name) FROM person WHERE age > 40",
            "SELECT count(DISTINCT name) FROM person WHERE age < 40",
            "SELECT count(DISTINCT name) FROM person WHERE age < 40 AND gender = 'male'",
            "SELECT count(*) ,  gender FROM Person WHERE age < 40 GROUP BY gender"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT name FROM Person WHERE age  >  (SELECT min(age) FROM person WHERE job  =  'engineer') ORDER BY age",
        "final_utterance": "Find the name of people whose age is greater than any engineer sorted by their age.",
        "interaction_utterance": [
            "What is the minimum age of engineers?",
            "List all information for people older than this.",
            "Just show their name.",
            "Sort this group in order of ascending age."
        ],
        "interaction_query": [
            "SELECT min(age) FROM person WHERE job = 'engineer'",
            "SELECT * FROM person WHERE age > (SELECT min(age) FROM person WHERE job = 'engineer')",
            "SELECT name FROM person WHERE age > (SELECT min(age) FROM person WHERE job = 'engineer')",
            "SELECT name FROM Person WHERE age  >  (SELECT min(age) FROM person WHERE job  =  'engineer') ORDER BY age"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT count(*) FROM Person WHERE age  >  (SELECT max(age) FROM person WHERE job  =  'engineer')",
        "final_utterance": "Find the number of people whose age is greater than all engineers.",
        "interaction_utterance": [
            "What is the maximum age of engineers?",
            "List all information for people older than this.",
            "Where are they all from?",
            "How many are there in total?"
        ],
        "interaction_query": [
            "SELECT max(age) FROM person WHERE job = 'engineer'",
            "SELECT * FROM person WHERE age > (SELECT min(age) FROM person WHERE job = 'engineer')",
            "SELECT city FROM person WHERE age > (SELECT min(age) FROM person WHERE job = 'engineer')",
            "SELECT count(*) FROM person WHERE age > (SELECT max(age) FROM person WHERE job = 'engineer')"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT name, age FROM Person WHERE gender  =  'male' ORDER BY age",
        "final_utterance": "Find the name and age of all males in order of their age.",
        "interaction_utterance": [
            "Show all names of the men.",
            "Order them by descending age.",
            "Reverse the oder.",
            "Also show the ages."
        ],
        "interaction_query": [
            "SELECT name FROM person WHERE gender = 'male'",
            "SELECT name FROM person WHERE gender = 'male' ORDER BY age DESC",
            "SELECT name FROM person WHERE gender = 'male' ORDER BY age",
            "SELECT name, age FROM person WHERE gender = 'male' ORDER BY age"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Dan' INTERSECT SELECT T1.name ,   T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Alice'",
        "final_utterance": "Find the name and age of the person who is a friend of both Dan and Alice.",
        "interaction_utterance": [
            "Show name and age of the people who are friends with Dan.",
            "How about the friends of Alice?",
            "Show the union of the sets.",
            "How about the intersections?"
        ],
        "interaction_query": [
            "SELECT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Dan'",
            "SELECT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Alice'",
            "SELECT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Dan' UNION SELECT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Alice'",
            "SELECT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Dan' INTERSECT SELECT T1.name ,   T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Alice'"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT DISTINCT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Dan' OR T2.friend  =  'Alice'",
        "final_utterance": "Find the name and age of the person who is a friend of Dan or Alice.",
        "interaction_utterance": [
            "How many people are friends with Dan?",
            "How about for Alice?",
            "Show the name and age of poeple who are friends with either."
        ],
        "interaction_query": [
            "SELECT count(*) FROM personfriend WHERE friend = 'Dan'",
            "SELECT count(*) FROM personfriend WHERE friend = 'Alice'",
            "SELECT DISTINCT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Dan' OR T2.friend  =  'Alice'"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  >  40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  <  30)",
        "final_utterance": "Find the name of the person who has friends with age above 40 and under age 30?",
        "interaction_utterance": [
            "Show how many friends each person in the set has.",
            "Who has the most friends?",
            "Who is friends with someone who is above 40?",
            "Who among them is also friends with someone who is under 30?"
        ],
        "interaction_query": [
            "SELECT name, count(*) FROM personfriend GROUP BY name",
            "SELECT name FROM personfriend GROUP BY name ORDER BY count(*) DESC LIMIT 1",
            "SELECT t1.name FROM person AS t1 JOIN personfriend as t2 ON t1.name = t2.name WHERE t2.friend in (SELECT name FROM person WHERE age > 40)",
            "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  >  40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  <  30)"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  >  40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  <  30)",
        "final_utterance": "Find the name of the person who has friends with age above 40 but not under age 30?",
        "interaction_utterance": [
            "Who has exactly 1 friend?",
            "What about more than 1?",
            "Who has a friend who is at least 40 years old?",
            "Who among them do not also have a friend under 30?"
        ],
        "interaction_query": [
            "SELECT name FROM personfriend GROUP BY name HAVING count(*) = 1",
            "SELECT name FROM personfriend GROUP BY name HAVING count(*) > 1",
            "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  >  40)",
            "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  >  40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  <  30)"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.job  =  'student'",
        "final_utterance": "Find the name of the person who has no student friends.",
        "interaction_utterance": [
            "Show all student names.",
            "How many are there?",
            "Show all people friends with students.",
            "Show all people except these."
        ],
        "interaction_query": [
            "SELECT name FROM person WHERE job = 'student'",
            "SELECT count(*) FROM person WHERE job = 'student'",
            "SELECT t2.name FROM person AS t1 JOIN personfriend AS t2 ON t1.name = t2.friend WHERE t1.name = 'student'",
            "SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.job  =  'student'"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT name FROM PersonFriend GROUP BY name HAVING count(*)  =  1",
        "final_utterance": "Find the person who has exactly one friend.",
        "interaction_utterance": [
            "Who has the longest-running friend?",
            "Who has more than 1 friend?",
            "Who has no friends?",
            "Who has exactly 1?"
        ],
        "interaction_query": [
            "SELECT name FROM personfriend ORDER BY year DESC LIMIT 1",
            "SELECT name FROM personfriend GROUP BY name HAVING count(*) > 1",
            "SELECT name FROM person WHERE name NOT IN (SELECT name from personfriend)",
            "SELECT name FROM PersonFriend GROUP BY name HAVING count(*)  =  1"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT friend FROM PersonFriend WHERE name  =  'Bob'",
        "final_utterance": "Who are the friends of Bob?",
        "interaction_utterance": [
            "How many people does Bob consider a friend?",
            "How long have they been friends?",
            "Only show the name."
        ],
        "interaction_query": [
            "SELECT count(*) FROM personfriend WHERE name = 'Bob'",
            "SELECT friend, year FROM personfriend WHERE name = 'Bob'",
            "SELECT friend FROM PersonFriend WHERE name  =  'Bob'"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT name FROM PersonFriend WHERE friend  =  'Bob'",
        "final_utterance": "Find the name of persons who are friends with Bob.",
        "interaction_utterance": [
            "How many friendships are there?",
            "How many distinct people consider Bob to be their friend?",
            "Who has considered him a friend for the shortest amount of time?",
            "Show the names of everyone who thinks he is their friend."
        ],
        "interaction_query": [
            "SELECT count(*) FROM personfriend",
            "SELECT count(DISTINCT name) FROM personfriend WHERE friend = 'Bob'",
            "SELECT name FROM personfriend WHERE friend = 'Bob' ORDER BY year",
            "SELECT name FROM PersonFriend WHERE friend  =  'Bob'"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Zach' AND T1.gender  =  'female'",
        "final_utterance": "Find the names of females who are friends with Zach",
        "interaction_utterance": [
            "Who does Zach consider to be his friend?",
            "How about the other way around?",
            "Find the names of those among them who are male.",
            "And female?"
        ],
        "interaction_query": [
            "SELECT friend FROM personfriend WHERE name = 'Zach'",
            "SELECT name FROM personfriend WHERE friend = 'Zach'",
            "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Zach' AND T1.gender  =  'male'",
            "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Zach' AND T1.gender  =  'female'"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name  =  'Alice' AND T1.gender  =  'female'",
        "final_utterance": "Find the female friends of Alice.",
        "interaction_utterance": [
            "Who considers Alice to be their friend?",
            "How about the other way around?",
            "Find the names of those among them who are male.",
            "And female?"
        ],
        "interaction_query": [
            "SELECT name FROM personfriend WHERE friend = 'Alice'",
            "SELECT friend FROM personfriend WHERE name = 'Alice'",
            "SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name  =  'Alice' AND T1.gender  =  'male'",
            "SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name  =  'Alice' AND T1.gender  =  'female'"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name  =  'Alice' AND T1.gender  =  'male' AND T1.job  =  'doctor'",
        "final_utterance": "Find the male friend of Alice whose job is a doctor?",
        "interaction_utterance": [
            "How many people are a friend of Alice?",
            "How many people are not a friend of Alice?",
            "Who among the friends of Alice is male?",
            "Only show those who are also a doctor?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM personfriend WHERE name = 'Alice'",
            "SELECT count(*) FROM person WHERE name NOT IN (SELECT friend FROM personfriend WHERE name = 'Alice')",
            "SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name  =  'Alice' AND T1.gender  =  'male'",
            "SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name  =  'Alice' AND T1.gender  =  'male' AND T1.job  =  'doctor'"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.city  =  'new york city'",
        "final_utterance": "Who has a friend that is from new york city?",
        "interaction_utterance": [
            "Who is from Chicago?",
            "How about New York City?",
            "How many are there?",
            "Who is friends with these people?"
        ],
        "interaction_query": [
            "SELECT name FROM person WHERE city = 'chicago'",
            "SELECT name FROM person WHERE city = 'new york city'",
            "SELECT count(*) FROM person WHERE city = 'new york city'",
            "SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.city  =  'new york city'"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT DISTINCT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.age  <  (SELECT avg(age) FROM person)",
        "final_utterance": "Who has friends that are younger than the average age?",
        "interaction_utterance": [
            "What is the minimum age?",
            "Who has it?",
            "What is the average age?",
            "Who is younger than this?",
            "Who calls these people friends?"
        ],
        "interaction_query": [
            "SELECT min(age) FROM person",
            "SELECT name FROM person WHERE age = (SELECT min(age) FROM person)",
            "SELECT avg(age) FROM person",
            "SELECT name FROM person WHERE age < (SELECT avg(age) FROM person)",
            "SELECT DISTINCT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.age  <  (SELECT avg(age) FROM person)"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT DISTINCT T2.name ,  T2.friend ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.age  >  (SELECT avg(age) FROM person)",
        "final_utterance": "Who has friends that are older than the average age? Print their friends and their ages as well",
        "interaction_utterance": [
            "How many people are there?",
            "How many are younger than the average age?",
            "What about older?",
            "Who is friends with these people? Show their names and ages."
        ],
        "interaction_query": [
            "SELECT count(*) FROM person",
            "SELECT count(*) FROM person WHERE age < (SELECT avg(age) FROM person)",
            "SELECT count(*) FROM person WHERE age > (SELECT avg(age) FROM person)",
            "SELECT DISTINCT T2.name ,  T2.friend ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.age  >  (SELECT avg(age) FROM person)"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT friend FROM PersonFriend WHERE name =  'Zach' AND YEAR  =  (SELECT max(YEAR) FROM PersonFriend WHERE name =  'Zach')",
        "final_utterance": "Who is the friend of Zach with longest year relationship?",
        "interaction_utterance": [
            "How many people is Zach friends with?",
            "Who are they?",
            "Also show how long they have been freinds.",
            "Show the name of the person who has been freinds with him the longest."
        ],
        "interaction_query": [
            "SELECT count(*) FROM personfriend WHERE name = 'Zach'",
            "SELECT name FROM personfriend WHERE name = 'Zach'",
            "SELECT name, year FROM personfriend WHERE name = 'Zach'",
            "SELECT friend FROM PersonFriend WHERE name =  'Zach' AND YEAR  =  (SELECT max(YEAR) FROM PersonFriend WHERE name =  'Zach')"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name =  'Zach' AND T2.year  =  (SELECT max(YEAR) FROM PersonFriend WHERE name =  'Zach')",
        "final_utterance": "What is the age of the friend of Zach with longest year relationship?",
        "interaction_utterance": [
            "Who has the shortest relationship among the people Zach is friends with?",
            "How about the longest?",
            "Also show how long have they been freinds.",
            "How old are they?"
        ],
        "interaction_query": [
            "SELECT name FROM personfriend WHERE name = 'Zach' ORDER BY year LIMIT 1",
            "SELECT name FROM personfriend WHERE name = 'Zach' ORDER BY year DESC LIMIT 1",
            "SELECT name, year FROM personfriend WHERE name = 'Zach' ORDER BY year DESC LIMIT 1",
            "SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name =  'Zach' AND T2.year  =  (SELECT max(YEAR) FROM PersonFriend WHERE name =  'Zach')"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT name FROM PersonFriend WHERE friend =  'Alice' AND YEAR  =  (SELECT min(YEAR) FROM PersonFriend WHERE friend =  'Alice')",
        "final_utterance": "Find the name of persons who are friends with Alice for the shortest years.",
        "interaction_utterance": [
            "What is the length of the shortest friendship?",
            "WHat is the minimum among friendships with Alice?",
            "What is the name of the person who has held this friendship?"
        ],
        "interaction_query": [
            "SELECT min(year) FROM personfriend",
            "SELECT min(year) FROM personfriend WHERE friend = 'Alice'",
            "SELECT name FROM PersonFriend WHERE friend =  'Alice' AND YEAR  =  (SELECT min(YEAR) FROM PersonFriend WHERE friend =  'Alice')"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT T1.name ,  T1.age ,  T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend =  'Alice' AND T2.year  =  (SELECT max(YEAR) FROM PersonFriend WHERE friend =  'Alice')",
        "final_utterance": "Find the name, age, and job title of persons who are friends with Alice for the longest years.",
        "interaction_utterance": [
            "What is the maximum length of friendships with Alice?",
            "Who holds a relationship of that length?",
            "Also show age and job title."
        ],
        "interaction_query": [
            "SELECT max(year) FROM personfriend WHERE friend = 'Alice'",
            "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend =  'Alice' AND T2.year  =  (SELECT max(YEAR) FROM PersonFriend WHERE friend =  'Alice')",
            "SELECT T1.name ,  T1.age ,  T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend =  'Alice' AND T2.year  =  (SELECT max(YEAR) FROM PersonFriend WHERE friend =  'Alice')"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT name FROM person EXCEPT SELECT name FROM PersonFriend",
        "final_utterance": "Who is the person that has no friend?",
        "interaction_utterance": [
            "How many people are there in total?",
            "How many people are in the friendship database?",
            "Who is not in it?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM person",
            "SELECT count(DISTINCT name) FROM personfriend",
            "SELECT name FROM person EXCEPT SELECT name FROM personfriend"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT T2.name ,  avg(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend GROUP BY T2.name ORDER BY avg(T1.age) DESC LIMIT 1",
        "final_utterance": "Which person whose friends have the oldest average age?",
        "interaction_utterance": [
            "What is the average age of all people?",
            "What is the average age of the friends?",
            "Show the average friend age for each person.",
            "Who has the highest?"
        ],
        "interaction_query": [
            "SELECT avg(age) FROM person",
            "SELECT avg(t1.age) FROM person AS t1 JOIN personfriend AS t2 ON t1.name = t2.friend",
            "SELECT T2.name ,  avg(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend GROUP BY T2.name",
            "SELECT T2.name ,  avg(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend GROUP BY T2.name ORDER BY avg(T1.age) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "network_2",
        "final_query": "SELECT count(DISTINCT name) FROM PersonFriend WHERE friend NOT IN (SELECT name FROM person WHERE city  =  'Austin')",
        "final_utterance": "What is the total number of people who has no friend living in the city of Austin.",
        "interaction_utterance": [
            "Show all cities alphabetically.",
            "How many people live in Austin?",
            "Who is friends with them?",
            "How many people are not friends with them?"
        ],
        "interaction_query": [
            "SELECT city FROM person ORDER BY city",
            "SELECT count(*) FROM person WHERE city = 'austin'",
            "SELECT name FROM personfriend WHERE friend IN (SELECT name FROM person WHERE city = 'austin')",
            "SELECT count(DISTINCT name) FROM PersonFriend WHERE friend NOT IN (SELECT name FROM person WHERE city  =  'Austin')"
        ]
    },
    {
        "db_id": "browser_web",
        "final_query": "SELECT max(market_share) ,  min(market_share) ,  avg(market_share) FROM browser",
        "final_utterance": "What is the maximum, minimum and average market share of the listed browsers?",
        "interaction_utterance": [
            "What are the names and market shares of browsers?",
            "What is the name of the browser with the maximum market share?",
            "What is the maximum, minimum and average market share of the listed browsers?"
        ],
        "interaction_query": [
            "SELECT name, market_share from browser",
            "SELECT name from browser ORDER by market_share DESC LIMIT 1",
            "SELECT max(market_share) ,  min(market_share) ,  avg(market_share) FROM browser"
        ]
    },
    {
        "db_id": "browser_web",
        "final_query": "SELECT T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id  =  T2.browser_id JOIN web_client_accelerator AS T3 ON T2.accelerator_id  =  T3.id WHERE T3.name  =  'CProxy' AND T2.compatible_since_year  >  1998",
        "final_utterance": "What is the name of the browser that became compatible with the accelerator 'CProxy' after year 1998 ?",
        "interaction_utterance": [
            "Which browsers are compatible with CProxy?",
            "Which of those became compatible after year 1998?"
        ],
        "interaction_query": [
            "SELECT T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id  =  T2.browser_id JOIN web_client_accelerator AS T3 ON T2.accelerator_id  =  T3.id WHERE T3.name  =  'CProxy'",
            "SELECT T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id  =  T2.browser_id JOIN web_client_accelerator AS T3 ON T2.accelerator_id  =  T3.id WHERE T3.name  =  'CProxy' AND T2.compatible_since_year  >  1998"
        ]
    },
    {
        "db_id": "browser_web",
        "final_query": "SELECT T1.id ,  T1.Name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id  =  T1.id GROUP BY T1.id HAVING count(*)  >=  2",
        "final_utterance": "What are the ids and names of the web accelerators that are compatible with two or more browsers?",
        "interaction_utterance": [
            "Which accelerators are compatible with at least one browser?",
            "Which are compatible with none?",
            "What are the ids and names of the web accelerators that are compatible with two or more browsers?"
        ],
        "interaction_query": [
            "SELECT name from web_client_accelerator where id in (SELECT accelerator_id from accelerator_compatible_browser)",
            "SELECT name from web_client_accelerator where id not in (SELECT accelerator_id from accelerator_compatible_browser)",
            "SELECT T1.id ,  T1.Name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id  =  T1.id GROUP BY T1.id HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "browser_web",
        "final_query": "SELECT T1.id ,  T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id  =  T2.browser_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the id and name of the browser that is compatible with the most web accelerators?",
        "interaction_utterance": [
            "Which browsers are compatible with some accelerator(s)?",
            "Which is compatible with the most?"
        ],
        "interaction_query": [
            "SELECT name from browser where id in (SELECT browser_id from accelerator_compatible_browser)",
            "SELECT T1.id ,  T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id  =  T2.browser_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "browser_web",
        "final_query": "SELECT T1.compatible_since_year FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id  =  T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id  =  T3.id WHERE T3.name  =  'CACHEbox' AND T2.name  =  'Internet Explorer'",
        "final_utterance": "When did the web accelerator 'CACHEbox' and browser 'Internet Explorer' become compatible?",
        "interaction_utterance": [
            "How many times did CACHEbox and Internet Explorer become compatible?",
            "What year did they become compatible?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id  =  T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id  =  T3.id WHERE T3.name  =  'CACHEbox' AND T2.name  =  'Internet Explorer'",
            "SELECT T1.compatible_since_year FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id  =  T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id  =  T3.id WHERE T3.name  =  'CACHEbox' AND T2.name  =  'Internet Explorer'"
        ]
    },
    {
        "db_id": "browser_web",
        "final_query": "SELECT count(*) FROM web_client_accelerator WHERE id NOT IN ( SELECT accelerator_id FROM accelerator_compatible_browser );",
        "final_utterance": "How many accelerators are not compatible with the browsers listed ?",
        "interaction_utterance": [
            "Which accelerator ids are not compatible with any browsers?",
            "Count those."
        ],
        "interaction_query": [
            "SELECT id FROM web_client_accelerator WHERE id NOT IN ( SELECT accelerator_id FROM accelerator_compatible_browser );",
            "SELECT count(*) FROM web_client_accelerator WHERE id NOT IN ( SELECT accelerator_id FROM accelerator_compatible_browser );"
        ]
    },
    {
        "db_id": "browser_web",
        "final_query": "SELECT DISTINCT T1.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id  =  T1.id JOIN browser AS T3 ON T2.browser_id  =  T3.id WHERE T3.market_share  >  15;",
        "final_utterance": "What distinct accelerator names are compatible with the browswers that have market share higher than 15?",
        "interaction_utterance": [
            "Which browsers have market share greater than 15?",
            "Which of those are compatible with some accelerator?",
            "What distinct accelerator names are compatible with the browswers that have market share higher than 15?"
        ],
        "interaction_query": [
            "SELECT name from browser where market_share > 15",
            "SELECT name from browser where market_share > 15 AND id in (SELECT browser_id from accelerator_compatible_browser)",
            "SELECT DISTINCT T1.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id  =  T1.id JOIN browser AS T3 ON T2.browser_id  =  T3.id WHERE T3.market_share  >  15;"
        ]
    },
    {
        "db_id": "browser_web",
        "final_query": "SELECT T3.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id  =  T1.id JOIN browser AS T3 ON T2.browser_id  =  T3.id WHERE T1.name  =  'CACHEbox' INTERSECT SELECT T3.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id  =  T1.id JOIN browser AS T3 ON T2.browser_id  =  T3.id WHERE T1.name  =  'Fasterfox'",
        "final_utterance": "List the names of the browser that are compatible with both 'CACHEbox' and 'Fasterfox'.",
        "interaction_utterance": [
            "Which browser ids are compatible with CACHEbox?",
            "Name those browsers.",
            "Intersect that with those compatible with Fasterfox."
        ],
        "interaction_query": [
            "SELECT T1.id FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id  =  T1.id WHERE T1.name  =  'CACHEbox'",
            "SELECT T3.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id  =  T1.id JOIN browser AS T3 ON T2.browser_id  =  T3.id WHERE T1.name  =  'CACHEbox'",
            "SELECT T3.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id  =  T1.id JOIN browser AS T3 ON T2.browser_id  =  T3.id WHERE T1.name  =  'CACHEbox' INTERSECT SELECT T3.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id  =  T1.id JOIN browser AS T3 ON T2.browser_id  =  T3.id WHERE T1.name  =  'Fasterfox'"
        ]
    },
    {
        "db_id": "browser_web",
        "final_query": "SELECT name ,  operating_system FROM web_client_accelerator EXCEPT SELECT T1.name ,  T1.operating_system FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id  =  T1.id JOIN browser AS T3 ON T2.browser_id  =  T3.id WHERE T3.name  =  'Opera'",
        "final_utterance": "Show the accelerator names and supporting operating systems that are not compatible with the browser named 'Opera'.",
        "interaction_utterance": [
            "Which accelerator ids are not compatible with Opera?",
            "For these, show the names and supporting operating systems."
        ],
        "interaction_query": [
            "SELECT id from web_client_accelerator where id not in (SELECT t1.accelerator_id from accelerator_compatible_browser as t1 join browser as t2 on t1.browser_id = t2.id where t2.name = 'Opera')",
            "SELECT name ,  operating_system FROM web_client_accelerator EXCEPT SELECT T1.name ,  T1.operating_system FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id  =  T1.id JOIN browser AS T3 ON T2.browser_id  =  T3.id WHERE T3.name  =  'Opera'"
        ]
    },
    {
        "db_id": "browser_web",
        "final_query": "SELECT name FROM web_client_accelerator WHERE name LIKE \"%Opera%\"",
        "final_utterance": "Which accelerator name contains substring \"Opera\"?",
        "interaction_utterance": [
            "Which accelerator name contains substring \"Free\"?",
            "How about \"Opera\""
        ],
        "interaction_query": [
            "SELECT name FROM web_client_accelerator WHERE name LIKE \"%Free%\"",
            "SELECT name FROM web_client_accelerator WHERE name LIKE \"%Opera%\""
        ]
    },
    {
        "db_id": "roller_coaster",
        "final_query": "SELECT Status FROM roller_coaster WHERE LENGTH  >  3300 OR Height  >  100",
        "final_utterance": "Show the statuses of roller coasters longer than 3300 or higher than 100.",
        "interaction_utterance": [
            "What are the status of all the roller coasters?",
            "Give me the status of those longer than 3300.",
            "Also show those higher than 100."
        ],
        "interaction_query": [
            "SELECT Status FROM roller_coaster",
            "SELECT Status FROM roller_coaster WHERE LENGTH  >  3300",
            "SELECT Status FROM roller_coaster WHERE LENGTH  >  3300 OR Height  >  100"
        ]
    },
    {
        "db_id": "roller_coaster",
        "final_query": "SELECT Speed FROM roller_coaster ORDER BY LENGTH DESC LIMIT 1",
        "final_utterance": "What is the speed of the longest roller coaster?",
        "interaction_utterance": [
            "What are name of all the roller coasters?",
            "Which of them is the longest?",
            "Give me its speed."
        ],
        "interaction_query": [
            "SELECT name FROM Roller_coaster",
            "SELECT name FROM roller_coaster ORDER BY LENGTH DESC LIMIT 1",
            "SELECT Speed FROM roller_coaster ORDER BY LENGTH DESC LIMIT 1"
        ]
    },
    {
        "db_id": "roller_coaster",
        "final_query": "SELECT Status FROM roller_coaster GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Please show the most common status of roller coasters.",
        "interaction_utterance": [
            "What are name of all the roller coasters?",
            "Give me their status.",
            "What is the most common status?"
        ],
        "interaction_query": [
            "SELECT name FROM Roller_coaster",
            "SELECT name,status FROM Roller_coaster",
            "SELECT Status FROM roller_coaster GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "roller_coaster",
        "final_query": "SELECT Status FROM roller_coaster GROUP BY Status HAVING COUNT(*)  >  2",
        "final_utterance": "List the status shared by more than two roller coasters.",
        "interaction_utterance": [
            "What are name of all the roller coasters?",
            "Give me their status.",
            "Show me the those that are shared by more than two roller coasters."
        ],
        "interaction_query": [
            "SELECT name FROM Roller_coaster",
            "SELECT name,status FROM Roller_coaster",
            "SELECT Status FROM roller_coaster GROUP BY Status HAVING COUNT(*)  >  2"
        ]
    },
    {
        "db_id": "roller_coaster",
        "final_query": "SELECT Park FROM roller_coaster ORDER BY Speed DESC LIMIT 1",
        "final_utterance": "Show the park of the roller coaster with the highest speed.",
        "interaction_utterance": [
            "What are name of all the roller coasters?",
            "Give me their speed.",
            "Which one is the highest?",
            "Show me its park."
        ],
        "interaction_query": [
            "SELECT name FROM Roller_coaster",
            "SELECT name,speed FROM Roller_coaster",
            "SELECT name,speed FROM Roller_coaster ORDER BY Speed DESC LIMIT 1",
            "SELECT Park FROM roller_coaster ORDER BY Speed DESC LIMIT 1"
        ]
    },
    {
        "db_id": "roller_coaster",
        "final_query": "SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID GROUP BY T1.Name HAVING COUNT(*)  >  1",
        "final_utterance": "Show the names of countries that have more than one roller coaster.",
        "interaction_utterance": [
            "What countries are there that have roller coasters?",
            "Give me those that have more than one roller coaster."
        ],
        "interaction_query": [
            "SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID",
            "SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID GROUP BY T1.Name HAVING COUNT(*)  >  1"
        ]
    },
    {
        "db_id": "roller_coaster",
        "final_query": "SELECT T1.Name ,  T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID ORDER BY T2.Height DESC LIMIT 1",
        "final_utterance": "Show the name and population of the country that has the highest roller coaster.",
        "interaction_utterance": [
            "What are name of all the roller coasters?",
            "Give me their height.",
            "Which one is the highest?",
            "Show me the name and population of the country that has it."
        ],
        "interaction_query": [
            "SELECT name FROM Roller_coaster",
            "SELECT name,height FROM Roller_coaster",
            "SELECT name,height FROM Roller_coaster ORDER BY height DESC LIMIT 1",
            "SELECT T1.Name ,  T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID ORDER BY T2.Height DESC LIMIT 1"
        ]
    },
    {
        "db_id": "roller_coaster",
        "final_query": "SELECT T1.Name ,  avg(T2.Speed) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID GROUP BY T1.Name",
        "final_utterance": "Show the names of countries and the average speed of roller coasters from each country.",
        "interaction_utterance": [
            "Show the names of countries that have more than one roller coaster.",
            "What are the speed of all roller coasters?",
            "Give me a average of them in term of different countries."
        ],
        "interaction_query": [
            "SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID",
            "SELECT name, speed FROM roller_coaster",
            "SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID"
        ]
    },
    {
        "db_id": "roller_coaster",
        "final_query": "SELECT count(*) FROM country WHERE country_id NOT IN ( SELECT country_id FROM roller_coaster WHERE LENGTH  >  3000 )",
        "final_utterance": "How many countries do not have an roller coaster longer than 3000?",
        "interaction_utterance": [
            "What are name of all the roller coasters?",
            "Give me their length.",
            "Show me the roller coasters that are longer than 3000.",
            "How many countries do not have any of them?"
        ],
        "interaction_query": [
            "SELECT name FROM Roller_coaster",
            "SELECT name,length FROM Roller_coaster",
            "SELECT name,length FROM Roller_coaster where length > 3000",
            "SELECT count(*) FROM country WHERE country_id NOT IN ( SELECT country_id FROM roller_coaster WHERE LENGTH  >  3000 )"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT count(*) FROM student WHERE sex  =  'F' AND age  <  25",
        "final_utterance": "How many female students (sex is F) whose age is below 25?",
        "interaction_utterance": [
            "how many students are below age 25?",
            "how many of them are female (sex is F)?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM student WHERE age  <  25",
            "SELECT count(*) FROM student WHERE sex  =  'F' AND age  <  25"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT fname FROM student WHERE city_code  =  'PHL' AND age BETWEEN 20 AND 25",
        "final_utterance": "Find the first name of students living in city PHL whose age is between 20 and 25.",
        "interaction_utterance": [
            "what are the codes of all different cities where students are from?",
            "how many students are living in city PHL?",
            "among them, how many are between ages 20 and 25?",
            "show their first names."
        ],
        "interaction_query": [
            "SELECT distinct city_code FROM student",
            "SELECT count(*) FROM student WHERE city_code  =  'PHL'",
            "SELECT count(*) FROM student WHERE city_code  =  'PHL' AND age BETWEEN 20 AND 25",
            "SELECT fname FROM student WHERE city_code  =  'PHL' AND age BETWEEN 20 AND 25"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT avg(student_capacity) ,  sum(student_capacity) FROM dorm WHERE gender  =  'X'",
        "final_utterance": "Find the average and total capacity of dorms for the students with gender X.",
        "interaction_utterance": [
            "what are the different gender types of all dorms?",
            "show student capacity of the dorms with gender X.",
            "what is their average capacity?",
            "how about the total as well?"
        ],
        "interaction_query": [
            "SELECT distinct gender FROM dorm",
            "SELECT student_capacity FROM dorm WHERE gender  =  'X'",
            "SELECT avg(student_capacity) FROM dorm WHERE gender  =  'X'",
            "SELECT avg(student_capacity) ,  sum(student_capacity) FROM dorm WHERE gender  =  'X'"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT dorm_name FROM dorm WHERE dormid NOT IN (SELECT dormid FROM has_amenity)",
        "final_utterance": "Find the name of dorms that do not have any amenity.",
        "interaction_utterance": [
            "list all dorm amenities.",
            "Find the names of dorms that have some of these amenities.",
            "Find the names of dorms that do not have any amenities."
        ],
        "interaction_query": [
            "SELECT amenity_name FROM Dorm_amenity",
            "SELECT dorm_name FROM dorm WHERE dormid IN (SELECT dormid FROM has_amenity)",
            "SELECT dorm_name FROM dorm WHERE dormid NOT IN (SELECT dormid FROM has_amenity)"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT student_capacity,  gender FROM dorm WHERE dorm_name LIKE '%Donor%'",
        "final_utterance": "Find the capacity and gender type of the dorm whose name has substring \u2018Donor\u2019.",
        "interaction_utterance": [
            "show the names of all dorms.",
            "just list the dorm whose name has substring \u2018Donor\u2019.",
            "what is its capacity and gender type?"
        ],
        "interaction_query": [
            "SELECT dorm_name FROM dorm",
            "SELECT dorm_name FROM dorm WHERE dorm_name LIKE '%Donor%'",
            "SELECT student_capacity,  gender FROM dorm WHERE dorm_name LIKE '%Donor%'"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT dorm_name,  gender FROM dorm WHERE student_capacity  >  300 OR student_capacity  <  100",
        "final_utterance": "Find the name and gender type of the dorms whose capacity is greater than 300 or less than 100.",
        "interaction_utterance": [
            "Find the name and gender type of all dorms.",
            "which of them have a capacity greater than 300?",
            "also show the dorms with a capacity less than 100."
        ],
        "interaction_query": [
            "SELECT dorm_name,  gender FROM dorm",
            "SELECT dorm_name,  gender FROM dorm WHERE student_capacity  >  300",
            "SELECT dorm_name,  gender FROM dorm WHERE student_capacity  >  300 OR student_capacity  <  100"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT count(DISTINCT major),  count(DISTINCT city_code) FROM student",
        "final_utterance": "Find the numbers of different majors and cities.",
        "interaction_utterance": [
            "show the info of all students.",
            "how many distinct majors are there?",
            "also count the number of different cities."
        ],
        "interaction_query": [
            "SELECT * FROM student",
            "SELECT count(DISTINCT major) FROM student",
            "SELECT count(DISTINCT major),  count(DISTINCT city_code) FROM student"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T3.amenity_name  =  'TV Lounge' INTERSECT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T3.amenity_name  =  'Study Room'",
        "final_utterance": "Find the name of dorms which have both TV Lounge and Study Room as amenities.",
        "interaction_utterance": [
            "what are the names of all dorms?",
            "what are all of the different amenities?",
            "Find the names of dorms that have a TV Lounge.",
            "how about those that also have a Study Room?"
        ],
        "interaction_query": [
            "SELECT dorm_name FROM dorm",
            "SELECT \tamenity_name FROM dorm_amenity",
            "SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T3.amenity_name  =  'TV Lounge'",
            "SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T3.amenity_name  =  'TV Lounge' INTERSECT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T3.amenity_name  =  'Study Room'"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T3.amenity_name  =  'TV Lounge' EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T3.amenity_name  =  'Study Room'",
        "final_utterance": "Find the name of dorms which have TV Lounge but no Study Room as amenity.",
        "interaction_utterance": [
            "find the names of dorms that do not have a Study Room.",
            "among them, which ones have a TV Lounge?"
        ],
        "interaction_query": [
            "SELECT dorm_name FROM dorm EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T3.amenity_name  =  'Study Room'",
            "SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T3.amenity_name  =  'TV Lounge' EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T3.amenity_name  =  'Study Room'"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT lname FROM student WHERE sex  =  'F' AND city_code  =  'BAL' UNION SELECT lname FROM student WHERE sex  =  'M' AND age  <  20",
        "final_utterance": "Find the last name of students who is either female (sex is F) and living in the city of code BAL or male (sex is M) and in age of below 20.",
        "interaction_utterance": [
            "how many female students are living in the city of code BAL?",
            "how many male students are less than 20 years old?",
            "what is the total number of students in these two groups?",
            "what are their last names?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM student WHERE sex  =  'F' AND city_code  =  'BAL'",
            "SELECT count(*) FROM student WHERE sex  =  'M' AND age  <  20",
            "SELECT count(*) FROM (SELECT * FROM student WHERE  sex  =  'M' AND age  <  20 UNION SELECT * FROM student WHERE sex  =  'F' AND city_code  =  'BAL')",
            "SELECT lname FROM student WHERE sex  =  'F' AND city_code  =  'BAL' UNION SELECT lname FROM student WHERE sex  =  'M' AND age  <  20"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT dorm_name FROM dorm ORDER BY student_capacity DESC LIMIT 1",
        "final_utterance": "Find the name of the dorm with the largest capacity.",
        "interaction_utterance": [
            "find the total student capacity of all dorms.",
            "which dorm has the largest capacity?",
            "just list its name."
        ],
        "interaction_query": [
            "SELECT sum(student_capacity) FROM dorm",
            "SELECT * FROM dorm ORDER BY student_capacity",
            "SELECT dorm_name FROM dorm ORDER BY student_capacity DESC LIMIT 1"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT city_code FROM student GROUP BY city_code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the code of city where most of students are living in.",
        "interaction_utterance": [
            "how many students are there?",
            "which cities are they living in?",
            "Find the code of the city where most of them are living."
        ],
        "interaction_query": [
            "SELECT count(*) FROM student",
            "SELECT DISTINCT city_code FROM student",
            "SELECT city_code FROM student GROUP BY city_code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT fname ,  lname FROM student WHERE age  <  (SELECT avg(age) FROM student)",
        "final_utterance": "Find the first and last name of students whose age is younger than the average age.",
        "interaction_utterance": [
            "show the first and last name of all students.",
            "what are their ages?",
            "what is the average age?",
            "list the students whose age is younger than that. List their first and last names."
        ],
        "interaction_query": [
            "SELECT fname ,  lname FROM student",
            "SELECT fname ,  lname, age FROM student",
            "SELECT avg(age) FROM student",
            "SELECT fname ,  lname FROM student WHERE age  <  (SELECT avg(age) FROM student)"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT fname,  lname FROM student WHERE city_code != 'HKG' ORDER BY age",
        "final_utterance": "List the first and last name of students who are not living in the city with code HKG, and sorted the results by their ages.",
        "interaction_utterance": [
            "show the codes of all different cities where students are living.",
            "find the number of students who are not living in the city with code HKG.",
            "what are their first and last names?",
            "sort the result by their ages."
        ],
        "interaction_query": [
            "SELECT distinct city_code FROM student",
            "SELECT count(*) FROM student WHERE city_code != 'HKG'",
            "SELECT fname,  lname FROM student WHERE city_code != 'HKG'",
            "SELECT fname,  lname FROM student WHERE city_code != 'HKG' ORDER BY age"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T2.amenid  =  T1.amenid JOIN dorm AS T3 ON T2.dormid  =  T3.dormid WHERE T3.dorm_name  =  'Anonymous Donor Hall' ORDER BY T1.amenity_name",
        "final_utterance": "List name of all amenities which Anonymous Donor Hall has, and sort the results in alphabetic order.",
        "interaction_utterance": [
            "list the info of all dorms.",
            "what is the capacity of Anonymous Donor Hall?",
            "List all of the amenities that it has.",
            "sort the results in alphabetic order."
        ],
        "interaction_query": [
            "SELECT * FROM dorm",
            "SELECT student_capacity FROM dorm WHERE dorm_name  =  'Anonymous Donor Hall'",
            "SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T2.amenid  =  T1.amenid JOIN dorm AS T3 ON T2.dormid  =  T3.dormid WHERE T3.dorm_name  =  'Anonymous Donor Hall'",
            "SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T2.amenid  =  T1.amenid JOIN dorm AS T3 ON T2.dormid  =  T3.dormid WHERE T3.dorm_name  =  'Anonymous Donor Hall' ORDER BY T1.amenity_name"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT count(*) ,  sum(student_capacity) ,  gender FROM dorm GROUP BY gender",
        "final_utterance": "Find the number of dorms and total capacity for each gender.",
        "interaction_utterance": [
            "find the total number of dorms.",
            "what is the total student capacity of all dorms?",
            "how about for each gender?",
            "also show the number of dorms for each gender."
        ],
        "interaction_query": [
            "SELECT count(*) FROM dorm",
            "SELECT sum(student_capacity) FROM dorm",
            "SELECT sum(student_capacity) ,  gender FROM dorm GROUP BY gender",
            "SELECT count(*) ,  sum(student_capacity) ,  gender FROM dorm GROUP BY gender"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT avg(age) ,  max(age) ,  sex FROM student GROUP BY sex",
        "final_utterance": "Find the average and oldest age for students with different sex.",
        "interaction_utterance": [
            "how many students of each gender are there?",
            "Find the average and oldest age for each gender."
        ],
        "interaction_query": [
            "SELECT count(*),  sex FROM student GROUP BY sex",
            "SELECT avg(age) ,  max(age) ,  sex FROM student GROUP BY sex"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT count(*) ,  avg(age) ,  city_code FROM student GROUP BY city_code",
        "final_utterance": "Find the number and average age of students living in each city.",
        "interaction_utterance": [
            "how many different cities are there?",
            "find the number of students living in each city.",
            "also find the average age of students living in each city."
        ],
        "interaction_query": [
            "SELECT count(distinct city_code) FROM student",
            "SELECT count(*), city_code FROM student GROUP BY city_code",
            "SELECT count(*) ,  avg(age) ,  city_code FROM student GROUP BY city_code"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT count(*) ,  avg(age) ,  city_code FROM student WHERE sex  =  'M' GROUP BY city_code",
        "final_utterance": "Find the average age and number of male students (with sex M) from each city.",
        "interaction_utterance": [
            "find the number of students living in each city.",
            "how many of them are male (with sex M)?",
            "Include their average age as well."
        ],
        "interaction_query": [
            "SELECT count(*), city_code FROM student GROUP BY city_code",
            "SELECT count(*), city_code FROM student WHERE sex  =  'M' GROUP BY city_code",
            "SELECT count(*) ,  avg(age) ,  city_code FROM student WHERE sex  =  'M' GROUP BY city_code"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT count(*) ,  city_code FROM student GROUP BY city_code HAVING count(*)  >  1",
        "final_utterance": "Find the number of students for the cities where have more than one student.",
        "interaction_utterance": [
            "Find the number of students living in each city.",
            "just show the results of cities that have more than one student living in it."
        ],
        "interaction_query": [
            "SELECT count(*),  city_code FROM student GROUP BY city_code",
            "SELECT count(*) ,  city_code FROM student GROUP BY city_code HAVING count(*)  >  1"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT fname ,  lname FROM student WHERE major != (SELECT major FROM student GROUP BY major ORDER BY count(*) DESC LIMIT 1)",
        "final_utterance": "Find the first and last name of students who are not in the largest major.",
        "interaction_utterance": [
            "list all of the different majors.",
            "which major has the fewest students?",
            "what is the most popular major?",
            "how many students are not this major?",
            "show their first and last names."
        ],
        "interaction_query": [
            "SELECT distinct major FROM student",
            "SELECT major FROM student GROUP BY major ORDER BY count(*) LIMIT 1",
            "SELECT major FROM student GROUP BY major ORDER BY count(*) DESC LIMIT 1",
            "SELECT count(*) FROM student WHERE major != (SELECT major FROM student GROUP BY major ORDER BY count(*) DESC LIMIT 1)",
            "SELECT fname ,  lname FROM student WHERE major != (SELECT major FROM student GROUP BY major ORDER BY count(*) DESC LIMIT 1)"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT count(*) ,  sex FROM student WHERE age  >  (SELECT avg(age) FROM student) GROUP BY sex",
        "final_utterance": "Find the number of students whose age is older than the average age for each gender.",
        "interaction_utterance": [
            "what is the average age for each gender?",
            "find the number of students whose age is older than the average age of these two groups."
        ],
        "interaction_query": [
            "SELECT avg(age) ,  sex FROM student GROUP BY sex",
            "SELECT count(*) ,  sex FROM student WHERE age  >  (SELECT avg(age) FROM student) GROUP BY sex"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT avg(T1.age) ,  T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid GROUP BY T3.dorm_name",
        "final_utterance": "Find the average age of students living in each dorm and the name of dorm.",
        "interaction_utterance": [
            "what are the names of all of the dorms?",
            "how many students are living in each dorm? Group by names of dorms.",
            "find the average age of students living in each dorm."
        ],
        "interaction_query": [
            "SELECT dorm_name FROM dorm",
            "SELECT count(*),  T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid GROUP BY T3.dorm_name",
            "SELECT avg(T1.age) ,  T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid GROUP BY T3.dorm_name"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT count(*) ,  T1.dormid FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid WHERE T1.student_capacity  >  100 GROUP BY T1.dormid",
        "final_utterance": "Find the number of amenities for each of the dorms that can accommodate more than 100 students.",
        "interaction_utterance": [
            "find the names of dorms that can accommodate more than 100 students.",
            "what is the average capacity of these dorms?",
            "Find the number of amenities for each of these dorms."
        ],
        "interaction_query": [
            "SELECT dorm_name FROM dorm WHERE student_capacity  >  100",
            "SELECT avg(student_capacity) FROM dorm WHERE student_capacity  >  100",
            "SELECT count(*) ,  T1.dormid FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid WHERE T1.student_capacity  >  100 GROUP BY T1.dormid"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT count(*) ,  T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T1.age  >  20 GROUP BY T3.dorm_name",
        "final_utterance": "Find the number of students who is older than 20 in each dorm.",
        "interaction_utterance": [
            "what are the names of all dorms?",
            "how many students are living in each dorm? Group by names of dorms.",
            "how many students are older than 20 years old in each dorm?"
        ],
        "interaction_query": [
            "SELECT dorm_name FROM dorm",
            "SELECT count(*),  T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid GROUP BY T3.dorm_name",
            "SELECT count(*) ,  T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T1.age  >  20 GROUP BY T3.dorm_name"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T3.dorm_name  =  'Smith Hall'",
        "final_utterance": "Find the first name of students who are living in the Smith Hall.",
        "interaction_utterance": [
            "how many students are living in Smith Hall?",
            "show their last names and room numbers.",
            "what are their first names?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T3.dorm_name  =  'Smith Hall'",
            "SELECT T1.lname, T2.room_number FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T3.dorm_name  =  'Smith Hall'",
            "SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T3.dorm_name  =  'Smith Hall'"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT avg(T1.age) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T3.student_capacity  =  (SELECT max(student_capacity) FROM dorm)",
        "final_utterance": "Find the average age of students who are living in the dorm with the largest capacity.",
        "interaction_utterance": [
            "show the name and capacity of all dorms.",
            "find the name of the dorm with the largest capacity.",
            "how many students are living in there?",
            "what is the average age of these students?"
        ],
        "interaction_query": [
            "SELECT dorm_name, student_capacity FROM dorm",
            "SELECT dorm_name FROM dorm ORDER BY student_capacity DESC LIMIT 1",
            "SELECT count(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T3.student_capacity  =  (SELECT max(student_capacity) FROM dorm)",
            "SELECT avg(T1.age) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T3.student_capacity  =  (SELECT max(student_capacity) FROM dorm)"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT count(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T3.gender  =  'M'",
        "final_utterance": "Find the total number of students living in the male dorm (with gender M).",
        "interaction_utterance": [
            "list the names of all male dorms (with gender M).",
            "how many are there?",
            "Find the total number of students living in these dorms."
        ],
        "interaction_query": [
            "SELECT dorm_name FROM dorm WHERE gender  =  'M'",
            "SELECT count(*) FROM dorm WHERE gender  =  'M'",
            "SELECT count(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T3.gender  =  'M'"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT count(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T3.dorm_name  =  'Smith Hall' AND T1.sex  =  'F'",
        "final_utterance": "Find the number of female students (with F sex) living in Smith Hall",
        "interaction_utterance": [
            "what is the capacity of Smith Hall dorm?",
            "how many students are living in there?",
            "how many of them are female?"
        ],
        "interaction_query": [
            "SELECT student_capacity FROM dorm WHERE dorm_name  =  'Smith Hall'",
            "SELECT count(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T3.dorm_name  =  'Smith Hall'",
            "SELECT count(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T3.dorm_name  =  'Smith Hall' AND T1.sex  =  'F'"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T1.dorm_name  =  'Smith Hall'",
        "final_utterance": "Find the name of amenities Smith Hall dorm have.",
        "interaction_utterance": [
            "how many students are living in Smith Hall dorm?",
            "Find the number of amenities it has.",
            "what are these amenities?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T3.dorm_name  =  'Smith Hall'",
            "SELECT count(*) FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T1.dorm_name  =  'Smith Hall'",
            "SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T1.dorm_name  =  'Smith Hall'"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T1.dorm_name  =  'Smith Hall' ORDER BY T3.amenity_name",
        "final_utterance": "Find the name of amenities Smith Hall dorm have. ordered the results by amenity names.",
        "interaction_utterance": [
            "What are the amenities in Smith Hall?",
            "order the results by amenity names."
        ],
        "interaction_query": [
            "SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T1.dorm_name  =  'Smith Hall'",
            "SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T1.dorm_name  =  'Smith Hall' ORDER BY T3.amenity_name"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T1.amenid  =  T2.amenid GROUP BY T2.amenid ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the name of amenity that is the most common in all dorms.",
        "interaction_utterance": [
            "show the names of all different amenities.",
            "find the total number of each amenity in all of the dorms.",
            "which one is the most common amenity used in all dorms? List its name."
        ],
        "interaction_query": [
            "SELECT amenity_name FROM dorm_amenity",
            "SELECT count(*), T2.amenid FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T1.amenid  =  T2.amenid GROUP BY T2.amenid",
            "SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T1.amenid  =  T2.amenid GROUP BY T2.amenid ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid WHERE T2.dormid IN (SELECT T2.dormid FROM dorm AS T3 JOIN has_amenity AS T4 ON T3.dormid  =  T4.dormid JOIN dorm_amenity AS T5 ON T4.amenid  =  T5.amenid GROUP BY T3.dormid ORDER BY count(*) DESC LIMIT 1)",
        "final_utterance": "Find the first name of students who are living in the dorm that has most number of amenities.",
        "interaction_utterance": [
            "what is the id of the dorm that has the most amenities?",
            "what is its name?",
            "how many students are living in that dorm?",
            "find their first names."
        ],
        "interaction_query": [
            "SELECT T3.dormid FROM dorm AS T3 JOIN has_amenity AS T4 ON T3.dormid  =  T4.dormid JOIN dorm_amenity AS T5 ON T4.amenid  =  T5.amenid GROUP BY T3.dormid ORDER BY count(*) DESC LIMIT 1",
            "SELECT T3.dorm_name FROM dorm AS T3 JOIN has_amenity AS T4 ON T3.dormid  =  T4.dormid JOIN dorm_amenity AS T5 ON T4.amenid  =  T5.amenid GROUP BY T3.dormid ORDER BY count(*) DESC LIMIT 1",
            "SELECT count(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid WHERE T2.dormid IN (SELECT T3.dormid FROM dorm AS T3 JOIN has_amenity AS T4 ON T3.dormid  =  T4.dormid JOIN dorm_amenity AS T5 ON T4.amenid  =  T5.amenid GROUP BY T3.dormid ORDER BY count(*) DESC LIMIT 1)",
            "SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid WHERE T2.dormid IN (SELECT T3.dormid FROM dorm AS T3 JOIN has_amenity AS T4 ON T3.dormid  =  T4.dormid JOIN dorm_amenity AS T5 ON T4.amenid  =  T5.amenid GROUP BY T3.dormid ORDER BY count(*) DESC LIMIT 1)"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT T1.dorm_name ,  T1.student_capacity FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid GROUP BY T2.dormid ORDER BY count(*) LIMIT 1",
        "final_utterance": "Find the name and capacity of the dorm with least number of amenities.",
        "interaction_utterance": [
            "find the number of amenities in each dorm.",
            "which dorm has the fewest amenities? List its name.",
            "what is its capacity?"
        ],
        "interaction_query": [
            "SELECT T1.dormid , count(*) FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid GROUP BY T2.dormid",
            "SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid GROUP BY T2.dormid ORDER BY count(*) LIMIT 1",
            "SELECT T1.student_capacity FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid GROUP BY T2.dormid ORDER BY count(*) LIMIT 1"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT dorm_name FROM dorm EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T3.amenity_name  =  'TV Lounge'",
        "final_utterance": "Find the name of dorms that do not have amenity TV Lounge.",
        "interaction_utterance": [
            "how many dorms have a TV Lounge?",
            "what are their names?",
            "what are the names of dorms that do not have it?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T3.amenity_name  =  'TV Lounge'",
            "SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T3.amenity_name  =  'TV Lounge'",
            "SELECT dorm_name FROM dorm EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T3.amenity_name  =  'TV Lounge'"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT T1.fname ,  T1.lname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid WHERE T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid  =  T4.amenid WHERE T4.amenity_name  =  'TV Lounge')",
        "final_utterance": "Find the first and last name of students who are living in the dorms that have amenity TV Lounge.",
        "interaction_utterance": [
            "how many dorms have a TV Lounge?",
            "what is the total capacity of these dorms?",
            "how many students are living in these dorms?",
            "list their first and last names."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T3.amenity_name  =  'TV Lounge'",
            "SELECT sum(T1.student_capacity) FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T3.amenity_name  =  'TV Lounge'",
            "SELECT count(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid WHERE T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid  =  T4.amenid WHERE T4.amenity_name  =  'TV Lounge')",
            "SELECT T1.fname ,  T1.lname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid WHERE T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid  =  T4.amenid WHERE T4.amenity_name  =  'TV Lounge')"
        ]
    },
    {
        "db_id": "dorm_1",
        "final_query": "SELECT T1.fname ,  T1.age FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid WHERE T2.dormid NOT IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid  =  T4.amenid WHERE T4.amenity_name  =  'TV Lounge')",
        "final_utterance": "Find the first name and age of students who are living in the dorms that do not have amenity TV Lounge.",
        "interaction_utterance": [
            "Find the names of dorms that do not have a TV Lounge.",
            "Find the first name and age of students living in these dorms."
        ],
        "interaction_query": [
            "SELECT dorm_name FROM dorm EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T3.amenity_name  =  'TV Lounge'",
            "SELECT T1.fname ,  T1.age FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid WHERE T2.dormid NOT IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid  =  T4.amenid WHERE T4.amenity_name  =  'TV Lounge')"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT document_status_code FROM Ref_Document_Status;",
        "final_utterance": "What document status codes do we have?",
        "interaction_utterance": [
            "Show me all about documents.",
            "What document types are there?",
            "How about document status codes?"
        ],
        "interaction_query": [
            "SELECT * FROM documents",
            "SELECT document_type_code FROM Ref_Document_Types;",
            "SELECT document_status_code FROM Ref_Document_Status;"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT document_status_description FROM Ref_Document_Status WHERE document_status_code = \"working\";",
        "final_utterance": "What is the description of document status code 'working'?",
        "interaction_utterance": [
            "How many document status codes there?",
            "What are they?",
            "What is the description of document status code 'working'?"
        ],
        "interaction_query": [
            "SELECT count(document_status_code) FROM Ref_Document_Status;",
            "SELECT document_status_code FROM Ref_Document_Status;",
            "SELECT document_status_description FROM Ref_Document_Status WHERE document_status_code = \"working\";"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT document_type_code FROM Ref_Document_Types;",
        "final_utterance": "What document type codes do we have?",
        "interaction_utterance": [
            "Show me all about document types.",
            "Show me the descriptions of document types.",
            "Now, show the document type codes."
        ],
        "interaction_query": [
            "SELECT * FROM Ref_Document_Types;",
            "SELECT document_type_description FROM Ref_Document_Types;",
            "SELECT document_type_code FROM Ref_Document_Types;"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT document_type_description FROM Ref_Document_Types WHERE document_type_code = \"Paper\";",
        "final_utterance": "What is the description of document type 'Paper'?",
        "interaction_utterance": [
            "Show me the shipping agent code of documents?",
            "How about the document type code?",
            "Among those, what is the description of document type 'Paper'?"
        ],
        "interaction_query": [
            "SELECT shipping_agent_code FROM Ref_Shipping_Agents;",
            "SELECT document_type_code FROM Ref_Document_Types;",
            "SELECT document_type_description FROM Ref_Document_Types WHERE document_type_code = \"Paper\";"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT shipping_agent_name FROM Ref_Shipping_Agents;",
        "final_utterance": "What are the shipping agent names?",
        "interaction_utterance": [
            "What are the shipping agents' codes?",
            "How about their descriptions?",
            "Show me their names instead."
        ],
        "interaction_query": [
            "SELECT shipping_agent_code FROM Ref_Shipping_Agents;",
            "SELECT shipping_agent_description FROM Ref_Shipping_Agents;",
            "SELECT shipping_agent_name FROM Ref_Shipping_Agents;"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_name = \"UPS\";",
        "final_utterance": "What is the shipping agent code of shipping agent UPS?",
        "interaction_utterance": [
            "Show me the the shipping agent code of shipping agent Fedex.",
            "How about the shipping agent description of shipping agent UPS?",
            "What is the shipping agent code of this shipping agent?"
        ],
        "interaction_query": [
            "SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_name = \"Fedex\";",
            "SELECT shipping_agent_description FROM Ref_Shipping_Agents WHERE shipping_agent_name = \"UPS\";",
            "SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_name = \"UPS\";"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT role_code FROM ROLES;",
        "final_utterance": "What are all role codes?",
        "interaction_utterance": [
            "Show me all the descriptions for each role?",
            "Now show all the role codes."
        ],
        "interaction_query": [
            "SELECT role_description FROM ROLES;",
            "SELECT role_code FROM ROLES;"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT role_description FROM ROLES WHERE role_code = \"ED\";",
        "final_utterance": "What is the description of role code ED?",
        "interaction_utterance": [
            "How many employees have role code ED?",
            "What is the description for this role code?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM Employees WHERE role_code = \"ED\";",
            "SELECT role_description FROM ROLES WHERE role_code = \"ED\";"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT count(*) FROM Employees;",
        "final_utterance": "How many employees do we have?",
        "interaction_utterance": [
            "What are the employees' names?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT employee_name FROM Employees;",
            "SELECT count(*) FROM Employees;"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT T1.role_description FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code WHERE T2.employee_name = \"Koby\";",
        "final_utterance": "What is the role of the employee named Koby?",
        "interaction_utterance": [
            "Show me the names of the employee.",
            "What is the role code of the employee named Koby?",
            "How about his role description?"
        ],
        "interaction_query": [
            "SELECT employee_name FROM Employees;",
            "SELECT T1.role_code FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code WHERE T2.employee_name = \"Koby\";",
            "SELECT T1.role_description FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code WHERE T2.employee_name = \"Koby\";"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT document_id ,  receipt_date FROM Documents;",
        "final_utterance": "List all document ids and receipt dates of documents.",
        "interaction_utterance": [
            "Show me all information about the documents.",
            "List document ids and receipt dates of all documents"
        ],
        "interaction_query": [
            "SELECT * FROM Documents;",
            "SELECT document_id ,  receipt_date FROM Documents;"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT T1.role_description ,  T2.role_code ,  count(*) FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code GROUP BY T2.role_code;",
        "final_utterance": "How many employees does each role have? List role description, id and number of employees.",
        "interaction_utterance": [
            "What are the role codes?",
            "How about their corresponding role_description?",
            "List role description, role code and number of employees of each role?"
        ],
        "interaction_query": [
            "SELECT role_code FROM ROLES;",
            "SELECT role_code, role_description FROM ROLES;",
            "SELECT T1.role_description ,  T2.role_code ,  count(*) FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code GROUP BY T2.role_code;"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT Roles.role_description , count(Employees.employee_id) FROM ROLES JOIN Employees ON Employees.role_code = Roles.role_code GROUP BY Employees.role_code HAVING count(Employees.employee_id)  >  1;",
        "final_utterance": "List roles that have more than one employee. List the role description and number of employees.",
        "interaction_utterance": [
            "What are the employees' id?",
            "Which of those ids correspond to roles with more than 2 employees? Show in conjunction to the ids.",
            "How about more than 1 employee? Now only show the role description and number of employee ids."
        ],
        "interaction_query": [
            "SELECT employee_id FROM Employees;",
            "SELECT Roles.role_description, Employees.employee_id FROM ROLES JOIN Employees ON Employees.role_code = Roles.role_code GROUP BY Employees.role_code HAVING count(Employees.employee_id)  >  2;",
            "SELECT Roles.role_description , count(Employees.employee_id) FROM ROLES JOIN Employees ON Employees.role_code = Roles.role_code GROUP BY Employees.role_code HAVING count(Employees.employee_id)  >  1;"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT Ref_Document_Status.document_status_description FROM Ref_Document_Status JOIN Documents ON Documents.document_status_code = Ref_Document_Status.document_status_code WHERE Documents.document_id = 1;",
        "final_utterance": "What is the document status description of the document with id 1?",
        "interaction_utterance": [
            "Show me the document with id 2.",
            "What about the document status code of document with id 1?",
            "What is the document status description for this document?"
        ],
        "interaction_query": [
            "SELECT * FROM Documents WHERE document_id = 2;",
            "SELECT Ref_Document_Status.document_status_code FROM Ref_Document_Status JOIN Documents ON Documents.document_status_code = Ref_Document_Status.document_status_code WHERE Documents.document_id = 1;",
            "SELECT Ref_Document_Status.document_status_description FROM Ref_Document_Status JOIN Documents ON Documents.document_status_code = Ref_Document_Status.document_status_code WHERE Documents.document_id = 1;"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT count(*) FROM Documents WHERE document_status_code = \"done\";",
        "final_utterance": "How many documents have the status code done?",
        "interaction_utterance": [
            "Show me all the information about the documents.",
            "List all the documents with status code working?",
            "How about the status code done?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM Documents",
            "SELECT * FROM Documents WHERE document_status_code = \"working\";",
            "SELECT * FROM Documents WHERE document_status_code = \"done\";",
            "SELECT count(*) FROM Documents WHERE document_status_code = \"done\";"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT document_type_code FROM Documents WHERE document_id = 2;",
        "final_utterance": "List the document type code for the document with the id 2.",
        "interaction_utterance": [
            "Show me document with id 1.",
            "What about the document status description of document with id 2?",
            "What is the document status code of this document?"
        ],
        "interaction_query": [
            "SELECT * FROM Documents WHERE document_id = 1;",
            "SELECT Ref_Document_Status.document_status_description FROM Ref_Document_Status JOIN Documents ON Documents.document_status_code = Ref_Document_Status.document_status_code WHERE Documents.document_id = 2;",
            "SELECT document_type_code FROM Documents WHERE document_id = 2;"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT document_id FROM Documents WHERE document_status_code = \"done\" AND document_type_code = \"Paper\";",
        "final_utterance": "List the document ids for any documents with the status code done and the type code paper.",
        "interaction_utterance": [
            "How many documents are there?",
            "Show me ones with status code done.",
            "List the document ids for any documents with the status code done and the type code paper."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Documents;",
            "SELECT * FROM Documents WHERE document_status_code = \"done\"",
            "SELECT document_id FROM Documents WHERE document_status_code = \"done\" AND document_type_code = \"Paper\";"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT Ref_Shipping_Agents.shipping_agent_name FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Documents.document_id = 2;",
        "final_utterance": "What is the name of the shipping agent of the document with id 2?",
        "interaction_utterance": [
            "What are the shipping agents' names?",
            "Show all the documents with shipping agent named USPS?",
            "What is the name of the shipping agent of the document with id 2?"
        ],
        "interaction_query": [
            "SELECT Ref_Shipping_Agents.shipping_agent_name FROM Ref_Shipping_Agents;",
            "SELECT * FROM documents AS T1 JOIN Ref_Shipping_Agents AS T2 ON T1.shipping_agent_code = T2.shipping_agent_code WHERE T2.shipping_agent_name = \"USPS\";",
            "SELECT Ref_Shipping_Agents.shipping_agent_name FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Documents.document_id = 2;"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT count(*) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"USPS\";",
        "final_utterance": "How many documents were shipped by USPS?",
        "interaction_utterance": [
            "How many documents are there?",
            "How many documents were shipped by Fedex?",
            "How about USPS?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM Documents;",
            "SELECT count(*) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"Fedex\";",
            "SELECT count(*) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"USPS\";"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT Ref_Shipping_Agents.shipping_agent_name , count(Documents.document_id) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code GROUP BY Ref_Shipping_Agents.shipping_agent_code ORDER BY count(Documents.document_id) DESC LIMIT 1;",
        "final_utterance": "Which shipping agent shipped the most documents? List the shipping agent name and the number of documents.",
        "interaction_utterance": [
            "What's the number of documents each shipping agent shipped?",
            "Which agent shipped the least number of documents?",
            "How about the most number of documents?"
        ],
        "interaction_query": [
            "SELECT Ref_Shipping_Agents.shipping_agent_name , count(Documents.document_id) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code GROUP BY Ref_Shipping_Agents.shipping_agent_code;",
            "SELECT Ref_Shipping_Agents.shipping_agent_name , count(Documents.document_id) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code GROUP BY Ref_Shipping_Agents.shipping_agent_code ORDER BY count(Documents.document_id) ASC LIMIT 1;",
            "SELECT Ref_Shipping_Agents.shipping_agent_name , count(Documents.document_id) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code GROUP BY Ref_Shipping_Agents.shipping_agent_code ORDER BY count(Documents.document_id) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT receipt_date FROM Documents WHERE document_id = 3;",
        "final_utterance": "What is the receipt date of the document with id 3?",
        "interaction_utterance": [
            "Show me the receipt number of the documents?",
            "How about receipt date?",
            "Show me that for document  with id 2?",
            "How about for document with id 3?"
        ],
        "interaction_query": [
            "SELECT receipt_number FROM Documents;",
            "SELECT receipt_date FROM Documents",
            "SELECT receipt_date FROM Documents WHERE document_id = 3;",
            "SELECT receipt_date FROM Documents WHERE document_id = 3;"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT Addresses.address_details FROM Addresses JOIN Documents_Mailed ON Documents_Mailed.mailed_to_address_id = Addresses.address_id WHERE document_id = 4;",
        "final_utterance": "What address was the document with id 4 mailed to?",
        "interaction_utterance": [
            "Show me the receipt_date of document with id 4?",
            "What's its mailing date?",
            "What address did it mail to?"
        ],
        "interaction_query": [
            "SELECT receipt_date FROM Documents WHERE document_id = 4;",
            "SELECT Documents_Mailed.mailing_date FROM Addresses JOIN Documents_Mailed ON Documents_Mailed.mailed_to_address_id = Addresses.address_id WHERE document_id = 4;",
            "SELECT Addresses.address_details FROM Addresses JOIN Documents_Mailed ON Documents_Mailed.mailed_to_address_id = Addresses.address_id WHERE document_id = 4;"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT mailing_date FROM Documents_Mailed WHERE document_id = 7;",
        "final_utterance": "What is the mail date of the document with id 7?",
        "interaction_utterance": [
            "Show me document with id 7.",
            "Where did it mail to?",
            "How about its mailing date?"
        ],
        "interaction_query": [
            "SELECT * FROM Documents;",
            "SELECT Addresses.address_details FROM Addresses JOIN Documents_Mailed ON Documents_Mailed.mailed_to_address_id = Addresses.address_id WHERE document_id = 7;",
            "SELECT mailing_date FROM Documents_Mailed WHERE document_id = 7;"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT document_id FROM Documents WHERE document_status_code  =  \"done\" AND document_type_code = \"Paper\" EXCEPT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"USPS\";",
        "final_utterance": "List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS.",
        "interaction_utterance": [
            "Show me document ids of documents with status working.",
            "How about documents with the status done and type Paper?",
            "Which of those were not shipped by agent named USPS?"
        ],
        "interaction_query": [
            "SELECT document_id FROM Documents WHERE document_status_code  =  \"working\";",
            "SELECT document_id FROM Documents WHERE document_status_code  =  \"done\" AND document_type_code = \"Paper\";",
            "SELECT document_id FROM Documents WHERE document_status_code  =  \"done\" AND document_type_code = \"Paper\" EXCEPT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"USPS\";"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT document_id FROM Documents WHERE document_status_code  =  \"done\" AND document_type_code = \"Paper\" INTERSECT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"USPS\";",
        "final_utterance": "List document id of documents status is done and document type is Paper and the document is shipped by shipping agent named USPS.",
        "interaction_utterance": [
            "What are document types of document with status done?",
            "Show me the document id of those whose document status is done and document type is Paper.",
            "Which of those are shipped by agent named USPS?"
        ],
        "interaction_query": [
            "SELECT document_type_code FROM Documents WHERE document_status_code  =  \"done\";",
            "SELECT document_id FROM Documents WHERE document_status_code  =  \"done\" AND document_type_code = \"Paper\";",
            "SELECT document_id FROM Documents WHERE document_status_code  =  \"done\" AND document_type_code = \"Paper\" INTERSECT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"USPS\";"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT draft_details FROM Document_Drafts WHERE document_id = 7;",
        "final_utterance": "What is draft detail of the document with id 7?",
        "interaction_utterance": [
            "Show me all about the documents.",
            "Only list document with id 7.",
            "What are its draft details?"
        ],
        "interaction_query": [
            "SELECT * FROM Documents;",
            "SELECT * FROM Documents WHERE document_id = 7;",
            "SELECT draft_details FROM Document_Drafts WHERE document_id = 7;"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT count(*) FROM Draft_Copies WHERE document_id = 2;",
        "final_utterance": "How many draft copies does the document with id 2 have?",
        "interaction_utterance": [
            "Show me everything about draft copies.",
            "What's the draft number of document with id 2?",
            "How many draft copies does it have?"
        ],
        "interaction_query": [
            "SELECT * FROM Draft_Copies;",
            "SELECT draft_number FROM Draft_Copies WHERE document_id = 2;",
            "SELECT count(*) FROM Draft_Copies WHERE document_id = 2;"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT document_id , count(copy_number) FROM Draft_Copies GROUP BY document_id ORDER BY count(copy_number) DESC LIMIT 1;",
        "final_utterance": "Which document has the most draft copies? List its document id and number of draft copies.",
        "interaction_utterance": [
            "What's draft number of the documents?",
            "How about the draft copies? Show me how many draft copies each document has?",
            "Which of the result has the most draft copies?"
        ],
        "interaction_query": [
            "SELECT draft_number FROM Draft_Copies;",
            "SELECT document_id , count(copy_number) FROM Draft_Copies GROUP BY document_id;",
            "SELECT document_id , count(copy_number) FROM Draft_Copies GROUP BY document_id ORDER BY count(copy_number) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT document_id , count(*) FROM Draft_Copies GROUP BY document_id HAVING count(*)  >  1;",
        "final_utterance": "Which documents have more than 1 draft copies? List document id and number of draft copies.",
        "interaction_utterance": [
            "How many draft copies does each document have? List the id of documents.",
            "Which one has the maximum number of draft copies?",
            "How about ones with more than 1 draft copies?"
        ],
        "interaction_query": [
            "SELECT document_id , count(*) FROM Draft_Copies GROUP BY document_id;",
            "SELECT document_id , count(*) FROM Draft_Copies GROUP BY document_id ORDER BY draft_number DESC LIMIT 1;",
            "SELECT document_id , count(*) FROM Draft_Copies GROUP BY document_id HAVING count(*)  >  1;"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id WHERE Circulation_History.document_id = 1;",
        "final_utterance": "List all employees in the circulation history of the document with id 1. List the employee's name.",
        "interaction_utterance": [
            "Show me all about the document with id 1.",
            "What about role codes of the employees who appeared in the circulation history of it?",
            "What about these employees' names?"
        ],
        "interaction_query": [
            "SELECT * FROM Documents WHERE document_id = 1;",
            "SELECT Employees.role_code FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id WHERE Circulation_History.document_id = 1;",
            "SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id WHERE Circulation_History.document_id = 1;"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT employee_name FROM Employees EXCEPT SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id",
        "final_utterance": "List the employees who have not showed up in any circulation history of documents. List the employee's name.",
        "interaction_utterance": [
            "For each employee, list the number of documents which showed up in the circulation history.",
            "Who showed up the most times?",
            "What about the names of the employees who have not showed up in any circulation history of documents."
        ],
        "interaction_query": [
            "SELECT Employees.employee_name, count(Circulation_History.document_id) FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id GROUP BY Employees.employee_id;",
            "SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id GROUP BY Employees.employee_id ORDER BY count(Circulation_History.document_id) DESC LIMIT 1;",
            "SELECT employee_name FROM Employees EXCEPT SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id"
        ]
    },
    {
        "db_id": "cre_Doc_Control_Systems",
        "final_query": "SELECT Employees.employee_name , count(*) FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id GROUP BY Circulation_History.document_id , Circulation_History.draft_number , Circulation_History.copy_number ORDER BY count(*) DESC LIMIT 1;",
        "final_utterance": "Which employee has showed up in most circulation history documents. List the employee's name and the number of drafts and copies.",
        "interaction_utterance": [
            "Show me about the Circulation History.",
            "Which employee has showed up in the least Circulation History documents?",
            "How about the most circulation history documents? Show the number of circulation history documents as well."
        ],
        "interaction_query": [
            "SELECT * FROM Circulation_History",
            "SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id GROUP BY Circulation_History.document_id , Circulation_History.draft_number , Circulation_History.copy_number ORDER BY count(*) ASC LIMIT 1;",
            "SELECT Employees.employee_name , count(*) FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id GROUP BY Circulation_History.document_id , Circulation_History.draft_number , Circulation_History.copy_number ORDER BY count(*) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "customers_and_products_contacts",
        "final_query": "SELECT count(*) FROM addresses WHERE country  =  'USA'",
        "final_utterance": "How many addresses are there in country USA?",
        "interaction_utterance": [
            "Show all the address information.",
            "How about those in country USA?",
            "How many of them are there?"
        ],
        "interaction_query": [
            "SELECT * FROM addresses",
            "SELECT * FROM addresses WHERE country  =  'USA'",
            "SELECT count(*) FROM addresses WHERE country  =  'USA'"
        ]
    },
    {
        "db_id": "customers_and_products_contacts",
        "final_query": "SELECT DISTINCT city FROM addresses",
        "final_utterance": "Show all distinct cities in the address record.",
        "interaction_utterance": [
            "Show all cities in the addresses.",
            "Only show unique names."
        ],
        "interaction_query": [
            "SELECT city FROM addresses",
            "SELECT DISTINCT city FROM addresses"
        ]
    },
    {
        "db_id": "customers_and_products_contacts",
        "final_query": "SELECT state_province_county ,  count(*) FROM addresses GROUP BY state_province_county",
        "final_utterance": "Show each state and the number of addresses in each state.",
        "interaction_utterance": [
            "Show the state for each address.",
            "Also show the number of addresses in each of them."
        ],
        "interaction_query": [
            "SELECT state_province_county from addresses",
            "SELECT state_province_county ,  count(*) FROM addresses GROUP BY state_province_county"
        ]
    },
    {
        "db_id": "customers_and_products_contacts",
        "final_query": "SELECT customer_name ,  customer_phone FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM customer_address_history)",
        "final_utterance": "Show names and phones of customers who do not have address information.",
        "interaction_utterance": [
            "Show the ids of all customers.",
            "What about those who have address information?",
            "Show the names of those who don't have it.",
            "Also show their phone numbers."
        ],
        "interaction_query": [
            "SELECT customer_id FROM customers",
            "SELECT customer_id FROM customer_address_history",
            "SELECT customer_name  FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM customer_address_history)",
            "SELECT customer_name ,  customer_phone FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM customer_address_history)"
        ]
    },
    {
        "db_id": "customers_and_products_contacts",
        "final_query": "SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Show the name of the customer who has the most orders.",
        "interaction_utterance": [
            "Show the names of all customers.",
            "Also show the number of orders each of them has.",
            "Sort the names in descending order of the number of orders.",
            "Who has the most?"
        ],
        "interaction_query": [
            "SELECT customer_name FROM customers",
            "SELECT T1.customer_name, count(*) FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id",
            "SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC",
            "SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "customers_and_products_contacts",
        "final_query": "SELECT product_type_code FROM products GROUP BY product_type_code HAVING count(*)  >=  2",
        "final_utterance": "Show the product type codes which have at least two products.",
        "interaction_utterance": [
            "Show the product type code for all products.",
            "For each of them, count the number of products.",
            "Which of them have at least two products?"
        ],
        "interaction_query": [
            "SELECT product_type_code FROM products",
            "SELECT product_type_code, count(*) FROM products GROUP BY product_type_code",
            "SELECT product_type_code FROM products GROUP BY product_type_code HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "customers_and_products_contacts",
        "final_query": "SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.order_status_code  =  'Completed' INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.order_status_code  =  'Part'",
        "final_utterance": "Show the names of customers who have both an order in completed status and an order in part status.",
        "interaction_utterance": [
            "Show the names of all customers.",
            "Who has an order in completed status?",
            "Who has an order in part status?",
            "Who has both?"
        ],
        "interaction_query": [
            "SELECT customer_name FROM customers",
            "SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.order_status_code  =  'Completed'",
            "SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.order_status_code  =  'Part'",
            "SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.order_status_code  =  'Completed' INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.order_status_code  =  'Part'"
        ]
    },
    {
        "db_id": "customers_and_products_contacts",
        "final_query": "SELECT customer_name ,  customer_phone ,  payment_method_code FROM customers ORDER BY customer_number DESC",
        "final_utterance": "Show the name, phone, and payment method code for all customers in descending order of customer number.",
        "interaction_utterance": [
            "Show the name for all customers.",
            "Also show their phone number and payment method code.",
            "Sort the results in descending order of customer number."
        ],
        "interaction_query": [
            "SELECT customer_name FROM customers",
            "SELECT customer_name ,  customer_phone ,  payment_method_code FROM customers",
            "SELECT customer_name ,  customer_phone ,  payment_method_code FROM customers ORDER BY customer_number DESC"
        ]
    },
    {
        "db_id": "customers_and_products_contacts",
        "final_query": "SELECT T1.product_name ,  sum(T2.order_quantity) FROM products AS T1 JOIN order_items AS T2 ON T1.product_id  =  T2.product_id GROUP BY T1.product_id",
        "final_utterance": "Show the product name and total order quantity for each product.",
        "interaction_utterance": [
            "Show the product name for all products.",
            "Show the product name and all the order quantities for each product.",
            "For each of those products, what is the total order quantity?"
        ],
        "interaction_query": [
            "SELECT product_name from products",
            "SELECT T1.product_name ,  T2.order_quantity FROM products AS T1 JOIN order_items AS T2 ON T1.product_id  =  T2.product_id",
            "SELECT T1.product_name ,  sum(T2.order_quantity) FROM products AS T1 JOIN order_items AS T2 ON T1.product_id  =  T2.product_id GROUP BY T1.product_id"
        ]
    },
    {
        "db_id": "customers_and_products_contacts",
        "final_query": "SELECT min(product_price) ,  max(product_price) ,  avg(product_price) FROM products",
        "final_utterance": "Show the minimum, maximum, average price for all products.",
        "interaction_utterance": [
            "Show the price for all products.",
            "What is the minimum, maximum, and average of them?"
        ],
        "interaction_query": [
            "SELECT product_price FROM products",
            "SELECT min(product_price) ,  max(product_price) ,  avg(product_price) FROM products"
        ]
    },
    {
        "db_id": "customers_and_products_contacts",
        "final_query": "SELECT count(*) FROM products WHERE product_price  >  (SELECT avg(product_price) FROM products)",
        "final_utterance": "How many products have a price higher than the average?",
        "interaction_utterance": [
            "What is the average price for prodcuts?",
            "Show product information for products more expensive than the average.",
            "How many such products are there?"
        ],
        "interaction_query": [
            "SELECT avg(product_price) FROM products",
            "SELECT * FROM products WHERE product_price  >  (SELECT avg(product_price) FROM products)",
            "SELECT count(*) FROM products WHERE product_price  >  (SELECT avg(product_price) FROM products)"
        ]
    },
    {
        "db_id": "customers_and_products_contacts",
        "final_query": "SELECT T2.customer_name ,  T3.city ,  T1.date_from ,  T1.date_to FROM customer_address_history AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id JOIN addresses AS T3 ON T1.address_id  =  T3.address_id",
        "final_utterance": "Show the customer name, customer address city, date from, and date to for each customer address history.",
        "interaction_utterance": [
            "Show the date from and date to for each customer address history.",
            "For each of those records, also show the customer name.",
            "For each of those, also show the customer address city."
        ],
        "interaction_query": [
            "SELECT date_from , date_to FROM customer_address_history",
            "SELECT T2.customer_name ,  T1.date_from ,  T1.date_to FROM customer_address_history AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id",
            "SELECT T2.customer_name ,  T3.city ,  T1.date_from ,  T1.date_to FROM customer_address_history AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id JOIN addresses AS T3 ON T1.address_id  =  T3.address_id"
        ]
    },
    {
        "db_id": "customers_and_products_contacts",
        "final_query": "SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.payment_method_code  =  'Credit Card' GROUP BY T1.customer_id HAVING count(*)  >  2",
        "final_utterance": "Show the names of customers who use Credit Card payment method and have more than 2 orders.",
        "interaction_utterance": [
            "Show the names of all customers.",
            "Count the number of orders each of them has made.",
            "For each of them, how many of their orders use Credit Card payment method?",
            "Show the names of those who have more than 2 such orders."
        ],
        "interaction_query": [
            "SELECT customer_name FROM customers",
            "SELECT T1.customer_name, count(*) FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id",
            "SELECT T1.customer_name, count(*) FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.payment_method_code  =  'Credit Card' GROUP BY T1.customer_id",
            "SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.payment_method_code  =  'Credit Card' GROUP BY T1.customer_id HAVING count(*)  >  2"
        ]
    },
    {
        "db_id": "customers_and_products_contacts",
        "final_query": "SELECT  T1.customer_name ,  T1.customer_phone FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id JOIN order_items AS T3 ON T3.order_id  =  T2.order_id GROUP BY T1.customer_id ORDER BY sum(T3.order_quantity) DESC LIMIT 1",
        "final_utterance": "What are the name and phone of the customer with the most ordered product quantity?",
        "interaction_utterance": [
            "Show the names of all customers.",
            "Also show their phone numbers.",
            "For each of them, what is the total product quantity of their orders?",
            "Sort the results in descending order of the quantity.",
            "What are the name and phone number of the customer with the most?"
        ],
        "interaction_query": [
            "select customer_name from customers",
            "select customer_name, customer_phone from customers",
            "SELECT  T1.customer_name ,  T1.customer_phone,  sum(T3.order_quantity) FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id JOIN order_items AS T3 ON T3.order_id  =  T2.order_id GROUP BY T1.customer_id",
            "SELECT  T1.customer_name ,  T1.customer_phone,  sum(T3.order_quantity) FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id JOIN order_items AS T3 ON T3.order_id  =  T2.order_id GROUP BY T1.customer_id ORDER BY sum(T3.order_quantity) DESC",
            "SELECT  T1.customer_name ,  T1.customer_phone FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id JOIN order_items AS T3 ON T3.order_id  =  T2.order_id GROUP BY T1.customer_id ORDER BY sum(T3.order_quantity) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "student_1",
        "final_query": "SELECT DISTINCT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE grade  =  5",
        "final_utterance": "Find the last names of the teachers that teach fifth grade.",
        "interaction_utterance": [
            "Show me the last names of all teachers.",
            "Show me the student grade in each classroom.",
            "Which classrooms do fifth grade students have?",
            "Show me the teachers who teach in any of those classrooms."
        ],
        "interaction_query": [
            "SELECT lastname FROM teachers",
            "SELECT distinct classroom,grade FROM list",
            "SELECT distinct classroom FROM list WHERE Grade = 5",
            "SELECT DISTINCT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE grade  =  5"
        ]
    },
    {
        "db_id": "student_1",
        "final_query": "SELECT DISTINCT T2.firstname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE grade  =  1",
        "final_utterance": "Find the first names of the teachers that teach first grade.",
        "interaction_utterance": [
            "Show me the first names of all teachers.",
            "Show me the student grade in each classroom.",
            "Which classrooms do first grade students have?",
            "Show me the teachers who teach in any of those classrooms."
        ],
        "interaction_query": [
            "SELECT firstname FROM teachers",
            "SELECT distinct classroom,grade FROM list",
            "SELECT distinct classroom FROM list WHERE Grade = 1",
            "SELECT DISTINCT T2.firstname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE grade  =  1"
        ]
    },
    {
        "db_id": "student_1",
        "final_query": "SELECT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"OTHA\" AND T2.lastname  =  \"MOYER\"",
        "final_utterance": "Find all students taught by OTHA MOYER. Output the first and last names of the students.",
        "interaction_utterance": [
            "Show me the name of all teachers in record.",
            "Which classrooms does OTHA MOYER teach in?",
            "Show me the name of students who are in those classrooms."
        ],
        "interaction_query": [
            "SELECT firstname, lastname FROM teachers",
            "SELECT classroom FROM teachers where firstname  =  \"OTHA\" AND lastname  =  \"MOYER\"",
            "SELECT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"OTHA\" AND T2.lastname  =  \"MOYER\""
        ]
    },
    {
        "db_id": "student_1",
        "final_query": "SELECT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"MARROTTE\" AND T2.lastname  =  \"KIRK\"",
        "final_utterance": "Find all students taught by MARROTTE KIRK. Output first and last names of students.",
        "interaction_utterance": [
            "Show me the name of all teachers in record.",
            "Which classrooms does MARROTTE KIRK teach in?",
            "Show me the name of students who are in those classrooms."
        ],
        "interaction_query": [
            "SELECT firstname, lastname FROM teachers",
            "SELECT classroom FROM teachers where firstname  =  \"MARROTTE\" AND lastname  =  \"KIRK\"",
            "SELECT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"MARROTTE\" AND T2.lastname  =  \"KIRK\""
        ]
    },
    {
        "db_id": "student_1",
        "final_query": "SELECT T2.firstname ,  T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  \"EVELINA\" AND T1.lastname  =  \"BROMLEY\"",
        "final_utterance": "Find the first and last name of all the teachers that teach EVELINA BROMLEY.",
        "interaction_utterance": [
            "How many students are there in the file?",
            "Give me the classroom EVELINA BROMLEY is in.",
            "Show me the name of teachers that teach in that classroom."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM list",
            "SELECT Classroom FROM list WHERE firstname  =  \"EVELINA\" AND lastname  =  \"BROMLEY\"",
            "SELECT T2.firstname ,  T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  \"EVELINA\" AND T1.lastname  =  \"BROMLEY\""
        ]
    },
    {
        "db_id": "student_1",
        "final_query": "SELECT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  \"GELL\" AND T1.lastname  =  \"TAMI\"",
        "final_utterance": "Find the last names of all the teachers that teach GELL TAMI.",
        "interaction_utterance": [
            "How many students are there in the file?",
            "Give me the classroom GELL TAMI is in.",
            "Show me the last name of teachers that teach in that classroom."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM list",
            "SELECT Classroom FROM list WHERE firstname  =  \"EVELINA\" AND lastname  =  \"BROMLEY\"",
            "SELECT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  \"GELL\" AND T1.lastname  =  \"TAMI\""
        ]
    },
    {
        "db_id": "student_1",
        "final_query": "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"LORIA\" AND T2.lastname  =  \"ONDERSMA\"",
        "final_utterance": "How many students does LORIA ONDERSMA teaches?",
        "interaction_utterance": [
            "Show me the name of all teachers in record.",
            "Which classrooms does LORIA ONDERSMA teach in?",
            "How many students study in those classrooms?"
        ],
        "interaction_query": [
            "SELECT firstname, lastname FROM teachers",
            "SELECT classroom FROM teachers WHERE firstname  =  \"LORIA\" AND lastname  =  \"ONDERSMA\"",
            "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"LORIA\" AND T2.lastname  =  \"ONDERSMA\""
        ]
    },
    {
        "db_id": "student_1",
        "final_query": "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"KAWA\" AND T2.lastname  =  \"GORDON\"",
        "final_utterance": "How many students does KAWA GORDON teaches?",
        "interaction_utterance": [
            "Show me the name of all teachers in record.",
            "Which classrooms does KAWA GORDON teach in?",
            "How many students study in those classrooms?"
        ],
        "interaction_query": [
            "SELECT firstname, lastname FROM teachers",
            "SELECT classroom FROM teachers WHERE firstname  =  \"KAWA\" AND lastname  =  \"GORDON\"",
            "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"KAWA\" AND T2.lastname  =  \"GORDON\""
        ]
    },
    {
        "db_id": "student_1",
        "final_query": "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"TARRING\" AND T2.lastname  =  \"LEIA\"",
        "final_utterance": "Find the number of students taught by TARRING LEIA.",
        "interaction_utterance": [
            "Show me the name of all teachers in record.",
            "Which classrooms does TARRING LEIA teach in?",
            "How many students study in those classrooms?"
        ],
        "interaction_query": [
            "SELECT firstname, lastname FROM teachers",
            "SELECT classroom FROM teachers WHERE firstname  =  \"TARRING\" AND lastname  =  \"LEIA\"",
            "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"TARRING\" AND T2.lastname  =  \"LEIA\""
        ]
    },
    {
        "db_id": "student_1",
        "final_query": "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  \"CHRISSY\" AND T1.lastname  =  \"NABOZNY\"",
        "final_utterance": "How many teachers does the student named CHRISSY NABOZNY have?",
        "interaction_utterance": [
            "How many teachers are there in record?",
            "What classrooms is CHRISSY NABOZNY in?",
            "How many are they?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM teachers",
            "SELECT classroom FROM list WHERE firstname  =  \"CHRISSY\" AND lastname  =  \"NABOZNY\"",
            "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  \"CHRISSY\" AND T1.lastname  =  \"NABOZNY\""
        ]
    },
    {
        "db_id": "student_1",
        "final_query": "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  \"MADLOCK\" AND T1.lastname  =  \"RAY\"",
        "final_utterance": "How many teachers does the student named MADLOCK RAY have?",
        "interaction_utterance": [
            "How many teachers are there in record?",
            "What classrooms is MADLOCK RAY in?",
            "How many are they?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM teachers",
            "SELECT classroom FROM list WHERE firstname  =  \"CHRISSY\" AND lastname  =  \"NABOZNY\"",
            "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  \"MADLOCK\" AND T1.lastname  =  \"RAY\""
        ]
    },
    {
        "db_id": "student_1",
        "final_query": "SELECT DISTINCT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.grade  =  1 EXCEPT SELECT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"OTHA\" AND T2.lastname  =  \"MOYER\"",
        "final_utterance": "Find all first-grade students who are NOT taught by OTHA MOYER. Report their first and last names.",
        "interaction_utterance": [
            "How many teachers are there?",
            "Show me the classroom of OTHA MOYER.",
            "What about classrooms other than that?",
            "Give me the name of all first-grade students who are in any of those classrooms."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM teachers",
            "SELECT classroom FROM teachers WHERE firstname  =  \"OTHA\" AND lastname  =  \"MOYER\"",
            "SELECT distinct classroom FROM list WHERE classroom not in SELECT classroom FROM teachers WHERE firstname  =  \"OTHA\" AND lastname  =  \"MOYER\"",
            "SELECT DISTINCT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.grade  =  1 EXCEPT SELECT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"OTHA\" AND T2.lastname  =  \"MOYER\""
        ]
    },
    {
        "db_id": "student_1",
        "final_query": "SELECT DISTINCT T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.grade  =  3 AND T2.firstname != \"COVIN\" AND T2.lastname != \"JEROME\"",
        "final_utterance": "Find the last names of the students in third grade that are not taught by COVIN JEROME.",
        "interaction_utterance": [
            "How many teachers are there?",
            "Show me the classroom of OTHA MOYER.",
            "What about classrooms other than that?",
            "Give me the name of all first-grade students who are in any of those classrooms."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM teachers",
            "SELECT classroom FROM teachers WHERE firstname  =  \"OTHA\" AND lastname  =  \"MOYER\"",
            "SELECT distinct classroom FROM list WHERE classroom not in SELECT classroom FROM teachers WHERE firstname  =  \"OTHA\" AND lastname  =  \"MOYER\"",
            "SELECT DISTINCT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.grade  =  1 EXCEPT SELECT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"OTHA\" AND T2.lastname  =  \"MOYER\""
        ]
    },
    {
        "db_id": "student_1",
        "final_query": "SELECT grade ,  count(DISTINCT classroom) ,  count(*) FROM list GROUP BY grade",
        "final_utterance": "For each grade, report the grade, the number of classrooms in which it is taught and the total number of students in the grade.",
        "interaction_utterance": [
            "How many students are there in record?",
            "What about that in terms of each grade?",
            "Also include number of classrooms."
        ],
        "interaction_query": [
            "SELECT count(*) FROM list",
            "SELECT grade, count(*) FROM list GROUP BY grade",
            "SELECT grade ,  count(DISTINCT classroom) ,  count(*) FROM list GROUP BY grade"
        ]
    },
    {
        "db_id": "student_1",
        "final_query": "SELECT classroom FROM list GROUP BY classroom ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which classroom has the most students?",
        "interaction_utterance": [
            "How many classrooms are there?",
            "How many students does each of them have?",
            "Give me the classroom with the most of them."
        ],
        "interaction_query": [
            "SELECT DISTINCT classroom FROM list",
            "SELECT classroom, count(*) FROM list GROUP BY classroom",
            "SELECT classroom FROM list GROUP BY classroom ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "student_1",
        "final_query": "SELECT classroom ,  count(*) FROM list WHERE grade  =  \"0\" GROUP BY classroom",
        "final_utterance": "For each grade 0 classroom, report the total number of students.",
        "interaction_utterance": [
            "How many classrooms are there?",
            "Show me the classrooms that any zero grade is in.",
            "How many students are in each of those classrooms?"
        ],
        "interaction_query": [
            "SELECT DISTINCT classroom FROM list",
            "SELECT distinct classroom FROM list WHERE grade = '0'",
            "SELECT classroom ,  count(*) FROM list WHERE grade  =  \"0\" GROUP BY classroom"
        ]
    },
    {
        "db_id": "student_1",
        "final_query": "SELECT classroom ,  count(*) FROM list WHERE grade  =  \"4\" GROUP BY classroom",
        "final_utterance": "Report the total number of students for each fourth-grade classroom.",
        "interaction_utterance": [
            "How many classrooms are there?",
            "Show me the classrooms that any fourth-grade is in.",
            "How many students are in each of those classrooms?"
        ],
        "interaction_query": [
            "SELECT DISTINCT classroom FROM list",
            "SELECT distinct classroom FROM list WHERE grade = '4'",
            "SELECT classroom ,  count(*) FROM list WHERE grade  =  \"4\" GROUP BY classroom"
        ]
    },
    {
        "db_id": "voter_2",
        "final_query": "SELECT max(Age) ,  min(Age) FROM STUDENT WHERE Major  =  600",
        "final_utterance": "What are the maximum and minimum age of students with major 600?",
        "interaction_utterance": [
            "How many students have major 600?",
            "What is the maximum age of these students?",
            "Please show the minimum age as well."
        ],
        "interaction_query": [
            "SELECT count(*) FROM STUDENT WHERE Major  =  600",
            "SELECT max(Age) FROM STUDENT WHERE Major  =  600",
            "SELECT max(Age) ,  min(Age) FROM STUDENT WHERE Major  =  600"
        ]
    },
    {
        "db_id": "voter_2",
        "final_query": "SELECT DISTINCT T1.Age FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Secretary_Vote WHERE T2.Election_Cycle  =  \"Fall\"",
        "final_utterance": "Find the distinct ages of students who have secretary votes in the fall election cycle.",
        "interaction_utterance": [
            "How many students have secretary votes?",
            "How many of those are from the fall election cycle?",
            "What are the names of those students?",
            "What are their ages?"
        ],
        "interaction_query": [
            "SELECT count(DISTINCT T1.StuID) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Secretary_Vote",
            "SELECT count(DISTINCT T1.StuID) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Secretary_Vote WHERE T2.Election_Cycle  =  \"Fall\"",
            "SELECT DISTINCT T1.Fname, T1.Lname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Secretary_Vote WHERE T2.Election_Cycle  =  \"Fall\"",
            "SELECT DISTINCT T1.Age FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Secretary_Vote WHERE T2.Election_Cycle  =  \"Fall\""
        ]
    },
    {
        "db_id": "voter_2",
        "final_query": "SELECT DISTINCT T1.Advisor FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Treasurer_Vote WHERE T2.Election_Cycle  =  \"Spring\"",
        "final_utterance": "Find the distinct Advisor of students who have treasurer votes in the spring election cycle.",
        "interaction_utterance": [
            "How many students have treasurer votes?",
            "How many of those are from the spring election cycle?",
            "Please list their names.",
            "Who are their advisors?"
        ],
        "interaction_query": [
            "SELECT count(DISTINCT T1.StuID) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Treasurer_Vote",
            "SELECT count(DISTINCT T1.StuID) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Treasurer_Vote WHERE T2.Election_Cycle  =  \"Spring\"",
            "SELECT DISTINCT T1.Fname, T1.Lname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Treasurer_Vote WHERE T2.Election_Cycle  =  \"Spring\"",
            "SELECT DISTINCT T1.Advisor FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Treasurer_Vote WHERE T2.Election_Cycle  =  \"Spring\""
        ]
    },
    {
        "db_id": "voter_2",
        "final_query": "SELECT DISTINCT T1.Fname ,  T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.President_VOTE WHERE T1.sex  =  \"F\"",
        "final_utterance": "Find the first and last names of all the female (sex is F) students who have president votes.",
        "interaction_utterance": [
            "How many students have president votes?",
            "How many of them are female?",
            "What are their first and last names?"
        ],
        "interaction_query": [
            "SELECT count(DISTINCT T1.StuID) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.President_Vote",
            "SELECT count(DISTINCT T1.StuID) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.President_Vote WHERE T1.sex  =  \"F\"",
            "SELECT DISTINCT T1.Fname ,  T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.President_VOTE WHERE T1.sex  =  \"F\""
        ]
    },
    {
        "db_id": "voter_2",
        "final_query": "SELECT DISTINCT T1.Fname ,  T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.VICE_President_VOTE WHERE T1.age  =  18",
        "final_utterance": "Find the first and last name of all the students of age 18 who have vice president votes.",
        "interaction_utterance": [
            "How many students have vice President votes?",
            "What are their names?",
            "How many of them are 18 years old?",
            "What are their first and last names?"
        ],
        "interaction_query": [
            "SELECT count(DISTINCT T1.StuID) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Vice_President_Vote",
            "SELECT DISTINCT T1.Fname, T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Vice_President_Vote",
            "SELECT count(DISTINCT T1.StuID) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Vice_President_Vote WHERE T1.age = 18",
            "SELECT DISTINCT T1.Fname ,  T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.VICE_President_VOTE WHERE T1.age  =  18"
        ]
    },
    {
        "db_id": "voter_2",
        "final_query": "SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  Class_Senator_Vote WHERE T1.Sex  =  \"M\" AND T2.Election_Cycle  =  \"Fall\"",
        "final_utterance": "How many male (sex is M) students have class senator votes in the fall election cycle?",
        "interaction_utterance": [
            "How many students have class senator votes?",
            "How many of those votes are from the fall election cycle?",
            "How many are for male students?"
        ],
        "interaction_query": [
            "SELECT count(DISTINCT T1.StuID) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  Class_Senator_Vote",
            "SELECT count(DISTINCT T1.StuID) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  Class_Senator_Vote WHERE T2.Election_Cycle  =  \"Fall\"",
            "SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  Class_Senator_Vote WHERE T1.Sex  =  \"M\" AND T2.Election_Cycle  =  \"Fall\""
        ]
    },
    {
        "db_id": "voter_2",
        "final_query": "SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  Class_Senator_Vote WHERE T1.city_code  =  \"NYC\" AND T2.Election_Cycle  =  \"Spring\"",
        "final_utterance": "Find the number of students whose city code is NYC and who have class senator votes in the spring election cycle.",
        "interaction_utterance": [
            "Count the number of students whose city code is NYC.",
            "What are their names?",
            "How many of those students have class senator votes?",
            "How many of those votes are from the spring election cycle?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM STUDENT WHERE city_code  =  \"NYC\"",
            "SELECT FName, LName FROM STUDENT WHERE city_code  =  \"NYC\"",
            "SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  Class_Senator_Vote WHERE T1.city_code  =  \"NYC\"",
            "SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  Class_Senator_Vote WHERE T1.city_code  =  \"NYC\" AND T2.Election_Cycle  =  \"Spring\""
        ]
    },
    {
        "db_id": "voter_2",
        "final_query": "SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  SECRETARY_Vote WHERE T1.city_code  =  \"NYC\" AND T2.Election_Cycle  =  \"Spring\"",
        "final_utterance": "Find the average age of students who live in the city with code \"NYC\" and have secretary votes in the spring election cycle.",
        "interaction_utterance": [
            "Count the number of students whose city code is NYC.",
            "How many have secretary votes?",
            "Which of those students have votes from the spring election cycle? List their names.",
            "What is their average age?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM STUDENT WHERE city_code  =  \"NYC\"",
            "SELECT count(DISTINCT T1.StuID) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  SECRETARY_Vote WHERE T1.city_code  =  \"NYC\"",
            "SELECT DISTINCT T1.FName, T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  SECRETARY_Vote WHERE T1.city_code  =  \"NYC\" AND T2.Election_Cycle  =  \"Spring\"",
            "SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  SECRETARY_Vote WHERE T1.city_code  =  \"NYC\" AND T2.Election_Cycle  =  \"Spring\""
        ]
    },
    {
        "db_id": "voter_2",
        "final_query": "SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  SECRETARY_Vote WHERE T1.Sex  =  \"F\" AND T2.Election_Cycle  =  \"Spring\"",
        "final_utterance": "Find the average age of female (sex is F) students who have secretary votes in the spring election cycle.",
        "interaction_utterance": [
            "How many female students are there?",
            "How many have secretary votes?",
            "Which of them have votes from the spring election cycle? List their names.",
            "What is their average age?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM STUDENT WHERE Sex  =  \"F\"",
            "SELECT count(DISTINCT T1.StuID) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  SECRETARY_Vote WHERE T1.sex  =  \"F\"",
            "SELECT count(DISTINCT T1.StuID) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  SECRETARY_Vote WHERE T1.sex  =  \"F\" AND T2.Election_cycle = \"Spring\"",
            "SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  SECRETARY_Vote WHERE T1.Sex  =  \"F\" AND T2.Election_Cycle  =  \"Spring\""
        ]
    },
    {
        "db_id": "voter_2",
        "final_query": "SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname FROM STUDENT WHERE city_code  =  \"PIT\"",
        "final_utterance": "Find the distinct first names of all the students who have vice president votes and whose city code is not PIT.",
        "interaction_utterance": [
            "How many students have Vice President votes?",
            "Count the number of those students whose city code is not PIT.",
            "Please list their names.",
            "Please only list their first names."
        ],
        "interaction_query": [
            "SELECT count(DISTINCT T1.StuID) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  VICE_PRESIDENT_Vote",
            "SELECT count(DISTINCT T1.StuID) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  VICE_PRESIDENT_Vote WHERE city_code != \"PIT\"",
            "SELECT DISTINCT T1.Fname, T1.Lname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname, Lname FROM STUDENT WHERE city_code  =  \"PIT\"",
            "SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname FROM STUDENT WHERE city_code  =  \"PIT\""
        ]
    },
    {
        "db_id": "voter_2",
        "final_query": "SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor  =  \"2192\"",
        "final_utterance": "Find the distinct last names of all the students who have president votes and whose advisor is not 2192.",
        "interaction_utterance": [
            "Which students have president votes?",
            "How many of those students do not have advisor 2192?",
            "What are their names?",
            "Please only list last names."
        ],
        "interaction_query": [
            "SELECT DISTINCT T1.Fname, T1.Lname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.PRESIDENT_Vote",
            "SELECT count(DISTINCT T1.StuID) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.PRESIDENT_Vote WHERE T1.Advisor != \"2192\"",
            "SELECT DISTINCT T1.FName, T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  PRESIDENT_Vote EXCEPT SELECT DISTINCT FName, LName FROM STUDENT WHERE Advisor  =  \"2192\"",
            "SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor  =  \"2192\""
        ]
    },
    {
        "db_id": "voter_2",
        "final_query": "SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor  =  \"8741\"",
        "final_utterance": "Find the distinct last names of all the students who have president votes and whose advisor is 8741.",
        "interaction_utterance": [
            "How many students have president votes?",
            "How many of those students have advisor 8741?",
            "What are their names?",
            "Please only list last names."
        ],
        "interaction_query": [
            "SELECT count(DISTINCT T1.StuID) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.PRESIDENT_Vote",
            "SELECT count(DISTINCT T1.StuID) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.PRESIDENT_Vote WHERE T1.Advisor = \"8741\"",
            "SELECT DISTINCT T1.Fname, T1.Lname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.PRESIDENT_Vote WHERE T1.Advisor = \"8741\"",
            "SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor  =  \"8741\""
        ]
    },
    {
        "db_id": "voter_2",
        "final_query": "SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING COUNT(*)  >  2",
        "final_utterance": "Report all advisors that advise more than 2 students.",
        "interaction_utterance": [
            "What are all of the advisors?",
            "How many advise 2 students or less?",
            "How many advise more than 2 students?",
            "Please report these advisors."
        ],
        "interaction_query": [
            "SELECT DISTINCT Advisor FROM STUDENT",
            "SELECT count(*) FROM (SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING COUNT(*)  <=  2)",
            "SELECT count(*) FROM (SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING COUNT(*)  >  2)",
            "SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING COUNT(*)  >  2"
        ]
    },
    {
        "db_id": "voter_2",
        "final_query": "SELECT Major FROM STUDENT GROUP BY Major HAVING COUNT(*)  <  3",
        "final_utterance": "Report all majors that have less than 3 students.",
        "interaction_utterance": [
            "Report all majors.",
            "How many have 3 students or more?",
            "How many have less than 3 students?",
            "Report those majors with less than 3 students."
        ],
        "interaction_query": [
            "SELECT DISTINCT Major FROM STUDENT",
            "SELECT count(*) FROM (SELECT Major FROM STUDENT GROUP BY Major HAVING COUNT(*)  >=  3)",
            "SELECT count(*) FROM (SELECT Major FROM STUDENT GROUP BY Major HAVING COUNT(*)  <  3)",
            "SELECT Major FROM STUDENT GROUP BY Major HAVING COUNT(*)  <  3"
        ]
    },
    {
        "db_id": "voter_2",
        "final_query": "SELECT Major FROM STUDENT GROUP BY major ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which major has the most students?",
        "interaction_utterance": [
            "Report all majors.",
            "Report the number of students per major as well.",
            "Order the majors by decreasing number of students.",
            "Which major has the most students?"
        ],
        "interaction_query": [
            "SELECT DISTINCT Major FROM STUDENT",
            "SELECT Major, count(*) FROM STUDENT GROUP BY Major",
            "SELECT Major, count(*) FROM STUDENT GROUP BY Major ORDER BY count(*) DESC",
            "SELECT Major FROM STUDENT GROUP BY major ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "voter_2",
        "final_query": "SELECT Major FROM STUDENT WHERE Sex  =  \"F\" GROUP BY major ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the most common major among female (sex is F) students?",
        "interaction_utterance": [
            "List the majors of female students.",
            "Order the majors by decreasing number of students.",
            "What is the most common major?"
        ],
        "interaction_query": [
            "SELECT DISTINCT Major FROM STUDENT WHERE Sex = \"F\"",
            "SELECT DISTINCT Major FROM STUDENT WHERE Sex = \"F\" GROUP BY major ORDER BY count(*) DESC",
            "SELECT Major FROM STUDENT WHERE Sex  =  \"F\" GROUP BY major ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "voter_2",
        "final_query": "SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the city_code of the city that the most students live in?",
        "interaction_utterance": [
            "How many students live in each city?",
            "List the cities from the one with the most students to the one with the least students.",
            "How many students live in the most popular city?",
            "What is the city code of the most popular city?"
        ],
        "interaction_query": [
            "SELECT city_code, count(*) FROM STUDENT GROUP BY city_code",
            "SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY count(*) DESC",
            "SELECT count(*) FROM STUDENT GROUP BY city_code ORDER BY count(*) DESC LIMIT 1",
            "SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT title FROM Movie WHERE director = 'James Cameron' AND YEAR  >  2000",
        "final_utterance": "What is the name of the movie produced after 2000 and directed by James Cameron?",
        "interaction_utterance": [
            "Give me movies that are directed by James Cameron.",
            "What about those that also produced after 2000 at the same time?"
        ],
        "interaction_query": [
            "SELECT title FROM MOVIE WHERE director = 'James Cameron'",
            "SELECT title FROM Movie WHERE director = 'James Cameron' AND YEAR  >  2000"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT rID FROM Reviewer WHERE name LIKE \"%Mike%\"",
        "final_utterance": "What is the id of the reviewer whose name has substring \u201cMike\u201d?",
        "interaction_utterance": [
            "Give me the name of all reviewers.",
            "Whose name contains \"Mike\"?",
            "What about his id?"
        ],
        "interaction_query": [
            "SELECT name FROM Reviewer",
            "SELECT name FROM Reviewer WHERE name LIKE \"%Mike%\"",
            "SELECT rID FROM Reviewer WHERE name LIKE \"%Mike%\""
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT max(stars) ,  min(stars) FROM Rating",
        "final_utterance": "What is the lowest and highest rating star?",
        "interaction_utterance": [
            "What are the ratings?",
            "Show me the lowest and highest stars."
        ],
        "interaction_query": [
            "SELECT * FROM Rating",
            "SELECT max(stars) ,  min(stars) FROM Rating"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID WHERE T2.stars  >=  4 ORDER BY T1.year",
        "final_utterance": "Find all years that have a movie that received a rating of 4 or 5, and sort them in increasing order of year.",
        "interaction_utterance": [
            "Show me the name of all movies.",
            "What about their ratings?",
            "Only show those with a rating of 4 or 5.",
            "Give me all years that have any of those movies in the order of year."
        ],
        "interaction_query": [
            "SELECT title FROM movie",
            "SELECT t1.title, t2.stars FROM Movie AS t1 JOIN Rating AS t2 on t1.mID = t2.mID",
            "SELECT t1.title, t2.stars FROM Movie AS t1 JOIN Rating AS t2 on t1.mID = t2.mID WHERE t2.stars >= 4",
            "SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID WHERE T2.stars  >=  4 ORDER BY T1.year"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT T1.director ,  T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID WHERE T2.stars  =  5",
        "final_utterance": "What are the names of directors who directed movies with 5 star rating? Also return the title of these movies.",
        "interaction_utterance": [
            "Show me the names of all movies.",
            "What about those with 5 star rating?",
            "Who directed those movies?"
        ],
        "interaction_query": [
            "SELECT title FROM movie",
            "SELECT t1.title FROM movie AS t1 JOIN Rating AS t2 ON t1.mID = t2.mID where t2.stars = 5",
            "SELECT T1.director ,  T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID WHERE T2.stars  =  5"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT T2.name ,  avg(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID GROUP BY T2.name",
        "final_utterance": "What is the average rating star for each reviewer?",
        "interaction_utterance": [
            "Who are all the reviewers?",
            "What is their highest rating?",
            "What is their lowest rating?",
            "What about their average rating?"
        ],
        "interaction_query": [
            "SELECT name FROM Reviewer",
            "SELECT T2.name ,  max(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID GROUP BY T2.name",
            "SELECT T2.name ,  min(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID GROUP BY T2.name",
            "SELECT T2.name ,  avg(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID GROUP BY T2.name"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT title FROM Movie WHERE mID NOT IN (SELECT mID FROM Rating)",
        "final_utterance": "Find the titles of all movies that have no ratings.",
        "interaction_utterance": [
            "What are the title of all movies?",
            "What about those without any rating?"
        ],
        "interaction_query": [
            "SELECT title FROM movie",
            "SELECT title FROM Movie WHERE mID NOT IN (SELECT mID FROM Rating)"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT avg(T1.stars) ,  T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.year  =  (SELECT min(YEAR) FROM Movie)",
        "final_utterance": "What is the average rating stars and title for the oldest movie?",
        "interaction_utterance": [
            "What are the titles of all movies?",
            "Which one is the oldest?",
            "What is its average rating stars?"
        ],
        "interaction_query": [
            "SELECT title FROM movie",
            "SELECT title FROM movie WHERE Year = (SELECT min(YEAR) FROM Movie)",
            "SELECT avg(T1.stars) ,  T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.year  =  (SELECT min(YEAR) FROM Movie)"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT title FROM Movie WHERE YEAR  =  (SELECT max(YEAR) FROM Movie)",
        "final_utterance": "What is the name of the most recent movie?",
        "interaction_utterance": [
            "What are the titles of all movies?",
            "Which one is the most recent?"
        ],
        "interaction_query": [
            "SELECT title FROM movie",
            "SELECT title FROM movie WHERE Year = (SELECT max(YEAR) FROM Movie)"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT max(T1.stars) ,  T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.year  =  (SELECT max(YEAR) FROM Movie)",
        "final_utterance": "What is the maximum stars and year for the most recent movie?",
        "interaction_utterance": [
            "What are the titles of all movies?",
            "Which one is the most recent?",
            "What is its highest rating stars?"
        ],
        "interaction_query": [
            "SELECT title FROM movie",
            "SELECT title FROM movie WHERE Year = (SELECT max(YEAR) FROM Movie)",
            "SELECT max(T1.stars) ,  T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.year  =  (SELECT max(YEAR) FROM Movie)"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT title FROM Movie WHERE YEAR  >  (SELECT max(YEAR) FROM Movie WHERE director  =  \"Steven Spielberg\")",
        "final_utterance": "What are the names of movies whose created year is after all movies directed by Steven Spielberg?",
        "interaction_utterance": [
            "Show me the movies directed by Steven Spielberg.",
            "What about their years?",
            "Show me the movies that were created after all of the above movies."
        ],
        "interaction_query": [
            "SELECT title FROM Movie WHERE director  =  \"Steven Spielberg\"",
            "SELECT title, year FROM Movie WHERE director  =  \"Steven Spielberg\"",
            "SELECT title FROM Movie WHERE YEAR  >  (SELECT max(YEAR) FROM Movie WHERE director  =  \"Steven Spielberg\")"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT T2.title ,  T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars  >  (SELECT avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.director  =  \"James Cameron\")",
        "final_utterance": "What are the titles and directors of the movies whose star is greater than the average stars of the movies directed by James Cameron?",
        "interaction_utterance": [
            "Show me the movies directed by James Cameron.",
            "What about their rating stars?",
            "Show me the average of them.",
            "Give me the titles and directors of movies whose star is greater than that."
        ],
        "interaction_query": [
            "SELECT title FROM Movie WHERE director  =  \"James Cameron\"",
            "SELECT T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.director  =  \"James Cameron\"",
            "SELECT avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.director  =  \"James Cameron\"",
            "SELECT T2.title ,  T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars  >  (SELECT avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.director  =  \"James Cameron\")"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT T3.name ,  T2.title ,  T1.stars ,  T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID ORDER BY T3.name ,  T2.title ,  T1.stars",
        "final_utterance": "Return reviewer name, movie title, stars, and rating date. And sort the data first by reviewer name, then by movie title, and lastly by number of stars.",
        "interaction_utterance": [
            "What are the titles of all movies?",
            "Show me their reviewer's name, stars, and rating date.",
            "Sort them first by reviewer name, then by movie title, and lastly by number of stars."
        ],
        "interaction_query": [
            "SELECT title FROM movie",
            "SELECT T3.name ,  T2.title ,  T1.stars ,  T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID",
            "SELECT T3.name ,  T2.title ,  T1.stars ,  T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID ORDER BY T3.name ,  T2.title ,  T1.stars"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID GROUP BY T1.rID HAVING COUNT(*)  >=  3",
        "final_utterance": "Find the names of all reviewers who have contributed three or more ratings.",
        "interaction_utterance": [
            "Show me the names of all the reviewers.",
            "What about the ratings they have contributed?",
            "Show me the reviewers who have contributed three or more ratings."
        ],
        "interaction_query": [
            "SELECT name FROM Reviewer",
            "SELECT * FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID",
            "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID GROUP BY T1.rID HAVING COUNT(*)  >=  3"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T2.title  =  'Gone with the Wind'",
        "final_utterance": "Find the names of all reviewers who rated Gone with the Wind.",
        "interaction_utterance": [
            "Show me the ratings for Gone with the Wind.",
            "Give me the names of reviewers who gave those ratings."
        ],
        "interaction_query": [
            "SELECT * FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T2.title  =  'Gone with the Wind'",
            "SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T2.title  =  'Gone with the Wind'"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  'Sarah Martinez'",
        "final_utterance": "Find the names of all directors whose movies are rated by Sarah Martinez.",
        "interaction_utterance": [
            "Show me all the ratings given by Sarah Martinez.",
            "What movies are those ratings about?",
            "Show me the directors of those movies."
        ],
        "interaction_query": [
            "SELECT * FROM rating AS t1 JOIN Reviewer AS t2 on t1.rID = t2.rID where t2.name = \"Sarah Martinez\"",
            "SELECT distinct t1.title FROM Movie as t1 JOIN Rating as t2 on t1.mID = t2.mID JOIN Reviewer AS t3 on t2.rID = t3.rID WHERE t3.name = \"Sarah Martinez\"",
            "SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  'Sarah Martinez'"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT DISTINCT T3.name ,  T2.title ,  T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T2.director  =  T3.name",
        "final_utterance": "For any rating where the name of reviewer is the same as the director of the movie, return the reviewer name, movie title, and number of stars.",
        "interaction_utterance": [
            "Show me the titles of all the movies.",
            "What about the name of their reviewers and directors?",
            "Show those who have the same names.",
            "Give me the reviewer name, movie title, and number of stars."
        ],
        "interaction_query": [
            "SELECT title FROM Movie",
            "SELECT T3.name, T2.title, T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID",
            "SELECT T3.name, T2.title, T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T2.director  =  T3.name",
            "SELECT DISTINCT T3.name ,  T2.title ,  T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T2.director  =  T3.name"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT name FROM Reviewer UNION SELECT title FROM Movie",
        "final_utterance": "Return all reviewer names and movie names together in a single list.",
        "interaction_utterance": [
            "Give me the names of all reviewers.",
            "Show me the title of all movies together in a single list."
        ],
        "interaction_query": [
            "SELECT name FROM Reviewer",
            "SELECT name FROM Reviewer UNION SELECT title FROM Movie"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  'Chris Jackson'",
        "final_utterance": "Find the titles of all movies not reviewed by Chris Jackson.",
        "interaction_utterance": [
            "Give me the ratings given by Chris Jackson.",
            "What movies are they about?",
            "Show me the movies other than those."
        ],
        "interaction_query": [
            "SELECT * FROM rating as t1 JOIN reviewer as t2 on t1.rID = t2.rID and t2.name = 'Chris Jackson'",
            "SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  'Chris Jackson'",
            "SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  'Chris Jackson'"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT T1.title ,  T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director  =  T2.director WHERE T1.title != T2.title ORDER BY T1.director ,  T1.title",
        "final_utterance": "For all directors who directed more than one movie, return the titles of all movies directed by them, along with the director name. Sort by director name, then movie title.",
        "interaction_utterance": [
            "What are all the directors?",
            "How many movies did each of them direct?",
            "Show me those who directed more than one movie.",
            "Show me their directed movies' titles, in the order of director name, then movie title."
        ],
        "interaction_query": [
            "SELECT DISTINCT director FROM Movie",
            "SELECT count(*), director FROM Movie group by director",
            "SELECT director FROM Movie group by director having count(*) > 1",
            "SELECT T1.title ,  T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director  =  T2.director WHERE T1.title != T2.title ORDER BY T1.director ,  T1.title"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT T1.title ,  T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director  =  T2.director WHERE T1.title != T2.title",
        "final_utterance": "For directors who had more than one movie, return the titles and produced years of all movies directed by them.",
        "interaction_utterance": [
            "What are all the directors?",
            "How many movies did each of them direct?",
            "Show me those who directed more than one movie.",
            "Give me the titles and produced years of all movies directed by them."
        ],
        "interaction_query": [
            "SELECT DISTINCT director FROM Movie",
            "SELECT count(*), director FROM Movie group by director",
            "SELECT director FROM Movie group by director having count(*) > 1",
            "SELECT T1.title ,  T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director  =  T2.director WHERE T1.title != T2.title"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT director FROM Movie GROUP BY director HAVING count(*)  =  1",
        "final_utterance": "What are the names of the directors who made exactly one movie?",
        "interaction_utterance": [
            "What are all the directors?",
            "How many movies did each of them direct?",
            "Show me those who directed exactly one movie."
        ],
        "interaction_query": [
            "SELECT DISTINCT director FROM Movie",
            "SELECT count(*), director FROM Movie group by director",
            "SELECT director FROM Movie group by director having count(*) = 1"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT director FROM Movie WHERE director != \"null\" GROUP BY director HAVING count(*)  =  1",
        "final_utterance": "What are the names of the directors who made exactly one movie excluding director NULL?",
        "interaction_utterance": [
            "What are all the directors?",
            "How many movies did each of them direct?",
            "Show me those who directed exactly one movie other than NULL."
        ],
        "interaction_query": [
            "SELECT DISTINCT director FROM Movie",
            "SELECT count(*), director FROM Movie group by director",
            "SELECT director FROM Movie WHERE director != \"null\" GROUP BY director HAVING count(*)  =  1"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT count(*) ,  T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID GROUP BY T1.director",
        "final_utterance": "How many movie reviews does each director get?",
        "interaction_utterance": [
            "What are all the directors?",
            "How many movie reviews does each of them get?"
        ],
        "interaction_query": [
            "SELECT DISTINCT director FROM Movie",
            "SELECT count(*) ,  T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID GROUP BY T1.director"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT T2.title ,  avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) DESC LIMIT 1",
        "final_utterance": "Find the movies with the highest average rating. Return the movie titles and average rating.",
        "interaction_utterance": [
            "What are all the movies?",
            "What are their average ratings?",
            "Give me the movies with the highest average rating."
        ],
        "interaction_query": [
            "SELECT title FROM Movie",
            "SELECT T2.title ,  avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID",
            "SELECT T2.title ,  avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT T2.title ,  avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) LIMIT 1",
        "final_utterance": "What are the movie titles and average rating of the movies with the lowest average rating?",
        "interaction_utterance": [
            "What are all the movies?",
            "What are their average ratings?",
            "Give me the movies with the lowest average rating."
        ],
        "interaction_query": [
            "SELECT title FROM Movie",
            "SELECT T2.title ,  avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID",
            "SELECT T2.title ,  avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) LIMIT 1"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT T2.title ,  T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID ORDER BY T1.stars DESC LIMIT 3",
        "final_utterance": "What are the names and years of the movies that has the top 3 highest rating star?",
        "interaction_utterance": [
            "Show me the titles all the movies.",
            "What are their ratings?",
            "Show me the names and years of the movies that has the top 3 rating star."
        ],
        "interaction_query": [
            "SELECT title FROM Movie",
            "SELECT T2.title ,  T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID",
            "SELECT T2.title ,  T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID ORDER BY T1.stars DESC LIMIT 3"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT T2.title ,  T2.director ,  max(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE director != \"null\" GROUP BY director",
        "final_utterance": "For each director, return the director's name together with the title of the movie they directed that received the highest rating among all of their movies, and the value of that rating. Ignore movies whose director is NULL.",
        "interaction_utterance": [
            "What are all the directors excluding NULL?",
            "What about the highest rating their movies have ever received?",
            "Also give me those movies' title."
        ],
        "interaction_query": [
            "SELECT distinct director FROM Movie WHERE director != \"null\"",
            "SELECT T2.director ,  max(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE director != \"null\" GROUP BY director",
            "SELECT T2.title ,  T1.stars ,  T2.director ,  max(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE director != \"null\" GROUP BY director"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT T2.title ,  T1.rID ,  T1.stars ,  min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.rID",
        "final_utterance": "Find the title and star rating of the movie that got the least rating star for each reviewer.",
        "interaction_utterance": [
            "What are the name of all the reviewers?",
            "What are the least rating stars they ever gave?",
            "Also show me the title of the movies that correspond to those rating stars."
        ],
        "interaction_query": [
            "SELECT name from Reviewer",
            "SELECT min(stars) FROM Rating GROUP BY rID",
            "SELECT T2.title ,  T1.rID ,  T1.stars ,  min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.rID"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT T2.title ,  T1.stars ,  T2.director ,  min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T2.director",
        "final_utterance": "Find the title and score of the movie with the lowest rating among all movies directed by each director.",
        "interaction_utterance": [
            "Who are all the directors?",
            "What about the lowest rating their movies have ever received?",
            "Also give me those movies' title."
        ],
        "interaction_query": [
            "SELECT distinct director FROM Movie",
            "SELECT T2.director ,  min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY director",
            "SELECT T2.title ,  T1.stars ,  T2.director ,  min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T2.director"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT T2.title ,  T1.mID FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the name of the movie that is rated by most of times?",
        "interaction_utterance": [
            "What are the names of all movies?",
            "How many ratings did each of them have?",
            "Give me the name of the movie that has the most ratings."
        ],
        "interaction_query": [
            "SELECT title FROM Movie",
            "SELECT count(*) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY t1.mID",
            "SELECT T2.title ,  T1.mID FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars BETWEEN 3 AND 5",
        "final_utterance": "What are the titles of all movies that have rating star is between 3 and 5?",
        "interaction_utterance": [
            "What are the name of all movies?",
            "What rating star did each of them have?",
            "Give me the movies that have rating star between 3 and 5."
        ],
        "interaction_query": [
            "SELECT title FROM Movie",
            "SELECT T2.title, T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID",
            "SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars BETWEEN 3 AND 5"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  >  3",
        "final_utterance": "Find the names of reviewers who had given higher than 3 stars ratings.",
        "interaction_utterance": [
            "What are the names of all the reviewers?",
            "Who had given ratings higher than 3 stars?"
        ],
        "interaction_query": [
            "SELECT name FROM Reviewer",
            "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  >  3"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT mID ,  avg(stars) FROM Rating WHERE mID NOT IN (SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T2.name  =  \"Brittany Harris\") GROUP BY mID",
        "final_utterance": "Find the average rating star for each movie that are not reviewed by Brittany Harris.",
        "interaction_utterance": [
            "What are the name of all the reviewers?",
            "What are the movies that are reviewed by Brittany Harris?",
            "Show me the average rating star for all other movies except those."
        ],
        "interaction_query": [
            "SELECT name FROM Reviewer",
            "SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T2.name  =  \"Brittany Harris\"",
            "SELECT mID ,  avg(stars) FROM Rating WHERE mID NOT IN (SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T2.name  =  \"Brittany Harris\") GROUP BY mID"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T2.name  =  \"Brittany Harris\"",
        "final_utterance": "What are the ids of the movies that are not reviewed by Brittany Harris.",
        "interaction_utterance": [
            "What are the name of all the reviewers?",
            "What are the ids of the movies that are reviewed by Brittany Harris?",
            "Show me the ids of movies except those."
        ],
        "interaction_query": [
            "SELECT name FROM Reviewer",
            "SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T2.name  =  \"Brittany Harris\"",
            "SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T2.name  =  \"Brittany Harris\""
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT mID ,  avg(stars) FROM Rating GROUP BY mID HAVING count(*)  >=  2",
        "final_utterance": "Find the average rating star for each movie that received at least 2 ratings.",
        "interaction_utterance": [
            "What are the rating star for all the movies?",
            "Give me the average rating star for each movie.",
            "Only show those that received at least 2 ratings."
        ],
        "interaction_query": [
            "SELECT mID, stars FROM Rating",
            "SELECT mID ,  avg(stars) FROM Rating GROUP BY mID",
            "SELECT mID ,  avg(stars) FROM Rating GROUP BY mID HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT rID FROM Rating EXCEPT SELECT rID FROM Rating WHERE stars  =  4",
        "final_utterance": "find the ids of reviewers who did not give 4 star.",
        "interaction_utterance": [
            "What are all the ratings?",
            "Show me the ids of reviewers who gave 4 star.",
            "Give me the ids of reviewers except those."
        ],
        "interaction_query": [
            "SELECT * FROM Rating",
            "SELECT distinct rID FROM Rating WHERE stars  =  4",
            "SELECT rID FROM Rating EXCEPT SELECT rID FROM Rating WHERE stars  =  4"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  'Brittany Harris' OR T2.year  >  2000",
        "final_utterance": "What are names of the movies that are either made after 2000 or reviewed by Brittany Harris?",
        "interaction_utterance": [
            "Show me the name of all the movies.",
            "What about those that were made after 2000?",
            "Please also include those that were reviewed by Brittany Harris."
        ],
        "interaction_query": [
            "SELECT title FROM Movie",
            "SELECT title FROM Movie where year > 2000",
            "SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  'Brittany Harris' OR T2.year  >  2000"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT title FROM Movie WHERE director  =  \"James Cameron\" OR YEAR   <  1980",
        "final_utterance": "What are names of the movies that are either made before 1980 or directed by James Cameron?",
        "interaction_utterance": [
            "Show me the name of all the movies.",
            "What about those that were made before 1980?",
            "Please also include those that were directed by James Cameron."
        ],
        "interaction_query": [
            "SELECT title FROM Movie",
            "SELECT title FROM Movie where year < 1980",
            "SELECT title FROM Movie WHERE director  =  \"James Cameron\" OR YEAR   <  1980"
        ]
    },
    {
        "db_id": "movie_1",
        "final_query": "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  =  3 INTERSECT SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  =  4",
        "final_utterance": "What are the names of reviewers who had rated 3 star and 4 star?",
        "interaction_utterance": [
            "Show me the name of all the reviewers.",
            "What about the rating star they had given?",
            "Show me the reviewers who had rated 3 star and 4 star."
        ],
        "interaction_query": [
            "SELECT name FROM Reviewer",
            "SELECT T2.name, T1.stars FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID",
            "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  =  3 INTERSECT SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  =  4"
        ]
    },
    {
        "db_id": "epinions_1",
        "final_query": "SELECT avg(rating) ,  max(rating) FROM review",
        "final_utterance": "Find the average and maximum rating of all reviews.",
        "interaction_utterance": [
            "List the ratings for all of the reviews.",
            "What was the average rating?",
            "Include the maximum as well."
        ],
        "interaction_query": [
            "SELECT rating FROM review",
            "SELECT avg(rating) FROM review",
            "SELECT avg(rating) ,  max(rating) FROM review"
        ]
    },
    {
        "db_id": "epinions_1",
        "final_query": "SELECT count(*) FROM item WHERE i_id NOT IN (SELECT i_id FROM review)",
        "final_utterance": "Find the number of items that did not receive any review.",
        "interaction_utterance": [
            "Show all items.",
            "Which ones received reviews?",
            "How about those that did not receive any reviews?",
            "How many unreviewed items were there?"
        ],
        "interaction_query": [
            "SELECT title FROM item",
            "SELECT title FROM item WHERE i_id IN (SELECT i_id FROM review)",
            "SELECT title FROM item WHERE i_id NOT IN (SELECT i_id FROM review)",
            "SELECT count(*) FROM item WHERE i_id NOT IN (SELECT i_id FROM review)"
        ]
    },
    {
        "db_id": "epinions_1",
        "final_query": "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  =  10",
        "final_utterance": "Find the names of goods that receive a rating of 10.",
        "interaction_utterance": [
            "List the ratings of all goods.",
            "Include the names of the goods.",
            "How many received a rating of 10?",
            "What are the names of these goods?"
        ],
        "interaction_query": [
            "SELECT rating FROM review",
            "SELECT T1.title, T2.rating FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id",
            "SELECT count(*) FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  =  10",
            "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  =  10"
        ]
    },
    {
        "db_id": "epinions_1",
        "final_query": "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  >  (SELECT avg(rating) FROM review)",
        "final_utterance": "Find the titles of items whose rating is higher than the average review rating of all items.",
        "interaction_utterance": [
            "What is the average rating of all items?",
            "How many items have a rating lower than the average?",
            "How about higher than the average?",
            "What are the names of those items?"
        ],
        "interaction_query": [
            "SELECT avg(rating) FROM review",
            "SELECT count(*) FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  <  (SELECT avg(rating) FROM review)",
            "SELECT count(*) FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  >  (SELECT avg(rating) FROM review)",
            "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  >  (SELECT avg(rating) FROM review)"
        ]
    },
    {
        "db_id": "epinions_1",
        "final_query": "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  <  5",
        "final_utterance": "Find the titles of items that received any rating below 5.",
        "interaction_utterance": [
            "List the title and rating for each item.",
            "Order by increasing rating.",
            "How many received a rating below 5?",
            "What are the names of these items?"
        ],
        "interaction_query": [
            "SELECT T1.title, T2.rating FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id",
            "SELECT T1.title, T2.rating FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id ORDER BY T2.rating ASC",
            "SELECT count(*) FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  <  5",
            "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  <  5"
        ]
    },
    {
        "db_id": "epinions_1",
        "final_query": "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  >  8 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  <  5",
        "final_utterance": "Find the titles of items that received both a rating higher than 8 and a rating below 5.",
        "interaction_utterance": [
            "What is the title and rating for each item?",
            "Which ones received a rating higher than 8?",
            "Out of those items, which ones also received a rating less than 5?"
        ],
        "interaction_query": [
            "SELECT T1.title, T2.rating FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id",
            "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  >  8",
            "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  >  8 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  <  5"
        ]
    },
    {
        "db_id": "epinions_1",
        "final_query": "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rank  >  3 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id HAVING avg(T2.rating)  >  5",
        "final_utterance": "Find the names of items whose rank is higher than 3 and whose average rating is above 5.",
        "interaction_utterance": [
            "What items were ranked?",
            "How many have a rank that is greater than 3?",
            "List the names of these items.",
            "Out of these items, which ones also have an average rating that is above 5?"
        ],
        "interaction_query": [
            "SELECT DISTINCT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id",
            "SELECT count(DISTINCT T1.title) FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rank  >  3",
            "SELECT DISTINCT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rank  >  3",
            "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rank  >  3 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id HAVING avg(T2.rating)  >  5"
        ]
    },
    {
        "db_id": "epinions_1",
        "final_query": "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id ORDER BY avg(T2.rating) LIMIT 1",
        "final_utterance": "Find the name of the item with the lowest average rating.",
        "interaction_utterance": [
            "List the names of all items",
            "Show the average rating of each one as well.",
            "Order by increasing average rating.",
            "Which one has the lowest?"
        ],
        "interaction_query": [
            "SELECT title FROM item",
            "SELECT T1.title, avg(T2.rating) FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id",
            "SELECT T1.title, avg(T2.rating) FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id ORDER BY avg(T2.rating)",
            "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id ORDER BY avg(T2.rating) LIMIT 1"
        ]
    },
    {
        "db_id": "epinions_1",
        "final_query": "SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id GROUP BY T2.u_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the name of the user who gives the most reviews.",
        "interaction_utterance": [
            "What are the names of all users?",
            "How many reviews were given by each user?",
            "Order by the number of reviews given, from the greatest to the least.",
            "Who gave the most reviews?"
        ],
        "interaction_query": [
            "SELECT name FROM useracct",
            "SELECT T1.name, count(*) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id GROUP BY T2.u_id",
            "SELECT T1.name, count(*) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id GROUP BY T2.u_id ORDER BY count(*) DESC",
            "SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id GROUP BY T2.u_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "epinions_1",
        "final_query": "SELECT T1.title ,  T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id ORDER BY avg(T2.rating) DESC LIMIT 1",
        "final_utterance": "Find the name and id of the item with the highest average rating.",
        "interaction_utterance": [
            "List the name of each item that received a rating.",
            "Include the item ID as well.",
            "Order items by decreasing average rating.",
            "Which item had the highest? Include its ID as well."
        ],
        "interaction_query": [
            "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id",
            "SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id",
            "SELECT T1.title ,  T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id ORDER BY avg(T2.rating) DESC",
            "SELECT T1.title ,  T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id ORDER BY avg(T2.rating) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "epinions_1",
        "final_query": "SELECT T1.title ,  T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id ORDER BY avg(T2.rank) DESC LIMIT 1",
        "final_utterance": "Find the name and id of the good with the highest average rank.",
        "interaction_utterance": [
            "Which items have a rank?",
            "Also include their IDs.",
            "Order them by average rank from highest to lowest.",
            "What is the name and ID of the item that received the highest average rank?"
        ],
        "interaction_query": [
            "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id",
            "SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id",
            "SELECT T1.title ,  T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id ORDER BY avg(T2.rank)",
            "SELECT T1.title ,  T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id ORDER BY avg(T2.rank) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "epinions_1",
        "final_query": "SELECT T1.name ,  avg(T2.rating) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id GROUP BY T2.u_id",
        "final_utterance": "For each user, return the name and the average rating of reviews given by them.",
        "interaction_utterance": [
            "List the names of all users.",
            "Only show those who gave reviews.",
            "Include the ratings given by each of them.",
            "Only show their name and the average rating given by each of them."
        ],
        "interaction_query": [
            "SELECT name FROM useracct",
            "SELECT DISTINCT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id",
            "SELECT T1.name, T2.rating FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id",
            "SELECT T1.name ,  avg(T2.rating) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id GROUP BY T2.u_id"
        ]
    },
    {
        "db_id": "epinions_1",
        "final_query": "SELECT T1.name ,  count(*) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id GROUP BY T2.u_id",
        "final_utterance": "For each user, find their name and the number of reviews written by them.",
        "interaction_utterance": [
            "What are the names of the users?",
            "How many wrote reviews?",
            "List their names?",
            "Include the number of reviews written by each of them."
        ],
        "interaction_query": [
            "SELECT name FROM useracct",
            "SELECT count(DISTINCT T1.name) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id",
            "SELECT DISTINCT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id",
            "SELECT T1.name ,  count(*) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id GROUP BY T2.u_id"
        ]
    },
    {
        "db_id": "epinions_1",
        "final_query": "SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id ORDER BY T2.rating DESC LIMIT 1",
        "final_utterance": "Find the name of the user who gave the highest rating.",
        "interaction_utterance": [
            "List the names of users who gave ratings.",
            "Include the ratings that they gave as well.",
            "Order by highest to lowest rating.",
            "Who gave the highest rating?"
        ],
        "interaction_query": [
            "SELECT DISTINCT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id",
            "SELECT T1.name, T2.rating FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id",
            "SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id ORDER BY T2.rating DESC",
            "SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id ORDER BY T2.rating DESC LIMIT 1"
        ]
    },
    {
        "db_id": "epinions_1",
        "final_query": "SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id  =  T2.source_u_id GROUP BY T2.source_u_id ORDER BY avg(trust) DESC LIMIT 1",
        "final_utterance": "Find the name of the source user with the highest average trust score.",
        "interaction_utterance": [
            "What are all of the users\u2019 names?",
            "Only show the names of source users.",
            "Order them by decreasing average trust score.",
            "Who has the highest average trust score?"
        ],
        "interaction_query": [
            "SELECT name FROM useracct",
            "SELECT DISTINCT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id  =  T2.source_u_id",
            "SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id  =  T2.source_u_id GROUP BY T2.source_u_id ORDER BY avg(trust) DESC",
            "SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id  =  T2.source_u_id GROUP BY T2.source_u_id ORDER BY avg(trust) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "epinions_1",
        "final_query": "SELECT T1.name ,  avg(trust) FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id  =  T2.target_u_id GROUP BY T2.target_u_id",
        "final_utterance": "Find each target user's name and average trust score.",
        "interaction_utterance": [
            "List the names of all target users.",
            "Include the trust scores for each target user.",
            "List the name and average trust score for each target user."
        ],
        "interaction_query": [
            "SELECT DISTINCT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id  =  T2.target_u_id",
            "SELECT T1.name ,  T2.trust FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id  =  T2.target_u_id",
            "SELECT T1.name ,  avg(trust) FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id  =  T2.target_u_id GROUP BY T2.target_u_id"
        ]
    },
    {
        "db_id": "epinions_1",
        "final_query": "SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id  =  T2.target_u_id ORDER BY trust LIMIT 1",
        "final_utterance": "Find the name of the target user with the lowest trust score.",
        "interaction_utterance": [
            "What are the names of all users?",
            "Only show the target users.",
            "Order them by increasing trust score.",
            "Who has the lowest trust score?"
        ],
        "interaction_query": [
            "SELECT name FROM useracct",
            "SELECT DISTINCT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id  =  T2.target_u_id",
            "SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id  =  T2.target_u_id ORDER BY trust",
            "SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id  =  T2.target_u_id ORDER BY trust LIMIT 1"
        ]
    },
    {
        "db_id": "epinions_1",
        "final_query": "SELECT title FROM item WHERE i_id NOT IN (SELECT i_id FROM review)",
        "final_utterance": "Find the names of the items that did not receive any review.",
        "interaction_utterance": [
            "List the names of all items.",
            "How many did not receive any reviews?",
            "List their names."
        ],
        "interaction_query": [
            "SELECT title FROM item",
            "SELECT count(*) FROM item WHERE i_id NOT IN (SELECT i_id FROM review)",
            "SELECT title FROM item WHERE i_id NOT IN (SELECT i_id FROM review)"
        ]
    },
    {
        "db_id": "epinions_1",
        "final_query": "SELECT name FROM useracct WHERE u_id NOT IN (SELECT u_id FROM review)",
        "final_utterance": "Find the names of users who did not leave any review.",
        "interaction_utterance": [
            "What are all of the users\u2019 names?",
            "How many wrote reviews?",
            "How many did not write reviews?",
            "List their names."
        ],
        "interaction_query": [
            "SELECT name FROM useracct",
            "SELECT count(*) FROM useracct WHERE u_id IN (SELECT u_id FROM review)",
            "SELECT count(*) FROM useracct WHERE u_id NOT IN (SELECT u_id FROM review)",
            "SELECT name FROM useracct WHERE u_id NOT IN (SELECT u_id FROM review)"
        ]
    },
    {
        "db_id": "customer_complaints",
        "final_query": "SELECT town_city FROM customers WHERE customer_type_code  =  \"Good Credit Rating\" GROUP BY town_city ORDER BY count(*) LIMIT 1",
        "final_utterance": "Which city has the least number of customers whose type code is \"Good Credit Rating\"?",
        "interaction_utterance": [
            "Which cities have customer_type_code of \"Good Credit Rating\"?",
            "Which ones do not?",
            "Give the counts of the town city groups of customers in that first query.",
            "Just return the town city with the least number."
        ],
        "interaction_query": [
            "SELECT DISTINCT town_city FROM customers WHERE customer_type_code  =  \"Good Credit Rating\"",
            "SELECT DISTINCT town_city FROM customers WHERE customer_type_code  !=  \"Good Credit Rating\"",
            "SELECT town_city, count(*) FROM customers WHERE customer_type_code  =  \"Good Credit Rating\" GROUP BY town_city",
            "SELECT town_city FROM customers WHERE customer_type_code  =  \"Good Credit Rating\" GROUP BY town_city ORDER BY count(*) LIMIT 1"
        ]
    },
    {
        "db_id": "customer_complaints",
        "final_query": "SELECT t1.product_name ,  count(*) FROM products AS t1 JOIN complaints AS t2 ON t1.product_id  =  t2.product_id GROUP BY t1.product_name",
        "final_utterance": "List the name of all products along with the number of complaints that they have received.",
        "interaction_utterance": [
            "Which product ids have received complaints?",
            "What are the names of those products?",
            "Speaking of those names, count the number of complaints about them."
        ],
        "interaction_query": [
            "SELECT DISTINCT product_id from complaints",
            "SELECT DISTINCT t1.product_name FROM products AS t1 JOIN complaints AS t2 ON t1.product_id  =  t2.product_id",
            "SELECT t1.product_name ,  count(*) FROM products AS t1 JOIN complaints AS t2 ON t1.product_id  =  t2.product_id GROUP BY t1.product_name"
        ]
    },
    {
        "db_id": "customer_complaints",
        "final_query": "SELECT t1.email_address FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the email of the customer who has filed the most complaints.",
        "interaction_utterance": [
            "Which customer ids have filed complaints?",
            "What are the emails of these customers?",
            "Sum the complaints of each customer email address.",
            "Find the email of the customer who has filed the most complaints."
        ],
        "interaction_query": [
            "SELECT DISTINCT customer_id from complaints",
            "SELECT DISTINCT t1.email_address FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id  =  t2.customer_id",
            "SELECT t1.email_address, count(*) FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_id",
            "SELECT t1.email_address FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "customer_complaints",
        "final_query": "SELECT DISTINCT t1.product_name FROM products AS t1 JOIN complaints AS t2 ON t1.product_id  =  t2.product_id JOIN customers AS t3 GROUP BY t3.customer_id ORDER BY count(*) LIMIT 1",
        "final_utterance": "Which products has been complained by the customer who has filed least amount of complaints?",
        "interaction_utterance": [
            "Which customer id filed the least number of complaints? How many?",
            "Which product names did this customer complain about?"
        ],
        "interaction_query": [
            "SELECT customer_id, count(*) from complaints GROUP by customer_id ORDER BY count(*) ASC LIMIT 1",
            "SELECT DISTINCT t1.product_name FROM products AS t1 JOIN complaints AS t2 ON t1.product_id  =  t2.product_id JOIN customers AS t3 GROUP BY t3.customer_id ORDER BY count(*) LIMIT 1"
        ]
    },
    {
        "db_id": "customer_complaints",
        "final_query": "SELECT t1.phone_number FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id  =  t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1",
        "final_utterance": "What is the phone number of the customer who has filed the most recent complaint?",
        "interaction_utterance": [
            "What is the customer id of the customer who has filed the most recent complaint?",
            "What is this customers city?",
            "How about their phone number?"
        ],
        "interaction_query": [
            "SELECT customer_id from complaints ORDER BY date_complaint_raised DESC LIMIT 1",
            "SELECT t1.town_city FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id  =  t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1",
            "SELECT t1.phone_number FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id  =  t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1"
        ]
    },
    {
        "db_id": "customer_complaints",
        "final_query": "SELECT email_address ,  phone_number FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM complaints)",
        "final_utterance": "Find the email and phone number of the customers who have never filed a complaint before.",
        "interaction_utterance": [
            "Find the email of the customers who have never filed a complaint before.",
            "Also the phone number."
        ],
        "interaction_query": [
            "SELECT email_address FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM complaints)",
            "SELECT email_address ,  phone_number FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM complaints)"
        ]
    },
    {
        "db_id": "customer_complaints",
        "final_query": "SELECT phone_number FROM customers UNION SELECT phone_number FROM staff",
        "final_utterance": "Find the phone number of all the customers and staff.",
        "interaction_utterance": [
            "What are the phone numbers of customers?",
            "How about staff?",
            "Union those."
        ],
        "interaction_query": [
            "SELECT phone_number FROM customers",
            "SELECT phone_number FROM staff",
            "SELECT phone_number FROM customers UNION SELECT phone_number FROM staff"
        ]
    },
    {
        "db_id": "customer_complaints",
        "final_query": "SELECT product_name ,  product_category_code FROM products ORDER BY product_price DESC LIMIT 1",
        "final_utterance": "Find the name and category of the most expensive product.",
        "interaction_utterance": [
            "Order the product records by descending price.",
            "Just show the product names and category codes.",
            "Only for the most expensive product."
        ],
        "interaction_query": [
            "SELECT * FROM products ORDER BY product_price DESC",
            "SELECT product_name ,  product_category_code FROM products ORDER BY product_price DESC",
            "SELECT product_name ,  product_category_code FROM products ORDER BY product_price DESC LIMIT 1"
        ]
    },
    {
        "db_id": "customer_complaints",
        "final_query": "SELECT product_price FROM products WHERE product_id NOT IN (SELECT product_id FROM complaints)",
        "final_utterance": "Find the prices of products which has never received a single complaint.",
        "interaction_utterance": [
            "Which product ids have never been complained about?",
            "Which ones have been complained about?",
            "Find the prices of products which has never received a single complaint."
        ],
        "interaction_query": [
            "SELECT product_id FROM products WHERE product_id NOT IN (SELECT product_id FROM complaints)",
            "SELECT DISTINCT product_id FROM complaints",
            "SELECT product_price FROM products WHERE product_id NOT IN (SELECT product_id FROM complaints)"
        ]
    },
    {
        "db_id": "customer_complaints",
        "final_query": "SELECT last_name from staff where staff_id in (SELECT staff_id from complaints WHERE product_id in (SELECT product_id FROM products ORDER BY product_price ASC LIMIT 1))",
        "final_utterance": "Find the last names of the staff members who processed complaints about the cheapest product.",
        "interaction_utterance": [
            "What is the name of the cheapest product?",
            "Show records where this product was complained about.",
            "Find the last name of the staff member who processed a complaint of this cheapest product."
        ],
        "interaction_query": [
            "SELECT product_name FROM products ORDER BY product_price ASC LIMIT 1",
            "SELECT * from complaints WHERE product_id in (SELECT product_id FROM products ORDER BY product_price ASC LIMIT 1)",
            "SELECT last_name from staff where staff_id in (SELECT staff_id from complaints WHERE product_id in (SELECT product_id FROM products ORDER BY product_price ASC LIMIT 1))"
        ]
    },
    {
        "db_id": "customer_complaints",
        "final_query": "SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING count(*)  >  3",
        "final_utterance": "Which complaint status has more than 3 records on file?",
        "interaction_utterance": [
            "Count the various complaint status codes.",
            "Only show counts greater than 3."
        ],
        "interaction_query": [
            "SELECT complaint_status_code, count(*) FROM complaints GROUP BY complaint_status_code",
            "SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING count(*)  >  3"
        ]
    },
    {
        "db_id": "customer_complaints",
        "final_query": "SELECT last_name FROM staff WHERE email_address LIKE \"%wrau%\"",
        "final_utterance": "Find the last name of the staff whose email address contains \"wrau\".",
        "interaction_utterance": [
            "What are the email addresses of the staff?",
            "Find the last name of the staff whose email address contains \"wrau\"."
        ],
        "interaction_query": [
            "SELECT email_address FROM staff",
            "SELECT last_name FROM staff WHERE email_address LIKE \"%wrau%\""
        ]
    },
    {
        "db_id": "customer_complaints",
        "final_query": "SELECT count(*) FROM customers GROUP BY customer_type_code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "How many customers are there in the customer type with the most customers?",
        "interaction_utterance": [
            "What is the most common customer type?",
            "How many are there in this group?"
        ],
        "interaction_query": [
            "SELECT customer_type_code FROM customers GROUP BY customer_type_code ORDER BY count(*) DESC LIMIT 1",
            "SELECT count(*) FROM customers GROUP BY customer_type_code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "customer_complaints",
        "final_query": "SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id  =  t2.staff_id ORDER BY t2.date_complaint_raised LIMIT 1",
        "final_utterance": "What is the last name of the staff who has handled the first ever complaint?",
        "interaction_utterance": [
            "What is the id of the first complaint?",
            "Which staff id was there for it?",
            "What was the last name of this staff member?"
        ],
        "interaction_query": [
            "SELECT complaint_id from complaints ORDER by date_complaint_raised ASC LIMIT 1",
            "SELECT staff_id from complaints ORDER by date_complaint_raised ASC LIMIT 1",
            "SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id  =  t2.staff_id ORDER BY t2.date_complaint_raised LIMIT 1"
        ]
    },
    {
        "db_id": "customer_complaints",
        "final_query": "SELECT complaint_status_code ,  count(*) FROM complaints WHERE complaint_type_code  =  \"Product Failure\" GROUP BY complaint_status_code",
        "final_utterance": "Find the number of complaints with Product Failure type for each complaint status.",
        "interaction_utterance": [
            "Which complaints have type Product Failure?",
            "Which complaint statuses are among those records?",
            "Count the occurrences of each complaint status in the above."
        ],
        "interaction_query": [
            "SELECT * from complaints where complaint_type_code  =  \"Product Failure\"",
            "SELECT DISTINCT complaint_status_code from complaints WHERE complaint_status_code in (SELECT complaint_status_code from complaints where complaint_type_code  =  \"Product Failure\")",
            "SELECT complaint_status_code ,  count(*) FROM complaints WHERE complaint_type_code  =  \"Product Failure\" GROUP BY complaint_status_code"
        ]
    },
    {
        "db_id": "customer_complaints",
        "final_query": "SELECT t1.first_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id  =  t2.staff_id GROUP BY t2.staff_id ORDER BY count(*) LIMIT 5",
        "final_utterance": "What are the first names of the top 5 staff who have handled the greatest number of complaints?",
        "interaction_utterance": [
            "What are the staff ids of the top 5 staff who have handled the greatest number of complaints?",
            "What are their first names?"
        ],
        "interaction_query": [
            "SELECT staff_id from complaints GROUP BY staff_id ORDER BY count(*) LIMIT 5",
            "SELECT t1.first_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id  =  t2.staff_id GROUP BY t2.staff_id ORDER BY count(*) LIMIT 5"
        ]
    },
    {
        "db_id": "restaurant_1",
        "final_query": "SELECT ResName , Rating FROM Restaurant ORDER BY Rating DESC LIMIT 1;",
        "final_utterance": "Which restaurant has highest rating? List the restaurant name and its rating.",
        "interaction_utterance": [
            "Give the names and ratings of Restaurants.",
            "Sort by descending order.",
            "Just give the most highly rated restaurant name and rating."
        ],
        "interaction_query": [
            "SELECT ResName , Rating FROM Restaurant",
            "SELECT ResName , Rating FROM Restaurant ORDER BY Rating DESC",
            "SELECT ResName , Rating FROM Restaurant ORDER BY Rating DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "restaurant_1",
        "final_query": "SELECT Age FROM Student WHERE Fname = \"Linda\" AND Lname = \"Smith\";",
        "final_utterance": "What is the age of student Linda Smith?",
        "interaction_utterance": [
            "List the last names, first names, and ages of students.",
            "Narrow that down to last name \"Smith\" and first name \"Linda\"",
            "What is the age of student Linda Smith?"
        ],
        "interaction_query": [
            "SELECT LName, Fname, Age from student",
            "SELECT LName, Fname, Age from student WHERE Fname = \"Linda\" AND Lname = \"Smith\";",
            "SELECT Age FROM Student WHERE Fname = \"Linda\" AND Lname = \"Smith\";"
        ]
    },
    {
        "db_id": "restaurant_1",
        "final_query": "SELECT Sex FROM Student WHERE Fname = \"Linda\" AND Lname = \"Smith\";",
        "final_utterance": "What is the gender of the student Linda Smith?",
        "interaction_utterance": [
            "What is Linda Smith's Major?",
            "How about Linda Smith's Adivisor?",
            "Give her gender."
        ],
        "interaction_query": [
            "SELECT Major FROM Student WHERE Fname = \"Linda\" AND Lname = \"Smith\";",
            "SELECT Advisor FROM Student WHERE Fname = \"Linda\" AND Lname = \"Smith\";",
            "SELECT Sex FROM Student WHERE Fname = \"Linda\" AND Lname = \"Smith\";"
        ]
    },
    {
        "db_id": "restaurant_1",
        "final_query": "SELECT city_code FROM Student WHERE Fname = \"Linda\" AND Lname = \"Smith\";",
        "final_utterance": "Which city does student Linda Smith live in?",
        "interaction_utterance": [
            "Give the student id of linda smith.",
            "Now for Tracy Kim.",
            "Which city does student Linda Smith live in?"
        ],
        "interaction_query": [
            "SELECT StuID FROM Student WHERE Fname = \"Linda\" AND Lname = \"Smith\";",
            "SELECT StuID FROM Student WHERE Fname = \"Tracy\" AND Lname = \"Kim\";",
            "SELECT city_code FROM Student WHERE Fname = \"Linda\" AND Lname = \"Smith\";"
        ]
    },
    {
        "db_id": "restaurant_1",
        "final_query": "SELECT Advisor ,  count(*) FROM Student GROUP BY Advisor ORDER BY count(Advisor) DESC LIMIT 1;",
        "final_utterance": "Which Advisor has most of students? List advisor and the number of students.",
        "interaction_utterance": [
            "Give the distinct advisors of students.",
            "Which of those advises the most students?",
            "Give the count, too."
        ],
        "interaction_query": [
            "SELECT DISTINCT advisor from student",
            "SELECT Advisor FROM Student GROUP BY Advisor ORDER BY count(Advisor) DESC LIMIT 1;",
            "SELECT Advisor ,  count(*) FROM Student GROUP BY Advisor ORDER BY count(Advisor) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "restaurant_1",
        "final_query": "SELECT Major ,  count(*) FROM Student GROUP BY Major ORDER BY count(Major) ASC LIMIT 1;",
        "final_utterance": "Which major has least number of students? List the major and the number of students.",
        "interaction_utterance": [
            "Give distinct majors.",
            "Which has the most number of students?",
            "Which has the least?",
            "Give the count to prove it."
        ],
        "interaction_query": [
            "SELECT DISTINCT major from student",
            "SELECT Major FROM Student GROUP BY Major ORDER BY count(Major) DESC LIMIT 1;",
            "SELECT Major FROM Student GROUP BY Major ORDER BY count(Major) ASC LIMIT 1;",
            "SELECT Major ,  count(*) FROM Student GROUP BY Major ORDER BY count(Major) ASC LIMIT 1;"
        ]
    },
    {
        "db_id": "restaurant_1",
        "final_query": "SELECT Major ,  count(*) FROM Student GROUP BY Major HAVING count(Major) BETWEEN 2 AND 30;",
        "final_utterance": "Which major has between 2 and 30 number of students? List major and the number of students.",
        "interaction_utterance": [
            "Which major has between 2 and 30 number of students?",
            "Count that, too."
        ],
        "interaction_query": [
            "SELECT Major FROM Student GROUP BY Major HAVING count(Major) BETWEEN 2 AND 30;",
            "SELECT Major ,  count(*) FROM Student GROUP BY Major HAVING count(Major) BETWEEN 2 AND 30;"
        ]
    },
    {
        "db_id": "restaurant_1",
        "final_query": "SELECT Fname , Lname FROM Student WHERE Age  >  18 AND Major = 600;",
        "final_utterance": "Which student's age is older than 18 and is majoring in 600? List each student's first and last name.",
        "interaction_utterance": [
            "What are the student ids of students majoring in 600?",
            "Only show those whose age is 18.",
            "Just show the first and last names."
        ],
        "interaction_query": [
            "SELECT StuID from student where Major = 600;",
            "SELECT StuID  FROM Student WHERE Age  >  18 AND Major = 600;",
            "SELECT Fname , Lname FROM Student WHERE Age  >  18 AND Major = 600;"
        ]
    },
    {
        "db_id": "restaurant_1",
        "final_query": "SELECT Fname , Lname FROM Student WHERE Age  >  18 AND Major != 600 AND Sex = 'F';",
        "final_utterance": "List all female students older than 18 who are not majoring in 600. List students' first name and last name.",
        "interaction_utterance": [
            "Give information for students older than 18.",
            "List all female students older than 18 who are not majoring in 600. List students' first name and last name."
        ],
        "interaction_query": [
            "SELECT * FROM Student WHERE Age  >  18",
            "SELECT Fname , Lname FROM Student WHERE Age  >  18 AND Major != 600 AND Sex = 'F';"
        ]
    },
    {
        "db_id": "restaurant_1",
        "final_query": "SELECT count(*) FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID =  Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich'",
        "final_utterance": "How many restaurant is the Sandwich type restaurant?",
        "interaction_utterance": [
            "How many types of restaurant have the name \"Sandwich\"?",
            "What are the names of restaurants with the type \"Sandwich\"?",
            "Give the count of that."
        ],
        "interaction_query": [
            "SELECT count(*) from Restaurant_Type where ResTypeName = \"Sandwich\"",
            "SELECT Restaurant.ResName FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID =  Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich'",
            "SELECT count(*) FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID =  Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich'"
        ]
    },
    {
        "db_id": "restaurant_1",
        "final_query": "SELECT sum(Spent) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID WHERE Student.Fname = \"Linda\" AND Student.Lname = \"Smith\";",
        "final_utterance": "How long does student Linda Smith spend on the restaurant in total?",
        "interaction_utterance": [
            "How many times did Linda Smith visit a restaurant?",
            "For those visits, how long did she spend?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID WHERE Student.Fname = \"Linda\" AND Student.Lname = \"Smith\";",
            "SELECT sum(Spent) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID WHERE Student.Fname = \"Linda\" AND Student.Lname = \"Smith\";"
        ]
    },
    {
        "db_id": "restaurant_1",
        "final_query": "SELECT count(*) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = \"Linda\" AND Student.Lname = \"Smith\" AND Restaurant.ResName = \"Subway\";",
        "final_utterance": "How many times has the student Linda Smith visited Subway?",
        "interaction_utterance": [
            "How many visits did Subway receive?",
            "Give the student ids for these visits.",
            "Do any of these correspond to the student Linda Smith? How many?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Restaurant.ResName = \"Subway\";",
            "SELECT StuID FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Restaurant.ResName = \"Subway\";",
            "SELECT count(*) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = \"Linda\" AND Student.Lname = \"Smith\" AND Restaurant.ResName = \"Subway\";"
        ]
    },
    {
        "db_id": "restaurant_1",
        "final_query": "SELECT TIME FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = \"Linda\" AND Student.Lname = \"Smith\" AND Restaurant.ResName = \"Subway\";",
        "final_utterance": "When did Linda Smith visit Subway?",
        "interaction_utterance": [
            "How long did Linda Smith spend at Subway?",
            "What time did she arrive?"
        ],
        "interaction_query": [
            "SELECT Spent FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = \"Linda\" AND Student.Lname = \"Smith\" AND Restaurant.ResName = \"Subway\";",
            "SELECT TIME FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = \"Linda\" AND Student.Lname = \"Smith\" AND Restaurant.ResName = \"Subway\";"
        ]
    },
    {
        "db_id": "restaurant_1",
        "final_query": "SELECT Restaurant.ResName ,  sum(Visits_Restaurant.Spent) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID GROUP BY Restaurant.ResID ORDER BY sum(Visits_Restaurant.Spent) ASC LIMIT 1;",
        "final_utterance": "At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in total.",
        "interaction_utterance": [
            "What was the restaraunt id with the least amount of time spent?",
            "Give the name of this restaraunt and sum of time spent."
        ],
        "interaction_query": [
            "SELECT Visits_Restaurant.ResID FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID GROUP BY Restaurant.ResID ORDER BY sum(Visits_Restaurant.Spent) ASC LIMIT 1;",
            "SELECT Restaurant.ResName ,  sum(Visits_Restaurant.Spent) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID GROUP BY Restaurant.ResID ORDER BY sum(Visits_Restaurant.Spent) ASC LIMIT 1;"
        ]
    },
    {
        "db_id": "insurance_and_eClaims",
        "final_query": "SELECT policy_type_code FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id  =  t2.customer_id WHERE t2.customer_details  =  \"Dayana Robel\"",
        "final_utterance": "Find all the policy type codes associated with the customer \"Dayana Robel\"",
        "interaction_utterance": [
            "What is the start and end dates of all policies?",
            "For the policies of \"Dayana Robel\"?",
            "What about the policy type code instead."
        ],
        "interaction_query": [
            "SELECT Start_Date, End_Date FROM policies",
            "SELECT Start_Date, End_Date FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id  =  t2.customer_id WHERE t2.customer_details  =  \"Dayana Robel\"",
            "SELECT policy_type_code FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id  =  t2.customer_id WHERE t2.customer_details  =  \"Dayana Robel\""
        ]
    },
    {
        "db_id": "insurance_and_eClaims",
        "final_query": "SELECT policy_type_code FROM policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which type of policy is most frequently used? Give me the policy type code.",
        "interaction_utterance": [
            "What are the policy type codes?",
            "What are the least frequent ones?",
            "Most frequent?"
        ],
        "interaction_query": [
            "SELECT policy_type_code FROM policies",
            "SELECT policy_type_code FROM policies GROUP BY policy_type_code ORDER BY count(*) ASC LIMIT 1",
            "SELECT policy_type_code FROM policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "insurance_and_eClaims",
        "final_query": "SELECT policy_type_code FROM policies GROUP BY policy_type_code HAVING count(*)  >  2",
        "final_utterance": "Find all the policy types that are used by more than 2 customers.",
        "interaction_utterance": [
            "What are the policies?",
            "Which ones have been used only once?",
            "How about more than twice?"
        ],
        "interaction_query": [
            "SELECT * FROM policies",
            "SELECT policy_type_code FROM policies GROUP BY policy_type_code HAVING count(*)  = 1",
            "SELECT policy_type_code FROM policies GROUP BY policy_type_code HAVING count(*)  >  2"
        ]
    },
    {
        "db_id": "insurance_and_eClaims",
        "final_query": "SELECT sum(amount_piad) ,  avg(amount_piad) FROM claim_headers",
        "final_utterance": "Find the total and average amount paid in claim headers.",
        "interaction_utterance": [
            "What are the claim type codes in the claim headers?",
            "The amounts paid?",
            "What is the sum of that?",
            "Show the average as well."
        ],
        "interaction_query": [
            "SELECT Claim_Type_Code FROM claim_headers",
            "SELECT Amount_piad FROM claim_headers",
            "SELECT sum(Amount_piad) FROM claim_headers",
            "SELECT sum(amount_piad) ,  avg(amount_piad) FROM claim_headers"
        ]
    },
    {
        "db_id": "insurance_and_eClaims",
        "final_query": "SELECT sum(t1.amount_claimed) FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id  =  t2.claim_id WHERE t2.created_date  =  (SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1)",
        "final_utterance": "Find the total amount claimed in the most recently created document.",
        "interaction_utterance": [
            "What are the claim documents?",
            "Which was created most recently?",
            "Show the claim headers for this as well.",
            "What is the total claim amount for these?"
        ],
        "interaction_query": [
            "SELECT * FROM claims_documents",
            "SELECT * FROM claims_documents WHERE created_date  =  (SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1)",
            "SELECT * FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id  =  t2.claim_id WHERE t2.created_date  =  (SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1)",
            "SELECT sum(t1.amount_claimed) FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id  =  t2.claim_id WHERE t2.created_date  =  (SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1)"
        ]
    },
    {
        "db_id": "insurance_and_eClaims",
        "final_query": "SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id  =  t2.policy_id JOIN customers AS t3 ON t2.customer_id  =  t3.customer_id WHERE t1.amount_claimed  =  (SELECT max(amount_claimed) FROM claim_headers)",
        "final_utterance": "What is the name of the customer who has made the largest amount of claim in a single claim?",
        "interaction_utterance": [
            "What was the smallest policy amount paid?",
            "Claim amount instead?",
            "Which was the policy for this?",
            "For the largest claim amount instead?",
            "Which customer owns this policy?"
        ],
        "interaction_query": [
            "SELECT min(amount_piad) FROM claim_headers",
            "SELECT min(amount_claimed) FROM claim_headers",
            "SELECT * FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id WHERE t1.amount_claimed = (SELECT min(amount_claimed) FROM claim_headers)",
            "SELECT * FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id WHERE t1.amount_claimed = (SELECT max(amount_claimed) FROM claim_headers)",
            "SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id  =  t2.policy_id JOIN customers AS t3 ON t2.customer_id  =  t3.customer_id WHERE t1.amount_claimed  =  (SELECT max(amount_claimed) FROM claim_headers)"
        ]
    },
    {
        "db_id": "insurance_and_eClaims",
        "final_query": "SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id  =  t2.policy_id JOIN customers AS t3 ON t2.customer_id  =  t3.customer_id WHERE t1.amount_piad  =  (SELECT min(amount_piad) FROM claim_headers)",
        "final_utterance": "What is the name of the customer who has made the minimum amount of payment in one claim?",
        "interaction_utterance": [
            "What is the largest claim amount?",
            "What was the policy for this?",
            "What about for the smallest payment amount instead?",
            "Who owned this policy?"
        ],
        "interaction_query": [
            "SELECT max(amount_claimed) FROM claim_headers",
            "SELECT * FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id WHERE t1.amount_claimed = (SELECT max(amount_claimed) FROM claim_headers)",
            "SELECT * FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id WHERE t1.amount_piad = (SELECT min(amount_piad) FROM claim_headers)",
            "SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id  =  t2.policy_id JOIN customers AS t3 ON t2.customer_id  =  t3.customer_id WHERE t1.amount_piad  =  (SELECT min(amount_piad) FROM claim_headers)"
        ]
    },
    {
        "db_id": "insurance_and_eClaims",
        "final_query": "SELECT customer_details FROM customers EXCEPT SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id  =  t2.customer_id",
        "final_utterance": "Find the names of customers who have no policies associated.",
        "interaction_utterance": [
            "Who are the customers?",
            "What are their policies?",
            "Who doesn't have policies?"
        ],
        "interaction_query": [
            "SELECT customer_details FROM customers",
            "SELECT * FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id  =  t2.customer_id",
            "SELECT customer_details FROM customers EXCEPT SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id  =  t2.customer_id"
        ]
    },
    {
        "db_id": "insurance_and_eClaims",
        "final_query": "SELECT t2.claim_status_name FROM claims_processing AS t1 JOIN claims_processing_stages AS t2 ON t1.claim_stage_id  =  t2.claim_stage_id GROUP BY t1.claim_stage_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the name of the claim processing stage that most of the claims are on?",
        "interaction_utterance": [
            "What is the least frequent claim outcome?",
            "Most frequent?",
            "Show for claim status instead."
        ],
        "interaction_query": [
            "SELECT Claim_Outcome_Code FROM claims_processing GROUP BY Claim_Outcome_Code ORDER BY count(Claim_Outcome_Code) ASC LIMIT 1",
            "SELECT Claim_Outcome_Code FROM claims_processing GROUP BY Claim_Outcome_Code ORDER BY count(Claim_Outcome_Code) DESC LIMIT 1",
            "SELECT t2.claim_status_name FROM claims_processing AS t1 JOIN claims_processing_stages AS t2 ON t1.claim_stage_id  =  t2.claim_stage_id GROUP BY t1.claim_stage_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "insurance_and_eClaims",
        "final_query": "SELECT customer_details FROM customers WHERE customer_details LIKE \"%Diana%\"",
        "final_utterance": "Find the names of customers whose name contains \"Diana\".",
        "interaction_utterance": [
            "Who are the customers?",
            "Only show their names.",
            "Of these, which one contain \"III\"",
            "Containing \"Diana\" instead?"
        ],
        "interaction_query": [
            "SELECT * FROM customers",
            "SELECT customer_details FROM customers",
            "SELECT customer_details FROM customers WHERE customer_details LIKE \"%III%\"",
            "SELECT customer_details FROM customers WHERE customer_details LIKE \"%Diana%\""
        ]
    },
    {
        "db_id": "insurance_and_eClaims",
        "final_query": "SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.policy_type_code  =  \"Deputy\"",
        "final_utterance": "Find the names of the customers who have an deputy policy.",
        "interaction_utterance": [
            "What are all the start and end dates of the policies?",
            "Give me the policy types instead.",
            "Just the deputy policies.",
            "Which customers have this policy? Give their names."
        ],
        "interaction_query": [
            "SELECT Start_Date, End_Date FROM policies",
            "SELECT policy_type_code FROM policies",
            "SELECT policy_type_code FROM policies WHERE policy_type_code = \"Deputy\"",
            "SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.policy_type_code  =  \"Deputy\""
        ]
    },
    {
        "db_id": "insurance_and_eClaims",
        "final_query": "SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.policy_type_code  =  \"Deputy\" OR t1.policy_type_code  =  \"Uniformed\"",
        "final_utterance": "Find the names of customers who either have an deputy policy or uniformed policy.",
        "interaction_utterance": [
            "What are the policies of each customer? Give the names and policy type codes.",
            "Of these, show only those with jurisdiction policies.",
            "How about either deputy policy or uniformed policy?",
            "Now show just the unique names for these."
        ],
        "interaction_query": [
            "SELECT t2.customer_details, t1.policy_type_code FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id  =  t2.customer_id",
            "SELECT t2.customer_details, t1.policy_type_code FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.policy_type_code = \"Jurisdiction\"",
            "SELECT t2.customer_details, t1.policy_type_code FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.policy_type_code = \"Deputy\" OR t1.policy_type_code = \"Uniformed\"",
            "SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.policy_type_code  =  \"Deputy\" OR t1.policy_type_code  =  \"Uniformed\""
        ]
    },
    {
        "db_id": "insurance_and_eClaims",
        "final_query": "SELECT customer_details FROM customers UNION SELECT staff_details FROM staff",
        "final_utterance": "Find the names of all the customers and staff members.",
        "interaction_utterance": [
            "Who are the staff members?",
            "Customers?",
            "Who are both customers and staff?",
            "How about either of them?"
        ],
        "interaction_query": [
            "SELECT staff_Details FROM staff",
            "SELECT customer_details FROM customers",
            "SELECT customer_details FROM customers INTERSECT SELECT staff_details FROM staff",
            "SELECT customer_details FROM customers UNION SELECT staff_details FROM staff"
        ]
    },
    {
        "db_id": "insurance_and_eClaims",
        "final_query": "SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t2.customer_details ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the name of the customer that has been involved in the most policies.",
        "interaction_utterance": [
            "Who are the customers?",
            "Which customers have more than 1 policy?",
            "Who has the most?"
        ],
        "interaction_query": [
            "SELECT customer_details FROM customers",
            "SELECT t2.customer_details FROM policies AS T1 JOIN customers as t2 ON t1.customer_id = t2.customer_id GROUP BY t2.customer_details HAVING count(*) > 1",
            "SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t2.customer_details ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "aircraft",
        "final_query": "SELECT sum(Domestic_Passengers) FROM airport WHERE Airport_Name LIKE \"%London%\"",
        "final_utterance": "What are the total number of Domestic Passengers of airports that contain the word \"London\".",
        "interaction_utterance": [
            "How many total passengers are in any airport with the word London in its name?",
            "How many International?",
            "How about Transit?",
            "How about Domestic?"
        ],
        "interaction_query": [
            "SELECT sum(Total_Passengers) FROM airport WHERE Airport_Name LIKE \"%London%\"",
            "SELECT sum(International_Passengers) FROM airport WHERE Airport_Name LIKE \"%London%\"",
            "SELECT sum(Transit_Passengers) FROM airport WHERE Airport_Name LIKE \"%London%\"",
            "SELECT sum(Domestic_Passengers) FROM airport WHERE Airport_Name LIKE \"%London%\""
        ]
    },
    {
        "db_id": "aircraft",
        "final_query": "SELECT max(Transit_Passengers), min(Transit_Passengers) FROM airport",
        "final_utterance": "What are the maximum and minimum number of transit passengers of all airports.",
        "interaction_utterance": [
            "How many transit passengers does each airport have?",
            "What is the average number?",
            "How about the maximum?",
            "Please, show the minimum as well."
        ],
        "interaction_query": [
            "SELECT Airport_ID, Transit_Passengers FROM airport",
            "SELECT avg(Transit_Passengers) FROM airport",
            "SELECT max(Transit_Passengers) FROM airport",
            "SELECT max(Transit_Passengers), min(Transit_Passengers) FROM airport"
        ]
    },
    {
        "db_id": "aircraft",
        "final_query": "SELECT Name FROM pilot WHERE Age  <=  30 ORDER BY Name DESC",
        "final_utterance": "List names of all pilot aged 30 or younger in descending alphabetical order.",
        "interaction_utterance": [
            "Show all the pilot names and ages?",
            "What are the names that are older younger than 50?",
            "How about 30 or younger?",
            "Sort them in reverse alphabetical order?"
        ],
        "interaction_query": [
            "SELECT Name, Age FROM pilot",
            "SELECT Name FROM pilot WHERE Age  <=  50",
            "SELECT Name FROM pilot WHERE Age  <=  30",
            "SELECT Name FROM pilot WHERE Age  <=  50 ORDER BY Name DESC"
        ]
    },
    {
        "db_id": "aircraft",
        "final_query": "SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Airport_Name  =  \"London Gatwick\"",
        "final_utterance": "Please show the names of aircrafts associated with airport with name \"London Gatwick\".",
        "interaction_utterance": [
            "Is there an airport with the name \"London Gatwick\"?",
            "How many aircrafts movements happen at this airport?",
            "Also, how many aircrafts is the airport associated with?",
            "What is its name?"
        ],
        "interaction_query": [
            "SELECT * FROM airport WHERE Airport_Name = \"London Gatwick\"",
            "SELECT aircraft_movements FROM airport WHERE Airport_Name = \"London Gatwick\"",
            "SELECT count(*) FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Airport_Name  =  \"London Gatwick\"",
            "SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Airport_Name  =  \"London Gatwick\""
        ]
    },
    {
        "db_id": "aircraft",
        "final_query": "SELECT T1.Aircraft ,  T1.Description FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Total_Passengers  >  10000000",
        "final_utterance": "Please show the names and descriptions of aircrafts associated with airports that have a total number of passengers bigger than 10000000.",
        "interaction_utterance": [
            "Show me a list of all the different airports!",
            "What ones have more than 10000000 total passengers?",
            "Show all the aircrafts associated with each of these airports.",
            "Show only the names and descriptions."
        ],
        "interaction_query": [
            "Select * FROM airport",
            "Select * FROM airport where Total_Passengers > 10000000",
            "SELECT * FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Total_Passengers  >  10000000",
            "SELECT T1.Aircraft ,  T1.Description FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Total_Passengers  >  10000000"
        ]
    },
    {
        "db_id": "aircraft",
        "final_query": "SELECT avg(T3.Total_Passengers) FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T1.Aircraft  =  \"Robinson R-22\"",
        "final_utterance": "What is the average total number of passengers of airports that are associated with aircraft \"Robinson R-22\"?",
        "interaction_utterance": [
            "Tell me more information about the aircraft called \"Robinson R-22\"!",
            "How many airports use this aircraft?",
            "What are their names, and total passengers?",
            "What is the average total number passengers?"
        ],
        "interaction_query": [
            "SELECT * FROM Aircraft where Aircraft = \"Robinson R-22\"",
            "SELECT * FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T1.Aircraft  =  \"Robinson R-22\"",
            "SELECT T3.Airport_Name, T3.Total_Passengers FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T1.Aircraft  =  \"Robinson R-22\"",
            "SELECT avg(T3.Total_Passengers) FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T1.Aircraft  =  \"Robinson R-22\""
        ]
    },
    {
        "db_id": "aircraft",
        "final_query": "SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "List the name of the aircraft that has been named winning aircraft the most number of times.",
        "interaction_utterance": [
            "What are the names of all the winning pilots?",
            "What are the names of the aircrafts that they used?",
            "What one of the aircrafts won the most?"
        ],
        "interaction_query": [
            "SELECT T1.Name FROM pilot AS T1 JOIN MATCH AS T2 ON T1.Pilot_ID  =  T2.Winning_Pilot",
            "SELECT T1.Name, T3.Aircraft FROM pilot AS T1 JOIN MATCH AS T2 ON T1.Pilot_ID  =  T2.Winning_Pilot JOIN aircraft as T3 ON T2.Winning_Aircraft = T3.Aircraft_ID",
            "SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "aircraft",
        "final_query": "SELECT T1.Aircraft,  COUNT(*) FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft",
        "final_utterance": "List the names of aircrafts and the number of times it won matches.",
        "interaction_utterance": [
            "How many aircrafts are there?",
            "What are their names?",
            "Which ones have won?",
            "How any times have each won?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM aircraft",
            "SELECT Aircraft FROM aircraft",
            "SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft",
            "SELECT T1.Aircraft,  COUNT(*) FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft"
        ]
    },
    {
        "db_id": "aircraft",
        "final_query": "SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft HAVING COUNT(*)  >=  2",
        "final_utterance": "List the names of aircrafts and that won matches at least twice.",
        "interaction_utterance": [
            "How many matches have taken place?",
            "How many of them have been won by the same aircraft?",
            "Which aircrafts?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM MATCH",
            "SELECT count(*) FROM (SELECT T1.Aircraft,  COUNT(*) FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft having COUNT(*) > 1)",
            "SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft HAVING COUNT(*)  >=  2"
        ]
    },
    {
        "db_id": "aircraft",
        "final_query": "SELECT Aircraft FROM aircraft WHERE Aircraft_ID NOT IN (SELECT Winning_Aircraft FROM MATCH)",
        "final_utterance": "List the names of aircrafts and that did not win any match.",
        "interaction_utterance": [
            "What are all the aircraft names?",
            "How many matches have each won?",
            "How about those that have not won any matches?"
        ],
        "interaction_query": [
            "SELECT Aircraft FROM Aircraft",
            "SELECT T1.Aircraft,  COUNT(*) FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft",
            "SELECT Aircraft FROM aircraft WHERE Aircraft_ID NOT IN (SELECT Winning_Aircraft FROM MATCH)"
        ]
    },
    {
        "db_id": "aircraft",
        "final_query": "SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Airport_Name  =  \"London Heathrow\" INTERSECT SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Airport_Name  =  \"London Gatwick\"",
        "final_utterance": "Show the names of aircrafts that are associated with both an airport named \"London Heathrow\" and an airport named \"London Gatwick\"",
        "interaction_utterance": [
            "What airports have \"London\" in its name?",
            "What aircraft names are associated with these airports?",
            "Which ones are associated with an airport with \"London Heathrow\"",
            "Which of these aircrafts are also associated with an airport named \"London Gatwick\""
        ],
        "interaction_query": [
            "SELECT Airport_Name FROM Airport WHERE Airport_Name LIKE \"%London%\"",
            "SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Airport_Name LIKE \"%London%\"",
            "SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Airport_Name = \"London Gatwick\"",
            "SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Airport_Name  =  \"London Heathrow\" INTERSECT SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Airport_Name  =  \"London Gatwick\""
        ]
    },
    {
        "db_id": "aircraft",
        "final_query": "SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1",
        "final_utterance": "Show all information on the airport that has the largest number of international passengers.",
        "interaction_utterance": [
            "What are the number of international passengers per airport?",
            "What are all the airport details with the minimum?",
            "With the maximum?"
        ],
        "interaction_query": [
            "SELECT airport_id, international_passengers FROM airport",
            "SELECT * FROM airport ORDER BY International_Passengers ASC LIMIT 1",
            "SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1"
        ]
    },
    {
        "db_id": "aircraft",
        "final_query": "SELECT t1.name,  t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id  =  t2.winning_pilot WHERE t1.age  <  30 GROUP BY t2.winning_pilot ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "find the name and age of the pilot who has won the most number of times among the pilots who are younger than 30.",
        "interaction_utterance": [
            "How many pilots are under 30?",
            "What are their names and ages?",
            "How many times have they each won?",
            "Show me the name and age of the one that has won the most times."
        ],
        "interaction_query": [
            "Select count(*) FROM pilot where age < 30",
            "Select name, age FROM pilot where age < 30",
            "SELECT t1.name, t1.age, count(*) FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id  =  t2.winning_pilot GROUP BY t2.winning_pilot",
            "SELECT t1.name,  t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id  =  t2.winning_pilot WHERE t1.age  <  30 GROUP BY t2.winning_pilot ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "aircraft",
        "final_query": "SELECT t1.name ,  t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id  =  t2.winning_pilot ORDER BY t1.age LIMIT 1",
        "final_utterance": "what is the name and age of the youngest winning pilot?",
        "interaction_utterance": [
            "Show all the information for all the pilots!",
            "Show me only the winning-pilots!",
            "What is the name and age of the oldest one?",
            "How about the youngest one?"
        ],
        "interaction_query": [
            "Select * FROM pilot",
            "SELECT * FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id  =  t2.winning_pilot",
            "SELECT t1.name ,  t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id  =  t2.winning_pilot ORDER BY t1.age DESC LIMIT 1",
            "SELECT t1.name ,  t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id  =  t2.winning_pilot ORDER BY t1.age ASC LIMIT 1"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT account_id ,  account_details FROM Accounts",
        "final_utterance": "Show all account ids and account details.",
        "interaction_utterance": [
            "Show all account information.",
            "Show the ids for them.",
            "Also show the account details."
        ],
        "interaction_query": [
            "SELECT *  FROM Accounts",
            "SELECT account_id  FROM Accounts",
            "SELECT account_id ,  account_details FROM Accounts"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT count(*) FROM Statements",
        "final_utterance": "How many statements do we have?",
        "interaction_utterance": [
            "Show the info for all statements.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM Statements",
            "SELECT count(*) FROM Statements"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT STATEMENT_ID ,  statement_details FROM Statements",
        "final_utterance": "List all statement ids and statement details.",
        "interaction_utterance": [
            "Show info for all statements.",
            "Show their ids and statement details."
        ],
        "interaction_query": [
            "SELECT * FROM Statements",
            "SELECT STATEMENT_ID ,  statement_details FROM Statements"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT T1.statement_id ,  T2.statement_details ,  T1.account_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id  =  T2.statement_id",
        "final_utterance": "Show statement id, statement detail, account detail for accounts.",
        "interaction_utterance": [
            "Show the details of each account.",
            "Also show the statement ids and statement details for them."
        ],
        "interaction_query": [
            "SELECT account_details from Accounts",
            "SELECT T1.statement_id ,  T2.statement_details ,  T1.account_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id  =  T2.statement_id"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT STATEMENT_ID ,  count(*) FROM Accounts GROUP BY STATEMENT_ID",
        "final_utterance": "Show all statement id and the number of accounts for each statement.",
        "interaction_utterance": [
            "Show the statement ids from all accounts.",
            "For each of them, also show the number of accounts."
        ],
        "interaction_query": [
            "SELECT STATEMENT_ID FROM Accounts",
            "SELECT STATEMENT_ID ,  count(*) FROM Accounts GROUP BY STATEMENT_ID"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT T1.statement_id ,  T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id  =  T2.statement_id GROUP BY T1.statement_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Show the statement id and the statement detail for the statement with most number of accounts.",
        "interaction_utterance": [
            "Show the ids and details for statments.",
            "For each of them, also show the number of accounts.",
            "Sort the results in the descending order of the number of accounts.",
            "Show the id and details for the statment with the most accounts."
        ],
        "interaction_query": [
            "SELECT statement_id ,  statement_details FROM Statements",
            "SELECT T1.statement_id ,  T2.statement_details, count(*) FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id  =  T2.statement_id GROUP BY T1.statement_id",
            "SELECT T1.statement_id ,  T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id  =  T2.statement_id GROUP BY T1.statement_id ORDER BY count(*) DESC",
            "SELECT T1.statement_id ,  T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id  =  T2.statement_id GROUP BY T1.statement_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT count(*) FROM Documents",
        "final_utterance": "Show the number of documents.",
        "interaction_utterance": [
            "Show information for all documents.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM Documents",
            "SELECT count(*) FROM Documents"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT document_type_code ,  document_name ,  document_description FROM Documents WHERE document_name  =  'Noel CV' OR document_name  =  'King Book'",
        "final_utterance": "List the document type code, document name, and document description for the document with name 'Noel CV' or name 'King Book'.",
        "interaction_utterance": [
            "List the type codes, names, and descriptions for all documents.",
            "How about for the document named 'Noel CV'.",
            "Also include results for the document named 'King Book'."
        ],
        "interaction_query": [
            "SELECT document_type_code ,  document_name ,  document_description FROM Documents",
            "SELECT document_type_code ,  document_name ,  document_description FROM Documents WHERE document_name  =  'Noel CV'",
            "SELECT document_type_code ,  document_name ,  document_description FROM Documents WHERE document_name  =  'Noel CV' OR document_name  =  'King Book'"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT document_id ,  document_name FROM Documents",
        "final_utterance": "Show the ids and names of all documents.",
        "interaction_utterance": [
            "Show all information for documents.",
            "Show just the ids.",
            "Also show their names."
        ],
        "interaction_query": [
            "SELECT * FROM Documents",
            "SELECT document_id  FROM Documents",
            "SELECT document_id ,  document_name FROM Documents"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT document_name ,  document_id FROM Documents WHERE document_type_code  =  \"BK\"",
        "final_utterance": "Find names and ids of all documents with document type code BK.",
        "interaction_utterance": [
            "Show all document names.",
            "What are the names for the documents with type code BK?",
            "Also find their ids."
        ],
        "interaction_query": [
            "SELECT document_name  FROM Documents",
            "SELECT document_name  FROM Documents WHERE document_type_code  =  \"BK\"",
            "SELECT document_name ,  document_id FROM Documents WHERE document_type_code  =  \"BK\""
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT count(*) ,  project_id FROM Documents WHERE document_type_code  =  \"BK\" GROUP BY project_id",
        "final_utterance": "How many documents are with document type code BK for each product id?",
        "interaction_utterance": [
            "Show the project id for documents.",
            "Show the ids only for the documents with type code BK.",
            "For each project id, show the number of such documents."
        ],
        "interaction_query": [
            "SELECT project_id FROM Documents",
            "SELECT project_id FROM Documents WHERE document_type_code  =  \"BK\"",
            "SELECT count(*) ,  project_id FROM Documents WHERE document_type_code  =  \"BK\" GROUP BY project_id"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT document_name ,  document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id  =  T2.project_id WHERE T2.project_details  =  'Graph Database project'",
        "final_utterance": "Show the document name and the document date for all documents on project with details 'Graph Database project'.",
        "interaction_utterance": [
            "Show the name and date for all documents.",
            "For those documents, also show their project details.",
            "What are the names and dates for documents with 'Graph Database project' as their details?"
        ],
        "interaction_query": [
            "SELECT document_name ,  document_date FROM Documents",
            "SELECT document_name ,  document_date, T2.project_details FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id  =  T2.project_id",
            "SELECT document_name ,  document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id  =  T2.project_id WHERE T2.project_details  =  'Graph Database project'"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT project_id ,  count(*) FROM Documents GROUP BY project_id",
        "final_utterance": "Show project ids and the number of documents in each project.",
        "interaction_utterance": [
            "Show the project id for the documents.",
            "For each of id, count the number of documents."
        ],
        "interaction_query": [
            "SELECT project_id FROM Documents",
            "SELECT project_id ,  count(*) FROM Documents GROUP BY project_id"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT project_id FROM Documents GROUP BY project_id ORDER BY count(*) ASC LIMIT 1",
        "final_utterance": "What is the id of the project with least number of documents?",
        "interaction_utterance": [
            "Show the project id for all documents.",
            "For each of them, count the number of documents.",
            "Sort the ids by these counts.",
            "Which project id has the fewest?"
        ],
        "interaction_query": [
            "SELECT project_id FROM Documents",
            "SELECT project_id, count(*) FROM Documents GROUP BY project_id",
            "SELECT project_id FROM Documents GROUP BY project_id ORDER BY count(*)",
            "SELECT project_id FROM Documents GROUP BY project_id ORDER BY count(*) ASC LIMIT 1"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT project_id FROM Documents GROUP BY project_id HAVING count(*)  >=  2",
        "final_utterance": "Show the ids for projects with at least 2 documents.",
        "interaction_utterance": [
            "Show the project ids for documents.",
            "For each of them, also show the number of documents.",
            "Which of them have at least 2 documents?"
        ],
        "interaction_query": [
            "SELECT project_id FROM Documents",
            "SELECT project_id, count(*) FROM Documents GROUP BY project_id",
            "SELECT project_id FROM Documents GROUP BY project_id HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT document_type_code ,  count(*) FROM Documents GROUP BY document_type_code",
        "final_utterance": "List document type codes and the number of documents in each code.",
        "interaction_utterance": [
            "Show the type code for all documents.",
            "For each of these codes, also show the number of documents."
        ],
        "interaction_query": [
            "SELECT document_type_code FROM Documents",
            "SELECT document_type_code ,  count(*) FROM Documents GROUP BY document_type_code"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the document type code with most number of documents?",
        "interaction_utterance": [
            "Show the type codes for all documents.",
            "For each of the codes, count the number of documents.",
            "Which code has the most documents?"
        ],
        "interaction_query": [
            "SELECT document_type_code FROM Documents",
            "SELECT document_type_code, count(*) FROM Documents GROUP BY document_type_code",
            "SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING count(*)  <  3",
        "final_utterance": "Show the document type code with fewer than 3 documents.",
        "interaction_utterance": [
            "Show the type code for all documents.",
            "For each of the codes, also count the number of documents.",
            "Which codes have fewer than 3 documents?"
        ],
        "interaction_query": [
            "SELECT document_type_code FROM Documents",
            "SELECT document_type_code, count(*) FROM Documents GROUP BY document_type_code",
            "SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING count(*)  <  3"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT T1.statement_details ,  T2.document_name FROM Statements AS T1 JOIN Documents AS T2 ON T1.statement_id  =  T2.document_id WHERE T1.statement_details  =  'Private Project'",
        "final_utterance": "Show the statement detail and the corresponding document name for the statement with detail 'Private Project'.",
        "interaction_utterance": [
            "Show the details for all statements.",
            "Also show their corresponding document names.",
            "Only show the results for the statement with detail 'Private Project'."
        ],
        "interaction_query": [
            "SELECT statement_details from Statements",
            "SELECT T1.statement_details ,  T2.document_name FROM Statements AS T1 JOIN Documents AS T2 ON T1.statement_id  =  T2.document_id",
            "SELECT T1.statement_details ,  T2.document_name FROM Statements AS T1 JOIN Documents AS T2 ON T1.statement_id  =  T2.document_id WHERE T1.statement_details  =  'Private Project'"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT document_type_code ,  document_type_name ,  document_type_description FROM Ref_document_types",
        "final_utterance": "Show all document type codes, document type names, document type descriptions.",
        "interaction_utterance": [
            "Show the type codes for all documents.",
            "Also show the document type names and descriptions."
        ],
        "interaction_query": [
            "SELECT document_type_code FROM Ref_document_types",
            "SELECT document_type_code ,  document_type_name ,  document_type_description FROM Ref_document_types"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT document_type_description FROM Ref_document_types WHERE document_type_name  =  \"Film\"",
        "final_utterance": "What is the document type description for document type named Film?",
        "interaction_utterance": [
            "Show the descriptions for all document types.",
            "Only show the result for the document type \"Film\"."
        ],
        "interaction_query": [
            "SELECT document_type_description FROM Ref_document_types",
            "SELECT document_type_description FROM Ref_document_types WHERE document_type_name  =  \"Film\""
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT T1.document_type_name ,  T1.document_type_description ,  T2.Document_date FROM Ref_document_types AS T1 JOIN Documents AS T2 ON T1.document_type_code  =  T2.document_type_code",
        "final_utterance": "What is the document type name and the document type description and creation date for all the documents?",
        "interaction_utterance": [
            "What are the creation dates for all documents?",
            "Also show their document type names and descriptions."
        ],
        "interaction_query": [
            "SELECT Document_date FROM Documents",
            "SELECT T1.document_type_name ,  T1.document_type_description ,  T2.Document_date FROM Ref_document_types AS T1 JOIN Documents AS T2 ON T1.document_type_code  =  T2.document_type_code"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT count(*) FROM Projects",
        "final_utterance": "Show the number of projects.",
        "interaction_utterance": [
            "Show the information for all projects.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM Projects",
            "SELECT count(*) FROM Projects"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT project_id ,  project_details FROM Projects",
        "final_utterance": "List ids and details for all projects.",
        "interaction_utterance": [
            "Show the id for all projects.",
            "Also show their details."
        ],
        "interaction_query": [
            "SELECT project_id FROM Projects",
            "SELECT project_id ,  project_details FROM Projects"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT T1.project_id ,  T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id HAVING count(*)  >  2",
        "final_utterance": "What is the project id and detail for the project with at least two documents?",
        "interaction_utterance": [
            "Show the ids and details for all projects.",
            "For each of them, also show the number of documents.",
            "Which of them have at least two documents?"
        ],
        "interaction_query": [
            "SELECT project_id ,  project_details FROM Projects",
            "SELECT T1.project_id ,  T1.project_details, count(*) FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id",
            "SELECT T1.project_id ,  T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id HAVING count(*)  >  2"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id  =  T2.project_id WHERE T2.document_name  =  \"King Book\"",
        "final_utterance": "What is the project detail for the project with document \"King Book\"?",
        "interaction_utterance": [
            "What are all the details from projects?",
            "Also show the document names corresponding to the projects.",
            "Show those details only for projects with a document named \"King Book\"."
        ],
        "interaction_query": [
            "SELECT project_details FROM Projects",
            "SELECT T1.project_details, T2.document_name FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id  =  T2.project_id",
            "SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id  =  T2.project_id WHERE T2.document_name  =  \"King Book\""
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT count(*) FROM Ref_budget_codes",
        "final_utterance": "How many budget types do we have?",
        "interaction_utterance": [
            "Show the information for budget codes.",
            "How many of them do we have?"
        ],
        "interaction_query": [
            "SELECT * FROM Ref_budget_codes",
            "SELECT count(*) FROM Ref_budget_codes"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT budget_type_code ,  budget_type_description FROM Ref_budget_codes",
        "final_utterance": "List all budget type codes and descriptions.",
        "interaction_utterance": [
            "List all budget type codes.",
            "Add their descriptions."
        ],
        "interaction_query": [
            "SELECT budget_type_code FROM Ref_budget_codes",
            "SELECT budget_type_code ,  budget_type_description FROM Ref_budget_codes"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT budget_type_description FROM Ref_budget_codes WHERE budget_type_code  =  \"ORG\"",
        "final_utterance": "What is the description for the budget type with code ORG?",
        "interaction_utterance": [
            "What are the descriptions for the budget codes?",
            "How about the description for the budget with code ORG?"
        ],
        "interaction_query": [
            "SELECT budget_type_description FROM Ref_budget_codes",
            "SELECT budget_type_description FROM Ref_budget_codes WHERE budget_type_code  =  \"ORG\""
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT count(*) FROM Documents_with_expenses",
        "final_utterance": "How many documents have expenses?",
        "interaction_utterance": [
            "Show information for all documents with expenses.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM Documents_with_expenses",
            "SELECT count(*) FROM Documents_with_expenses"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT document_id FROM Documents_with_expenses WHERE budget_type_code  =  'SF'",
        "final_utterance": "What are the document ids for the budget type code 'SF'?",
        "interaction_utterance": [
            "Show the ids for documents with expenses.",
            "Also show their budget type code.",
            "What is the id for the documents with the budget type code 'SF'?"
        ],
        "interaction_query": [
            "SELECT document_id FROM Documents_with_expenses",
            "SELECT document_id, budget_type_code FROM Documents_with_expenses",
            "SELECT document_id FROM Documents_with_expenses WHERE budget_type_code  =  'SF'"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT T2.budget_type_code ,  T2.budget_type_description ,  T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code  =  T2.budget_type_code",
        "final_utterance": "Show the budget type code and description and the corresponding document id.",
        "interaction_utterance": [
            "Show the budget type code and description for all budget types.",
            "Also show the corresponding document ids for them."
        ],
        "interaction_query": [
            "SELECT budget_type_code ,  budget_type_description from Ref_budget_codes",
            "SELECT T2.budget_type_code ,  T2.budget_type_description ,  T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code  =  T2.budget_type_code"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_code  =  T2.Budget_Type_code WHERE T2.budget_type_Description  =  \"Government\"",
        "final_utterance": "Show ids for all documents with budget types described as 'Government'.",
        "interaction_utterance": [
            "Show ids for all documents.",
            "Also show their budget type descriptions.",
            "Show ids for those documents with budget types described as 'Government'."
        ],
        "interaction_query": [
            "SELECT document_id FROM Documents_with_expenses",
            "SELECT T1.document_id , T2.budget_type_Description FROM Documents_with_expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_code  =  T2.Budget_Type_code",
            "SELECT T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_code  =  T2.Budget_Type_code WHERE T2.budget_type_Description  =  \"Government\""
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT budget_type_code ,  count(*) FROM Documents_with_expenses GROUP BY budget_type_code",
        "final_utterance": "Show budget type codes and the number of documents in each budget type.",
        "interaction_utterance": [
            "Show all the budget type codes for documents with expenses.",
            "For each code, show the number of corresponding documents."
        ],
        "interaction_query": [
            "SELECT budget_type_code from Documents_with_expenses",
            "SELECT budget_type_code ,  count(*) FROM Documents_with_expenses GROUP BY budget_type_code"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT budget_type_code FROM Documents_with_expenses GROUP BY budget_type_code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the budget type code with most number of documents.",
        "interaction_utterance": [
            "Show all the budget type codes for documents with expenses.",
            "For each code, show the number of documents.",
            "Sort the codes in descending order of the count.",
            "Which has the most?"
        ],
        "interaction_query": [
            "SELECT budget_type_code from Documents_with_expenses",
            "SELECT budget_type_code ,  count(*) FROM Documents_with_expenses GROUP BY budget_type_code",
            "SELECT budget_type_code FROM Documents_with_expenses GROUP BY budget_type_code ORDER BY count(*) DESC",
            "SELECT budget_type_code FROM Documents_with_expenses GROUP BY budget_type_code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT document_id FROM Documents EXCEPT SELECT document_id FROM Documents_with_expenses",
        "final_utterance": "What are the ids of documents which don't have expense budgets?",
        "interaction_utterance": [
            "Show document ids with an expense budget.",
            "Show all document ids.",
            "Among them, which documents don't have expense budgets?"
        ],
        "interaction_query": [
            "SELECT document_id FROM Documents_with_expenses",
            "SELECT document_id FROM Documents",
            "SELECT document_id FROM Documents EXCEPT SELECT document_id FROM Documents_with_expenses"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT document_id FROM Documents WHERE document_type_code  =  \"CV\" EXCEPT SELECT document_id FROM Documents_with_expenses",
        "final_utterance": "Show ids for all documents in type CV without expense budgets.",
        "interaction_utterance": [
            "Show all document ids with an expense budget.",
            "Show ids for all documents in type CV.",
            "Which of them don't have expense budgets?"
        ],
        "interaction_query": [
            "SELECT document_id FROM Documents_with_expenses",
            "SELECT document_id FROM Documents WHERE document_type_code  =  \"CV\"",
            "SELECT document_id FROM Documents WHERE document_type_code  =  \"CV\" EXCEPT SELECT document_id FROM Documents_with_expenses"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T1.document_name LIKE '%s%'",
        "final_utterance": "What are the ids of documents with letter 's' in the name with any expense budgets.",
        "interaction_utterance": [
            "Show ids for all documents.",
            "How about those with the letter 's' in the name?",
            "Which of them have any expense budgets."
        ],
        "interaction_query": [
            "SELECT document_id FROM Documents",
            "SELECT document_id FROM Documents WHERE document_name LIKE '%s%'",
            "SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T1.document_name LIKE '%s%'"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT count(*) FROM Documents WHERE document_id NOT IN ( SELECT document_id FROM Documents_with_expenses )",
        "final_utterance": "How many documents do not have any expense?",
        "interaction_utterance": [
            "Show the ids of documents with expenses.",
            "Show ids for those which don't.",
            "How many of such documents are there?"
        ],
        "interaction_query": [
            "SELECT document_id FROM Documents_with_expenses",
            "SELECT document_id FROM Documents WHERE document_id NOT IN ( SELECT document_id FROM Documents_with_expenses )",
            "SELECT count(*) FROM Documents WHERE document_id NOT IN ( SELECT document_id FROM Documents_with_expenses )"
        ]
    },
    {
        "db_id": "cre_Docs_and_Epenses",
        "final_query": "SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T2.budget_type_code  =  'GV' INTERSECT SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T2.budget_type_code  =  'SF'",
        "final_utterance": "What are the dates for the documents with both 'GV' type and 'SF' type expenses?",
        "interaction_utterance": [
            "What are the dates of all documents?",
            "What about those with 'GV' type expenses?",
            "What about those with 'SF' type expenses?",
            "Show the dates for the documents with both types."
        ],
        "interaction_query": [
            "SELECT document_date FROM Documents",
            "SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T2.budget_type_code  =  'GV'",
            "SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T2.budget_type_code  =  'SF'",
            "SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T2.budget_type_code  =  'GV' INTERSECT SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T2.budget_type_code  =  'SF'"
        ]
    },
    {
        "db_id": "manufactory_1",
        "final_query": "SELECT avg(revenue) ,  max(revenue) ,  sum(revenue) FROM manufacturers",
        "final_utterance": "What are the average, maximum and total revenues of all companies?",
        "interaction_utterance": [
            "show the name and revenue of all companies.",
            "what is their average revenue?",
            "please return maximum and total revenues too."
        ],
        "interaction_query": [
            "SELECT name, revenue FROM manufacturers",
            "SELECT avg(revenue) FROM manufacturers",
            "SELECT avg(revenue) ,  max(revenue) ,  sum(revenue) FROM manufacturers"
        ]
    },
    {
        "db_id": "manufactory_1",
        "final_query": "SELECT count(*) FROM manufacturers WHERE headquarter  =  'Tokyo' OR headquarter  =  'Beijing'",
        "final_utterance": "Find the number of manufactures that are based in Tokyo or Beijing.",
        "interaction_utterance": [
            "find the names of manufactures that are based in Tokyo.",
            "how about in Beijing?",
            "what is the total number of companies based in these two places?"
        ],
        "interaction_query": [
            "SELECT name FROM manufacturers WHERE headquarter  =  'Tokyo'",
            "SELECT name FROM manufacturers WHERE headquarter  =  'Beijing'",
            "SELECT count(*) FROM manufacturers WHERE headquarter  =  'Tokyo' OR headquarter  =  'Beijing'"
        ]
    },
    {
        "db_id": "manufactory_1",
        "final_query": "SELECT founder FROM manufacturers WHERE name LIKE 'S%'",
        "final_utterance": "Find the founder of the company whose name begins with the letter 'S'.",
        "interaction_utterance": [
            "list the names of all manufacturers.",
            "show the names of manufacturers that begin with the letter 'S'.",
            "who are their founders?"
        ],
        "interaction_query": [
            "SELECT name FROM manufacturers",
            "SELECT name FROM manufacturers WHERE name LIKE 'S%'",
            "SELECT founder FROM manufacturers WHERE name LIKE 'S%'"
        ]
    },
    {
        "db_id": "manufactory_1",
        "final_query": "SELECT sum(revenue) FROM manufacturers WHERE Headquarter  =  'Tokyo' OR Headquarter  =  'Taiwan'",
        "final_utterance": "What is the total revenue of all companies whose main office is at Tokyo or Taiwan?",
        "interaction_utterance": [
            "find the names of companies whose main office is in Tokyo.",
            "What is the total revenue of these companies?",
            "add the revenue of Taiwan companies too."
        ],
        "interaction_query": [
            "SELECT name FROM manufacturers WHERE Headquarter  =  'Tokyo'",
            "SELECT sum(revenue) FROM manufacturers WHERE Headquarter  =  'Tokyo'",
            "SELECT sum(revenue) FROM manufacturers WHERE Headquarter  =  'Tokyo' OR Headquarter  =  'Taiwan'"
        ]
    },
    {
        "db_id": "manufactory_1",
        "final_query": "SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T2.name  =  'Creative Labs' INTERSECT SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T2.name  =  'Sony'",
        "final_utterance": "Find the name of product that is produced by both companies Creative Labs and Sony.",
        "interaction_utterance": [
            "list the names of all of the products.",
            "which products are produced by the company Creative Labs?",
            "among them, find the products that Sony also produces."
        ],
        "interaction_query": [
            "SELECT name FROM products",
            "SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T2.name  =  'Creative Labs'",
            "SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T2.name  =  'Creative Labs' INTERSECT SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T2.name  =  'Sony'"
        ]
    },
    {
        "db_id": "manufactory_1",
        "final_query": "SELECT name,  headquarter,  founder FROM manufacturers ORDER BY revenue DESC LIMIT 1",
        "final_utterance": "Find the name, headquarter and founder of the manufacturer that has the highest revenue.",
        "interaction_utterance": [
            "find the name of the company that earned the least revenue.",
            "show its headquarter location and founder too.",
            "what is the info for the company with the highest revenue?"
        ],
        "interaction_query": [
            "SELECT name FROM manufacturers ORDER BY revenue LIMIT 1",
            "SELECT name,  headquarter,  founder FROM manufacturers ORDER BY revenue LIMIT 1",
            "SELECT name,  headquarter,  founder FROM manufacturers ORDER BY revenue DESC LIMIT 1"
        ]
    },
    {
        "db_id": "manufactory_1",
        "final_query": "SELECT name FROM manufacturers WHERE revenue  >  (SELECT avg(revenue) FROM manufacturers)",
        "final_utterance": "Find the name of companies whose revenue is greater than the average revenue of all companies.",
        "interaction_utterance": [
            "how many companies are there?",
            "What is their average revenue?",
            "Find the names of companies whose revenue is greater than the average."
        ],
        "interaction_query": [
            "SELECT count(*) FROM manufacturers",
            "SELECT avg(revenue) FROM manufacturers",
            "SELECT name FROM manufacturers WHERE revenue  >  (SELECT avg(revenue) FROM manufacturers)"
        ]
    },
    {
        "db_id": "manufactory_1",
        "final_query": "SELECT name FROM manufacturers WHERE revenue  <  (SELECT min(revenue) FROM manufacturers WHERE headquarter  =  'Austin')",
        "final_utterance": "Find the name of companies whose revenue is smaller than the revenue of all companies based in Austin.",
        "interaction_utterance": [
            "how many companies are based in Austin?",
            "show their revenues",
            "Find the names of companies whose revenue is smaller than all of those revenues."
        ],
        "interaction_query": [
            "SELECT count(*) FROM manufacturers WHERE headquarter  =  'Austin'",
            "SELECT revenue FROM manufacturers WHERE headquarter  =  'Austin'",
            "SELECT name FROM manufacturers WHERE revenue  <  (SELECT min(revenue) FROM manufacturers WHERE headquarter  =  'Austin')"
        ]
    },
    {
        "db_id": "manufactory_1",
        "final_query": "SELECT sum(revenue) FROM manufacturers WHERE revenue  >  (SELECT min(revenue) FROM manufacturers WHERE headquarter  =  'Austin')",
        "final_utterance": "Find the total revenue of companies whose revenue is larger than the revenue of some companies based in Austin.",
        "interaction_utterance": [
            "what are the names of the companies based in Austin?",
            "find the names of companies whose revenue is larger than the largest revenue of those companies.",
            "return the total revenue of the resulting companies."
        ],
        "interaction_query": [
            "SELECT name FROM manufacturers WHERE headquarter  =  'Austin'",
            "SELECT name FROM manufacturers WHERE revenue  >  (SELECT min(revenue) FROM manufacturers WHERE headquarter  =  'Austin')",
            "SELECT sum(revenue) FROM manufacturers WHERE revenue  >  (SELECT min(revenue) FROM manufacturers WHERE headquarter  =  'Austin')"
        ]
    },
    {
        "db_id": "manufactory_1",
        "final_query": "SELECT avg(T1.price),  T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.name",
        "final_utterance": "Find the average prices of all products from each manufacture, and list each company's name.",
        "interaction_utterance": [
            "find the number of all products from each manufacture. list each company's name.",
            "show the average price of each company\u2019s products."
        ],
        "interaction_query": [
            "SELECT count(*),  T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.name",
            "SELECT avg(T1.price),  T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.name"
        ]
    },
    {
        "db_id": "manufactory_1",
        "final_query": "SELECT count(DISTINCT T1.name),  T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.Headquarter",
        "final_utterance": "Find the number of different products that are produced by companies at different headquarter cities.",
        "interaction_utterance": [
            "how many different headquarter cities are there?",
            "Find the number of different products that are from companies at each headquarter."
        ],
        "interaction_query": [
            "SELECT count(distinct headquarter) FROM manufacturers",
            "SELECT count(DISTINCT T1.name),  T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.Headquarter"
        ]
    },
    {
        "db_id": "manufactory_1",
        "final_query": "SELECT count(DISTINCT name) FROM products WHERE name NOT IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T2.name  =  'Sony')",
        "final_utterance": "Find number of products which Sony does not make.",
        "interaction_utterance": [
            "find the name of all products.",
            "which of them does Sony make.",
            "Find the number of products that Sony does not make."
        ],
        "interaction_query": [
            "SELECT name FROM products",
            "SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T2.name  =  'Sony'",
            "SELECT count(DISTINCT name) FROM products WHERE name NOT IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T2.name  =  'Sony')"
        ]
    },
    {
        "db_id": "manufactory_1",
        "final_query": "SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T1.name  =  'DVD drive'",
        "final_utterance": "Find the name of companies that do not make DVD drive.",
        "interaction_utterance": [
            "Find the names of companies that produce DVD drives.",
            "how about the companies that do not make them?"
        ],
        "interaction_query": [
            "SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T1.name  =  'DVD drive'",
            "SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T1.name  =  'DVD drive'"
        ]
    },
    {
        "db_id": "manufactory_1",
        "final_query": "SELECT count(*) ,  T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.name",
        "final_utterance": "Find the number of products for each manufacturer, showing the name of each company.",
        "interaction_utterance": [
            "how many products are in the record?",
            "find the number for each manufacturer, showing the name of each company."
        ],
        "interaction_query": [
            "SELECT count(*) FROM products",
            "SELECT count(*) ,  T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.name"
        ]
    },
    {
        "db_id": "manufactory_1",
        "final_query": "SELECT name,  price FROM products WHERE price  >=  180 ORDER BY price DESC ,  name ASC",
        "final_utterance": "Select the name and price of all products with a price larger than or equal to 180, and sort first by price (in descending order), and then by name  (in ascending order).",
        "interaction_utterance": [
            "Select the name of all products.",
            "which one is the most expensive?",
            "also show its price.",
            "how about the products with a price larger than or equal to 180?",
            "sort the result by price (in descending order).",
            "then order by name  (in ascending order)."
        ],
        "interaction_query": [
            "SELECT name FROM products",
            "SELECT name FROM products ORDER BY price DESC limit 1",
            "SELECT name, price FROM products ORDER BY price DESC limit 1",
            "SELECT name,  price FROM products WHERE price  >=  180",
            "SELECT name,  price FROM products WHERE price  >=  180 ORDER BY price DESC",
            "SELECT name,  price FROM products WHERE price  >=  180 ORDER BY price DESC ,  name ASC"
        ]
    },
    {
        "db_id": "manufactory_1",
        "final_query": "SELECT avg(T1.Price),  T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code GROUP BY T2.name",
        "final_utterance": "Select the average price of each manufacturer's products, showing the manufacturer's name.",
        "interaction_utterance": [
            "Show the names of all manufacturers.",
            "how many products do each of them produce?",
            "what are their average prices?"
        ],
        "interaction_query": [
            "SELECT name FROM Manufacturers",
            "SELECT count(*),  T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code GROUP BY T2.name",
            "SELECT avg(T1.Price),  T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code GROUP BY T2.name"
        ]
    },
    {
        "db_id": "manufactory_1",
        "final_query": "SELECT avg(T1.Price) ,  T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code GROUP BY T2.name HAVING avg(T1.price) >= 150",
        "final_utterance": "Select the names of manufacturer whose products have an average price higher than or equal to $150.",
        "interaction_utterance": [
            "find the name of products with a price higher than or equal to $150.",
            "what are the names of manufacturers that produce these products?",
            "Select the names of manufacturer whose products have an average price higher than or equal to $150."
        ],
        "interaction_query": [
            "SELECT name FROM products WHERE price >= 150",
            "SELECT DISTINCT T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code WHERE T1.price >= 150",
            "SELECT avg(T1.Price) ,  T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code GROUP BY T2.name HAVING avg(T1.price) >= 150"
        ]
    },
    {
        "db_id": "manufactory_1",
        "final_query": "SELECT name ,  price FROM Products ORDER BY price ASC LIMIT 1",
        "final_utterance": "Select the name and price of the cheapest product.",
        "interaction_utterance": [
            "what is the name of the most expensive product?",
            "how about the cheapest product?",
            "show its price as well."
        ],
        "interaction_query": [
            "SELECT name FROM Products ORDER BY price DESC LIMIT 1",
            "SELECT name FROM Products ORDER BY price ASC LIMIT 1",
            "SELECT name ,  price FROM Products ORDER BY price ASC LIMIT 1"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT name FROM airports WHERE country  =  'Cuba' OR country  =  'Argentina'",
        "final_utterance": "Find the name of the airports located in Cuba or Argentina.",
        "interaction_utterance": [
            "show all different countries that have airports in the record.",
            "could you please list the names of airports in Cuba?",
            "also list Argentina's airports."
        ],
        "interaction_query": [
            "SELECT distinct country FROM airports",
            "SELECT name FROM airports WHERE country  =  'Cuba'",
            "SELECT name FROM airports WHERE country  =  'Cuba' OR country  =  'Argentina'"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT country FROM airlines WHERE name LIKE 'Orbit%'",
        "final_utterance": "Find the country of the airlines whose name starts with 'Orbit'.",
        "interaction_utterance": [
            "what are all of the airline names?",
            "which of them start with 'Orbit'?",
            "how many are there?",
            "Find the country of these airlines."
        ],
        "interaction_query": [
            "SELECT distinct name FROM airlines",
            "SELECT distinct name FROM airlines WHERE name LIKE 'Orbit%'",
            "SELECT count(*) FROM airlines WHERE name LIKE 'Orbit%'",
            "SELECT DISTINCT country FROM airlines WHERE name LIKE 'Orbit%'"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT country FROM airports ORDER BY elevation DESC LIMIT 1",
        "final_utterance": "Which country is the airport that has the highest altitude located in?",
        "interaction_utterance": [
            "how many airports are there?",
            "which airport has the lowest elevation?",
            "how about the one with the highest elevation?",
            "which country is it located in?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM airports",
            "SELECT * FROM airports ORDER BY elevation LIMIT 1",
            "SELECT * FROM airports ORDER BY elevation DESC LIMIT 1",
            "SELECT country FROM airports ORDER BY elevation DESC LIMIT 1"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT count(*) FROM airports WHERE name LIKE '%International%'",
        "final_utterance": "Find the number of airports whose name contain the word 'International'.",
        "interaction_utterance": [
            "please show all airport names.",
            "what is the total number of airports?",
            "among them, how many contain the word 'International' in their name?"
        ],
        "interaction_query": [
            "SELECT name FROM airports",
            "SELECT count(*) FROM airports",
            "SELECT count(*) FROM airports WHERE name LIKE '%International%'"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid WHERE T1.name  =  'American Airlines'",
        "final_utterance": "Find the number of routes operated by American Airlines.",
        "interaction_utterance": [
            "what is the icao code for American Airlines?",
            "which routes are operated by American Airlines?",
            "please count the number of routes."
        ],
        "interaction_query": [
            "SELECT icao FROM airlines WHERE name  =  'American Airlines'",
            "SELECT * FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid WHERE T1.name  =  'American Airlines'",
            "SELECT count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid WHERE T1.name  =  'American Airlines'"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid WHERE country  =  'Canada'",
        "final_utterance": "Find the number of routes whose destination airports are in Canada.",
        "interaction_utterance": [
            "how many airports does each country have?",
            "how many does Canada have?",
            "what is the total number of routes that end there?"
        ],
        "interaction_query": [
            "SELECT count(*), country FROM airports GROUP BY country",
            "SELECT count(*) FROM airports WHERE country  =  'Canada'",
            "SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid WHERE country  =  'Canada'"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT name ,  city ,  country FROM airports ORDER BY elevation LIMIT 1",
        "final_utterance": "Find the name, city, and country of the airport that has the lowest altitude.",
        "interaction_utterance": [
            "what is the lowest elevation of all airports?",
            "what is the name of that airport?",
            "also show the city and country where it is located."
        ],
        "interaction_query": [
            "SELECT min(elevation) FROM airports",
            "SELECT name FROM airports ORDER BY elevation LIMIT 1",
            "SELECT name ,  city ,  country FROM airports ORDER BY elevation LIMIT 1"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT name ,  city ,  country FROM airports ORDER BY elevation DESC LIMIT 1",
        "final_utterance": "Find the name, city, and country of the airport that has the highest latitude.",
        "interaction_utterance": [
            "what is the average elevation of all airports?",
            "order the airport info by latitude from highest to lowest.",
            "just show name, city, and country of the highest one."
        ],
        "interaction_query": [
            "SELECT avg(elevation) FROM airports",
            "SELECT * FROM airports ORDER BY elevation DESC",
            "SELECT name ,  city ,  country FROM airports ORDER BY elevation DESC LIMIT 1"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT T1.name,  T1.city FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid GROUP BY T2.dst_apid ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the name and city of the airport which is the destination of the most number of routes.",
        "interaction_utterance": [
            "how many routes are there?",
            "find the number of routes for each destination.",
            "what is the name and city of the destination airport that has the most routes ending there?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM routes",
            "SELECT count(*), dst_apid FROM routes GROUP BY dst_apid",
            "SELECT T1.name,  T1.city FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid GROUP BY T2.dst_apid ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid GROUP BY T2.alid ORDER BY count(*) DESC LIMIT 10",
        "final_utterance": "Find the names of the top 10 airlines that operate the most number of routes.",
        "interaction_utterance": [
            "Provide the names of all airlines.",
            "Find the number of routes provided by each airline. Show airline name.",
            "which airline operates the most routes?",
            "what are the top 10 airlines?"
        ],
        "interaction_query": [
            "SELECT name FROM airlines",
            "SELECT count(*), T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid GROUP BY T1.name",
            "SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid GROUP BY T2.alid ORDER BY count(*) DESC LIMIT 1",
            "SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid GROUP BY T2.alid ORDER BY count(*) DESC LIMIT 10"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT T1.name, T1.city FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid GROUP BY T2.src_apid ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the name and city of the airport which is the source for the most number of flight routes.",
        "interaction_utterance": [
            "Show the name and city of all airports.",
            "Show the number of flight routes for each of them as a source airport.",
            "which of them has the most routes?"
        ],
        "interaction_query": [
            "SELECT name, city FROM airports",
            "SELECT T1.name, T1.city, count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T2.src_apid",
            "SELECT T1.name, T1.city FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid GROUP BY T2.src_apid ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT count(DISTINCT dst_apid) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid WHERE T1.name  =  'American Airlines'",
        "final_utterance": "Find the number of different airports which are the destinations of the American Airlines.",
        "interaction_utterance": [
            "how many routes does American Airlines have?",
            "How many destinations do these routes go to?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid WHERE T1.name  =  'American Airlines'",
            "SELECT count(DISTINCT dst_apid) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid WHERE T1.name  =  'American Airlines'"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT country FROM airlines GROUP BY country ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which countries has the most number of airlines?",
        "interaction_utterance": [
            "how many countries have airlines?",
            "how many airlines does each country have?",
            "show the one that has the most."
        ],
        "interaction_query": [
            "SELECT count(distinct country) FROM airlines",
            "SELECT count(*), country FROM airlines GROUP BY country",
            "SELECT country FROM airlines GROUP BY country ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT country FROM airlines WHERE active  =  'Y' GROUP BY country ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which countries has the most number of airlines whose active status is 'Y'?",
        "interaction_utterance": [
            "what are the different active codes?",
            "show the name of airlines whose active status is 'Y'.",
            "Which country has the largest number of these airlines?"
        ],
        "interaction_query": [
            "SELECT distinct active FROM airlines",
            "SELECT name FROM airlines WHERE active  =  'Y'",
            "SELECT country FROM airlines WHERE active  =  'Y' GROUP BY country ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT country ,  count(*) FROM airlines GROUP BY country ORDER BY count(*) DESC",
        "final_utterance": "List all countries and their number of airlines in the descending order of number of airlines.",
        "interaction_utterance": [
            "List all countries and the number of airlines for each one.",
            "list them in ascending order of number of airlines.",
            "list in descending order."
        ],
        "interaction_query": [
            "SELECT country ,  count(*) FROM airlines GROUP BY country",
            "SELECT country ,  count(*) FROM airlines GROUP BY country ORDER BY count(*)",
            "SELECT country ,  count(*) FROM airlines GROUP BY country ORDER BY count(*) DESC"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT count(*) ,  country FROM airports GROUP BY country ORDER BY count(*) DESC",
        "final_utterance": "How many airports are there per country? Order the countries by decreasing number of airports.",
        "interaction_utterance": [
            "how many airports are in the record?",
            "how many airports are in each country?",
            "order them by number of airports in decreasing order."
        ],
        "interaction_query": [
            "SELECT count(*) FROM airports",
            "SELECT count(*), country FROM airports GROUP BY country",
            "SELECT count(*),  country FROM airports GROUP BY country ORDER BY count(*) DESC"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT count(*) ,  city FROM airports WHERE country  =  'United States' GROUP BY city ORDER BY count(*) DESC",
        "final_utterance": "How many airports are there per city in the United States? Order the cities by decreasing number of airports.",
        "interaction_utterance": [
            "how many airports does the US has?",
            "what is the number of airports in each city in the US?",
            "Order the cities by decreasing number of airports."
        ],
        "interaction_query": [
            "SELECT count(*) FROM airports WHERE country  =  'United States'",
            "SELECT count(*) ,  city FROM airports WHERE country  =  'United States' GROUP BY city",
            "SELECT count(*) ,  city FROM airports WHERE country  =  'United States' GROUP BY city ORDER BY count(*) DESC"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT city FROM airports WHERE country  =  'United States' GROUP BY city HAVING count(*)  >  3",
        "final_utterance": "Return the cities with more than 3 airports in the United States.",
        "interaction_utterance": [
            "show all cities that have an airport.",
            "which of them are in the United States?",
            "just show cities that have more than 2 airports.",
            "how about more than 3?"
        ],
        "interaction_query": [
            "SELECT city FROM airports",
            "SELECT city FROM airports WHERE country  =  'United States'",
            "SELECT city FROM airports WHERE country  =  'United States' GROUP BY city HAVING count(*)  >  2",
            "SELECT city FROM airports WHERE country  =  'United States' GROUP BY city HAVING count(*)  >  3"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT count(*) FROM (SELECT city FROM airports GROUP BY city HAVING count(*)  >  3)",
        "final_utterance": "How many cities are there that have more than 3 airports?",
        "interaction_utterance": [
            "which cities have more than 3 airports?",
            "how many are there?"
        ],
        "interaction_query": [
            "SELECT city FROM airports GROUP BY city HAVING count(*)  >  3",
            "SELECT count(*) FROM (SELECT city FROM airports GROUP BY city HAVING count(*)  >  3)"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT city ,  count(*) FROM airports GROUP BY city HAVING count(*)  >  1",
        "final_utterance": "List the cities which have more than one airport and number of airports.",
        "interaction_utterance": [
            "list all cities.",
            "how many airports does each city have?",
            "just show cities that have more than one airport.",
            "include the number of airports per city."
        ],
        "interaction_query": [
            "SELECT city FROM airports",
            "SELECT city ,  count(*) FROM airports GROUP BY city",
            "SELECT city FROM airports GROUP BY city HAVING count(*)  >  1",
            "SELECT city ,  count(*) FROM airports GROUP BY city HAVING count(*)  >  1"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT city FROM airports GROUP BY city HAVING count(*)  >  2 ORDER BY count(*)",
        "final_utterance": "List the cities which have more than 2 airports sorted by the number of airports.",
        "interaction_utterance": [
            "how many cities have more than 2 airports?",
            "what are these cities?",
            "sort the results by the number of airports."
        ],
        "interaction_query": [
            "SELECT count(*) FROM (SELECT city FROM airports GROUP BY city HAVING count(*)  >  2)",
            "SELECT city FROM airports GROUP BY city HAVING count(*)  >  2",
            "SELECT city FROM airports GROUP BY city HAVING count(*)  >  2 ORDER BY count(*)"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT count(*),  T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid GROUP BY T1.name",
        "final_utterance": "Find the number of routes for each source airport and the airport name.",
        "interaction_utterance": [
            "list the names of all airports.",
            "also list the number of routes that list them as the source airport."
        ],
        "interaction_query": [
            "SELECT name FROM airports",
            "SELECT count(*),  T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid GROUP BY T1.name"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT count(*) ,  T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid GROUP BY T1.name ORDER BY count(*) DESC",
        "final_utterance": "Find the number of routes and airport name for each source airport, order the results by decreasing number of routes.",
        "interaction_utterance": [
            "how many routes are there?",
            "what are their source airports? List airport names.",
            "For each of those airports, how many routes does it have?",
            "order the result by decreasing number of routes"
        ],
        "interaction_query": [
            "SELECT count(*) FROM routes",
            "SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid",
            "SELECT count(*) ,  T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid GROUP BY T1.name",
            "SELECT count(*) ,  T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid GROUP BY T1.name ORDER BY count(*) DESC"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT city FROM airports GROUP BY city HAVING count(*)  =  2",
        "final_utterance": "Find the cities which have exactly two airports.",
        "interaction_utterance": [
            "which cities have more than one airport?",
            "ok, which of them have exactly two?"
        ],
        "interaction_query": [
            "SELECT city FROM airports GROUP BY city HAVING count(*)  > 1",
            "SELECT city FROM airports GROUP BY city HAVING count(*)  =  2"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT T1.country,  T1.name,  count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid GROUP BY T1.country,  T1.name",
        "final_utterance": "For each country and airline name, how many routes are there?",
        "interaction_utterance": [
            "how many routes are there?",
            "please list the number of routes for each country and airline."
        ],
        "interaction_query": [
            "SELECT count(*) FROM routes",
            "SELECT T1.country,  T1.name,  count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid GROUP BY T1.country,  T1.name"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid  =  T2.apid WHERE T2.country  =  'Italy'",
        "final_utterance": "Find the number of routes with destination airports in Italy.",
        "interaction_utterance": [
            "how many airports are in Italy?",
            "show the info of routes listing those airports as destinations.",
            "count the total number."
        ],
        "interaction_query": [
            "SELECT count(*) FROM airports WHERE country  =  'Italy'",
            "SELECT * FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid  =  T2.apid WHERE T2.country  =  'Italy'",
            "SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid  =  T2.apid WHERE T2.country  =  'Italy'"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid  =  T2.apid JOIN airlines AS T3 ON T1.alid  =  T3.alid WHERE T2.country  =  'Italy' AND T3.name  =  'American Airlines'",
        "final_utterance": "Return the number of routes with destination airport in Italy operated by the airline with name 'American Airlines'.",
        "interaction_utterance": [
            "how many routes are operated by the airline with name 'American Airlines'.",
            "how many of them list the US as the destination?",
            "how about for Italy?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM routes AS T1 JOIN airlines AS T2 ON T1.alid  =  T2.alid WHERE T2.name  =  'American Airlines'",
            "SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid  =  T2.apid JOIN airlines AS T3 ON T1.alid  =  T3.alid WHERE T2.country  =  'United States' AND T3.name  =  'American Airlines'",
            "SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid  =  T2.apid JOIN airlines AS T3 ON T1.alid  =  T3.alid WHERE T2.country  =  'Italy' AND T3.name  =  'American Airlines'"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid WHERE T1.name  =  'John F Kennedy International Airport'",
        "final_utterance": "Find the number of routes that list John F Kennedy International Airport as a destination.",
        "interaction_utterance": [
            "which city is John F Kennedy International Airport located in?",
            "which routes list it as a destination airport?",
            "how many of those routes are there?"
        ],
        "interaction_query": [
            "SELECT city FROM airports WHERE name  =  'John F Kennedy International Airport'",
            "SELECT * FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid WHERE T1.name  =  'John F Kennedy International Airport'",
            "SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid WHERE T1.name  =  'John F Kennedy International Airport'"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT count(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country  =  'Canada') AND src_apid IN (SELECT apid FROM airports WHERE country  =  'United States')",
        "final_utterance": "Find the number of routes from the United States to Canada.",
        "interaction_utterance": [
            "Find the number of routes from the United States.",
            "how many of them end up in Canada?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM routes WHERE src_apid IN (SELECT apid FROM airports WHERE country  =  'United States')",
            "SELECT count(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country  =  'Canada') AND src_apid IN (SELECT apid FROM airports WHERE country  =  'United States')"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT rid FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country  =  'United States') AND src_apid IN (SELECT apid FROM airports WHERE country  =  'United States')",
        "final_utterance": "Find the id of routes whose source and destination airports are in the United States.",
        "interaction_utterance": [
            "how many routes end in the United States?",
            "among them, how many fly from the United States?",
            "what are their ids?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country  =  'United States')",
            "SELECT count(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country  =  'United States') AND src_apid IN (SELECT apid FROM airports WHERE country  =  'United States')",
            "SELECT rid FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country  =  'United States') AND src_apid IN (SELECT apid FROM airports WHERE country  =  'United States')"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the name of airline which runs the most number of routes.",
        "interaction_utterance": [
            "show info of all airlines.",
            "find the number of routes for each airline. Show their names.",
            "which airline has the most routes?"
        ],
        "interaction_query": [
            "SELECT * FROM airlines",
            "SELECT count(*), T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid GROUP BY T1.name",
            "SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "flight_4",
        "final_query": "SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid WHERE T1.country  =  'China' GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the busiest source airport that runs most number of routes in China.",
        "interaction_utterance": [
            "show all airports in China.",
            "which one is listed as the source airport of the most routes?"
        ],
        "interaction_query": [
            "SELECT * FROM airports WHERE country  =  'China'",
            "SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid WHERE T1.country  =  'China' GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT billing_country ,  COUNT(*) FROM invoices GROUP BY billing_country ORDER BY count(*) DESC LIMIT 5;",
        "final_utterance": "A list of the top 5 countries by number of invoices. List country name and number of invoices.",
        "interaction_utterance": [
            "Show me all the information from invoices!",
            "What is the country with the least number of invoices?",
            "How about the one with the most!",
            "How about the top 5?"
        ],
        "interaction_query": [
            "Select * from invoices",
            "SELECT billing_country ,  COUNT(*) FROM invoices GROUP BY billing_country ORDER BY count(*) ASC LIMIT 1;",
            "SELECT billing_country ,  COUNT(*) FROM invoices GROUP BY billing_country ORDER BY count(*) DESC LIMIT 1;",
            "SELECT billing_country ,  COUNT(*) FROM invoices GROUP BY billing_country ORDER BY count(*) DESC LIMIT 5;"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT billing_country ,  SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8;",
        "final_utterance": "A list of the top 8 countries by gross/total invoice size. List country name and gross invoice size.",
        "interaction_utterance": [
            "Show me the number of invoices by country!",
            "What is the total invoice for each!",
            "Can you show me this sorted from greatest to least by total invoice size!",
            "Now, show me just the billing country and total for the top 8!"
        ],
        "interaction_query": [
            "SELECT billing_country,  Count(*) FROM invoices GROUP BY billing_country;",
            "SELECT billing_country,  Count(*), SUM(total) FROM invoices GROUP BY billing_country;",
            "SELECT billing_country,  Count(*), SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC;",
            "SELECT billing_country ,  SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8;"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT billing_country ,  AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 10;",
        "final_utterance": "A list of the top 10 countries by average invoice size. List country name and average invoice size.",
        "interaction_utterance": [
            "Can you show me the total invoice size per country!",
            "Instead, display the average per country!",
            "Just, show the top 15 by average invoice size.",
            "Actually, just list the top 10!"
        ],
        "interaction_query": [
            "SELECT billing_country ,  sum(total) FROM invoices GROUP BY billing_country;",
            "SELECT billing_country ,  AVG(total) FROM invoices GROUP BY billing_country;",
            "SELECT billing_country ,  AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 15;",
            "SELECT billing_country ,  AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 10;"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT T1.first_name ,  T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id ORDER BY T2.invoice_date DESC LIMIT 5;",
        "final_utterance": "Find out 5 customers who most recently purchased something. List customers' first and last name.",
        "interaction_utterance": [
            "Show all the ids, customer ids, and invoice dates from invoices.",
            "Could you show me them in order of most recently purchased?",
            "Also include the customer names of each purchase!!",
            "Show just the first name and last names of the 5 most recent purchases."
        ],
        "interaction_query": [
            "Select id, customer_id, invoice_date from invoices",
            "SELECT id, Customer_id, invoice_date FROM invoices ORDER BY invoice_date DESC;",
            "SELECT T1.first_name ,  T1.last_name, T2.id, T2.Customer_id, T2.invoice_date FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id ORDER BY T2.invoice_date DESC;",
            "SELECT T1.first_name ,  T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id ORDER BY T2.invoice_date DESC LIMIT 5;"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT T1.first_name ,  T1.last_name ,  COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10;",
        "final_utterance": "Find out the top 10 customers by total number of orders. List customers' first and last name and the number of total orders.",
        "interaction_utterance": [
            "How many orders have each customer created by customer name?",
            "Show the entry with the lowest?",
            "How about the highest!",
            "How about the top 10!"
        ],
        "interaction_query": [
            "SELECT T1.first_name ,  T1.last_name ,  COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id GROUP BY T1.id;",
            "SELECT T1.first_name ,  T1.last_name ,  COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id GROUP BY T1.id ORDER BY COUNT(*) ASC LIMIT 1;",
            "SELECT T1.first_name ,  T1.last_name ,  COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1;",
            "SELECT T1.first_name ,  T1.last_name ,  COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10;"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT T1.first_name ,  T1.last_name ,  SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10;",
        "final_utterance": "List the top 10 customers by total gross sales. List customers' first and last name and total gross sales.",
        "interaction_utterance": [
            "Show all the customer ids, and names!",
            "How any invoices do each of them have?",
            "What are their total gross sales?",
            "Show just the names of the customers, and their total gross sales for the top 10 in gross sales!"
        ],
        "interaction_query": [
            "SELECT id, first_name, last_name FROM customers",
            "SELECT T1.id, T1.first_name ,  T1.last_name , count(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id GROUP BY T1.id;",
            "SELECT T1.id, T1.first_name ,  T1.last_name , count(*), SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id GROUP BY T1.id;",
            "SELECT T1.first_name ,  T1.last_name ,  SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10;"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT T1.name ,  COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id  =  T1.id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 5;",
        "final_utterance": "List the top 5 genres by number of tracks. List genres name and total tracks.",
        "interaction_utterance": [
            "How many tracks are there?",
            "What are the names, composers, and genre names of each?",
            "Show how many tracks there are per genre!",
            "Show the genre names, and number of tracks of the top 5 by number of tracks!"
        ],
        "interaction_query": [
            "Select count(*) from tracks",
            "SELECT T2.name, T2.composer, T1.name FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id  =  T1.id;",
            "SELECT T1.name , count(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id  =  T1.id GROUP BY T1.id;",
            "SELECT T1.name ,  COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id  =  T1.id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 5;"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title;",
        "final_utterance": "List every album whose title starts with A in alphabetical order.",
        "interaction_utterance": [
            "What are all the albums titles?",
            "Which ones start with A?",
            "Can you order them in alphabetical order?"
        ],
        "interaction_query": [
            "Select title from albums",
            "SELECT title FROM albums WHERE title LIKE 'A%'",
            "SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title;"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT T1.first_name ,  T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id ORDER BY total LIMIT 10;",
        "final_utterance": "List the customers first and last name of 10 least expensive invoices.",
        "interaction_utterance": [
            "What are the invoices of each customer?",
            "Show me the names of the customers with the top 15 totals!",
            "How about the bottom 15!",
            "How about the bottom 10!"
        ],
        "interaction_query": [
            "SELECT *, T2.total FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id;",
            "SELECT T1.first_name ,  T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id ORDER BY total DESC LIMIT 15;",
            "SELECT T1.first_name ,  T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id ORDER BY total LIMIT 15;",
            "SELECT T1.first_name ,  T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id ORDER BY total LIMIT 10;"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT sum(total) FROM invoices WHERE billing_city  =  \"Chicago\" AND billing_state  =  \"IL\";",
        "final_utterance": "List total amount of  invoice from Chicago, IL.",
        "interaction_utterance": [
            "What are the different cities, and states that have invoices?",
            "What are the number of invoices for each city and state?",
            "Also provide the total invoice!",
            "Can you how just the total invoice for the city Chicago in state IL?"
        ],
        "interaction_query": [
            "SELECT distinct billing_city, billing_state FROM invoices;",
            "SELECT billing_city, billing_state, count(*) FROM invoices group by billing_city, billing_state;",
            "SELECT billing_city, billing_state, count(*), sum(total) FROM invoices group by billing_city, billing_state;",
            "SELECT sum(total) FROM invoices WHERE billing_city  =  \"Chicago\" AND billing_state  =  \"IL\";"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT COUNT(*) FROM invoices WHERE billing_city  =  \"Chicago\" AND billing_state  =  \"IL\";",
        "final_utterance": "List the number of invoices from Chicago, IL.",
        "interaction_utterance": [
            "Show all the invoices for the city Chicago in the state Illinois!",
            "What is the total invoice?",
            "How about the number of different customers?",
            "How about the number of invoices?"
        ],
        "interaction_query": [
            "SELECT * FROM invoices WHERE billing_city  =  \"Chicago\" AND billing_state  =  \"IL\";",
            "SELECT sum(total) FROM invoices WHERE billing_city  =  \"Chicago\" AND billing_state  =  \"IL\";",
            "SELECT count(distinct customer_id) FROM invoices WHERE billing_city  =  \"Chicago\" AND billing_state  =  \"IL\";",
            "SELECT COUNT(*) FROM invoices WHERE billing_city  =  \"Chicago\" AND billing_state  =  \"IL\";"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT billing_state ,  COUNT(*) FROM invoices WHERE billing_country  =  \"USA\" GROUP BY billing_state;",
        "final_utterance": "List the number of invoices from the US, grouped by state.",
        "interaction_utterance": [
            "Show me all the ids, country and states for all the invoices!",
            "Show me only those from the US?",
            "What are the different states these comes from?",
            "How many USA invoices are from each of them!"
        ],
        "interaction_query": [
            "SELECT id, billing_country, billing_state FROM invoices;",
            "SELECT id, billing_country, billing_state FROM invoices WHERE billing_country  =  \"USA\";",
            "SELECT distinct billing_state FROM invoices WHERE billing_country  =  \"USA\";",
            "SELECT billing_state,  COUNT(*) FROM invoices WHERE billing_country  =  \"USA\" GROUP BY billing_state;"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT billing_state ,  COUNT(*) FROM invoices WHERE billing_country  =  \"USA\" GROUP BY billing_state ORDER BY COUNT(*) DESC LIMIT 1;",
        "final_utterance": "List the state in the US with the most invoices.",
        "interaction_utterance": [
            "What are the different states in the US that have invoices?",
            "Which one has the least number of invoices?",
            "How about the most?"
        ],
        "interaction_query": [
            "SELECT distinct billing_state FROM invoices WHERE billing_country  =  \"USA\";",
            "SELECT billing_state ,  COUNT(*) FROM invoices WHERE billing_country  =  \"USA\" GROUP BY billing_state ORDER BY COUNT(*) ASC LIMIT 1;",
            "SELECT billing_state ,  COUNT(*) FROM invoices WHERE billing_country  =  \"USA\" GROUP BY billing_state ORDER BY COUNT(*) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT billing_state ,  COUNT(*) ,  SUM(total) FROM invoices WHERE billing_state  =  \"CA\";",
        "final_utterance": "List the number of invoices and the invoice total from California.",
        "interaction_utterance": [
            "Show me all the information about the invoices in California!",
            "Actually just show the billing_state, billing_city, and billing_country.",
            "Can you show the billing_state and the total invoice of these?",
            "Also provide the number of invoices."
        ],
        "interaction_query": [
            "SELECT * FROM invoices WHERE billing_state  =  \"CA\";",
            "SELECT billing_state, billing_city, billing_country FROM invoices WHERE billing_state  =  \"CA\";",
            "SELECT billing_state, SUM(total) FROM invoices WHERE billing_state  =  \"CA\";",
            "SELECT billing_state,  COUNT(*) ,  SUM(total) FROM invoices WHERE billing_state  =  \"CA\";"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON  T1.artist_id = T2.id WHERE T2.name = \"Aerosmith\";",
        "final_utterance": "List Aerosmith's albums.",
        "interaction_utterance": [
            "How many different albums are there?",
            "What are the titles of the albums?",
            "What are the names of the artists for each!",
            "Show me only the album titles by the artist named Aerosmith!"
        ],
        "interaction_query": [
            "SELECT count(*) FROM albums;",
            "SELECT title FROM albums;",
            "SELECT T1.title, T2.name FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id;",
            "SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON  T1.artist_id = T2.id WHERE T2.name = \"Aerosmith\";"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT count(*) FROM albums AS T1 JOIN artists AS T2 ON  T1.artist_id = T2.id WHERE T2.name = \"Billy Cobham\";",
        "final_utterance": "How many albums does Billy Cobham has?",
        "interaction_utterance": [
            "How many albums are there?",
            "What are they?",
            "Which ones are made by Billy Cobham?",
            "How many are there?"
        ],
        "interaction_query": [
            "Select count(*) from albums",
            "Select * from albums",
            "SELECT * FROM albums AS T1 JOIN artists AS T2 ON  T1.artist_id = T2.id WHERE T2.name = \"Billy Cobham\";",
            "SELECT count(*) FROM albums AS T1 JOIN artists AS T2 ON  T1.artist_id = T2.id WHERE T2.name = \"Billy Cobham\";"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT company FROM customers WHERE first_name = \"Eduardo\" AND last_name = \"Martins\";",
        "final_utterance": "Eduardo Martins is a customer at which company?",
        "interaction_utterance": [
            "How many customers have the first name Eduardo and last name Martins?",
            "Show me all his customer information!",
            "Just show the company!"
        ],
        "interaction_query": [
            "SELECT count(*) FROM customers WHERE first_name = \"Eduardo\" AND last_name = \"Martins\";",
            "SELECT * FROM customers WHERE first_name = \"Eduardo\" AND last_name = \"Martins\";",
            "SELECT company FROM customers WHERE first_name = \"Eduardo\" AND last_name = \"Martins\";"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT email ,  phone FROM customers WHERE first_name = \"Astrid\" AND last_name = \"Gruber\";",
        "final_utterance": "What is Astrid Gruber's email and phone number?",
        "interaction_utterance": [
            "Show me the id of customer with first name Astrid, and last name Gruber!",
            "What is her address?",
            "How about her company?",
            "Just show me her email and phone number?"
        ],
        "interaction_query": [
            "SELECT id FROM customers WHERE first_name = \"Astrid\" AND last_name = \"Gruber\";",
            "SELECT address FROM customers WHERE first_name = \"Astrid\" AND last_name = \"Gruber\";",
            "SELECT company FROM customers WHERE first_name = \"Astrid\" AND last_name = \"Gruber\";",
            "SELECT email ,  phone FROM customers WHERE first_name = \"Astrid\" AND last_name = \"Gruber\";"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT country FROM customers WHERE first_name = \"Roberto\" AND last_name = \"Almeida\";",
        "final_utterance": "What country does Roberto Almeida live?",
        "interaction_utterance": [
            "How many different countries are the customers from?",
            "What are they?",
            "Show the customer names for each!",
            "Which country has name Roberto Almeida?"
        ],
        "interaction_query": [
            "Select count(distinct country) from customers;",
            "SELECT distinct country FROM customers;",
            "SELECT country, first_name, last_name FROM customers;",
            "SELECT country FROM customers WHERE first_name = \"Roberto\" AND last_name = \"Almeida\";"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id  =  T2.artist_id WHERE T1.name LIKE '%Led%'",
        "final_utterance": "List the name of albums that are released by artist whose name has 'Led'",
        "interaction_utterance": [
            "How many different artists are there?",
            "What are their names?",
            "Show all the album titles for the one named Led!"
        ],
        "interaction_query": [
            "Select count(*) from artists",
            "SELECT name FROM artists",
            "SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id  =  T2.artist_id WHERE T1.name LIKE '%Led%'"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT count(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = \"Steve\" AND T1.last_name = \"Johnson\";",
        "final_utterance": "How many customers does Steve Johnson support?",
        "interaction_utterance": [
            "What is the title of the employee with first name Steve and last name Johnson?",
            "Who does he report to?",
            "What customers does he support?",
            "How many are there?"
        ],
        "interaction_query": [
            "Select title from employees WHERE first_name = \"Steve\" AND last_name = \"Johnson\";",
            "Select T2.first_name, T2.last_name from employees as T1 JOIN employees as T2 on T1.reports_to = T2.id  WHERE T1.first_name = \"Steve\" AND T1.last_name = \"Johnson\";",
            "SELECT T2.first_name, T2.last_name FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = \"Steve\" AND T1.last_name = \"Johnson\";",
            "SELECT count(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = \"Steve\" AND T1.last_name = \"Johnson\";"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT title ,  phone ,  hire_date FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";",
        "final_utterance": "What is the title, phone and hire date of Nancy Edwards?",
        "interaction_utterance": [
            "Tell me the phone number and email of employee named Nancy Edwards?",
            "What is her birth date?",
            "How about her address?",
            "Show her title, phone number, and hire date!"
        ],
        "interaction_query": [
            "SELECT phone ,  email FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";",
            "SELECT birth_date FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";",
            "SELECT address FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";",
            "SELECT title ,  phone ,  hire_date FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT T2.first_name , T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = \"Nancy\" AND T1.last_name = \"Edwards\";",
        "final_utterance": "find the full name of employees who report to Nancy Edwards?",
        "interaction_utterance": [
            "What is the title of Nancy Edwards?",
            "Who does she report to?",
            "How many report to her?",
            "What are their names?"
        ],
        "interaction_query": [
            "Select title from employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";",
            "SELECT T2.first_name, T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id WHERE T1.first_name = \"Nancy\" AND T1.last_name = \"Edwards\";",
            "SELECT count(*) FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = \"Nancy\" AND T1.last_name = \"Edwards\";",
            "SELECT T2.first_name , T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = \"Nancy\" AND T1.last_name = \"Edwards\";"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT address FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";",
        "final_utterance": "What is the address of employee Nancy Edwards?",
        "interaction_utterance": [
            "Show all the employee ids and addresses!",
            "Order by country, state, and city!",
            "Also provide employee name!",
            "Just show the address of customer named Nancy Edwards!"
        ],
        "interaction_query": [
            "SELECT id, address FROM employees;",
            "SELECT id, address FROM employees order by country, state, city;",
            "SELECT first_name, last_name, id, address FROM employees order by country, state, city;",
            "SELECT address FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT T1.first_name , T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id  =  T2.support_rep_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the full name of employee who supported the most number of customers.",
        "interaction_utterance": [
            "Who are the employees that actually support customers?",
            "How about the most?",
            "What is the name of the employee that supports this many!"
        ],
        "interaction_query": [
            "SELECT T1.first_name, T2.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id  =  T2.support_rep_id",
            "SELECT count(*) FROM employees AS T1 JOIN customers AS T2 ON T1.id  =  T2.support_rep_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1",
            "SELECT T1.first_name , T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id  =  T2.support_rep_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT phone FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";",
        "final_utterance": "What is employee Nancy Edwards's phone number?",
        "interaction_utterance": [
            "Show the employee information on employee with name Nancy Edwards!",
            "Show just her email!",
            "Actually show just her phone!"
        ],
        "interaction_query": [
            "SELECT * FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";",
            "SELECT email FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";",
            "SELECT phone FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT first_name , last_name FROM employees ORDER BY birth_date DESC LIMIT 1;",
        "final_utterance": "Who is the youngest employee in the company? List employee's first and last name.",
        "interaction_utterance": [
            "Show all the employe information ordered by oldest to youngest!",
            "Just show the birthdate of the oldest!",
            "How about that of the youngest!",
            "What is the youngest's name?"
        ],
        "interaction_query": [
            "SELECT * FROM employees ORDER BY birth_date ASC;",
            "SELECT birth_date FROM employees ORDER BY birth_date ASC LIMIT 1;",
            "SELECT birth_date FROM employees ORDER BY birth_date DESC LIMIT 1;",
            "SELECT first_name , last_name FROM employees ORDER BY birth_date DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT first_name , last_name FROM employees ORDER BY hire_date ASC LIMIT 10;",
        "final_utterance": "List top 10 employee work longest in the company. List employee's first and last name.",
        "interaction_utterance": [
            "What is the name of the most recent employee?",
            "How about the first employee?",
            "How about the most recent 10 most recent employees?",
            "List first 10 employees!"
        ],
        "interaction_query": [
            "SELECT first_name , last_name FROM employees ORDER BY hire_date ASC LIMIT 1;",
            "SELECT first_name , last_name FROM employees ORDER BY hire_date DESC LIMIT 1;",
            "SELECT first_name , last_name FROM employees ORDER BY hire_date DESC LIMIT 10;",
            "SELECT first_name , last_name FROM employees ORDER BY hire_date ASC LIMIT 10;"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT count(*) ,  city FROM employees WHERE title  =  'IT Staff' GROUP BY city",
        "final_utterance": "Find the number of employees whose title is IT Staff from each city?",
        "interaction_utterance": [
            "Show all the different cities that employees are from.",
            "How many are from each one!",
            "How many are of the title Sales Support Agent?",
            "How about IT Staff?"
        ],
        "interaction_query": [
            "SELECT distinct city FROM employees",
            "SELECT count(*) ,  city FROM employees GROUP BY city",
            "SELECT count(*) ,  city FROM employees WHERE title  =  'Sales Support Agent' GROUP BY city",
            "SELECT count(*) ,  city FROM employees WHERE title  =  'IT Staff' GROUP BY city"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT T2.first_name , T2.last_name ,  count(T1.reports_to) FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id GROUP BY T1.reports_to ORDER BY count(T1.reports_to) DESC LIMIT 1;",
        "final_utterance": "Which employee manage most number of peoples? List employee's first and last name, and number of people report to that employee.",
        "interaction_utterance": [
            "What are the name of the employees that do not manage any other employees?",
            "Show me all the names of all the others!",
            "Who manages the max number of people?",
            "Also provide the number of people managed!"
        ],
        "interaction_query": [
            "SELECT first_name, last_name from employees where id in (select id from employees except select reports_to from employees)",
            "SELECT T2.first_name , T2.last_name ,  count(T1.reports_to) FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id;",
            "SELECT T2.first_name , T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id GROUP BY T1.reports_to ORDER BY count(T1.reports_to) DESC LIMIT 1;",
            "SELECT T2.first_name , T2.last_name ,  count(T1.reports_to) FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id GROUP BY T1.reports_to ORDER BY count(T1.reports_to) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = \"Lucas\" AND T1.last_name = \"Mancini\";",
        "final_utterance": "How many orders does Lucas Mancini has?",
        "interaction_utterance": [
            "For all the invoices, show the invoice ids and customer ids!",
            "How many have each customer ordered!",
            "Show their names for each!",
            "Show the number for customer named Lucas Mancini!"
        ],
        "interaction_query": [
            "SELECT id, customer_id FROM invoices;",
            "SELECT T1.id, count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id group by T1.id;",
            "SELECT T1.first_name, T1.last_name, T1.id, count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id group by T1.id;",
            "SELECT count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = \"Lucas\" AND T1.last_name = \"Mancini\";"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT sum(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = \"Lucas\" AND T1.last_name = \"Mancini\";",
        "final_utterance": "What is the total amount of money spent by Lucas Mancini?",
        "interaction_utterance": [
            "Show the number of orders for each customer name!",
            "Also include the total amount each has spent!",
            "Show the entry for customer named Lucas Mancini.",
            "Actually, just show the total amount of money!"
        ],
        "interaction_query": [
            "SELECT count(*), T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id group by T1.id;",
            "SELECT sum(T2.total), count(*), T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id group by T1.id;",
            "SELECT sum(T2.total), count(*), T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = \"Lucas\" AND T1.last_name = \"Mancini\";",
            "SELECT sum(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = \"Lucas\" AND T1.last_name = \"Mancini\";"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = \"Rock\";",
        "final_utterance": "What is the name of tracks whose genre is Rock?",
        "interaction_utterance": [
            "For each track, show the track name and album name!",
            "Also include the genre name !",
            "Show just the ones of the genre named Rock!",
            "Show just the track names!"
        ],
        "interaction_query": [
            "SELECT T1.name, T2.title  FROM tracks AS T1 JOIN albums AS T2 ON T1.album_id = T2.id;",
            "SELECT T3.name, T1.name, T2.title  FROM tracks AS T1 JOIN albums AS T2 ON T1.album_id = T2.id join genres as T3 on T1.genre_id = T3.id;",
            "SELECT T3.name, T1.name, T2.title  FROM tracks AS T1 JOIN albums AS T2 ON T1.album_id = T2.id join genres as T3 on T1.genre_id = T3.id WHERE T3.name = \"Rock\";",
            "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = \"Rock\";"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id WHERE T2.name = \"Balls to the Wall\";",
        "final_utterance": "What is title of album which track Balls to the Wall belongs to?",
        "interaction_utterance": [
            "Who is the composer for track named \"Balls to the Wall\";",
            "How long is it?",
            "How about its price?",
            "the title of the album it belongs to?"
        ],
        "interaction_query": [
            "SELECT composer FROM tracks where name = \"Balls to the Wall\";",
            "SELECT milliseconds FROM tracks where name = \"Balls to the Wall\";",
            "SELECT unit_price FROM tracks where name = \"Balls to the Wall\";",
            "SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id WHERE T2.name = \"Balls to the Wall\";"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT T2.name FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.title = \"Balls to the Wall\";",
        "final_utterance": "List name of all tracks in Balls to the Wall.",
        "interaction_utterance": [
            "What are all the album names and respective track names?",
            "Show them ordered by album name!",
            "Show just the track names for album called \"Balls to the Wall\""
        ],
        "interaction_query": [
            "SELECT T1.title, T2.name FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id;",
            "SELECT T1.title, T2.name FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id order by T1.title;",
            "SELECT T2.name FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.title = \"Balls to the Wall\";"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING count(T1.id)  >  10;",
        "final_utterance": "List title of albums have the number of tracks greater than 10.",
        "interaction_utterance": [
            "How many have greater than 5?",
            "greater than 10?",
            "What are their titles?"
        ],
        "interaction_query": [
            "Select count(*) from (SELECT * FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING count(T1.id)  >  15);",
            "Select count(*) from (SELECT * FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING count(T1.id)  >  10);",
            "SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING count(T1.id)  >  10;"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = \"Rock\" AND T3.name = \"MPEG audio file\";",
        "final_utterance": "List the name of tracks belongs to genre Rock and whose media type is MPEG audio file.",
        "interaction_utterance": [
            "Show me all the tracks names and their media types!",
            "Which ones are MPEG files?",
            "Also provide the genres for each of these!!",
            "Which names of the ones are in the genre Rock?"
        ],
        "interaction_query": [
            "SELECT T1.name, T2.name FROM tracks AS T1 JOIN media_types AS T2 ON T2.id = T1.media_type_id;",
            "SELECT T1.name, T2.name FROM tracks AS T1 JOIN media_types AS T2 ON T2.id = T1.media_type_id WHERE T2.name = \"MPEG audio file\";",
            "SELECT T1.name, T2.name, T3.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T3.name = \"MPEG audio file\";",
            "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = \"Rock\" AND T3.name = \"MPEG audio file\";"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = \"Rock\" OR T3.name = \"MPEG audio file\";",
        "final_utterance": "List the name of tracks belongs to genre Rock or media type is MPEG audio file.",
        "interaction_utterance": [
            "Show the names of each track and their genre names!",
            "Show me the names of the tracks that are in the genre Rock!",
            "Show me any names of tracks whose media type is an MPEG audio file!",
            "Can you show a list of both of these names?"
        ],
        "interaction_query": [
            "SELECT T1.name, T2.name FROM tracks AS T1 JOIN genres AS T2 ON T1.genre_id = T2.id;",
            "SELECT T1.name FROM tracks AS T1 JOIN genres AS T2 ON T1.genre_id = T2.id where T2.name  = \"Rock\";",
            "SELECT T1.name FROM tracks AS T1 JOIN media_types AS T2 ON T2.id = T1.media_type_id WHERE T2.name = \"MPEG audio file\";",
            "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = \"Rock\" OR T3.name = \"MPEG audio file\";"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = \"Rock\" OR T1.name = \"Jazz\"",
        "final_utterance": "List the name of tracks belongs to genre Rock or genre Jazz.",
        "interaction_utterance": [
            "What genre names for each track by track name!",
            "Show us all the tracks that belong to genre Rock.",
            "How about those that belong to genre Jazz.",
            "Which ones belong to either one?"
        ],
        "interaction_query": [
            "SELECT T1.name, T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = \"Rock\"",
            "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = \"Rock\"",
            "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = \"Jazz\"",
            "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = \"Rock\" OR T1.name = \"Jazz\""
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = \"Movies\";",
        "final_utterance": "List the name of all tracks in the playlists of Movies.",
        "interaction_utterance": [
            "How many tracks are there?",
            "How many are in a playlist of a Movie?",
            "Which ones ?"
        ],
        "interaction_query": [
            "Select count(*) from tracks;",
            "SELECT count(*) FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = \"Movies\";",
            "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = \"Movies\";"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING count(T1.track_id)  >  100;",
        "final_utterance": "List the name of playlist which has number of tracks greater than 100.",
        "interaction_utterance": [
            "What are the names of all the playlist?",
            "For each, what are the names of their tracks?",
            "For each playlist name, count the number of tracks!",
            "Show the only the names of the playlists with more than 100!"
        ],
        "interaction_query": [
            "Select name from playlists;",
            "SELECT T3.name, T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id JOIN tracks as T3 on T1.track_id = T3.id;",
            "SELECT T2.name, count(T1.track_id) FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id;",
            "SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING count(T1.track_id)  >  100;"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = \"Daan\" AND T4.last_name = \"Peeters\";",
        "final_utterance": "List all tracks bought by customer Daan Peeters.",
        "interaction_utterance": [
            "Show me the customer information about a customer named Daan Peeters.",
            "How many invoices has he had?",
            "In each invoice, how many tracks did he buy?",
            "Can you show just all the names of these tracks!"
        ],
        "interaction_query": [
            "Select * from customers where first_name = \"Daan\" and last_name = \"Peeters\";",
            "SELECT count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id  WHERE T1.first_name = \"Daan\" AND T1.last_name = \"Peeters\";",
            "SELECT T2.id, count(*) FROM invoice_lines AS T1 JOIN invoices AS T2 ON T2.id = T1.invoice_id JOIN customers AS T3 ON T3.id = T2.customer_id  WHERE T3.first_name = \"Daan\" AND T3.last_name = \"Peeters\" group by T2.id;",
            "SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = \"Daan\" AND T4.last_name = \"Peeters\";"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Movies' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Music'",
        "final_utterance": "Find the name of tracks which are in Movies playlist but not in music playlist.",
        "interaction_utterance": [
            "What different types of playlists are there?",
            "What are the names of the tracks are in the movie playlist?",
            "Which of these are also in the music playl",
            "How about those that are not!"
        ],
        "interaction_query": [
            "Select name from playlists",
            "SELECT T1.name, T3.name from tracks as T1 join playlist_tracks as T2 on T1.id = T2.track_id join playlists as T3 on T2.playlist_id = T3.id WHERE T3.name  =  'Movies'",
            "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Music';",
            "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Movies' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Music';"
        ]
    },
    {
        "db_id": "store_1",
        "final_query": "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Music'",
        "final_utterance": "Find the name of tracks which are in both Movies and music playlists.",
        "interaction_utterance": [
            "How many different playlist are there?",
            "What are they?",
            "What are the tracks in each one?",
            "What are the names of the ones are in both Movies and music!"
        ],
        "interaction_query": [
            "Select count(*) from playlists;",
            "Select name from playlists;",
            "Select T1.name, T3.name from tracks as T1 join playlist_tracks as T2 on T1.id = T2.track_id join playlists as T3 on T2.playlist_id = T3.id;",
            "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Music'"
        ]
    },
    {
        "db_id": "protein_institute",
        "final_query": "SELECT name FROM building ORDER BY height_feet DESC LIMIT 1",
        "final_utterance": "What is the name of the tallest building?",
        "interaction_utterance": [
            "What are the heights of buildings?",
            "give the max.",
            "What is its name?"
        ],
        "interaction_query": [
            "SELECT height_feet from building",
            "SELECT max(height_feet) from building",
            "SELECT name FROM building ORDER BY height_feet DESC LIMIT 1"
        ]
    },
    {
        "db_id": "protein_institute",
        "final_query": "SELECT avg(floors) ,  max(floors) ,  min(floors) FROM building",
        "final_utterance": "What are the average, maximum, and minimum number of floors for all buildings?",
        "interaction_utterance": [
            "How many floors does each building name have?",
            "What is the average?",
            "Give statistics about the avg, max, and min."
        ],
        "interaction_query": [
            "SELECT name, floors from building",
            "SELECT avg(floors) FROM building",
            "SELECT avg(floors) ,  max(floors) ,  min(floors) FROM building"
        ]
    },
    {
        "db_id": "protein_institute",
        "final_query": "SELECT count(*) FROM building WHERE height_feet  >  (SELECT avg(height_feet) FROM building) OR floors  >  (SELECT avg(floors) FROM building)",
        "final_utterance": "Show the number of buildings with a height above the average or a number of floors above the average.",
        "interaction_utterance": [
            "How many buildings have height abouve average?",
            "What about floors above average?",
            "Give the union of the above."
        ],
        "interaction_query": [
            "SELECT count(*) FROM building WHERE height_feet  >  (SELECT avg(height_feet) FROM building)",
            "SELECT count(*) FROM building WHERE height_feet  >  (SELECT avg(floors) FROM building)",
            "SELECT count(*) FROM building WHERE height_feet  >  (SELECT avg(height_feet) FROM building) OR floors  >  (SELECT avg(floors) FROM building)"
        ]
    },
    {
        "db_id": "protein_institute",
        "final_query": "SELECT name FROM building WHERE height_feet  >=  200 AND floors  >=  20",
        "final_utterance": "List the names of buildings with at least 200 feet of height and with at least 20 floors.",
        "interaction_utterance": [
            "Which buildings are taller than 200?",
            "Which have floors greater or equal to 20?",
            "Intersect those."
        ],
        "interaction_query": [
            "SELECT name FROM building WHERE height_feet  >=  200",
            "SELECT name FROM building WHERE floors  >=  20",
            "SELECT name FROM building WHERE height_feet  >=  200 AND floors  >=  20"
        ]
    },
    {
        "db_id": "protein_institute",
        "final_query": "SELECT institution ,  LOCATION FROM institution WHERE founded  >  1990 AND TYPE  =  'Private'",
        "final_utterance": "Show the names and locations of institutions that are founded after 1990 and have the type \"Private\".",
        "interaction_utterance": [
            "What are the names and founded dates for the institutions?",
            "Also show the private/public status.",
            "Show the names and locations of institutions that are founded after 1990 and have the type \"Private\"."
        ],
        "interaction_query": [
            "SELECT institution, founded from institution",
            "SELECT institution, founded, type from institution",
            "SELECT institution ,  LOCATION FROM institution WHERE founded  >  1990 AND TYPE  =  'Private'"
        ]
    },
    {
        "db_id": "protein_institute",
        "final_query": "SELECT TYPE ,  count(*) ,  sum(enrollment) FROM institution GROUP BY TYPE",
        "final_utterance": "Show institution types, along with the number of institutions and total enrollment for each type.",
        "interaction_utterance": [
            "What are the unique types of institution?",
            "Count those.",
            "Also sum over enrollment."
        ],
        "interaction_query": [
            "SELECT distinct type from institution",
            "SELECT TYPE, count(*) FROM institution GROUP BY TYPE",
            "SELECT TYPE ,  count(*) ,  sum(enrollment) FROM institution GROUP BY TYPE"
        ]
    },
    {
        "db_id": "protein_institute",
        "final_query": "SELECT TYPE FROM institution GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Show the institution type with the largest number of institutions.",
        "interaction_utterance": [
            "How many institutions have type Tribal?",
            "Show the institution type with the largest number of institutions."
        ],
        "interaction_query": [
            "SELECT count(*) FROM institution WHERE type = 'Tribal'",
            "SELECT TYPE FROM institution GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "protein_institute",
        "final_query": "SELECT TYPE FROM institution WHERE founded  >  1990 AND enrollment  >=  1000",
        "final_utterance": "Show the institution type with an institution founded after 1990 and an institution with at least 1000 enrollment.",
        "interaction_utterance": [
            "Which institutions were founded after 1990?",
            "What are their types?",
            "Show the institution type with an institution founded after 1990 and an institution with at least 1000 enrollment."
        ],
        "interaction_query": [
            "SELECT institution FROM institution WHERE founded  >  1990",
            "SELECT institution, type FROM institution WHERE founded  >  1990",
            "SELECT TYPE FROM institution WHERE founded  >  1990 AND enrollment  >=  1000"
        ]
    },
    {
        "db_id": "protein_institute",
        "final_query": "SELECT name FROM building WHERE building_id NOT IN (SELECT building_id FROM institution)",
        "final_utterance": "Show the name of buildings that do not have any institution.",
        "interaction_utterance": [
            "which building ids have an institution?",
            "Which do not?",
            "Give just their names."
        ],
        "interaction_query": [
            "SELECT DISTINCT building_id FROM institution",
            "SELECT building_id FROM building WHERE building_id NOT IN (SELECT building_id FROM institution)",
            "SELECT name FROM building WHERE building_id NOT IN (SELECT building_id FROM institution)"
        ]
    },
    {
        "db_id": "protein_institute",
        "final_query": "SELECT name FROM building EXCEPT SELECT T1.name FROM building AS T1 JOIN institution AS T2 ON T1.building_id  =  T2.building_id WHERE T2.founded  =  2003",
        "final_utterance": "Show the names of buildings except for those having an institution founded in 2003.",
        "interaction_utterance": [
            "Which institutions were founded in 2003?",
            "What are the corresponding building ids?",
            "What are the names of these buildings?",
            "Which building names are not in there?"
        ],
        "interaction_query": [
            "SELECT institution from institution WHERE founded = 2003",
            "SELECT building_id from institution WHERE founded = 2003",
            "SELECT T1.name FROM building AS T1 JOIN institution AS T2 ON T1.building_id  =  T2.building_id WHERE T2.founded  =  2003",
            "SELECT name FROM building EXCEPT SELECT T1.name FROM building AS T1 JOIN institution AS T2 ON T1.building_id  =  T2.building_id WHERE T2.founded  =  2003"
        ]
    },
    {
        "db_id": "protein_institute",
        "final_query": "SELECT T1.name ,  count(*) FROM building AS T1 JOIN institution AS T2 ON T1.building_id  =  T2.building_id GROUP BY T1.building_id",
        "final_utterance": "For each building, show the name of the building and the number of institutions in it.",
        "interaction_utterance": [
            "How many institutions are in Citizens Bank Building?",
            "Generalize this process for all buildings."
        ],
        "interaction_query": [
            "SELECT  count(*) FROM building AS T1 JOIN institution AS T2 ON T1.building_id  =  T2.building_id GROUP BY T1.building_id HAVING T1.name = 'Citizens Bank Building'",
            "SELECT T1.name ,  count(*) FROM building AS T1 JOIN institution AS T2 ON T1.building_id  =  T2.building_id GROUP BY T1.building_id"
        ]
    },
    {
        "db_id": "protein_institute",
        "final_query": "SELECT T1.name ,  T1.height_feet FROM building AS T1 JOIN institution AS T2 ON T1.building_id  =  T2.building_id WHERE T2.founded  >  1880 GROUP BY T1.building_id HAVING count(*)  >=  2",
        "final_utterance": "Show the names and heights of buildings with at least two institutions founded after 1880.",
        "interaction_utterance": [
            "Which institutions were founded after 1880?",
            "Give the building ids of these buildings.",
            "Only show the building ids that appear twice or more on that list.",
            "Give the names and heights of those buildings."
        ],
        "interaction_query": [
            "SELECT institution from institution WHERE founded > 1880",
            "SELECT building_id, institution from institution WHERE founded > 1880",
            "SELECT building_id from institution WHERE founded > 1880 GROUP BY building_id HAVING count(*) >= 2",
            "SELECT T1.name ,  T1.height_feet FROM building AS T1 JOIN institution AS T2 ON T1.building_id  =  T2.building_id WHERE T2.founded  >  1880 GROUP BY T1.building_id HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "protein_institute",
        "final_query": "SELECT T1.institution ,  count(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id  =  T2.institution_id GROUP BY T1.institution_id",
        "final_utterance": "Show institution names along with the number of proteins for each institution.",
        "interaction_utterance": [
            "Show the institution names joined with the protein names.",
            "Aggregate, count, over the institution names."
        ],
        "interaction_query": [
            "SELECT T1.institution ,  T2.protein_name FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id  =  T2.institution_id",
            "SELECT T1.institution ,  count(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id  =  T2.institution_id GROUP BY T1.institution_id"
        ]
    },
    {
        "db_id": "protein_institute",
        "final_query": "SELECT count(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id  =  T2.institution_id WHERE T1.founded  >  1880 OR T1.type  =  'Private'",
        "final_utterance": "How many proteins are associated with an institution founded after 1880 or an institution with type \"Private\"?",
        "interaction_utterance": [
            "Which proteins are associated with institutions founded after 1880?",
            "And which are associated with an institution with type \"Private\"?",
            "Union those.",
            "Count the union."
        ],
        "interaction_query": [
            "SELECT T2.protein_name FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id  =  T2.institution_id WHERE T1.founded  >  1880",
            "SELECT T2.protein_name FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id  =  T2.institution_id WHERE T1.type = 'Private'",
            "SELECT T2.protein_name FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id  =  T2.institution_id WHERE T1.founded  >  1880 OR T1.type  =  'Private'",
            "SELECT count(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id  =  T2.institution_id WHERE T1.founded  >  1880 OR T1.type  =  'Private'"
        ]
    },
    {
        "db_id": "protein_institute",
        "final_query": "SELECT count(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id  =  T2.institution_id JOIN building AS T3 ON T3.building_id  =  T1.building_id WHERE T3.floors  >=  20",
        "final_utterance": "How many proteins are associated with an institution in a building with at least 20 floors?",
        "interaction_utterance": [
            "Which protein names are associated with an institution in a building with at least 20 floors?",
            "Which of those have common name equal to 'Tropical Clawed Frog'?",
            "Give a count of the proteins in the first query."
        ],
        "interaction_query": [
            "SELECT T2.protein_name FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id  =  T2.institution_id JOIN building AS T3 ON T3.building_id  =  T1.building_id WHERE T3.floors  >=  20",
            "SELECT T2.protein_name FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id  =  T2.institution_id JOIN building AS T3 ON T3.building_id  =  T1.building_id WHERE T3.floors  >=  20 and T2.common_name = 'Tropical Clawed Frog'",
            "SELECT count(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id  =  T2.institution_id JOIN building AS T3 ON T3.building_id  =  T1.building_id WHERE T3.floors  >=  20"
        ]
    },
    {
        "db_id": "coffee_shop",
        "final_query": "SELECT name FROM member WHERE address  =  'Harford' OR address  =  'Waterbury'",
        "final_utterance": "Give me the names of members whose address is in Harford or Waterbury.",
        "interaction_utterance": [
            "show all the different member addresses.",
            "who is living in Harford?",
            "also include the members living in Waterbury."
        ],
        "interaction_query": [
            "SELECT distinct address FROM member",
            "SELECT name FROM member WHERE address  =  'Harford'",
            "SELECT name FROM member WHERE address  =  'Harford' OR address  =  'Waterbury'"
        ]
    },
    {
        "db_id": "coffee_shop",
        "final_query": "SELECT name ,  member_id FROM member WHERE Membership_card  =  'Black' OR age  <  30",
        "final_utterance": "Find the ids and names of members who are under age 30 or with black membership card.",
        "interaction_utterance": [
            "how many members are under age 30?",
            "how about the number of members with a black membership card?",
            "what is the total number between these two groups of members?",
            "what are their ids and names?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM member WHERE age  <  30",
            "SELECT count(*) FROM member WHERE Membership_card  =  'Black'",
            "SELECT count(*) FROM member WHERE Membership_card  =  'Black' OR age  <  30",
            "SELECT name ,  member_id FROM member WHERE Membership_card  =  'Black' OR age  <  30"
        ]
    },
    {
        "db_id": "coffee_shop",
        "final_query": "SELECT Membership_card FROM member GROUP BY Membership_card HAVING count(*)  >  5",
        "final_utterance": "Which membership card has more than 5 members?",
        "interaction_utterance": [
            "what are all the different membership cards?",
            "how many members does each of them have?",
            "which ones have more than 3 members?",
            "how about 5?"
        ],
        "interaction_query": [
            "SELECT distinct Membership_card FROM member",
            "SELECT count(*), Membership_card FROM member GROUP BY Membership_card",
            "SELECT Membership_card FROM member GROUP BY Membership_card HAVING count(*)  >  3",
            "SELECT Membership_card FROM member GROUP BY Membership_card HAVING count(*)  >  5"
        ]
    },
    {
        "db_id": "coffee_shop",
        "final_query": "SELECT address FROM member WHERE age  <  30 INTERSECT SELECT address FROM member WHERE age  >  40",
        "final_utterance": "Which address has both members younger than 30 and members older than 40?",
        "interaction_utterance": [
            "show all info about members.",
            "which of them are older than 40?",
            "for those who are younger than 30?",
            "Which addresses have members in both groups?"
        ],
        "interaction_query": [
            "SELECT * FROM member",
            "SELECT * FROM member WHERE age  >  40",
            "SELECT * FROM member WHERE age  <  30",
            "SELECT address FROM member WHERE age  <  30 INTERSECT SELECT address FROM member WHERE age  >  40"
        ]
    },
    {
        "db_id": "coffee_shop",
        "final_query": "SELECT membership_card FROM member WHERE address  =  'Hartford' INTERSECT SELECT membership_card FROM member WHERE address  =  'Waterbury'",
        "final_utterance": "What is the membership card held by both members living in Hartford and ones living in Waterbury address?",
        "interaction_utterance": [
            "show the names of members living in Hartford.",
            "also those living in Waterbury.",
            "which membership cards are held by members living in these two places?"
        ],
        "interaction_query": [
            "SELECT name FROM member WHERE address  =  'Hartford'",
            "SELECT name FROM member WHERE address  =  'Waterbury'",
            "SELECT membership_card FROM member WHERE address  =  'Hartford' INTERSECT SELECT membership_card FROM member WHERE address  =  'Waterbury'"
        ]
    },
    {
        "db_id": "coffee_shop",
        "final_query": "SELECT address FROM member EXCEPT SELECT address FROM member WHERE Membership_card  =  'Black'",
        "final_utterance": "Which address do not have any member with the black membership card?",
        "interaction_utterance": [
            "what are different membership cards?",
            "how many black ones are there?",
            "show addresses for those who have one.",
            "how about those who do not have one?"
        ],
        "interaction_query": [
            "SELECT distinct Membership_card FROM member",
            "SELECT count(*) FROM member WHERE Membership_card  =  'Black'",
            "SELECT address FROM member WHERE Membership_card  =  'Black'",
            "SELECT address FROM member EXCEPT SELECT address FROM member WHERE Membership_card  =  'Black'"
        ]
    },
    {
        "db_id": "coffee_shop",
        "final_query": "SELECT avg(num_of_staff) ,  avg(score) FROM shop",
        "final_utterance": "What are the average score and average staff number of all shops?",
        "interaction_utterance": [
            "show the scores and staff numbers for all shops.",
            "what are the averages for these two columns?"
        ],
        "interaction_query": [
            "SELECT num_of_staff, score FROM shop",
            "SELECT avg(num_of_staff) ,  avg(score) FROM shop"
        ]
    },
    {
        "db_id": "coffee_shop",
        "final_query": "SELECT shop_id ,  address FROM shop WHERE score  <  (SELECT avg(score) FROM shop)",
        "final_utterance": "Find the id and address of the shops whose score is below the average score.",
        "interaction_utterance": [
            "what is the highest score for all shops?",
            "how about the average?",
            "what are the id and addresses of the shops whose scores are below this?"
        ],
        "interaction_query": [
            "SELECT max(score) FROM shop",
            "SELECT avg(score) FROM shop",
            "SELECT shop_id,  address FROM shop WHERE score  <  (SELECT avg(score) FROM shop)"
        ]
    },
    {
        "db_id": "coffee_shop",
        "final_query": "SELECT address ,  num_of_staff FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM happy_hour)",
        "final_utterance": "Find the address and staff number of the shops that do not have any happy hour.",
        "interaction_utterance": [
            "Find the addresses of the shops where they have happy hour.",
            "also return the staff numbers.",
            "how about those where there is no happy hour?"
        ],
        "interaction_query": [
            "SELECT t1.address FROM shop AS t1 JOIN happy_hour AS t2 ON t1.shop_id  =  t2.shop_id",
            "SELECT t1.address, t1.num_of_staff FROM shop AS t1 JOIN happy_hour AS t2 ON t1.shop_id  =  t2.shop_id",
            "SELECT address ,  num_of_staff FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM happy_hour)"
        ]
    },
    {
        "db_id": "coffee_shop",
        "final_query": "SELECT t1.address ,  t1.shop_id FROM shop AS t1 JOIN happy_hour AS t2 ON t1.shop_id  =  t2.shop_id WHERE MONTH  =  'May'",
        "final_utterance": "What are the id and address of the shops which have a happy hour in May?",
        "interaction_utterance": [
            "show the id of the shops that have a happy hour.",
            "just show those that have happy hours in May.",
            "return their addresses too."
        ],
        "interaction_query": [
            "SELECT shop_id FROM happy_hour",
            "SELECT shop_id FROM happy_hour WHERE MONTH  =  'May'",
            "SELECT t1.address,  t1.shop_id FROM shop AS t1 JOIN happy_hour AS t2 ON t1.shop_id  =  t2.shop_id WHERE MONTH  =  'May'"
        ]
    },
    {
        "db_id": "coffee_shop",
        "final_query": "SELECT shop_id ,  count(*) FROM happy_hour GROUP BY shop_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "which shop has happy hour most frequently? List its id and number of happy hours.",
        "interaction_utterance": [
            "find the number of happy hours in each shop. Also show shop id.",
            "which of them has happy hour most often?"
        ],
        "interaction_query": [
            "SELECT shop_id,  count(*) FROM happy_hour GROUP BY shop_id",
            "SELECT shop_id FROM happy_hour GROUP BY shop_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "coffee_shop",
        "final_query": "SELECT MONTH FROM happy_hour GROUP BY MONTH ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which month has the most happy hours?",
        "interaction_utterance": [
            "how many happy hour shops are there?",
            "for each month?",
            "Which month has the most?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM happy_hour",
            "SELECT count(*) FROM happy_hour GROUP BY MONTH",
            "SELECT MONTH FROM happy_hour GROUP BY MONTH ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "customers_campaigns_ecommerce",
        "final_query": "SELECT count(*) FROM premises",
        "final_utterance": "How many premises are there?",
        "interaction_utterance": [
            "Show information for all premises.",
            "How many of them are there?"
        ],
        "interaction_query": [
            "SELECT * FROM premises",
            "SELECT count(*) FROM premises"
        ]
    },
    {
        "db_id": "customers_campaigns_ecommerce",
        "final_query": "SELECT DISTINCT premises_type FROM premises",
        "final_utterance": "What are all the distinct premise types?",
        "interaction_utterance": [
            "Show information for premises.",
            "Only show the premise type for all of them.",
            "What are the distinct types among them?"
        ],
        "interaction_query": [
            "select * FROM premises",
            "SELECT premises_type FROM premises",
            "SELECT DISTINCT premises_type FROM premises"
        ]
    },
    {
        "db_id": "customers_campaigns_ecommerce",
        "final_query": "SELECT premises_type ,  premise_details FROM premises ORDER BY premises_type",
        "final_utterance": "Find the types and details for all premises and order by the premise type.",
        "interaction_utterance": [
            "Show the type for all premises.",
            "Also add their details.",
            "Order them by the premise type."
        ],
        "interaction_query": [
            "SELECT premises_type FROM premises",
            "SELECT premises_type ,  premise_details FROM premises",
            "SELECT premises_type ,  premise_details FROM premises ORDER BY premises_type"
        ]
    },
    {
        "db_id": "customers_campaigns_ecommerce",
        "final_query": "SELECT premises_type ,  count(*) FROM premises GROUP BY premises_type",
        "final_utterance": "Show each premise type and the number of premises in that type.",
        "interaction_utterance": [
            "Show all premise types.",
            "Show the number of premises in each type."
        ],
        "interaction_query": [
            "SELECT premises_type FROM premises",
            "SELECT premises_type ,  count(*) FROM premises GROUP BY premises_type"
        ]
    },
    {
        "db_id": "customers_campaigns_ecommerce",
        "final_query": "SELECT product_category ,  count(*) FROM mailshot_campaigns GROUP BY product_category",
        "final_utterance": "Show all distinct product categories along with the number of mailshots in each category.",
        "interaction_utterance": [
            "Show the number of mailshot campaigns.",
            "Breakdown the number by product category."
        ],
        "interaction_query": [
            "SELECT count(*) FROM mailshot_campaigns",
            "SELECT product_category ,  count(*) FROM mailshot_campaigns GROUP BY product_category"
        ]
    },
    {
        "db_id": "customers_campaigns_ecommerce",
        "final_query": "SELECT customer_name ,  customer_phone FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM mailshot_customers)",
        "final_utterance": "Show the name and phone of the customer without any mailshot.",
        "interaction_utterance": [
            "Show all customers id with a mailshot.",
            "How about customer ids without any?",
            "Display the name and phone number for those customers."
        ],
        "interaction_query": [
            "SELECT customer_id FROM mailshot_customers",
            "SELECT customer_id FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM mailshot_customers)",
            "SELECT customer_name ,  customer_phone FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM mailshot_customers)"
        ]
    },
    {
        "db_id": "customers_campaigns_ecommerce",
        "final_query": "SELECT T1.customer_name ,  T1.customer_phone FROM customers AS T1 JOIN mailshot_customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.outcome_code  =  'No Response'",
        "final_utterance": "Show the name and phone for customers with a mailshot with outcome code 'No Response'.",
        "interaction_utterance": [
            "Show the name and phone for all customers.",
            "Only show the results for those customers with a mailshot.",
            "Among those, how about the results for customers also with the outcome code 'No Response'."
        ],
        "interaction_query": [
            "SELECT customer_name ,  customer_phone FROM customers",
            "SELECT T1.customer_name ,  T1.customer_phone FROM customers AS T1 JOIN mailshot_customers AS T2 ON T1.customer_id  =  T2.customer_id",
            "SELECT T1.customer_name ,  T1.customer_phone FROM customers AS T1 JOIN mailshot_customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.outcome_code  =  'No Response'"
        ]
    },
    {
        "db_id": "customers_campaigns_ecommerce",
        "final_query": "SELECT outcome_code ,  count(*) FROM mailshot_customers GROUP BY outcome_code",
        "final_utterance": "Show the outcome code of mailshots along with the number of mailshots in each outcome code.",
        "interaction_utterance": [
            "Show the outcome code for all mailshot customers.",
            "Show the count of the number of mailshots in each of those codes."
        ],
        "interaction_query": [
            "SELECT outcome_code FROM mailshot_customers",
            "SELECT outcome_code ,  count(*) FROM mailshot_customers GROUP BY outcome_code"
        ]
    },
    {
        "db_id": "customers_campaigns_ecommerce",
        "final_query": "SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE outcome_code  =  'Order' GROUP BY T1.customer_id HAVING count(*)  >=  2",
        "final_utterance": "Show the names of customers who have at least 2 mailshots with outcome code 'Order'.",
        "interaction_utterance": [
            "Show the names of customers.",
            "How about the names for those who have an outcome code 'Order' of mailshots.",
            "Only show the names of those who have at least two such codes."
        ],
        "interaction_query": [
            "SELECT customer_name FROM customers",
            "SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE outcome_code  =  'Order'",
            "SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE outcome_code  =  'Order' GROUP BY T1.customer_id HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "customers_campaigns_ecommerce",
        "final_query": "SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Show the names of customers who have the most mailshots.",
        "interaction_utterance": [
            "Show the name of customers with a mailshot.",
            "Order them by the number of mailshots in descending order.",
            "Who has the most mailshots among them?"
        ],
        "interaction_query": [
            "SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id",
            "SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC",
            "SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "customers_campaigns_ecommerce",
        "final_query": "SELECT T2.customer_name ,  T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.outcome_code  =  'Order' INTERSECT SELECT T2.customer_name ,  T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.outcome_code  =  'No Response'",
        "final_utterance": "What are the name and payment method of customers who have both mailshots in 'Order' outcome and mailshots in 'No Response' outcome.",
        "interaction_utterance": [
            "Show the name for customers.",
            "Also show their payment methods.",
            "How about the results for those haing mailshots in 'Order' outcome",
            "What about those also having mailshots in 'No Response' outcome?"
        ],
        "interaction_query": [
            "SELECT customer_name from customers",
            "SELECT customer_name ,  payment_method from customers",
            "SELECT T2.customer_name ,  T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.outcome_code  =  'Order'",
            "SELECT T2.customer_name ,  T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.outcome_code  =  'Order' INTERSECT SELECT T2.customer_name ,  T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.outcome_code  =  'No Response'"
        ]
    },
    {
        "db_id": "customers_campaigns_ecommerce",
        "final_query": "SELECT T2.premises_type ,  T1.address_type_code FROM customer_addresses AS T1 JOIN premises AS T2 ON T1.premise_id  =  T2.premise_id",
        "final_utterance": "Show the premise type and address type code for all customer addresses.",
        "interaction_utterance": [
            "Show the address type code for all customer addresses.",
            "For each of them, also show the premise type."
        ],
        "interaction_query": [
            "SELECT address_type_code FROM customer_addresses",
            "SELECT T2.premises_type ,  T1.address_type_code FROM customer_addresses AS T1 JOIN premises AS T2 ON T1.premise_id  =  T2.premise_id"
        ]
    },
    {
        "db_id": "customers_campaigns_ecommerce",
        "final_query": "SELECT DISTINCT address_type_code FROM customer_addresses",
        "final_utterance": "What are the distinct address type codes for all customer addresses?",
        "interaction_utterance": [
            "Show information for all customer addresses.",
            "Show the address type code for all customer addresses.",
            "Filter for distinctness."
        ],
        "interaction_query": [
            "SELECT * FROM customer_addresses",
            "SELECT address_type_code FROM customer_addresses",
            "SELECT DISTINCT address_type_code FROM customer_addresses"
        ]
    },
    {
        "db_id": "customers_campaigns_ecommerce",
        "final_query": "SELECT order_shipping_charges ,  customer_id FROM customer_orders WHERE order_status_code  =  'Cancelled' OR order_status_code  =  'Paid'",
        "final_utterance": "Show the shipping charge and customer id for customer orders with order status Cancelled or Paid.",
        "interaction_utterance": [
            "List the shipping charge and customer id for all customer orders.",
            "How about the results with order status 'Cancelled'?",
            "How about the results with order status 'Paid'.",
            "Show the results of both."
        ],
        "interaction_query": [
            "SELECT order_shipping_charges ,  customer_id FROM customer_orders",
            "SELECT order_shipping_charges ,  customer_id FROM customer_orders WHERE order_status_code  =  'Cancelled'",
            "SELECT order_shipping_charges ,  customer_id FROM customer_orders WHERE order_status_code  =  'Paid'",
            "SELECT order_shipping_charges ,  customer_id FROM customer_orders WHERE order_status_code  =  'Cancelled' OR order_status_code  =  'Paid'"
        ]
    },
    {
        "db_id": "local_govt_mdm",
        "final_query": "SELECT T1.cmi_details FROM Customer_Master_Index AS T1 JOIN CMI_Cross_References AS T2 ON T1.master_customer_id  =  T2.master_customer_id WHERE T2.source_system_code  =  'Tax'",
        "final_utterance": "what are the details of the cmi masters that have the cross reference code 'Tax'?",
        "interaction_utterance": [
            "What are all the cross reference codes?",
            "Show me the cross references with code as Tax.",
            "What are the details of the cmi masters of them?"
        ],
        "interaction_query": [
            "SELECT source_system_code FROM CMI_Cross_References GROUP BY source_system_code",
            "SELECT * FROM CMI_Cross_References WHERE source_system_code = 'Tax'",
            "SELECT T1.cmi_details FROM Customer_Master_Index AS T1 JOIN CMI_Cross_References AS T2 ON T1.master_customer_id  =  T2.master_customer_id WHERE T2.source_system_code  =  'Tax'"
        ]
    },
    {
        "db_id": "local_govt_mdm",
        "final_query": "SELECT T1.cmi_cross_ref_id ,  T1.source_system_code FROM CMI_Cross_References AS T1 JOIN Council_Tax AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id GROUP BY T1.cmi_cross_ref_id HAVING count(*)  >=  1",
        "final_utterance": "What is the cmi cross reference id that is related to at least one council tax entry? List the cross reference id and source system code.",
        "interaction_utterance": [
            "Show me all the council tax entries.",
            "Show me distinct cmi cross reference ids in those.",
            "What about their corresponding source system code?"
        ],
        "interaction_query": [
            "SELECT * FROM Council_Tax",
            "SELECT cmi_cross_ref_id FROM Council_Tax GROUP By cmi_cross_ref_id",
            "SELECT T1.cmi_cross_ref_id ,  T1.source_system_code FROM CMI_Cross_References AS T1 JOIN Council_Tax AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id GROUP BY T1.cmi_cross_ref_id HAVING count(*)  >=  1"
        ]
    },
    {
        "db_id": "local_govt_mdm",
        "final_query": "SELECT T2.cmi_cross_ref_id ,  T2.master_customer_id ,  count(*) FROM Business_Rates AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id GROUP BY T2.cmi_cross_ref_id",
        "final_utterance": "How many business rates are related to each cmi cross reference? List cross reference id, master customer id and the number of business rates.",
        "interaction_utterance": [
            "How many business rates are there?",
            "What are the distinct cmi cross reference ids in those business rates?",
            "Show me the number of business rates related to each of them.",
            "Include the master customer id too."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Business_Rates",
            "SELECT cmi_cross_ref_id FROM Business_Rates GROUP BY cmi_cross_ref_id",
            "SELECT cmi_cross_ref_id,count(*) FROM Business_Rates GROUP BY cmi_cross_ref_id",
            "SELECT T2.cmi_cross_ref_id ,  T2.master_customer_id ,  count(*) FROM Business_Rates AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id GROUP BY T2.cmi_cross_ref_id"
        ]
    },
    {
        "db_id": "local_govt_mdm",
        "final_query": "SELECT T1.source_system_code ,  T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Benefits_Overpayments AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id ORDER BY T2.council_tax_id",
        "final_utterance": "What is the tax source system code related to the benefits and overpayments? List the code and the benefit id, order by benefit id.",
        "interaction_utterance": [
            "What are the cmi cross reference ids that are related to the benefits and overpayments.",
            "Show me their source system codes along with the benefit id.",
            "Order them by the benefit id."
        ],
        "interaction_query": [
            "SELECT cmi_cross_ref_id FROM Benefits_Overpayments",
            "SELECT T1.source_system_code ,  T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Benefits_Overpayments AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id",
            "SELECT T1.source_system_code ,  T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Benefits_Overpayments AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id ORDER BY T2.council_tax_id"
        ]
    },
    {
        "db_id": "local_govt_mdm",
        "final_query": "SELECT T1.council_tax_id FROM Rent_Arrears AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id JOIN Customer_Master_Index AS T3 ON T3.master_customer_id  =  T2.master_customer_id WHERE T3.cmi_details != 'Schmidt ,  Kertzmann and Lubowitz'",
        "final_utterance": "What are the renting arrears tax ids related to the customer master index whose detail is not 'Schmidt, Kertzmann and Lubowitz'?",
        "interaction_utterance": [
            "Show me the detail of all the customer master indices.",
            "Show me the id of those whose detial is not 'Schmidt, Kertzmann and Lubowitz'.",
            "What are the renting arears tax ids related to them?"
        ],
        "interaction_query": [
            "SELECT cmi_details FROM Customer_Master_Index",
            "SELECT master_customer_id FROM Customer_Master_Index WHERE cmi_details != 'Schmidt ,  Kertzmann and Lubowitz'",
            "SELECT T1.council_tax_id FROM Rent_Arrears AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id JOIN Customer_Master_Index AS T3 ON T3.master_customer_id  =  T2.master_customer_id WHERE T3.cmi_details != 'Schmidt ,  Kertzmann and Lubowitz'"
        ]
    },
    {
        "db_id": "local_govt_mdm",
        "final_query": "SELECT T1.electoral_register_id FROM Electoral_Register AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id WHERE T2.source_system_code  =  'Electoral' OR T2.source_system_code  =  'Tax'",
        "final_utterance": "What are the register ids of electoral registries that have the cross reference source system code 'Electoral' or 'Tax'?",
        "interaction_utterance": [
            "What are the ids of all the electoral register?",
            "What about their cross reference source system codes?",
            "Show me those with source system code 'Electoral' or 'Tax'."
        ],
        "interaction_query": [
            "SELECT electoral_register_id FROM Electoral_Register",
            "SELECT T1.electoral_register_id, T2.source_system_code FROM Electoral_Register AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id",
            "SELECT T1.electoral_register_id FROM Electoral_Register AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id WHERE T2.source_system_code  =  'Electoral' OR T2.source_system_code  =  'Tax'"
        ]
    },
    {
        "db_id": "local_govt_mdm",
        "final_query": "SELECT DISTINCT T2.source_system_code FROM customer_master_index AS T1 JOIN cmi_cross_references AS T2 ON T1.master_customer_id  =  T2.master_customer_id WHERE T1.cmi_details  =  'Gottlieb, Becker and Wyman'",
        "final_utterance": "What are the distinct cross reference source system codes which are related to the master customer details 'Gottlieb, Becker and Wyman'?",
        "interaction_utterance": [
            "What are the details of all the master customers?",
            "Show me the id of one with details 'Gottlieb, Becker and Wyman'.",
            "Show me the distinct cross reference source system codes related to it."
        ],
        "interaction_query": [
            "SELECT cmi_details FROM customer_master_index",
            "SELECT master_customer_id FROM customer_master_index WHERE cmi_details  =  'Gottlieb, Becker and Wyman'",
            "SELECT DISTINCT T2.source_system_code FROM customer_master_index AS T1 JOIN cmi_cross_references AS T2 ON T1.master_customer_id  =  T2.master_customer_id WHERE T1.cmi_details  =  'Gottlieb, Becker and Wyman'"
        ]
    },
    {
        "db_id": "local_govt_mdm",
        "final_query": "SELECT cmi_cross_ref_id FROM cmi_cross_references EXCEPT SELECT cmi_cross_ref_id FROM parking_fines",
        "final_utterance": "Which cmi cross reference id is not related to any parking taxes?",
        "interaction_utterance": [
            "Show me all the cmi cross reference ids.",
            "What about those not related to any parking taxes?"
        ],
        "interaction_query": [
            "SELECT cmi_cross_ref_id FROM cmi_cross_references",
            "SELECT cmi_cross_ref_id FROM cmi_cross_references EXCEPT SELECT cmi_cross_ref_id FROM parking_fines"
        ]
    },
    {
        "db_id": "csu_1",
        "final_query": "SELECT campus FROM campuses WHERE YEAR  >=  1935 AND YEAR  <=  1939",
        "final_utterance": "Which campus was opened between 1935 and 1939?",
        "interaction_utterance": [
            "How many campuses opened after 1935?",
            "Among these campuses, how many of them opened before 1939?",
            "Show its name."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM campuses WHERE YEAR  >=  1935",
            "SELECT COUNT(*) FROM campuses WHERE YEAR  >=  1935 AND YEAR  <=  1939",
            "SELECT campus FROM campuses WHERE YEAR  >=  1935 AND YEAR  <=  1939"
        ]
    },
    {
        "db_id": "csu_1",
        "final_query": "SELECT campus FROM campuses WHERE LOCATION  =  \"Northridge\" AND county  =  \"Los Angeles\" UNION SELECT campus FROM campuses WHERE LOCATION  =  \"San Francisco\" AND county  =  \"San Francisco\"",
        "final_utterance": "Find the name of the campuses that is in Northridge, Los Angeles or in San Francisco, San Francisco.",
        "interaction_utterance": [
            "Which campuses are in Northridge, Los Angeles?",
            "How many are there?",
            "How about the number of campuses that are in San Francisco, San Francisco?",
            "Please add them.",
            "Show the names of the campuses."
        ],
        "interaction_query": [
            "SELECT campus FROM campuses WHERE LOCATION  =  \"Northridge\" AND county  =  \"Los Angeles\"",
            "SELECT COUNT(*) FROM campuses WHERE LOCATION  =  \"Northridge\" AND county  =  \"Los Angeles\"",
            "SELECT COUNT(*) FROM campuses WHERE LOCATION  =  \"San Francisco\" AND county  =  \"San Francisco\"",
            "SELECT COUNT(*) FROM (SELECT campus FROM campuses WHERE LOCATION  =  \"Northridge\" AND county  =  \"Los Angeles\" UNION SELECT campus FROM campuses WHERE LOCATION  =  \"San Francisco\" AND county  =  \"San Francisco\")",
            "SELECT campus FROM campuses WHERE LOCATION  =  \"Northridge\" AND county  =  \"Los Angeles\" UNION SELECT campus FROM campuses WHERE LOCATION  =  \"San Francisco\" AND county  =  \"San Francisco\""
        ]
    },
    {
        "db_id": "csu_1",
        "final_query": "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id  =  t2.campus WHERE t1.campus  =  \"San Jose State University\" AND T2.year  =  1996",
        "final_utterance": "What is the campus fee of \"San Jose State University\" in year 1996?",
        "interaction_utterance": [
            "What is the campus fee of \"California State University-Channel Islands\" in year 2003?",
            "How about \"San Jose State University\" in year 1995?",
            "How about \"San Jose State University\" in year 1996?"
        ],
        "interaction_query": [
            "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id  =  t2.campus WHERE t1.campus  =  \"California State University-Channel Islands\" AND T2.year  =  2003",
            "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id  =  t2.campus WHERE t1.campus  =  \"San Jose State University\" AND T2.year  =  1995",
            "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id  =  t2.campus WHERE t1.campus  =  \"San Jose State University\" AND T2.year  =  1996"
        ]
    },
    {
        "db_id": "csu_1",
        "final_query": "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id  =  t2.campus WHERE t1.campus  =  \"San Francisco State University\" AND T2.year  =  1996",
        "final_utterance": "What is the campus fee of \"San Francisco State University\" in year 1996?",
        "interaction_utterance": [
            "Show the campus fee of all campuses in year 1996.",
            "What is the highest among them?",
            "What is the fee of \"San Francisco State University\"?"
        ],
        "interaction_query": [
            "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id  =  t2.campus WHERE T2.year  =  1996",
            "SELECT MAX(campusfee) FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id  =  t2.campus WHERE T2.year  =  1996",
            "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id  =  t2.campus WHERE t1.campus  =  \"San Francisco State University\" AND T2.year  =  1996"
        ]
    },
    {
        "db_id": "csu_1",
        "final_query": "SELECT count(*) FROM csu_fees WHERE campusfee  >  (SELECT avg(campusfee) FROM csu_fees)",
        "final_utterance": "Find the count of universities whose campus fee is greater than the average campus fee.",
        "interaction_utterance": [
            "What is the maximum campus fee?",
            "How many universities are there?",
            "How about the number of universities whose campus fee is greater than the average campus fee?"
        ],
        "interaction_query": [
            "SELECT MAX(campusfee) FROM csu_fees",
            "SELECT count(*) FROM csu_fees",
            "SELECT count(*) FROM csu_fees WHERE campusfee  >  (SELECT avg(campusfee) FROM csu_fees)"
        ]
    },
    {
        "db_id": "csu_1",
        "final_query": "SELECT campus FROM campuses WHERE county  =  \"Los Angeles\" AND YEAR  >  1950",
        "final_utterance": "Which university is in Los Angeles county and opened after 1950?",
        "interaction_utterance": [
            "How many universities are in Los Angeles?",
            "How many of them opened after 1950?",
            "Please show their names."
        ],
        "interaction_query": [
            "SELECT COUNT(campus) FROM campuses WHERE county  =  \"Los Angeles\"",
            "SELECT COUNT(*) FROM campuses WHERE county  =  \"Los Angeles\" AND YEAR  >  1950",
            "SELECT campus FROM campuses WHERE county  =  \"Los Angeles\" AND YEAR  >  1950"
        ]
    },
    {
        "db_id": "csu_1",
        "final_query": "SELECT YEAR FROM degrees GROUP BY YEAR ORDER BY sum(degrees) DESC LIMIT 1",
        "final_utterance": "Which year has the most degrees conferred?",
        "interaction_utterance": [
            "What is the total number of degrees conferred?",
            "How many degrees are conferred in each year?",
            "Which year has the most degrees conferred?"
        ],
        "interaction_query": [
            "SELECT SUM(Degrees) FROM degrees",
            "SELECT Year, COUNT(*) FROM degrees GROUP BY YEAR",
            "SELECT YEAR FROM degrees GROUP BY YEAR ORDER BY sum(degrees) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "csu_1",
        "final_query": "SELECT campus FROM degrees GROUP BY campus ORDER BY sum(degrees) DESC LIMIT 1",
        "final_utterance": "Which campus has the most degrees conferred in all times?",
        "interaction_utterance": [
            "How many campuses are there that have degrees conferred?",
            "How many degrees does each campus confer?",
            "Which campus had the most degrees conferred in 1990?",
            "How about overall?"
        ],
        "interaction_query": [
            "SELECT COUNT(DISTINCT campus) FROM degrees",
            "SELECT campus, COUNT(*) FROM degrees GROUP BY campus",
            "SELECT campus FROM degrees WHERE year = 2002 GROUP BY campus ORDER BY sum(degrees) DESC LIMIT 1",
            "SELECT campus FROM degrees GROUP BY campus ORDER BY sum(degrees) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "csu_1",
        "final_query": "SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id  =  T2.campus WHERE T2.year  =  2003 ORDER BY T2.faculty DESC LIMIT 1",
        "final_utterance": "Which campus has the most faculties in year 2003?",
        "interaction_utterance": [
            "How many faculties are there in Campus 1 in year 2002?",
            "Which campus had the most faculty in year 2002?",
            "How about in year 2003?"
        ],
        "interaction_query": [
            "SELECT Faculty FROM faculty WHERE Year = 2002 AND Campus = 1",
            "SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id  =  T2.campus WHERE T2.year  =  2002 ORDER BY T2.faculty DESC LIMIT 1",
            "SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id  =  T2.campus WHERE T2.year  =  2003 ORDER BY T2.faculty DESC LIMIT 1"
        ]
    },
    {
        "db_id": "csu_1",
        "final_query": "SELECT T1.campus ,  sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id  =  T2.campus WHERE T2.year  >=  1998 AND T2.year  <=  2002 GROUP BY T1.campus",
        "final_utterance": "report the total number of degrees granted between 1998 and 2002 in each campus.",
        "interaction_utterance": [
            "How many different campuses are there?",
            "How many degrees are granted in each campus over all years?",
            "How about between 1998 and 2002?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM campuses",
            "SELECT T1.campus ,  sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id  =  T2.campus GROUP BY T1.campus",
            "SELECT T1.campus ,  sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id  =  T2.campus WHERE T2.year  >=  1998 AND T2.year  <=  2002 GROUP BY T1.campus"
        ]
    },
    {
        "db_id": "csu_1",
        "final_query": "SELECT T1.campus ,  sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id  =  T2.campus WHERE T1.county  =  \"Orange\" AND T2.year  >=  2000 GROUP BY T1.campus",
        "final_utterance": "For each Orange county campus, report the number of degrees granted after 2000.",
        "interaction_utterance": [
            "How many campuses are in Orange county?",
            "How many degrees have these campuses granted over all years?",
            "How about the number after year 2000?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM campuses WHERE county  =  \"Orange\"",
            "SELECT T1.campus ,  sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id  =  T2.campus WHERE T1.county  =  \"Orange\" GROUP BY T1.campus",
            "SELECT T1.campus ,  sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id  =  T2.campus WHERE T1.county  =  \"Orange\" AND T2.year  >=  2000 GROUP BY T1.campus"
        ]
    },
    {
        "db_id": "csu_1",
        "final_query": "SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id  =  T2.campus WHERE T2.year  =  2002 AND faculty  >  (SELECT max(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id  =  T2.campus WHERE T2.year  =  2002 AND T1.county  =  \"Orange\")",
        "final_utterance": "Find the names of the campus which has more faculties in 2002 than every campus in Orange county.",
        "interaction_utterance": [
            "How many campuses are there in Orange county?",
            "How many faculties are there in each campus in 2002?",
            "What campus has the largest faculty in Orange county in year 2002?",
            "Which campus has more faculties than this number?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM campuses WHERE county  =  \"Orange\"",
            "SELECT T1.Campus, T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id  =  T2.campus WHERE T2.year  =  2002",
            "SELECT max(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id  =  T2.campus WHERE T2.year  =  2002 AND T1.county  =  \"Orange\"",
            "SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id  =  T2.campus WHERE T2.year  =  2002 AND faculty  >  (SELECT max(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id  =  T2.campus WHERE T2.year  =  2002 AND T1.county  =  \"Orange\")"
        ]
    },
    {
        "db_id": "csu_1",
        "final_query": "SELECT T1.campus FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id  =  t2.campus WHERE t2.year  =  1956 AND totalenrollment_ay  >  400 AND FTE_AY  >  200",
        "final_utterance": "What campus had more than 400 total enrollment but more than 200 full time enrollment in year 1956?",
        "interaction_utterance": [
            "Show the total enrollment of campus with id 1 in each year.",
            "What is the average of these numbers?",
            "What campuses had more than 400 total enrollment in year 1956?",
            "Among them, which campuses have more than 200 full time enrollment?"
        ],
        "interaction_query": [
            "SELECT TotalEnrollment_AY FROM enrollments WHERE Campus = 1",
            "SELECT AVG(TotalEnrollment_AY) FROM enrollments WHERE Campus = 1",
            "SELECT T1.campus FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id  =  t2.campus WHERE t2.year  =  1956 AND totalenrollment_ay  >  400",
            "SELECT T1.campus FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id  =  t2.campus WHERE t2.year  =  1956 AND totalenrollment_ay  >  400 AND FTE_AY  >  200"
        ]
    },
    {
        "db_id": "csu_1",
        "final_query": "SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id  =  t2.campus WHERE t1.campus  =  \"San Jose State University\" AND t2.year  =  2000",
        "final_utterance": "How many degrees were conferred in \"San Jose State University\" in 2000?",
        "interaction_utterance": [
            "What is the total number of degrees that are conferred in \"California State University-Channel Islands\"?",
            "How about \"San Jose State University\" over all years?",
            "How about in year 2001?",
            "How about in year 2000?"
        ],
        "interaction_query": [
            "SELECT SUM(degrees) FROM campuses AS T1 JOIN degrees AS T2 ON t1.id  =  t2.campus WHERE t1.campus  =  \"California State University-Channel Islands\"",
            "SELECT SUM(degrees) FROM campuses AS T1 JOIN degrees AS T2 ON t1.id  =  t2.campus WHERE t1.campus  =  \"San Jose State University\"",
            "SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id  =  t2.campus WHERE t1.campus  =  \"San Jose State University\" AND t2.year  =  2001",
            "SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id  =  t2.campus WHERE t1.campus  =  \"San Jose State University\" AND t2.year  =  2000"
        ]
    },
    {
        "db_id": "csu_1",
        "final_query": "SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus  =  T2.id WHERE T1.year  =  2002 AND T2.campus  =  \"Long Beach State University\"",
        "final_utterance": "What is the number of faculty lines in campus \"Long Beach State University\" in 2002?",
        "interaction_utterance": [
            "Show the faculty lines in campus \"Humboldt State University\" in every year.",
            "How about those in campus \"Long Beach State University\"?",
            "What is the number of faculty lines in this university in 2003?",
            "How about in 2002?"
        ],
        "interaction_query": [
            "SELECT T1.year, T1.faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus  =  T2.id WHERE T2.campus  =  \"Humboldt State University\"",
            "SELECT T1.year, T1.faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus  =  T2.id WHERE T2.campus  =  \"Long Beach State University\"",
            "SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus  =  T2.id WHERE T1.year  =  2003 AND T2.campus  =  \"Long Beach State University\"",
            "SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus  =  T2.id WHERE T1.year  =  2002 AND T2.campus  =  \"Long Beach State University\""
        ]
    },
    {
        "db_id": "csu_1",
        "final_query": "SELECT T1.campus FROM campuses AS t1 JOIN faculty AS t2 ON t1.id  =  t2.campus WHERE t2.faculty  >=  600 AND t2.faculty  <=  1000 AND T2.year  =  2004",
        "final_utterance": "List the campus that have between 600 and 1000 faculty lines in year 2004.",
        "interaction_utterance": [
            "How many campuses have faculty lines?",
            "Show their faculty lines in year 2004.",
            "How many of them are between 600 and 1000?",
            "Show the names of these campuses."
        ],
        "interaction_query": [
            "SELECT COUNT(DISTINCT T1.campus) FROM campuses AS t1 JOIN faculty AS t2 ON t1.id  =  t2.campus",
            "SELECT t2.faculty FROM campuses AS t1 JOIN faculty AS t2 ON t1.id  =  t2.campus WHERE T2.year  =  2004",
            "SELECT COUNT(*) FROM campuses AS t1 JOIN faculty AS t2 ON t1.id  =  t2.campus WHERE t2.faculty  >=  600 AND t2.faculty  <=  1000 AND T2.year  =  2004",
            "SELECT T1.campus FROM campuses AS t1 JOIN faculty AS t2 ON t1.id  =  t2.campus WHERE t2.faculty  >=  600 AND t2.faculty  <=  1000 AND T2.year  =  2004"
        ]
    },
    {
        "db_id": "csu_1",
        "final_query": "SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id  =  t2.campus JOIN degrees AS T3 ON T1.id  =  t3.campus AND t2.year  =  t3.year WHERE t2.year  =  2002 ORDER BY t3.degrees DESC LIMIT 1",
        "final_utterance": "How many faculty lines are there in the university that conferred the most number of degrees in year 2002?",
        "interaction_utterance": [
            "How many degrees were conferred in each university in year 2002?",
            "Among the results, which university conferred the most degrees?",
            "What are its faculty lines?"
        ],
        "interaction_query": [
            "SELECT T1.Campus, Degrees FROM campuses AS T1 JOIN faculty AS T2 ON T1.id  =  t2.campus JOIN degrees AS T3 ON T1.id  =  t3.campus AND t2.year  =  t3.year WHERE t2.year  =  2002",
            "SELECT T1.Campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id  =  t2.campus JOIN degrees AS T3 ON T1.id  =  t3.campus AND t2.year  =  t3.year WHERE t2.year  =  2002 ORDER BY t3.degrees DESC LIMIT 1",
            "SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id  =  t2.campus JOIN degrees AS T3 ON T1.id  =  t3.campus AND t2.year  =  t3.year WHERE t2.year  =  2002 ORDER BY t3.degrees DESC LIMIT 1"
        ]
    },
    {
        "db_id": "csu_1",
        "final_query": "SELECT sum(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t1.year  =  2004 AND t2.campus  =  \"San Jose State University\"",
        "final_utterance": "How many undergraduates are there in \"San Jose State University\" in year 2004?",
        "interaction_utterance": [
            "When did \"San Jose State University\" open?",
            "How many undergraduates were there in \"San Jose State University\" in year 2000?",
            "How about in year 2004?"
        ],
        "interaction_query": [
            "SELECT Year FROM campuses WHERE campus  =  \"San Jose State University\"",
            "SELECT sum(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t1.year  =  2000 AND t2.campus  =  \"San Jose State University\"",
            "SELECT sum(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t1.year  =  2004 AND t2.campus  =  \"San Jose State University\""
        ]
    },
    {
        "db_id": "csu_1",
        "final_query": "SELECT sum(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t1.year  =  2004 AND t2.campus  =  \"San Francisco State University\"",
        "final_utterance": "What is the number of graduates in \"San Francisco State University\" in year 2004?",
        "interaction_utterance": [
            "Which county is \"San Francisco State University\" located?",
            "How many graduates were there in this university in year 2003?",
            "How about in 2004?"
        ],
        "interaction_query": [
            "SELECT County FROM campuses WHERE campus  =  \"San Francisco State University\"",
            "SELECT sum(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t1.year  =  2003 AND t2.campus  =  \"San Francisco State University\"",
            "SELECT sum(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t1.year  =  2004 AND t2.campus  =  \"San Francisco State University\""
        ]
    },
    {
        "db_id": "csu_1",
        "final_query": "SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t2.campus  =  \"San Francisco State University\" AND t1.year  =  2000",
        "final_utterance": "What is the campus fee of \"San Francisco State University\" in year 2000?",
        "interaction_utterance": [
            "What is the location of \"San Francisco State University\"?",
            "What are its campus fees over all years?",
            "How about in year 2000?"
        ],
        "interaction_query": [
            "SELECT Location FROM campuses WHERE campus  =  \"San Francisco State University\"",
            "SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t2.campus  =  \"San Francisco State University\"",
            "SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t2.campus  =  \"San Francisco State University\" AND t1.year  =  2000"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT count(*) FROM Faculty",
        "final_utterance": "How many faculty do we have?",
        "interaction_utterance": [
            "Show the information for all faculty.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM Faculty",
            "SELECT count(*) FROM Faculty"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT DISTINCT rank FROM Faculty",
        "final_utterance": "What ranks do we have for faculty?",
        "interaction_utterance": [
            "Show the rank for each member of faculty.",
            "What different ranks are there?"
        ],
        "interaction_query": [
            "SELECT rank FROM Faculty",
            "SELECT DISTINCT rank FROM Faculty"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT DISTINCT building FROM Faculty",
        "final_utterance": "Show all the distinct buildings that have faculty rooms.",
        "interaction_utterance": [
            "Show the building for each faculty member.",
            "Show the distinct results among these."
        ],
        "interaction_query": [
            "SELECT building FROM Faculty",
            "SELECT DISTINCT building FROM Faculty"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT rank ,  Fname ,  Lname FROM Faculty",
        "final_utterance": "Show the rank, first name, and last name for all the faculty.",
        "interaction_utterance": [
            "Show the first name of faculty.",
            "Also show the last name for them.",
            "Also show the rank for them."
        ],
        "interaction_query": [
            "SELECT Fname FROM Faculty",
            "SELECT Fname ,  Lname FROM Faculty",
            "SELECT rank ,  Fname ,  Lname FROM Faculty"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT Fname ,  Lname ,  phone FROM Faculty WHERE Sex  =  'F'",
        "final_utterance": "Show the first name, last name, and phone number for all female faculty members.",
        "interaction_utterance": [
            "Show the information for all faculty.",
            "Filter for female faculty members.",
            "Only show the first name, last name, and phone number for them."
        ],
        "interaction_query": [
            "select * from Faculty",
            "select * from Faculty WHERE Sex  =  'F'",
            "SELECT Fname ,  Lname ,  phone FROM Faculty WHERE Sex  =  'F'"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT FacID FROM Faculty WHERE Sex  =  'M'",
        "final_utterance": "Show ids for all the male faculty.",
        "interaction_utterance": [
            "Show ids for all faculty.",
            "Only show the ids for male."
        ],
        "interaction_query": [
            "SELECT FacID FROM Faculty",
            "SELECT FacID FROM Faculty WHERE Sex  =  'M'"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT count(*) FROM Faculty WHERE Sex  =  'F' AND Rank  =  \"Professor\"",
        "final_utterance": "How many female Professors do we have?",
        "interaction_utterance": [
            "How many faculty are there?",
            "What about female ones?",
            "What about female professors?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM Faculty",
            "SELECT count(*) FROM Faculty WHERE Sex  =  'F'",
            "SELECT count(*) FROM Faculty WHERE Sex  =  'F' AND Rank  =  \"Professor\""
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT phone ,  room ,  building FROM Faculty WHERE Fname  =  \"Jerry\" AND Lname  =  \"Prince\"",
        "final_utterance": "Show the phone, room, and building for the faculty named Jerry Prince.",
        "interaction_utterance": [
            "Show the information for all faculty.",
            "Only show the information for the faculty named Jerry Prince.",
            "Show the phone, room, and building for this person."
        ],
        "interaction_query": [
            "select * from Faculty",
            "select * from Faculty WHERE Fname  =  \"Jerry\" AND Lname  =  \"Prince\"",
            "SELECT phone ,  room ,  building FROM Faculty WHERE Fname  =  \"Jerry\" AND Lname  =  \"Prince\""
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT count(*) FROM Faculty WHERE Rank  =  \"Professor\" AND building  =  \"NEB\"",
        "final_utterance": "How many Professors are in building NEB?",
        "interaction_utterance": [
            "What is the total count of faculty members?",
            "How many are Professors?",
            "How many of these are in building NEB?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM Faculty",
            "SELECT count(*) FROM Faculty WHERE Rank  =  \"Professor\"",
            "SELECT count(*) FROM Faculty WHERE Rank  =  \"Professor\" AND building  =  \"NEB\""
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT fname ,  lname FROM Faculty WHERE Rank  =  \"Instructor\"",
        "final_utterance": "Show the first name and last name for all the instructors.",
        "interaction_utterance": [
            "Show the first name and last name for all faculty.",
            "What about those with rank as Instructor?"
        ],
        "interaction_query": [
            "SELECT fname ,  lname FROM Faculty",
            "SELECT fname ,  lname FROM Faculty WHERE Rank  =  \"Instructor\""
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT building ,  count(*) FROM Faculty GROUP BY building",
        "final_utterance": "Show all the buildings along with the number of faculty members the buildings have.",
        "interaction_utterance": [
            "Show the building for all Faculty.",
            "Show how many faculty members each building houses."
        ],
        "interaction_query": [
            "SELECT building FROM Faculty",
            "SELECT building ,  count(*) FROM Faculty GROUP BY building"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT building FROM Faculty GROUP BY building ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Which building has most faculty members?",
        "interaction_utterance": [
            "Show the building for all Faculty.",
            "Show the number of faculty members for each of those buildings.",
            "List them in descending order of the count.",
            "Which building has the most?"
        ],
        "interaction_query": [
            "SELECT building FROM Faculty",
            "SELECT building, count(*) FROM Faculty GROUP BY building",
            "SELECT building, count(*) FROM Faculty GROUP BY building ORDER BY count(*) DESC",
            "SELECT building FROM Faculty GROUP BY building ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT building FROM Faculty WHERE rank  =  \"Professor\" GROUP BY building HAVING count(*)  >=  10",
        "final_utterance": "Show all the buildings that have at least 10 professors.",
        "interaction_utterance": [
            "Show the building for all Faculty.",
            "How about those for professors?",
            "For each of the buildings, show the number of professors.",
            "Which of them have at least 10?"
        ],
        "interaction_query": [
            "SELECT building FROM Faculty",
            "SELECT building FROM Faculty WHERE rank  =  \"Professor\"",
            "SELECT building, count(*) FROM Faculty WHERE rank  =  \"Professor\" GROUP BY building",
            "SELECT building FROM Faculty WHERE rank  =  \"Professor\" GROUP BY building HAVING count(*)  >=  10"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT rank ,  count(*) FROM Faculty GROUP BY rank",
        "final_utterance": "For each faculty rank, show the number of faculty members who have it.",
        "interaction_utterance": [
            "Show the rank for all faculty members.",
            "For each of them, show the number of faculty members."
        ],
        "interaction_query": [
            "SELECT rank FROM Faculty",
            "SELECT rank ,  count(*) FROM Faculty GROUP BY rank"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT rank ,  sex ,  count(*) FROM Faculty GROUP BY rank ,  sex",
        "final_utterance": "Show all the ranks and the number of male and female faculty for each rank.",
        "interaction_utterance": [
            "Show all rank and sex for each faculty member.",
            "Show the counts of faculty grouped by both rank and sex."
        ],
        "interaction_query": [
            "SELECT rank ,  sex FROM Faculty",
            "SELECT rank ,  sex ,  count(*) FROM Faculty GROUP BY rank ,  sex"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*) ASC LIMIT 1",
        "final_utterance": "Which rank has the smallest number of faculty members?",
        "interaction_utterance": [
            "Show the rank for all Faculty.",
            "For each of them, show the number of faculty members.",
            "Order them by the number.",
            "Which rank has the smallest number?"
        ],
        "interaction_query": [
            "SELECT rank FROM Faculty",
            "SELECT rank, count(*) FROM Faculty GROUP BY rank",
            "SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*)",
            "SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*) ASC LIMIT 1"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT sex ,  count(*) FROM Faculty WHERE rank  =  \"AsstProf\" GROUP BY sex",
        "final_utterance": "Show the number of male and female assistant professors.",
        "interaction_utterance": [
            "Show the sex for each Faculty member.",
            "Show the result for only assistant professors.",
            "How many assistant professors are there of each sex?"
        ],
        "interaction_query": [
            "SELECT sex FROM Faculty",
            "SELECT sex FROM Faculty WHERE rank  =  \"AsstProf\"",
            "SELECT sex ,  count(*) FROM Faculty WHERE rank  =  \"AsstProf\" GROUP BY sex"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T2.fname  =  \"Linda\" AND T2.lname  =  \"Smith\"",
        "final_utterance": "What are the first name and last name of Linda Smith's advisor?",
        "interaction_utterance": [
            "Show the first name and last name for all Faculty.",
            "Also show the names of students that each one advises.",
            "Who is Linda Smith's advisor?"
        ],
        "interaction_query": [
            "SELECT fname ,  lname FROM Faculty",
            "SELECT T1.fname ,  T1.lname, T2.fname ,  T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor",
            "SELECT T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T2.fname  =  \"Linda\" AND T2.lname  =  \"Smith\""
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T1.rank  =  \"Professor\"",
        "final_utterance": "Show the ids of students whose advisors are professors.",
        "interaction_utterance": [
            "Show the student ids.",
            "Also show the ranks of their advisors.",
            "Show the student id for those whose advisors are professors?"
        ],
        "interaction_query": [
            "SELECT StuID FROM Student",
            "SELECT T2.StuID, T1.rank FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor",
            "SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T1.rank  =  \"Professor\""
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT T2.fname ,  T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T1.fname  =  \"Michael\" AND T1.lname  =  \"Goodrich\"",
        "final_utterance": "Show first name and last name for all the students advised by Michael Goodrich.",
        "interaction_utterance": [
            "Show first name and last name for all the students.",
            "Also show their advisor's first name and last name.",
            "Who are advised by Michael Goodrich?"
        ],
        "interaction_query": [
            "SELECT fname ,  lname FROM Student",
            "SELECT T2.fname ,  T2.lname, T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor",
            "SELECT T2.fname ,  T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T1.fname  =  \"Michael\" AND T1.lname  =  \"Goodrich\""
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT T1.FacID ,  count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID",
        "final_utterance": "Show the faculty id of each faculty member, along with the number of students he or she advises.",
        "interaction_utterance": [
            "Show the faculty id of each faculty member",
            "For each of them, also show the number of students he or she advises."
        ],
        "interaction_query": [
            "SELECT FacID from Faculty",
            "SELECT T1.FacID ,  count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT T1.rank ,  count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.rank",
        "final_utterance": "Show all the faculty ranks and the number of students advised by each rank.",
        "interaction_utterance": [
            "Show all the faculty ranks",
            "For each of those ranks, show the number of students advised."
        ],
        "interaction_query": [
            "SELECT rank FROM Faculty",
            "SELECT T1.rank ,  count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.rank"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What are the first and last name of the faculty who has the most students?",
        "interaction_utterance": [
            "Show the first and last name of the faculty.",
            "For each faculty member, also count the number of students advised.",
            "Show the names in descending order of the number.",
            "Who has the most?"
        ],
        "interaction_query": [
            "SELECT fname ,  lname FROM Faculty",
            "SELECT T1.fname ,  T1.lname, count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID",
            "SELECT T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID ORDER BY count(*) DESC",
            "SELECT T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID HAVING count(*)  >=  2",
        "final_utterance": "Show the ids for all the faculty members who have at least 2 students.",
        "interaction_utterance": [
            "Show the ids for all the faculty members",
            "For each of them, also count the number of students advised.",
            "Who have at least 2 students?"
        ],
        "interaction_query": [
            "SELECT FacID FROM Faculty",
            "SELECT T1.FacID, count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID",
            "SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student",
        "final_utterance": "Show ids for the faculty members who don't advise any student.",
        "interaction_utterance": [
            "Show all faculty members advising a student.",
            "Show ids for those who don't."
        ],
        "interaction_query": [
            "SELECT advisor FROM Student",
            "SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT activity_name FROM Activity",
        "final_utterance": "What activities do we have?",
        "interaction_utterance": [
            "Show information for all activities.",
            "Show the name for those."
        ],
        "interaction_query": [
            "SELECT * FROM Activity",
            "SELECT activity_name FROM Activity"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT count(*) FROM Activity",
        "final_utterance": "How many activities do we have?",
        "interaction_utterance": [
            "Show info for all activities.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM Activity",
            "SELECT count(*) FROM Activity"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT count(DISTINCT FacID) FROM Faculty_participates_in",
        "final_utterance": "How many faculty members participate in an activity?",
        "interaction_utterance": [
            "Show the faculty id of members participating in an activity.",
            "How many such members are there?"
        ],
        "interaction_query": [
            "select FacID FROM Faculty_participates_in",
            "SELECT count(DISTINCT FacID) FROM Faculty_participates_in"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in",
        "final_utterance": "Show the ids of the faculty who don't participate in any activity.",
        "interaction_utterance": [
            "Show the ids of the faculty who participate in an activity.",
            "Show the ids for those who don't."
        ],
        "interaction_query": [
            "SELECT FacID FROM Faculty_participates_in",
            "SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student",
        "final_utterance": "Show the ids of all the faculty members who participate in an activity and advise a student.",
        "interaction_utterance": [
            "Show the ids of all the faculty members who participate in an activity.",
            "Show the ids of all the faculty members who advise a student.",
            "Show the ids of all the faculty members who do both."
        ],
        "interaction_query": [
            "SELECT FacID FROM Faculty_participates_in",
            "SELECT advisor FROM Student",
            "SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID WHERE T1.fname  =  \"Mark\" AND T1.lname  =  \"Giuliano\"",
        "final_utterance": "How many activities does Mark Giuliano participate in?",
        "interaction_utterance": [
            "Show first and last name and activity ids for all faculty participating in activities.",
            "How many activities does Mark Giuliano participate in?"
        ],
        "interaction_query": [
            "SELECT T1.fname, T1.lname, T2.actid FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID",
            "SELECT count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID WHERE T1.fname  =  \"Mark\" AND T1.lname  =  \"Giuliano\""
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN Activity AS T3 ON T3.actid  =  T2.actid WHERE T1.fname  =  \"Mark\" AND T1.lname  =  \"Giuliano\"",
        "final_utterance": "Show the names of all the activities Mark Giuliano participates in.",
        "interaction_utterance": [
            "Show the names of all the activities.",
            "Show the names of those with faculty participation.",
            "What are those activities which Mark Giuliano participates in?"
        ],
        "interaction_query": [
            "SELECT activity_name FROM Activity",
            "SELECT T3.activity_name, T1.fname, T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN Activity AS T3 ON T3.actid  =  T2.actid",
            "SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN Activity AS T3 ON T3.actid  =  T2.actid WHERE T1.fname  =  \"Mark\" AND T1.lname  =  \"Giuliano\""
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT  T1.fname ,  T1.lname ,  count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID GROUP BY T1.FacID",
        "final_utterance": "Show the first and last name of all the faculty members who participated in some activity, together with the number of activities they participated in.",
        "interaction_utterance": [
            "Show the first and last name of all the faculty members.",
            "Which of those have participated in some activity?",
            "For each of them, also show the number of activities they participated in."
        ],
        "interaction_query": [
            "SELECT  fname ,  lname FROM Faculty",
            "SELECT  T1.fname ,  T1.lname  FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID",
            "SELECT  T1.fname ,  T1.lname ,  count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID GROUP BY T1.FacID"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT T1.activity_name ,  count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID",
        "final_utterance": "Show all the activity names and the number of faculty involved in each activity.",
        "interaction_utterance": [
            "Show all the activity names.",
            "For each of them, how many faculty are involved?"
        ],
        "interaction_query": [
            "SELECT activity_name from Activity",
            "SELECT T1.activity_name ,  count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT  T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the first and last name of the faculty participating in the most activities?",
        "interaction_utterance": [
            "Show the first and last name for all faculty.",
            "For each of them, also count the number of activities they participate in.",
            "Sort the names in the descending order of this count.",
            "Who participates in the most activities?"
        ],
        "interaction_query": [
            "SELECT  fname ,  lname FROM Faculty",
            "SELECT  T1.fname ,  T1.lname, count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID GROUP BY T1.FacID",
            "SELECT  T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID GROUP BY T1.FacID ORDER BY count(*) DESC",
            "SELECT  T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the name of the activity that has the most faculty members involved in?",
        "interaction_utterance": [
            "Show all activity names.",
            "For each of them, also show the number of faculty members involved.",
            "Sort the names in the descending order of the faculty counts.",
            "Which activity has the most?"
        ],
        "interaction_query": [
            "SELECT activity_name FROM Activity",
            "SELECT T1.activity_name, count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID",
            "SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID ORDER BY count(*) DESC",
            "SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Participates_in",
        "final_utterance": "Show the ids of the students who don't participate in any activity.",
        "interaction_utterance": [
            "Show the student ids who participate in an activity.",
            "Show the ids of those who don't."
        ],
        "interaction_query": [
            "SELECT StuID FROM Participates_in",
            "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Participates_in"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age  <  20",
        "final_utterance": "Show the ids for all the students who participate in an activity and are under 20.",
        "interaction_utterance": [
            "Show the ids for the students who participate in an activity.",
            "Among those, who are under 20?"
        ],
        "interaction_query": [
            "SELECT StuID FROM Participates_in",
            "SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age  <  20"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT T1.fname ,  T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID  =  T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the first and last name of the student participating in the most activities?",
        "interaction_utterance": [
            "Show the first and last name of the student.",
            "For each of them, count the number of activities.",
            "Sort the names in descending order by the number of activities.",
            "Who has the most?"
        ],
        "interaction_query": [
            "SELECT fname ,  lname FROM Student",
            "SELECT T1.fname ,  T1.lname, count(*) FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID  =  T2.StuID GROUP BY T1.StuID",
            "SELECT T1.fname ,  T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID  =  T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC",
            "SELECT T1.fname ,  T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID  =  T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the name of the activity with the most students?",
        "interaction_utterance": [
            "Show the names of activities.",
            "For each of them, also show the number of students.",
            "Sort the names in descending order by this number.",
            "Which has the most?"
        ],
        "interaction_query": [
            "SELECT activity_name FROM Activity",
            "SELECT T1.activity_name, count(*) FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID",
            "SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID ORDER BY count(*) DESC",
            "SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT DISTINCT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' OR T3.activity_name  =  'Kayaking'",
        "final_utterance": "Find the first names of the faculty members who are playing Canoeing or Kayaking.",
        "interaction_utterance": [
            "Show the first names of the faculty members.",
            "Which of them participate in canoeing?",
            "How about Kayaking?",
            "Show the first names for those participating in either of the two."
        ],
        "interaction_query": [
            "SELECT fname FROM Faculty",
            "SELECT DISTINCT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing'",
            "SELECT DISTINCT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Kayaking'",
            "SELECT DISTINCT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' OR T3.activity_name  =  'Kayaking'"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT fname FROM faculty WHERE rank  =  'Professor' EXCEPT SELECT DISTINCT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' OR T3.activity_name  =  'Kayaking'",
        "final_utterance": "Find the first names of professors who are not playing Canoeing or Kayaking.",
        "interaction_utterance": [
            "Show the first name of faculty and their activity names.",
            "Which of them practice canoeing or kayaking?",
            "Which of them do not?",
            "Who among these are professors?"
        ],
        "interaction_query": [
            "SELECT T1.fname, T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid",
            "SELECT DISTINCT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' OR T3.activity_name  =  'Kayaking'",
            "SELECT fname FROM faculty EXCEPT SELECT DISTINCT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' OR T3.activity_name  =  'Kayaking'",
            "SELECT fname FROM faculty WHERE rank  =  'Professor' EXCEPT SELECT DISTINCT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' OR T3.activity_name  =  'Kayaking'"
        ]
    },
    {
        "db_id": "activity_1",
        "final_query": "SELECT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' INTERSECT SELECT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Kayaking'",
        "final_utterance": "Find the first names of the faculty members who participate in Canoeing and Kayaking.",
        "interaction_utterance": [
            "Find the first names of the faculty members",
            "Show the activity names for them.",
            "Which of them participate in canoeing?",
            "Which of them participate in kayaking?",
            "Which of them participate in both."
        ],
        "interaction_query": [
            "SELECT fname FROM Faculty",
            "SELECT T1.fname, T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid",
            "SELECT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing'",
            "SELECT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Kayaking'",
            "SELECT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' INTERSECT SELECT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Kayaking'"
        ]
    },
    {
        "db_id": "workshop_paper",
        "final_query": "SELECT Author FROM submission WHERE College  =  \"Florida\" OR College  =  \"Temple\"",
        "final_utterance": "Show the names of authors from college \"Florida\" or \"Temple\"",
        "interaction_utterance": [
            "How many authors are from college \"Florida\"?",
            "How about the college \"Temple\"?",
            "What is the sum of the number of authors from these two colleges?",
            "Please show the authors' names."
        ],
        "interaction_query": [
            "SELECT COUNT(Author) FROM submission WHERE College  =  \"Florida\"",
            "SELECT COUNT(Author) FROM submission WHERE College  =  \"Temple\"",
            "SELECT COUNT(Author) FROM submission WHERE College  =  \"Florida\" OR College  =  \"Temple\"",
            "SELECT Author FROM submission WHERE College  =  \"Florida\" OR College  =  \"Temple\""
        ]
    },
    {
        "db_id": "workshop_paper",
        "final_query": "SELECT Author FROM submission ORDER BY Scores DESC LIMIT 1",
        "final_utterance": "What is the author of the submission with the highest score?",
        "interaction_utterance": [
            "How many authors have sumbitted their work?",
            "Please show their names.",
            "What is the author of the submission with the lowest score?",
            "How about the highest score?"
        ],
        "interaction_query": [
            "SELECT COUNT(Author) FROM submission",
            "SELECT Author FROM submission",
            "SELECT Author FROM submission ORDER BY Scores ASC LIMIT 1",
            "SELECT Author FROM submission ORDER BY Scores DESC LIMIT 1"
        ]
    },
    {
        "db_id": "workshop_paper",
        "final_query": "SELECT College FROM submission GROUP BY College ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the most common college of authors of submissions.",
        "interaction_utterance": [
            "How many authors have sumbitted their work?",
            "Please show their colleges.",
            "How many unique colleges are there?",
            "Among these colleges, which one has the most submissions?"
        ],
        "interaction_query": [
            "SELECT COUNT(Author) FROM submission",
            "SELECT College FROM submission",
            "SELECT COUNT(DISTINCT College) FROM submission",
            "SELECT College FROM submission GROUP BY College ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "workshop_paper",
        "final_query": "SELECT College FROM submission WHERE Scores  >  90 INTERSECT SELECT College FROM submission WHERE Scores  <  80",
        "final_utterance": "Show the colleges that have both authors with submission score larger than 90 and authors with submission score smaller than 80.",
        "interaction_utterance": [
            "What is the largest submission score?",
            "How many submissions have a score larger than 90?",
            "How about the number of submissions with a score less than 80?",
            "What are the colleges that have both authors with submission score larger than 90 and authors with submission score smaller than 80?"
        ],
        "interaction_query": [
            "SELECT MAX(Scores) FROM submission",
            "SELECT COUNT(*) FROM submission WHERE Scores  >  90",
            "SELECT COUNT(*) FROM submission WHERE Scores  <  80",
            "SELECT College FROM submission WHERE Scores  >  90 INTERSECT SELECT College FROM submission WHERE Scores  <  80"
        ]
    },
    {
        "db_id": "workshop_paper",
        "final_query": "SELECT T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1",
        "final_utterance": "Show the result of the submission with the highest score.",
        "interaction_utterance": [
            "How many submissions have been accepted?",
            "What is the average submission score of these works?",
            "Which submission has the highest score? Show its submission ID.",
            "How about its submission result?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Acceptance WHERE Result = \"Accepted\"",
            "SELECT avg(T2.Scores) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID WHERE T1.Result = \"Accepted\"",
            "SELECT T2.Submission_ID FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1",
            "SELECT T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1"
        ]
    },
    {
        "db_id": "workshop_paper",
        "final_query": "SELECT T2.Author ,  COUNT(DISTINCT T1.workshop_id) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID GROUP BY T2.Author",
        "final_utterance": "Show each author and the number of workshops they submitted to.",
        "interaction_utterance": [
            "How many different workshops are there?",
            "How many authors are there?",
            "Show each author and the number of workshops they submitted to."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM workshop",
            "SELECT COUNT(Author) FROM Submission",
            "SELECT T2.Author ,  COUNT(DISTINCT T1.workshop_id) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID GROUP BY T2.Author"
        ]
    },
    {
        "db_id": "workshop_paper",
        "final_query": "SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id)  >  1",
        "final_utterance": "Show the authors who have submissions to more than one workshop.",
        "interaction_utterance": [
            "Which workshops happened in New York USA?",
            "How many workshops have been held?",
            "How many authors have submitted to more than one workshop?",
            "Please show their names."
        ],
        "interaction_query": [
            "SELECT Name FROM workshop WHERE Venue = \"New York USA\"",
            "SELECT COUNT(*) FROM workshop",
            "SELECT COUNT(DISTINCT T2.Author) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id)  >  1",
            "SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id)  >  1"
        ]
    },
    {
        "db_id": "race_track",
        "final_query": "SELECT name ,  seating FROM track WHERE year_opened  >  2000 ORDER BY seating",
        "final_utterance": "Show names and seatings, ordered by seating for all tracks opened after 2000.",
        "interaction_utterance": [
            "List all the information about the tracks.",
            "Which names and seatings of the tracks that are opened later than the year 1950 ?",
            "What about after the year 2000?",
            "Order them by seating."
        ],
        "interaction_query": [
            "SELECT * FROM track",
            "SELECT name ,  seating FROM track where year_opened  >  1950",
            "SELECT name ,  seating FROM track where year_opened  >  2000",
            "SELECT name ,  seating FROM track WHERE year_opened  >  2000 ORDER BY seating"
        ]
    },
    {
        "db_id": "race_track",
        "final_query": "SELECT name ,  LOCATION ,  seating FROM track ORDER BY year_opened DESC LIMIT 1",
        "final_utterance": "What is the name, location and seating for the most recently opened track?",
        "interaction_utterance": [
            "Order all the tracks by the year of opening, from the most recent to the least recent.",
            "Which 4 are the most recent ones? Show the name, location and seating.",
            "What about the most recent 1?"
        ],
        "interaction_query": [
            "SELECT * FROM track ORDER BY year_opened DESC",
            "SELECT name ,  LOCATION ,  seating FROM track ORDER BY year_opened DESC LIMIT 4",
            "SELECT name ,  LOCATION ,  seating FROM track ORDER BY year_opened DESC LIMIT 1"
        ]
    },
    {
        "db_id": "race_track",
        "final_query": "SELECT min(seating) ,  max(seating) ,  avg(seating) FROM track",
        "final_utterance": "What is the minimum, maximum, and average seating for all tracks.",
        "interaction_utterance": [
            "What is the total seating numbers from the track?",
            "What about the minimum, maximum, and average?"
        ],
        "interaction_query": [
            "SELECT sum(seating) FROM track",
            "SELECT min(seating) ,  max(seating) ,  avg(seating) FROM track"
        ]
    },
    {
        "db_id": "race_track",
        "final_query": "SELECT name ,  LOCATION ,  year_opened FROM track WHERE seating  >  (SELECT avg(seating) FROM track)",
        "final_utterance": "Show the name, location, open year for all tracks with a seating higher than the average.",
        "interaction_utterance": [
            "What is the total seating numbers from the track?",
            "What about the average value?",
            "Which tracks have a higher seating number than that?",
            "Only keep the name, location, open year of them."
        ],
        "interaction_query": [
            "SELECT sum(seating) FROM track",
            "SELECT avg(seating) FROM track",
            "SELECT * FROM track WHERE seating  >  (SELECT avg(seating) FROM track)",
            "SELECT name ,  LOCATION ,  year_opened FROM track WHERE seating  >  (SELECT avg(seating) FROM track)"
        ]
    },
    {
        "db_id": "race_track",
        "final_query": "SELECT CLASS FROM race GROUP BY CLASS ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the race class with most number of races.",
        "interaction_utterance": [
            "Show all the classes from the race.",
            "For each class, show the number of races for each.",
            "How many are there for the class 'GT'?",
            "Which one has the most number of races?"
        ],
        "interaction_query": [
            "SELECT * FROM race",
            "SELECT CLASS, count(*) FROM race GROUP BY CLASS",
            "SELECT CLASS, count(*) FROM race GROUP BY CLASS having class = 'GT'",
            "SELECT CLASS FROM race GROUP BY CLASS ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "race_track",
        "final_query": "SELECT CLASS FROM race GROUP BY CLASS HAVING count(*)  >=  2",
        "final_utterance": "List the race class with at least two races.",
        "interaction_utterance": [
            "For each class, show the number of races for each.",
            "Which race classes have more than 3 races?",
            "What about at least two?"
        ],
        "interaction_query": [
            "SELECT CLASS, count(*) FROM race GROUP BY CLASS",
            "SELECT CLASS FROM race GROUP BY CLASS HAVING count(*)  > 3",
            "SELECT CLASS FROM race GROUP BY CLASS HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "race_track",
        "final_query": "SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id WHERE T1.class  =  'GT'",
        "final_utterance": "What are the names for tracks without a race in class 'GT'.",
        "interaction_utterance": [
            "How many races has the class 'GT'?",
            "What about without that class?",
            "What are the track names of them?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM race where class = 'GT'",
            "SELECT count(*) FROM race where class != 'GT'",
            "SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id WHERE T1.class  =  'GT'"
        ]
    },
    {
        "db_id": "race_track",
        "final_query": "SELECT name FROM track WHERE track_id NOT IN (SELECT track_id FROM race)",
        "final_utterance": "Show all track names that have had no races.",
        "interaction_utterance": [
            "What are the names and locations of the tracks?",
            "Which names of the tracks have at least one race?",
            "What about no races?"
        ],
        "interaction_query": [
            "SELECT name,location FROM track",
            "SELECT name FROM track WHERE track_id IN (SELECT track_id FROM race)",
            "SELECT name FROM track WHERE track_id NOT IN (SELECT track_id FROM race)"
        ]
    },
    {
        "db_id": "race_track",
        "final_query": "SELECT T2.name ,  count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id",
        "final_utterance": "Show the name of track and the number of races in each track.",
        "interaction_utterance": [
            "What are the names of the tracks for each race?",
            "How many races for the track name 'Auto Club Speedway'?",
            "For each track name, how many races are there?"
        ],
        "interaction_query": [
            "SELECT T2.name, T1.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id",
            "SELECT T2.name,T1.name, count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id  GROUP BY T1.track_id having T2.name = 'Auto Club Speedway'",
            "SELECT T2.name ,  count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id"
        ]
    },
    {
        "db_id": "race_track",
        "final_query": "SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Show the name of track with most number of races.",
        "interaction_utterance": [
            "What are the names of the tracks for each race?",
            "For each track, what is the number of races?",
            "Which track name has the most number of races?"
        ],
        "interaction_query": [
            "SELECT T2.name,T1.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id",
            "SELECT T2.name,T1.name, count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id  GROUP BY T1.track_id",
            "SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "race_track",
        "final_query": "SELECT T2.name ,  T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id HAVING count(*)  =  1",
        "final_utterance": "Show the name and location of track with 1 race.",
        "interaction_utterance": [
            "What are the names of the tracks for each race?",
            "For each track name, how many races for each?",
            "How many tracks have at least two races?",
            "What about only one race? Show the track name and location?"
        ],
        "interaction_query": [
            "SELECT T2.name, T1.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id",
            "SELECT T2.name ,  count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id",
            "SELECT count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id HAVING count(*)  >= 2",
            "SELECT T2.name ,  T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id HAVING count(*)  =  1"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT count(*) FROM Apartment_Bookings",
        "final_utterance": "How many apartment bookings are there in total?",
        "interaction_utterance": [
            "List all the apartment booking records.",
            "How many are there in total?"
        ],
        "interaction_query": [
            "SELECT * FROM Apartment_Bookings",
            "SELECT count(*) FROM Apartment_Bookings"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT booking_start_date ,  booking_end_date FROM Apartment_Bookings",
        "final_utterance": "Show the start dates and end dates of all the apartment bookings.",
        "interaction_utterance": [
            "List all the apartment booking records.",
            "How many in total?",
            "For each of the record, only show the start dates and end dates."
        ],
        "interaction_query": [
            "SELECT * FROM Apartment_Bookings",
            "SELECT count(*) FROM Apartment_Bookings",
            "SELECT booking_start_date ,  booking_end_date FROM Apartment_Bookings"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT DISTINCT building_description FROM Apartment_Buildings",
        "final_utterance": "Show all distinct building descriptions.",
        "interaction_utterance": [
            "What are the information about all the apartment buildings",
            "How many unique building descriptions are there?",
            "Show their details."
        ],
        "interaction_query": [
            "SELECT * FROM Apartment_Buildings",
            "SELECT count(DISTINCT building_description) FROM Apartment_Buildings",
            "SELECT DISTINCT building_description FROM Apartment_Buildings"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT building_short_name FROM Apartment_Buildings WHERE building_manager\t =  \"Emma\"",
        "final_utterance": "Show the short names of the buildings managed by \"Emma\".",
        "interaction_utterance": [
            "List all the building manager names.",
            "How many are manged by \"Brenden\"?",
            "What about \"Emma\" ?",
            "List the short names of the buildings managed by her."
        ],
        "interaction_query": [
            "SELECT building_manager FROM Apartment_Buildings",
            "SELECT count(building_manager) FROM Apartment_Buildings WHERE building_manager\t =  \"Brenden\"",
            "SELECT count(building_manager) FROM Apartment_Buildings WHERE building_manager\t =  \"Brenden\"",
            "SELECT building_short_name FROM Apartment_Buildings WHERE building_manager\t =  \"Emma\""
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT building_address ,  building_phone FROM Apartment_Buildings WHERE building_manager\t =  \"Brenden\"",
        "final_utterance": "Show the addresses and phones of all the buildings managed by \"Brenden\".",
        "interaction_utterance": [
            "List all the building manager names.",
            "How many are manged by \"Emma\"?",
            "What about \"Brenden\"?",
            "What are the addresses and phones of all the buildings managed by him?"
        ],
        "interaction_query": [
            "SELECT building_manager FROM Apartment_Buildings",
            "SELECT count(building_manager) FROM Apartment_Buildings WHERE building_manager\t =  \"Emma\"",
            "SELECT count(building_manager) FROM Apartment_Buildings WHERE building_manager\t =  \"Brenden\"",
            "SELECT building_address ,  building_phone FROM Apartment_Buildings WHERE building_manager\t =  \"Brenden\""
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT building_full_name FROM Apartment_Buildings WHERE building_full_name LIKE \"%court%\"",
        "final_utterance": "What are the building full names that contain the word \"court\"?",
        "interaction_utterance": [
            "List all the building full names.",
            "Show the ones if there is the full name with \"The Eugene\".",
            "What are the building full names which contain the word \"court\"?"
        ],
        "interaction_query": [
            "SELECT building_full_name FROM Apartment_Buildings",
            "SELECT building_full_name FROM Apartment_Buildings WHERE building_full_name LIKE \"The Eugene\"",
            "SELECT building_full_name FROM Apartment_Buildings WHERE building_full_name LIKE \"%court%\""
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT min(bathroom_count) ,  max(bathroom_count) FROM Apartments",
        "final_utterance": "What is the minimum and maximum number of bathrooms of all the apartments?",
        "interaction_utterance": [
            "List the number of bathrooms for each apartment.",
            "What is the average number of bathrooms?",
            "List the minimum and maximum number."
        ],
        "interaction_query": [
            "SELECT bathroom_count FROM Apartments",
            "SELECT avg(bathroom_count)  FROM Apartments",
            "SELECT min(bathroom_count) ,  max(bathroom_count) FROM Apartments"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT avg(bedroom_count) FROM Apartments",
        "final_utterance": "What is the average number of bedrooms of all apartments?",
        "interaction_utterance": [
            "List the number of bathrooms for each apartment.",
            "What about the minimum and maximum number?",
            "How about the average?"
        ],
        "interaction_query": [
            "SELECT bathroom_count FROM Apartments",
            "SELECT min(bathroom_count) ,  max(bathroom_count) FROM Apartments",
            "SELECT avg(bedroom_count) FROM Apartments"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT apt_number ,  room_count FROM Apartments",
        "final_utterance": "Return the apartment number and the number of rooms for each apartment.",
        "interaction_utterance": [
            "Show the number of rooms with each apartment number in the beginning."
        ],
        "interaction_query": [
            "SELECT apt_number ,  room_count FROM Apartments"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT avg(room_count) FROM Apartments WHERE apt_type_code  =  \"Studio\"",
        "final_utterance": "What is the average number of rooms of apartments with type code \"Studio\"?",
        "interaction_utterance": [
            "How many type codes are there?",
            "For each one, show how many apartments.",
            "How many apartments have the type code \"Studio\"?",
            "Among those apartments, what is the average number of rooms?"
        ],
        "interaction_query": [
            "SELECT count(distinct apt_type_code) FROM Apartments",
            "SELECT apt_type_code, count(*) FROM Apartments GROUP by apt_type_code",
            "SELECT count(*) FROM Apartments WHERE apt_type_code  =  \"Studio\"",
            "SELECT avg(room_count) FROM Apartments WHERE apt_type_code  =  \"Studio\""
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT apt_number FROM Apartments WHERE apt_type_code  =  \"Flat\"",
        "final_utterance": "Return the apartment numbers of the apartments with type code \"Flat\".",
        "interaction_utterance": [
            "How many type codes are there?",
            "For each type code, show how many apartments.",
            "What are the apartment numbers of the apartments with type code \"Studio\"?",
            "What about type code \"Flat\"?"
        ],
        "interaction_query": [
            "SELECT count(distinct apt_type_code) FROM Apartments",
            "SELECT apt_type_code, count(*) FROM Apartments GROUP by apt_type_code",
            "SELECT apt_number FROM Apartments WHERE apt_type_code  =  \"Studio\"",
            "SELECT apt_number FROM Apartments WHERE apt_type_code  =  \"Flat\""
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT guest_first_name ,  guest_last_name FROM Guests",
        "final_utterance": "Return the first names and last names of all guests",
        "interaction_utterance": [
            "How many guests are there?",
            "Keep the first and last names of them."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Guests",
            "SELECT guest_first_name ,  guest_last_name FROM Guests"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT date_of_birth FROM Guests WHERE gender_code  =  \"Male\"",
        "final_utterance": "Return the date of birth for all the guests with gender code \"Male\".",
        "interaction_utterance": [
            "How many female guests are there?",
            "What about male?",
            "What are the date of birth of them?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM Guests WHERE gender_code  =  \"Female\"",
            "SELECT count(*) FROM Guests WHERE gender_code  =  \"Male\"",
            "SELECT date_of_birth FROM Guests WHERE gender_code  =  \"Male\""
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT T2.apt_number ,  T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id",
        "final_utterance": "Show the apartment numbers, start dates, and end dates of all the apartment bookings.",
        "interaction_utterance": [
            "For each apartment booking, show the start date, and end date.",
            "Also show the apartment numbers with each record."
        ],
        "interaction_query": [
            "SELECT booking_start_date ,  booking_start_date FROM Apartment_Bookings",
            "SELECT T2.apt_number ,  T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.apt_type_code  =  \"Duplex\"",
        "final_utterance": "What are the booking start and end dates of the apartments with type code \"Duplex\"?",
        "interaction_utterance": [
            "For each apartment booking, show the start date, and end date.",
            "Also show the type code with each record.",
            "What are the booking start and end dates of the apartments with type code \"Studio\"?",
            "How about the type code \"Duplex\"?"
        ],
        "interaction_query": [
            "SELECT booking_start_date ,  booking_start_date FROM Apartment_Bookings",
            "SELECT T2.apt_type_code ,  T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id",
            "SELECT T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.apt_type_code  =  \"Studio\"",
            "SELECT T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.apt_type_code  =  \"Duplex\""
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.bedroom_count  >  2",
        "final_utterance": "What are the booking start and end dates of the apartments with more than 2 bedrooms?",
        "interaction_utterance": [
            "List all the booking start and end dates.",
            "Also show the bedroom number of each record.",
            "Keep the ones that have 3 bedrooms, show the booking start and end dates only?",
            "What about more than 2 bedrooms?"
        ],
        "interaction_query": [
            "SELECT booking_start_date ,  booking_start_date FROM Apartment_Bookings",
            "SELECT T1.booking_start_date ,  T1.booking_start_date, T2.bedroom_count  FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id",
            "SELECT T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.bedroom_count  = 3",
            "SELECT T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.bedroom_count  >  2"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.apt_number  =  \"Suite 634\"",
        "final_utterance": "What is the booking status code of the apartment with apartment number \"Suite 634\"?",
        "interaction_utterance": [
            "List all the unique booking status codes.",
            "How many are there?",
            "Show these codes with apartment numbers.",
            "What is the code of the apartment with apartment number \"Suite 634\"?"
        ],
        "interaction_query": [
            "SELECT distinct booking_status_code FROM Apartment_Bookings",
            "SELECT count(distinct booking_status_code) FROM Apartment_Bookings",
            "SELECT T1.booking_status_code, T2.apt_number   FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id",
            "SELECT T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.apt_number  =  \"Suite 634\""
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  \"Confirmed\"",
        "final_utterance": "Show the distinct apartment numbers of the apartments that have bookings with status code \"Confirmed\".",
        "interaction_utterance": [
            "How many rooms are there in total?",
            "What about apartments?",
            "Show all the apartment numbers and the status code for each one.",
            "Show the distinct apartment numbers of the apartments where the status code is not \"Confirmed\".",
            "How about the status code is \"Confirmed\"."
        ],
        "interaction_query": [
            "SELECT sum(room_count) FROM Apartments",
            "SELECT count(*) FROM Apartments",
            "SELECT T2.apt_number, T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id",
            "SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  !=  \"Confirmed\"",
            "SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  \"Confirmed\""
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT avg(room_count) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  \"Provisional\"",
        "final_utterance": "Show the average room count of the apartments that have booking status code \"Provisional\".",
        "interaction_utterance": [
            "How many rooms are there in total?",
            "Show all the booking status codes and number of apartments for each.",
            "What about the average room count of the apartments that have booking status code \"Confirmed\"?",
            "What about the booking status code \"Provisional\"?"
        ],
        "interaction_query": [
            "SELECT sum(room_count) FROM Apartments",
            "SELECT booking_status_code, COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code",
            "SELECT avg(room_count) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  \"Confirmed\"",
            "SELECT avg(room_count) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  \"Provisional\""
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT T2.guest_first_name ,  T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id  =  T2.guest_id",
        "final_utterance": "Show the guest first names, start dates, and end dates of all the apartment bookings.",
        "interaction_utterance": [
            "List all the guests' first and last names.",
            "Also show the booking status code of each one.",
            "What are the first names, start dates, and end dates of all the apartment bookings?"
        ],
        "interaction_query": [
            "SELECT guest_first_name, guest_last_name FROM Guests",
            "SELECT T2.guest_first_name ,  T2.guest_last_name, T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id  =  T2.guest_id",
            "SELECT T2.guest_first_name ,  T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id  =  T2.guest_id"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id  =  T2.guest_id WHERE T2.gender_code  =  \"Female\"",
        "final_utterance": "Show the start dates and end dates of all the apartment bookings made by guests with gender code \"Female\".",
        "interaction_utterance": [
            "List all the booking start and end dates.",
            "Show the bedroom number of each record.",
            "Show the start and end dates of the apartment bookings made by male guests.",
            "What about female guests?"
        ],
        "interaction_query": [
            "SELECT booking_start_date ,  booking_start_date FROM Apartment_Bookings",
            "SELECT T1.booking_start_date ,  T1.booking_start_date, T2.bedroom_count  FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id",
            "SELECT T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id  =  T2.guest_id WHERE T2.gender_code  =  \"Male\"",
            "SELECT T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id  =  T2.guest_id WHERE T2.gender_code  =  \"Female\""
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT T2.guest_first_name ,  T2.guest_last_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id  =  T2.guest_id WHERE T1.booking_status_code  =  \"Confirmed\"",
        "final_utterance": "Show the first names and last names of all the guests that have apartment bookings with status code \"Confirmed\".",
        "interaction_utterance": [
            "List all the guests' first and last names.",
            "Among all the guests, which of them have \"Provisional\" the apartment bookings?",
            "How about \"Confirmed\"?"
        ],
        "interaction_query": [
            "SELECT guest_first_name, guest_last_name FROM Guests",
            "SELECT T2.guest_first_name ,  T2.guest_last_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id  =  T2.guest_id WHERE T1.booking_status_code  =  \"Provisional\"",
            "SELECT T2.guest_first_name ,  T2.guest_last_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id  =  T2.guest_id WHERE T1.booking_status_code  =  \"Confirmed\""
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT T1.facility_code FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.bedroom_count  >  4",
        "final_utterance": "Show the facility codes of apartments with more than 4 bedrooms.",
        "interaction_utterance": [
            "List all the unique facility codes.",
            "List all the apartments and the facility codes of them.",
            "How many of them have more than 3 bedrooms?",
            "Show the facility codes of those where there are more than 4 bedrooms."
        ],
        "interaction_query": [
            "SELECT distinct facility_code FROM Apartment_Facilities",
            "SELECT * FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id",
            "SELECT count(*) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.bedroom_count  >  3",
            "SELECT T1.facility_code FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.bedroom_count  >  4"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT sum(T2.room_count) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.facility_code  =  \"Gym\"",
        "final_utterance": "Show the total number of rooms of all apartments with facility code \"Gym\".",
        "interaction_utterance": [
            "List all unique facility codes.",
            "List all the apartments and the facility codes of them.",
            "Calculate how many rooms are there for those apartments with facility code \"Gym\"."
        ],
        "interaction_query": [
            "SELECT distinct facility_code FROM Apartment_Facilities",
            "SELECT * FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id",
            "SELECT sum(T2.room_count) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.facility_code  =  \"Gym\""
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT sum(T2.room_count) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id  =  T2.building_id WHERE T1.building_short_name  =  \"Columbus Square\"",
        "final_utterance": "Show the total number of rooms of the apartments in the building with short name \"Columbus Square\".",
        "interaction_utterance": [
            "What is the minimum number of rooms for the apartments?",
            "List all the short names of each building.",
            "For each short name, show the room count.",
            "Only keep the result of \"Columbus Square\"."
        ],
        "interaction_query": [
            "SELECT min(room_count) FROM Apartments",
            "SELECT building_short_name FROM Apartment_Buildings",
            "SELECT T1.building_short_name, T2.room_count FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id  =  T2.building_id",
            "SELECT sum(T2.room_count) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id  =  T2.building_id WHERE T1.building_short_name  =  \"Columbus Square\""
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT T1.building_address FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id  =  T2.building_id WHERE T2.bathroom_count  >  2",
        "final_utterance": "Show the addresses of the buildings that have apartments with more than 2 bathrooms.",
        "interaction_utterance": [
            "List all the addresses of the buildings.",
            "Show the building address for each apartment id.",
            "Only show the addresses of the buildings that have apartments with more than 3 bathrooms.",
            "How about more than 2?"
        ],
        "interaction_query": [
            "SELECT building_address FROM Apartment_Buildings",
            "SELECT T1.building_address, T2.apt_id FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id  =  T2.building_id",
            "SELECT T1.building_address FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id  =  T2.building_id WHERE T2.bathroom_count  >  3",
            "SELECT T1.building_address FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id  =  T2.building_id WHERE T2.bathroom_count  >  2"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT T2.apt_type_code ,  T2.apt_number FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id  =  T2.building_id WHERE T1.building_manager  =  \"Kyle\"",
        "final_utterance": "Show the apartment type codes and apartment numbers in the buildings managed by \"Kyle\".",
        "interaction_utterance": [
            "For each apartment booking, show the start date, and end date.",
            "Also show the type code with each record.",
            "What the apartment type codes and apartment numbers in the buildings managed by \"Kyle\"?"
        ],
        "interaction_query": [
            "SELECT booking_start_date ,  booking_start_date FROM Apartment_Bookings",
            "SELECT T2.apt_type_code ,  T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id",
            "SELECT T2.apt_type_code ,  T2.apt_number FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id  =  T2.building_id WHERE T1.building_manager  =  \"Kyle\""
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT \tbooking_status_code ,  COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code",
        "final_utterance": "Show the booking status code and the corresponding number of bookings.",
        "interaction_utterance": [
            "List all the unique booking status codes.",
            "How many apartments are there for each one?"
        ],
        "interaction_query": [
            "SELECT \tdistinct booking_status_code FROM Apartment_Bookings",
            "SELECT \tbooking_status_code ,  COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT apt_number FROM Apartments ORDER BY room_count ASC",
        "final_utterance": "Return all the apartment numbers sorted by the room count in ascending order.",
        "interaction_utterance": [
            "List all the apartment numbers.",
            "Order those results by number of bedrooms in descending order.",
            "Order them by room count in descending order.",
            "What about in ascending order?"
        ],
        "interaction_query": [
            "SELECT apt_number FROM Apartments",
            "SELECT apt_number FROM Apartments ORDER BY bedroom_count DESC",
            "SELECT apt_number FROM Apartments ORDER BY room_count ASC",
            "SELECT apt_number FROM Apartments ORDER BY room_count ASC"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT apt_number FROM Apartments ORDER BY bedroom_count DESC LIMIT 1",
        "final_utterance": "Return the apartment number with the largest number of bedrooms.",
        "interaction_utterance": [
            "List all the apartment numbers.",
            "Order them by the number of bedrooms in descending order.",
            "Which ones are top 4?",
            "What about the top 1?"
        ],
        "interaction_query": [
            "SELECT apt_number FROM Apartments",
            "SELECT apt_number FROM Apartments ORDER BY bedroom_count DESC",
            "SELECT apt_number FROM Apartments ORDER BY bedroom_count DESC LIMIT 4",
            "SELECT apt_number FROM Apartments ORDER BY bedroom_count DESC LIMIT 1"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT apt_type_code ,  COUNT(*) FROM Apartments GROUP BY apt_type_code ORDER BY COUNT(*) ASC",
        "final_utterance": "Show the apartment type codes and the corresponding number of apartments sorted by the number of apartments in ascending order.",
        "interaction_utterance": [
            "List all the apartment type codes with the counts of apartments.",
            "Order those results by the number of apartments in ascending order."
        ],
        "interaction_query": [
            "SELECT apt_type_code, count(*) FROM Apartments GROUP BY apt_type_code",
            "SELECT apt_type_code ,  COUNT(*) FROM Apartments GROUP BY apt_type_code ORDER BY COUNT(*) ASC"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY avg(room_count) DESC LIMIT 3",
        "final_utterance": "Show the top 3 apartment type codes sorted by the average number of rooms in descending order.",
        "interaction_utterance": [
            "List all the apartment type codes with the counts of apartments.",
            "Order the apartments by the average number of rooms in descending order.",
            "From those results, only keep the top 5.",
            "What about top 3?",
            "What are the apartment type codes from those results?"
        ],
        "interaction_query": [
            "SELECT apt_type_code, count(*) FROM Apartments GROUP BY apt_type_code",
            "SELECT * FROM Apartments GROUP BY apt_type_code ORDER BY avg(room_count) DESC",
            "SELECT * FROM Apartments GROUP BY apt_type_code ORDER BY avg(room_count) DESC LIMIT 5",
            "SELECT * FROM Apartments GROUP BY apt_type_code ORDER BY avg(room_count) DESC LIMIT 3",
            "SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY avg(room_count) DESC LIMIT 3"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT apt_type_code ,  bathroom_count ,  bedroom_count FROM Apartments GROUP BY apt_type_code ORDER BY sum(room_count) DESC LIMIT 1",
        "final_utterance": "Show the apartment type code that has the largest number of total rooms, together with the number of bathrooms and number of bedrooms.",
        "interaction_utterance": [
            "What are all the information about the apartments.",
            "Order those records by the number of total rooms.",
            "Which is the apartment type code that has the largest number of total rooms?",
            "Order the apartment type code by the number of total rooms.",
            "Add the number of bathrooms and number of bedrooms to the results."
        ],
        "interaction_query": [
            "SELECT * FROM Apartments",
            "SELECT * FROM Apartments ORDER BY room_count",
            "SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY sum(room_count) DESC LIMIT 1",
            "SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY sum(room_count) DESC",
            "SELECT apt_type_code ,  bathroom_count ,  bedroom_count FROM Apartments GROUP BY apt_type_code ORDER BY sum(room_count) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Show the most common apartment type code.",
        "interaction_utterance": [
            "How many unique apartment type codes are there?",
            "Show the number of apartments for each code.",
            "Which are the most two common apartment type codes?",
            "How about the top 1?"
        ],
        "interaction_query": [
            "SELECT count(distinct apt_type_code) FROM Apartments",
            "SELECT apt_type_code, count(*) FROM Apartments GROUP BY apt_type_code",
            "SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 2",
            "SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT apt_type_code FROM Apartments WHERE bathroom_count  >  1 GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Show the most common apartment type code among apartments with more than 1 bathroom.",
        "interaction_utterance": [
            "How many unique apartment type codes are there?",
            "What is the minimum room count for the departments?",
            "What is the minimum bathroom count for the departments?",
            "How many apartments have more than 2 bathrooms?",
            "How about more than 1?",
            "Among those apartments, which apartment type is the most popular one?"
        ],
        "interaction_query": [
            "SELECT count(distinct apt_type_code) FROM Apartments",
            "SELECT min(room_count) FROM Apartments",
            "SELECT min(bathroom_count) FROM Apartments",
            "SELECT count(*) FROM Apartments WHERE bathroom_count  >  2",
            "SELECT count(*) FROM Apartments WHERE bathroom_count  >  1",
            "SELECT apt_type_code FROM Apartments WHERE bathroom_count  >  1 GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT apt_type_code ,  max(room_count) ,  min(room_count) FROM Apartments GROUP BY apt_type_code",
        "final_utterance": "Show each apartment type code, and the maximum and minimum number of rooms for each type.",
        "interaction_utterance": [
            "How many unique apartment type codes are there?",
            "What is the minimum room count for the departments?",
            "List the apartment type code and the maximum and minimum number of rooms for each one."
        ],
        "interaction_query": [
            "SELECT count(distinct apt_type_code) FROM Apartments",
            "SELECT min(room_count) FROM Apartments",
            "SELECT apt_type_code ,  max(room_count) ,  min(room_count) FROM Apartments GROUP BY apt_type_code"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT gender_code ,  COUNT(*) FROM Guests GROUP BY gender_code ORDER BY COUNT(*) DESC",
        "final_utterance": "Show each gender code and the corresponding count of guests sorted by the count in descending order.",
        "interaction_utterance": [
            "Show all the guests information.",
            "How many genders are there in total?",
            "Has \"Rebeca\" ever visited, show the related information.",
            "Count how many guests for each gender, and list them in descending order."
        ],
        "interaction_query": [
            "SELECT * FROM Guests",
            "SELECT count(distinct gender_code) FROM Guests",
            "SELECT * FROM Guests where guest_first_name = \"Rebeca\"",
            "SELECT gender_code ,  COUNT(*) FROM Guests GROUP BY gender_code ORDER BY COUNT(*) DESC"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT count(*) FROM Apartments WHERE apt_id NOT IN (SELECT apt_id FROM Apartment_Facilities)",
        "final_utterance": "How many apartments do not have any facility?",
        "interaction_utterance": [
            "Show all the information about the facilities.",
            "How many records are there?",
            "Which apartments have no facility, show ids?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM Apartment_Facilities",
            "SELECT count(*) FROM Apartment_Facilities",
            "SELECT apt_id FROM Apartments WHERE apt_id NOT IN (SELECT apt_id FROM Apartment_Facilities)",
            "SELECT count(*) FROM Apartments WHERE apt_id NOT IN (SELECT apt_id FROM Apartment_Facilities)"
        ]
    },
    {
        "db_id": "apartment_rentals",
        "final_query": "SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  \"Confirmed\" INTERSECT SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  \"Provisional\"",
        "final_utterance": "Show the apartment numbers of apartments with bookings that have status code both \"Provisional\" and \"Confirmed\"",
        "interaction_utterance": [
            "How many apartments are there?",
            "What are the status codes?",
            "How many apartments have the status code to be \"Confirmed\"?",
            "What about that of \"Provisional\" or \"Confirmed\"?"
        ],
        "interaction_query": [
            "SELECT count(apt_number) FROM Apartments",
            "SELECT booking_status_code FROM Apartment_Bookings",
            "SELECT count(T2.apt_number) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  \"Confirmed\"",
            "SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  \"Confirmed\" INTERSECT SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  \"Provisional\""
        ]
    },
    {
        "db_id": "match_season",
        "final_query": "SELECT Official_native_language FROM country WHERE Official_native_language LIKE \"%English%\"",
        "final_utterance": "Show all official native languages that contain the word \"English\".",
        "interaction_utterance": [
            "List all the country names and their languages.",
            "How many official languages that contain the word \"English\"?",
            "Which countries are they?"
        ],
        "interaction_query": [
            "SELECT Country_name, Official_native_language FROM country",
            "SELECT count(*) FROM country WHERE Official_native_language LIKE \"%English%\"",
            "SELECT Official_native_language FROM country WHERE Official_native_language LIKE \"%English%\""
        ]
    },
    {
        "db_id": "match_season",
        "final_query": "SELECT DISTINCT POSITION FROM match_season WHERE College  =  \"UCLA\" OR College  =  \"Duke\"",
        "final_utterance": "Show the distinct position of players from college UCLA or Duke.",
        "interaction_utterance": [
            "Show all the information about the match season.",
            "List the positions.",
            "How many distinct positions are there?",
            "What are the distinct position of players from college Virginia?",
            "What about UCLA or Duke?"
        ],
        "interaction_query": [
            "SELECT * FROM match_season",
            "SELECT position FROM match_season",
            "SELECT count(distinct position) FROM match_season",
            "SELECT DISTINCT POSITION FROM match_season WHERE College  =  \"Virginia\"",
            "SELECT DISTINCT POSITION FROM match_season WHERE College  =  \"UCLA\" OR College  =  \"Duke\""
        ]
    },
    {
        "db_id": "match_season",
        "final_query": "SELECT T2.Player FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T1.Country_name  =  \"Indonesia\"",
        "final_utterance": "Which players are from Indonesia?",
        "interaction_utterance": [
            "Show the match season and the corresponding country.",
            "How many distinct countries in total?",
            "List the player names who are from Ireland.",
            "How about Indonesia?"
        ],
        "interaction_query": [
            "SELECT  T2.season, T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country",
            "SELECT  count(distinct T1.Country_name) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country",
            "SELECT T2.Player FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T1.Country_name  =  \"Ireland\"",
            "SELECT T2.Player FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T1.Country_name  =  \"Indonesia\""
        ]
    },
    {
        "db_id": "match_season",
        "final_query": "SELECT DISTINCT T2.Position FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T1.Capital  =  \"Dublin\"",
        "final_utterance": "What are the distinct positions of the players from a country whose capital is Dublin?",
        "interaction_utterance": [
            "Show the country whose capital is Baghdad.",
            "What about Dublin?",
            "List all the positions corresponding to that country.",
            "What about the distinct positions?"
        ],
        "interaction_query": [
            "select country_name from country where capital = 'Baghdad'",
            "select country_name from country where capital = 'Dublin'",
            "SELECT T2.Position FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T1.Capital  =  \"Dublin\"",
            "SELECT DISTINCT T2.Position FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T1.Capital  =  \"Dublin\""
        ]
    },
    {
        "db_id": "match_season",
        "final_query": "SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T2.College  =  \"Maryland\" OR T2.College  =  \"Duke\"",
        "final_utterance": "What are the official languages of the countries of players from Maryland or Duke college?",
        "interaction_utterance": [
            "What are the distinct position of players from college Furman?",
            "What about the players who come from college of Maryland or Duke?",
            "What are the official languages of them?"
        ],
        "interaction_query": [
            "SELECT DISTINCT POSITION FROM match_season WHERE College  =  \"Furman\"",
            "SELECT player FROM match_season WHERE College  =  \"Maryland\" OR College  =  \"Duke\"",
            "SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T2.College  =  \"Maryland\" OR T2.College  =  \"Duke\""
        ]
    },
    {
        "db_id": "match_season",
        "final_query": "SELECT count(DISTINCT T1.Official_native_language) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T2.Position  =  \"Defender\"",
        "final_utterance": "How many distinct official languages are there among countries of players whose positions are defenders.",
        "interaction_utterance": [
            "List the players and their country names.",
            "Which ones have the position of Forward?",
            "What about the official languages of them?",
            "How many official languages in total for the defenders?"
        ],
        "interaction_query": [
            "SELECT T2.player,T1.country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T2.Position  =  \"Defender\"",
            "SELECT T2.player,T1.country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T2.Position  =  \"Defender\" WHERE T2.Position  =  \"Forward\"",
            "SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T2.Position  =  \"Defender\"",
            "SELECT count(DISTINCT T1.Official_native_language) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T2.Position  =  \"Defender\""
        ]
    },
    {
        "db_id": "match_season",
        "final_query": "SELECT T1.Position FROM match_season AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id WHERE T2.Name  =  \"Ryley Goldner\"",
        "final_utterance": "Show the positions of the players from the team with name \"Ryley Goldner\".",
        "interaction_utterance": [
            "List the player, position and the corresponding team for each player.",
            "Which ones are from the team 'Evalyn Feil', show the positions only?",
            "What about the team name \"Ryley Goldner\"?"
        ],
        "interaction_query": [
            "SELECT T1.player,T1.Position, T2.name FROM match_season AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id",
            "SELECT T1.Position FROM match_season AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id where t2.name = 'Evalyn Feil'",
            "SELECT T1.Position FROM match_season AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id WHERE T2.Name  =  \"Ryley Goldner\""
        ]
    },
    {
        "db_id": "match_season",
        "final_query": "SELECT count(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id WHERE T2.Name  =  \"Columbus Crew\"",
        "final_utterance": "How many distinct colleges are associated with players from the team with name \"Columbus Crew\".",
        "interaction_utterance": [
            "List the college and the corresponding team name.",
            "How many unique colleges are there for team 'Miami Fusion'?",
            "What about the team \"Columbus Crew\"?"
        ],
        "interaction_query": [
            "SELECT college,name FROM match_season AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id",
            "SELECT count(DISTINCT College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id WHERE T2.Name  =  'Miami Fusion'",
            "SELECT count(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id WHERE T2.Name  =  \"Columbus Crew\""
        ]
    },
    {
        "db_id": "match_season",
        "final_query": "SELECT T1.Player , T1.Years_Played FROM player AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id WHERE T2.Name  =  \"Columbus Crew\"",
        "final_utterance": "Show the players and years played for players from team \"Columbus Crew\".",
        "interaction_utterance": [
            "For each player, show the name and the team.",
            "What about adding the corresponding team name for each record?",
            "What are the players and years played for those who are from team \"Brown Erdman\"?",
            "What about that of \"Columbus Crew\"?"
        ],
        "interaction_query": [
            "SELECT player, years_played FROM player",
            "SELECT T1.player, T1.years_played,T2.name FROM player AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id WHERE T2.Name  =  \"Columbus Crew\"",
            "SELECT T1.Player , T1.Years_Played FROM player AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id WHERE T2.Name  =  \"Brown Erdman\"",
            "SELECT T1.Player , T1.Years_Played FROM player AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id WHERE T2.Name  =  \"Columbus Crew\""
        ]
    },
    {
        "db_id": "match_season",
        "final_query": "SELECT Country_name ,  COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country GROUP BY T1.Country_name",
        "final_utterance": "Show the country names and the corresponding number of players.",
        "interaction_utterance": [
            "List all the country names.",
            "For all players, show their country names.",
            "For each country, how many players are there?"
        ],
        "interaction_query": [
            "SELECT Country_name from country",
            "SELECT T2.player, Country_name  FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country GROUP BY T1.Country_name",
            "SELECT Country_name ,  COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country GROUP BY T1.Country_name"
        ]
    },
    {
        "db_id": "match_season",
        "final_query": "SELECT POSITION FROM match_season GROUP BY POSITION ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Show the most common position of players in match seasons.",
        "interaction_utterance": [
            "What are the number of the positions for each type?",
            "Among those, which one is the list popular one?",
            "How about the most popular one?"
        ],
        "interaction_query": [
            "SELECT POSITION, count(*) FROM match_season GROUP BY POSITION",
            "SELECT POSITION FROM match_season GROUP BY POSITION order by count(*) ASC limit 1",
            "SELECT POSITION FROM match_season GROUP BY POSITION ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "match_season",
        "final_query": "SELECT College FROM match_season GROUP BY College ORDER BY count(*) DESC LIMIT 3",
        "final_utterance": "Show the top 3 most common colleges of players in match seasons.",
        "interaction_utterance": [
            "What are the number of the players in the match season for each college?",
            "Which ones have the least players, keep the least 5 colleges.",
            "What about the top 3?"
        ],
        "interaction_query": [
            "SELECT College, count(*) FROM match_season GROUP BY College",
            "SELECT College FROM match_season GROUP BY College order by count(*) asc LIMIT 5",
            "SELECT College FROM match_season GROUP BY College ORDER BY count(*) DESC LIMIT 3"
        ]
    },
    {
        "db_id": "match_season",
        "final_query": "SELECT College FROM match_season GROUP BY College HAVING count(*)  >=  2",
        "final_utterance": "Show the name of colleges that have at least two players.",
        "interaction_utterance": [
            "How many unique colleges are there in the match season?",
            "Which countries have only one player?",
            "What about at least two?"
        ],
        "interaction_query": [
            "SELECT count(distinct College) FROM match_season",
            "SELECT College FROM match_season GROUP BY College HAVING count(*) = 1",
            "SELECT College FROM match_season GROUP BY College HAVING count(*)  >=  2"
        ]
    },
    {
        "db_id": "match_season",
        "final_query": "SELECT College FROM match_season GROUP BY College HAVING count(*)  >=  2 ORDER BY College DESC",
        "final_utterance": "Show the name of colleges that have at least two players in descending alphabetical order.",
        "interaction_utterance": [
            "How many distinct colleges are there in the match season?",
            "Which countries have only one player?",
            "What about at least two?",
            "Show the result in descending alphabetical order."
        ],
        "interaction_query": [
            "SELECT count(distinct College) FROM match_season",
            "SELECT College FROM match_season GROUP BY College HAVING count(*) = 1",
            "SELECT College FROM match_season GROUP BY College HAVING count(*)  >=  2",
            "SELECT College FROM match_season GROUP BY College HAVING count(*)  >=  2 ORDER BY College DESC"
        ]
    },
    {
        "db_id": "match_season",
        "final_query": "SELECT Name FROM team WHERE Team_id NOT IN (SELECT Team FROM match_season)",
        "final_utterance": "What are the names of teams that do no have match season record?",
        "interaction_utterance": [
            "Show the team names.",
            "Which of them have at least one record in the match season?",
            "Which are not?"
        ],
        "interaction_query": [
            "SELECT Name FROM team",
            "SELECT Name FROM team WHERE Team_id IN (SELECT Team FROM match_season)",
            "SELECT Name FROM team WHERE Team_id NOT IN (SELECT Team FROM match_season)"
        ]
    },
    {
        "db_id": "match_season",
        "final_query": "SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T2.Position  =  \"Forward\" INTERSECT SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T2.Position  =  \"Defender\"",
        "final_utterance": "What are the names of countries that have both players with position forward and players with position defender?",
        "interaction_utterance": [
            "List the positions from all seasons.",
            "How many are there for each position?",
            "Show the positions and the corresponding country.",
            "Keep the country names that have both forward and defender as position."
        ],
        "interaction_query": [
            "SELECT position FROM match_season",
            "SELECT position, count(*) FROM match_season group by position",
            "SELECT T2.position,T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country",
            "SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T2.Position  =  \"Forward\" INTERSECT SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T2.Position  =  \"Defender\""
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT song_name ,  releasedate FROM song ORDER BY releasedate DESC LIMIT 1",
        "final_utterance": "What is the name of the song that was released in the most recent year?",
        "interaction_utterance": [
            "Show all the song names and their release date.",
            "How many different releasing dates are there?",
            "From those songs, which ones are released in the most recent year?"
        ],
        "interaction_query": [
            "SELECT song_name ,  releasedate FROM song",
            "SELECT COUNT(DISTINCT releasedate) FROM song",
            "SELECT song_name ,  releasedate FROM song ORDER BY releasedate DESC LIMIT 1"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT f_id FROM files ORDER BY duration DESC LIMIT 1",
        "final_utterance": "What is the id of the longest song?",
        "interaction_utterance": [
            "Order the songs by their file size, from large to small.",
            "What about ordering by duration?",
            "From those results, which one is the top 1, only keep the id of it."
        ],
        "interaction_query": [
            "SELECT * FROM files ORDER BY file_size DESC",
            "SELECT * FROM files ORDER BY duration DESC",
            "SELECT f_id FROM files ORDER BY duration DESC LIMIT 1"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT DISTINCT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.rating  >  9",
        "final_utterance": "List the name and country of origin for all singers who have produced songs with rating above 9.",
        "interaction_utterance": [
            "What is the average rating for all the songs?",
            "How many of the songs which rating is above 9?",
            "What are singer names and their countries of these songs?"
        ],
        "interaction_query": [
            "SELECT avg(rating) FROM song",
            "SELECT count(*) FROM song where rating > 9",
            "SELECT DISTINCT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.rating  >  9"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT DISTINCT T1.file_size ,  T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T2.resolution  <  800",
        "final_utterance": "List the file size and format for all songs that have resolution lower than 800.",
        "interaction_utterance": [
            "List all the song names by the resolution in ascending order.",
            "How many songs have resolution higher than 800?",
            "What about lower?",
            "What are the file size and format of them?"
        ],
        "interaction_query": [
            "SELECT song_name FROM song order by resolution desc",
            "SELECT count(song_name) FROM song where resolution > 800",
            "SELECT count(song_name) FROM song where resolution < 800",
            "SELECT DISTINCT T1.file_size ,  T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T2.resolution  <  800"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id  =  T2.f_id ORDER BY T2.duration LIMIT 1",
        "final_utterance": "What is the name of the artist who produced the shortest song?",
        "interaction_utterance": [
            "Which song ids are the top three long ones?",
            "What about the shortest one?",
            "What is the artist name of it?"
        ],
        "interaction_query": [
            "SELECT f_id FROM files order by duration desc limit 3",
            "SELECT f_id FROM files order by duration asc limit 1",
            "SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id  =  T2.f_id ORDER BY T2.duration LIMIT 1"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name ORDER BY T2.rating DESC LIMIT 3",
        "final_utterance": "What are the names and countries of origin for the artists who produced the top three highly rated songs.",
        "interaction_utterance": [
            "What is the maximum rating for all the songs?",
            "Which songs are the top 2 rating ones?",
            "What about top 3?",
            "What are the names and countries of origin for the artists of these songs?"
        ],
        "interaction_query": [
            "SELECT max(rating) FROM song",
            "SELECT * FROM song order by rating desc limit 2",
            "SELECT * FROM song order by rating desc limit 3",
            "SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name ORDER BY T2.rating DESC LIMIT 3"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT count(*) FROM files WHERE duration LIKE \"4:%\"",
        "final_utterance": "How many songs have 4 minute duration?",
        "interaction_utterance": [
            "List all the durations of the songs.",
            "How many are there if the duration is only 2 mins to 3 mins?",
            "What about 4 minutes long?"
        ],
        "interaction_query": [
            "SELECT duration FROM files",
            "SELECT count(*) FROM files WHERE duration LIKE \"2:%\"",
            "SELECT count(*) FROM files WHERE duration LIKE \"4:%\""
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT avg(T2.rating) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T1.gender  =  \"Female\"",
        "final_utterance": "What is the average rating of songs produced by female artists?",
        "interaction_utterance": [
            "How many songs are produced by female artists?",
            "What is the maximum rating of these songs?",
            "How about average rating?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T1.gender  =  \"Female\"",
            "SELECT max(T2.rating) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T1.gender  =  \"Female\"",
            "SELECT avg(T2.rating) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T1.gender  =  \"Female\""
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT formats FROM files GROUP BY formats ORDER BY COUNT (*) DESC LIMIT 1",
        "final_utterance": "What is the most popular file format?",
        "interaction_utterance": [
            "For each format, how many files are there?",
            "So which format is the most common one?"
        ],
        "interaction_query": [
            "SELECT formats,count(*) FROM files group by formats",
            "SELECT formats FROM files GROUP BY formats ORDER BY COUNT (*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT artist_name FROM artist WHERE country  =  \"UK\" INTERSECT SELECT artist_name FROM song WHERE languages  =  \"english\"",
        "final_utterance": "Find the names of the artists who are from UK and have produced English songs.",
        "interaction_utterance": [
            "How many distinct countries are there?",
            "How many artists come from India?",
            "Which ones who come from UK and have songs in English?"
        ],
        "interaction_query": [
            "SELECT COUNT(DISTINCT country) FROM artist",
            "SELECT count(*) FROM artist where country = 'India'",
            "SELECT artist_name FROM artist WHERE country  =  \"UK\" INTERSECT SELECT artist_name FROM song WHERE languages  =  \"english\""
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT f_id FROM files WHERE formats  =  \"mp4\" INTERSECT SELECT f_id FROM song WHERE resolution  <  1000",
        "final_utterance": "Find the id of songs that are available in mp4 format and have resolution lower than 1000.",
        "interaction_utterance": [
            "List all the durations of the songs.",
            "How many are there if the duration is only 3 mins to 4 mins?",
            "What about the ones which have the format to be mp4?",
            "Show the ids that the song is in mp4 and resolution is lower than 1000."
        ],
        "interaction_query": [
            "SELECT duration FROM files",
            "SELECT count(*) FROM files WHERE duration LIKE \"3:%\"",
            "SELECT count(*) FROM files WHERE formats  =  \"mp4\"",
            "SELECT f_id FROM files WHERE formats  =  \"mp4\" INTERSECT SELECT f_id FROM song WHERE resolution  <  1000"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T1.gender  =  \"Female\" AND T2.languages  =  \"bangla\"",
        "final_utterance": "What is the country of origin of the artist who is female and produced a song in Bangla?",
        "interaction_utterance": [
            "How many songs are produced by male artists?",
            "How about female artisits?",
            "Among those songs, which ones are in Bangla?",
            "What are the country of origin for the artists of these songs?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T1.gender  =  \"Male\"",
            "SELECT count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T1.gender  =  \"Female\"",
            "SELECT count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T1.gender  =  \"Female\" AND languages  =  \"bangla\"",
            "SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T1.gender  =  \"Female\" AND T2.languages  =  \"bangla\""
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT avg(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.formats  =  \"mp3\" AND T2.resolution   <  800",
        "final_utterance": "What is the average duration of songs that have mp3 format and resolution below 800?",
        "interaction_utterance": [
            "List all the song names by the resolution in ascending order.",
            "How many songs have resolution higher than 900?",
            "What about lower than 800?",
            "Among those results, how may have mp3 format?",
            "What is the average duration of those songs?"
        ],
        "interaction_query": [
            "SELECT song_name FROM song order by resolution desc",
            "SELECT count(song_name) FROM song where resolution > 900",
            "SELECT count(song_name) FROM song where resolution < 800",
            "SELECT count(*) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.formats  =  \"mp3\" AND T2.resolution   <  800",
            "SELECT avg(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.formats  =  \"mp3\" AND T2.resolution   <  800"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT T1.gender ,  T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name ORDER BY T2.resolution LIMIT 1",
        "final_utterance": "Return the gender and name of artist who produced the song with the lowest resolution.",
        "interaction_utterance": [
            "List all the song names and the resolutions in descending order of resolution.",
            "Which one has the highest resolution?",
            "What about the lowest one?",
            "What is the gender and name of the corresponding artist of that song?"
        ],
        "interaction_query": [
            "SELECT song_name, resolution FROM song order by resolution desc",
            "SELECT song_name, resolution FROM song order by resolution desc limit 1",
            "SELECT song_name, resolution FROM song order by resolution asc limit 1",
            "SELECT T1.gender ,  T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name ORDER BY T2.resolution LIMIT 1"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT DISTINCT song_name FROM song WHERE resolution  >  (SELECT min(resolution) FROM song WHERE languages  =  \"english\")",
        "final_utterance": "Find the distinct names of all songs that have a higher resolution than some songs in English.",
        "interaction_utterance": [
            "List all the song names and the resolutions in ascending order of resolution.",
            "Which ones are the top two of the resolution?",
            "What is the average resolution for the English songs?",
            "Which songs have a higher resolution than the English ones?",
            "What about the distinct song names of them?"
        ],
        "interaction_query": [
            "SELECT song_name, resolution FROM song order by resolution asc",
            "SELECT song_name, resolution FROM song order by resolution desc limit 2",
            "SELECT avg(resolution) FROM song WHERE languages  =  \"english\"",
            "SELECT song_name FROM song WHERE resolution  >  (SELECT min(resolution) FROM song WHERE languages  =  \"english\")",
            "SELECT DISTINCT song_name FROM song WHERE resolution  >  (SELECT min(resolution) FROM song WHERE languages  =  \"english\")"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT song_name FROM song WHERE rating  <  (SELECT max(rating) FROM song WHERE genre_is  =  \"blues\")",
        "final_utterance": "What are the names of all songs that have a lower rating than some song of blues genre?",
        "interaction_utterance": [
            "List all the song names and the ratings.",
            "What is the maximum rating?",
            "Which songs have a lower rating than the average rating?",
            "What about lower rating than that of blues genre ones?"
        ],
        "interaction_query": [
            "SELECT song_name, rating FROM song",
            "SELECT max(rating) FROM song",
            "SELECT song_name FROM song WHERE rating  < (SELECT avg(rating) FROM song)",
            "SELECT song_name FROM song WHERE rating  <  (SELECT max(rating) FROM song WHERE genre_is  =  \"blues\")"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.song_name LIKE \"%love%\"",
        "final_utterance": "What is the name and country of origin of the artist who released a song that has \"love\" in its title?",
        "interaction_utterance": [
            "Show all the names of the song.",
            "How many of them contain the word 'robe'?",
            "How about the word 'love'?",
            "What are the name and country of origin for the artists of these songs?"
        ],
        "interaction_query": [
            "SELECT song_name FROM song",
            "SELECT count(*) FROM song where song_name LIKE \"%robe%\"",
            "SELECT count(*) FROM song where song_name LIKE \"%love%\"",
            "SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.song_name LIKE \"%love%\""
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT T1.artist_name ,  T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.releasedate LIKE \"%Mar%\"",
        "final_utterance": "List the name and gender for all artists who released songs in March.",
        "interaction_utterance": [
            "How many songs are released in January?",
            "Who are the artists of these songs, list the name and gender?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM song where releasedate LIKE \"%JAN%\"",
            "SELECT T1.artist_name ,  T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.releasedate LIKE \"%Mar%\""
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT f_id FROM files WHERE formats  =  \"mp4\" UNION SELECT f_id FROM song WHERE resolution  >  720",
        "final_utterance": "What are the ids of songs that are available in either mp4 format or have resolution above 720?",
        "interaction_utterance": [
            "How many songs have resolution higher than 1000?",
            "What about higher than 720?",
            "Among those results, how may have mp4 format?",
            "List the ids of these songs.",
            "What about the ids of the songs that in mp4 format or resolution above 720?"
        ],
        "interaction_query": [
            "SELECT count(song_name) FROM song where resolution > 1000",
            "SELECT count(song_name) FROM song where resolution > 720",
            "SELECT count(*) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.formats  =  \"mp4\" AND T2.resolution > 720",
            "SELECT f_id FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.formats  =  \"mp4\" AND T2.resolution > 720",
            "SELECT f_id FROM files WHERE formats  =  \"mp4\" UNION SELECT f_id FROM song WHERE resolution  >  720"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.duration LIKE \"4:%\" UNION SELECT song_name FROM song WHERE languages  =  \"english\"",
        "final_utterance": "List the names of all songs that have 4 minute duration or are in English.",
        "interaction_utterance": [
            "List all the durations of the songs.",
            "How many are there if the duration is 4 mins?",
            "What are the names of those songs?",
            "What about the song names which has 4 minute duration or is in English?"
        ],
        "interaction_query": [
            "SELECT duration FROM files",
            "SELECT count(*) FROM files WHERE duration LIKE \"4:%\"",
            "SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.duration LIKE \"4:%\"",
            "SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.duration LIKE \"4:%\" UNION SELECT song_name FROM song WHERE languages  =  \"english\""
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT languages FROM song GROUP BY languages ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the language used most often in the songs?",
        "interaction_utterance": [
            "How many distinct languages are there for the songs?",
            "Among those languages, which one is the most popular one?"
        ],
        "interaction_query": [
            "SELECT COUNT(DISTINCT languages) FROM song",
            "SELECT languages FROM song GROUP BY languages ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT artist_name FROM song WHERE resolution  >  500 GROUP BY languages ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the language that was used most often in songs with resolution above 500?",
        "interaction_utterance": [
            "List each language and how many songs for each?",
            "Which one is the most popular language?",
            "What about that for the songs which resolution are above 1000?",
            "How about resolution are above 500?"
        ],
        "interaction_query": [
            "SELECT languages, count(*) FROM song GROUP BY languages",
            "SELECT languages, count(*) FROM song GROUP BY languages DESC limit 1",
            "SELECT artist_name FROM song WHERE resolution  >  1000 GROUP BY languages ORDER BY count(*) DESC LIMIT 1",
            "SELECT artist_name FROM song WHERE resolution  >  500 GROUP BY languages ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT artist_name FROM artist WHERE country  =  \"UK\" AND gender  =  \"Male\"",
        "final_utterance": "What are the names of artists who are Male and are from UK?",
        "interaction_utterance": [
            "How many artists come from India?",
            "How about UK?",
            "Among those artists, who are male?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM artist WHERE country  =  \"India\"",
            "SELECT count(*) FROM artist WHERE country  =  \"UK\"",
            "SELECT artist_name FROM artist WHERE country  =  \"UK\" AND gender  =  \"Male\""
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT song_name FROM song WHERE genre_is  =  \"modern\" OR languages  =  \"english\"",
        "final_utterance": "Find the names of songs whose genre is modern or language is English.",
        "interaction_utterance": [
            "Which songs have the genre to be blues?",
            "How about folk?",
            "What about the songs has genre to be modern OR the songs are in English?"
        ],
        "interaction_query": [
            "SELECT song_name FROM song WHERE genre_is  =  \"blues\"",
            "SELECT song_name FROM song WHERE genre_is  =  \"folk\"",
            "SELECT song_name FROM song WHERE genre_is  =  \"modern\" OR languages  =  \"english\""
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.formats  =  \"mp3\" INTERSECT SELECT song_name FROM song WHERE resolution  <  1000",
        "final_utterance": "Return the names of songs for which format is mp3 and resolution is below 1000.",
        "interaction_utterance": [
            "How many songs have a resolution below 900?",
            "Among those songs, which ones have mp3 format, show the file size of them.",
            "What are the names of songs which have mp3 format and the resolution is below 1000."
        ],
        "interaction_query": [
            "SELECT count(*) FROM song WHERE resolution  <  900",
            "SELECT T1.file_size FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.formats  =  \"mp3\" and T2.resolution < 900",
            "SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.formats  =  \"mp3\" INTERSECT SELECT song_name FROM song WHERE resolution  <  1000"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT artist_name FROM artist WHERE country  =  \"UK\" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  \"english\"",
        "final_utterance": "Return the names of singers who are from UK and released an English song.",
        "interaction_utterance": [
            "How many UK male artists?",
            "Which British artists have released English songs?"
        ],
        "interaction_query": [
            "SELECT artist_name FROM artist WHERE country  =  \"UK\" and gender = 'Male'",
            "SELECT artist_name FROM artist WHERE country  =  \"UK\" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  \"english\""
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT avg(rating) ,  avg(resolution) FROM song WHERE languages  =  \"bangla\"",
        "final_utterance": "What are the average rating and resolution of songs that are in Bangla?",
        "interaction_utterance": [
            "What is the maximum resolution for all the English songs?",
            "What about the average rating and resolution for songs in Bangla?"
        ],
        "interaction_query": [
            "SELECT max(resolution) FROM song WHERE languages  =  \"english\"",
            "SELECT avg(rating) ,  avg(resolution) FROM song WHERE languages  =  \"bangla\""
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT max(T2.resolution) ,  min(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.duration LIKE \"3:%\"",
        "final_utterance": "What are the maximum and minimum resolution of songs whose duration is 3 minutes?",
        "interaction_utterance": [
            "List all the durations of the songs.",
            "How many are there when the duration is only 4 mins?",
            "What about that of 3 mins?",
            "How about the maximum and minimum resolutions of these songs?"
        ],
        "interaction_query": [
            "SELECT duration FROM files",
            "SELECT count(*) FROM files WHERE duration LIKE \"4:%\"",
            "SELECT count(*) FROM files WHERE duration LIKE \"3:%\"",
            "SELECT max(T2.resolution) ,  min(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.duration LIKE \"3:%\""
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT max(T1.duration) ,  max(T2.resolution) ,  T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id GROUP BY T2.languages ORDER BY T2.languages",
        "final_utterance": "What are the maximum duration and resolution of songs grouped and ordered by languages?",
        "interaction_utterance": [
            "For each language, how many songs are there?",
            "For each language group in order, what is the average duration value of the songs in the group?",
            "How about the maximum duration and resolution?"
        ],
        "interaction_query": [
            "SELECT languages,COUNT(*) FROM song GROUP BY languages",
            "SELECT avg(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id GROUP BY T2.languages ORDER BY T2.languages",
            "SELECT max(T1.duration) ,  max(T2.resolution) ,  T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id GROUP BY T2.languages ORDER BY T2.languages"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT min(T1.duration) ,  min(T2.rating) ,  T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is",
        "final_utterance": "What are the shortest duration and lowest rating of songs grouped by genre and ordered by genre?",
        "interaction_utterance": [
            "How many genres are there in total?",
            "How many songs for each of them, show the result in the order of genre?",
            "What are the shortest duration and lowest rating for each group?"
        ],
        "interaction_query": [
            "SELECT COUNT(DISTINCT genre_is) FROM song",
            "SELECT genre_is,COUNT(*) FROM song GROUP BY genre_is",
            "SELECT min(T1.duration) ,  min(T2.rating) ,  T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT T1.artist_name ,  count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  \"english\" GROUP BY T2.artist_name HAVING count(*)  >=  1",
        "final_utterance": "Find the names and number of works of all artists who have at least one English songs.",
        "interaction_utterance": [
            "List the number of songs for each artist.",
            "How many songs does Farida has?",
            "How about Prity?",
            "What about the people who has at least an English song?"
        ],
        "interaction_query": [
            "SELECT T1.artist_name ,  count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name",
            "SELECT T1.artist_name ,  count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name having T1.artist_name = 'Farida'",
            "SELECT T1.artist_name ,  count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name having T1.artist_name = 'Prity'",
            "SELECT T1.artist_name ,  count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  \"english\" GROUP BY T2.artist_name HAVING count(*)  >=  1"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.resolution  >  900 GROUP BY T2.artist_name HAVING count(*)  >=  1",
        "final_utterance": "Find the name and country of origin for all artists who have release at least one song of resolution above 900.",
        "interaction_utterance": [
            "Which songs have a resolution to be lower than 800?",
            "List artist names and the countries of these songs?",
            "What about the artist names and countries who have at least one song of resolution above 900?"
        ],
        "interaction_query": [
            "SELECT song_name from song where resolution  <  800",
            "SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.resolution  < 800",
            "SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.resolution  >  900 GROUP BY T2.artist_name HAVING count(*)  >=  1"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT T1.artist_name ,  count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3",
        "final_utterance": "Find the names and number of works of the three artists who have produced the most songs.",
        "interaction_utterance": [
            "Order the artist names by the number of songs.",
            "How about the names and the number of songs for the top one artist?",
            "How about top three?"
        ],
        "interaction_query": [
            "SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name ORDER BY count(*)",
            "SELECT T1.artist_name ,  count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 1",
            "SELECT T1.artist_name ,  count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) LIMIT 1",
        "final_utterance": "Find the country of origin for the artist who made the least number of songs?",
        "interaction_utterance": [
            "For each artist, count how many songs.",
            "What is the country of origin for the artist who made the least number of songs?"
        ],
        "interaction_query": [
            "SELECT T1.artist_name, count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name group by T1.artist_name",
            "SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) LIMIT 1"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT song_name FROM song WHERE rating  <   (SELECT min(rating) FROM song WHERE languages  =  'english')",
        "final_utterance": "What are the names of the songs whose rating is below the rating of all songs in English?",
        "interaction_utterance": [
            "What are the minimum, maximum and average values of the ratings?",
            "Which songs have a higher rating than the average, list the song names.",
            "What about the names which rating is higher than the rating of all songs in English?",
            "How about lower?"
        ],
        "interaction_query": [
            "SELECT min(rating), max(rating), avg(rating) FROM song",
            "SELECT song_name FROM song WHERE rating  > (SELECT avg(rating) FROM song)",
            "SELECT song_name FROM song WHERE rating  >  (SELECT min(rating) FROM song WHERE languages  =  'english')",
            "SELECT song_name FROM song WHERE rating  <   (SELECT min(rating) FROM song WHERE languages  =  'english')"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT f_id FROM song WHERE resolution  >  (SELECT max(resolution) FROM song WHERE rating  <  8)",
        "final_utterance": "What is ids of the songs whose resolution is higher than the resolution of any songs with rating lower than 8?",
        "interaction_utterance": [
            "What are the minimum, maximum and average values of the ratings?",
            "Which songs have a higher rating than the average, list the song ids.",
            "What about the song ids whose resolution is higher than the resolution of any songs with rating lower than 8?"
        ],
        "interaction_query": [
            "SELECT min(rating), max(rating), avg(rating) FROM song",
            "SELECT f_id FROM song WHERE rating  > (SELECT avg(rating) FROM song)",
            "SELECT f_id FROM song WHERE resolution  >  (SELECT max(resolution) FROM song WHERE rating  <  8)"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT f_id FROM song WHERE resolution  >  (SELECT avg(resolution) FROM song WHERE genre_is  =  \"modern\")",
        "final_utterance": "What is ids of the songs whose resolution is higher than the average resolution of songs in modern genre?",
        "interaction_utterance": [
            "What are the minimum, maximum and average values of the resolution?",
            "Which songs have a higher value than the average, list the song ids.",
            "How about the ones that is higher than the average resolution value for the modern genre songs?"
        ],
        "interaction_query": [
            "SELECT min(resolution), max(resolution), avg(resolution) FROM song",
            "SELECT f_id FROM song WHERE resolution  > (SELECT avg(resolution) FROM song)",
            "SELECT f_id FROM song WHERE resolution  >  (SELECT avg(resolution) FROM song WHERE genre_is  =  \"modern\")"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  \"bangla\" GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3",
        "final_utterance": "Find the top 3 artists who have the largest number of songs works whose language is Bangla.",
        "interaction_utterance": [
            "For each artist, count how many songs.",
            "Among those, only count the Bangla songs.",
            "Which is the top one artist who has the most counts?",
            "How about top 3?"
        ],
        "interaction_query": [
            "SELECT T1.artist_name, count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name",
            "SELECT T1.artist_name, count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  \"bangla\" GROUP BY T2.artist_name",
            "SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  \"bangla\" GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 1",
            "SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  \"bangla\" GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT f_id ,  genre_is ,  artist_name FROM song WHERE languages  =   \"english\" ORDER BY rating",
        "final_utterance": "List the id, genre and artist name of English songs ordered by rating.",
        "interaction_utterance": [
            "What is the average rating of the Bangla songs?",
            "How about English songs?",
            "How many of them in total?",
            "What are the id, genre and artist name of these songs in the order of rating?"
        ],
        "interaction_query": [
            "SELECT avg(rating) FROM song WHERE languages = \"bangla\"",
            "SELECT avg(rating) FROM song WHERE languages = \"english\"",
            "SELECT count(*) FROM song WHERE languages = \"english\"",
            "SELECT f_id ,  genre_is ,  artist_name FROM song WHERE languages  =   \"english\" ORDER BY rating"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT T1.duration ,  T1.file_size ,  T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T2.genre_is  =  \"pop\" ORDER BY T2.song_name",
        "final_utterance": "List the duration, file size and format of songs whose genre is pop, ordered by title?",
        "interaction_utterance": [
            "What is the average duration of the blues songs?",
            "How about that of pop songs?",
            "What about the duration, file size and format of those songs, order the results by title?"
        ],
        "interaction_query": [
            "SELECT avg(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T2.genre_is  =  \"blues\"",
            "SELECT avg(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T2.genre_is  =  \"pop\"",
            "SELECT T1.duration ,  T1.file_size ,  T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T2.genre_is  =  \"pop\" ORDER BY T2.song_name"
        ]
    },
    {
        "db_id": "music_1",
        "final_query": "SELECT DISTINCT artist_name FROM song WHERE languages  =  \"english\" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating  >  8",
        "final_utterance": "Find the names of the artists who have produced English songs but have never received rating higher than 8.",
        "interaction_utterance": [
            "How many artists have Bangla songs?",
            "How about English?",
            "What are the names of them?",
            "Which of them have never received rating higher than 8."
        ],
        "interaction_query": [
            "SELECT count(DISTINCT artist_name) FROM song WHERE languages  = 'bangla'",
            "SELECT count(DISTINCT artist_name) FROM song WHERE languages  = 'bangla'",
            "SELECT artist_name FROM song WHERE languages  =  \"english\"",
            "SELECT DISTINCT artist_name FROM song WHERE languages  =  \"english\" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating  >  8"
        ]
    },
    {
        "db_id": "machine_repair",
        "final_query": "SELECT Name FROM technician WHERE Age  =  36 OR Age  =  37",
        "final_utterance": "Show the name of technicians aged either 36 or 37",
        "interaction_utterance": [
            "How many technicians are there?",
            "Show me their names.",
            "What about those that are either 36 or 37 years old?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM technician",
            "SELECT Name FROM technician",
            "SELECT Name FROM technician WHERE Age  =  36 OR Age  =  37"
        ]
    },
    {
        "db_id": "machine_repair",
        "final_query": "SELECT Starting_Year FROM technician ORDER BY Age DESC LIMIT 1",
        "final_utterance": "What is the starting year of the oldest technicians?",
        "interaction_utterance": [
            "How many technicians are there?",
            "Show me the name of the oldest one.",
            "What about his starting year?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM technician",
            "SELECT Name FROM technician ORDER BY Age DESC LIMIT 1",
            "SELECT Starting_Year FROM technician ORDER BY Age DESC LIMIT 1"
        ]
    },
    {
        "db_id": "machine_repair",
        "final_query": "SELECT Team FROM technician GROUP BY Team ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Please show the team that has the most number of technicians.",
        "interaction_utterance": [
            "How many technicians are there?",
            "What about in terms of teams?",
            "Show me the team with the most of them."
        ],
        "interaction_query": [
            "SELECT count(*) FROM technician",
            "SELECT Team, count(*) FROM technician GROUP BY Team",
            "SELECT Team FROM technician GROUP BY Team ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "machine_repair",
        "final_query": "SELECT Team FROM technician GROUP BY Team HAVING COUNT(*)  >=  2",
        "final_utterance": "Show the team that have at least two technicians.",
        "interaction_utterance": [
            "How many technicians are there?",
            "What about in terms of teams?",
            "Show me the teams that have at least two."
        ],
        "interaction_query": [
            "SELECT count(*) FROM technician",
            "SELECT Team, count(*) FROM technician GROUP BY Team",
            "SELECT Team FROM technician GROUP BY Team HAVING COUNT(*)  >=  2"
        ]
    },
    {
        "db_id": "machine_repair",
        "final_query": "SELECT T3.Name ,  T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id  =  T2.machine_id JOIN technician AS T3 ON T1.technician_ID  =  T3.technician_ID",
        "final_utterance": "Show names of technicians and series of machines they are assigned to repair.",
        "interaction_utterance": [
            "How many repair assignments are there in file?",
            "Show me the name of technicians assigned to those repairs.",
            "What about the series of machines they repaired?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM repair_assignment",
            "SELECT T2.Name FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID  =  T2.technician_ID",
            "SELECT T3.Name ,  T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id  =  T2.machine_id JOIN technician AS T3 ON T1.technician_ID  =  T3.technician_ID"
        ]
    },
    {
        "db_id": "machine_repair",
        "final_query": "SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id  =  T2.machine_id JOIN technician AS T3 ON T1.technician_ID  =  T3.technician_ID ORDER BY T2.quality_rank",
        "final_utterance": "Show names of technicians in ascending order of quality rank of the machine they are assigned.",
        "interaction_utterance": [
            "How many repair assignments are there in file?",
            "Show me the name of technicians assigned to those repairs.",
            "What about the series of machines they repaired?",
            "Show me those machines' quality ranks.",
            "Show them in ascending order of quality rank.",
            "Only show me the names."
        ],
        "interaction_query": [
            "SELECT count(*) FROM repair_assignment",
            "SELECT T2.Name FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID  =  T2.technician_ID",
            "SELECT T3.Name ,  T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id  =  T2.machine_id JOIN technician AS T3 ON T1.technician_ID  =  T3.technician_ID",
            "SELECT T3.Name ,  T2.Machine_series, T2.quality_rank FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id  =  T2.machine_id JOIN technician AS T3 ON T1.technician_ID  =  T3.technician_ID",
            "SELECT T3.Name ,  T2.Machine_series, T2.quality_rank FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id  =  T2.machine_id JOIN technician AS T3 ON T1.technician_ID  =  T3.technician_ID ORDER BY T2.quality_rank",
            "SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id  =  T2.machine_id JOIN technician AS T3 ON T1.technician_ID  =  T3.technician_ID ORDER BY T2.quality_rank"
        ]
    },
    {
        "db_id": "machine_repair",
        "final_query": "SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id  =  T2.machine_id JOIN technician AS T3 ON T1.technician_ID  =  T3.technician_ID WHERE T2.value_points  >  70",
        "final_utterance": "Show names of technicians who are assigned to repair machines with value point more than 70.",
        "interaction_utterance": [
            "How many repair assignments are there in file?",
            "Show me the name of technicians assigned to those repairs.",
            "What about the series of machines they repaired?",
            "Show me those with machine's value points higher than 70.",
            "Only show me the names."
        ],
        "interaction_query": [
            "SELECT count(*) FROM repair_assignment",
            "SELECT T2.Name FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID  =  T2.technician_ID",
            "SELECT T3.Name ,  T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id  =  T2.machine_id JOIN technician AS T3 ON T1.technician_ID  =  T3.technician_ID",
            "SELECT T3.Name, T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id  =  T2.machine_id JOIN technician AS T3 ON T1.technician_ID  =  T3.technician_ID WHERE T2.value_points  >  70",
            "SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id  =  T2.machine_id JOIN technician AS T3 ON T1.technician_ID  =  T3.technician_ID WHERE T2.value_points  >  70"
        ]
    },
    {
        "db_id": "machine_repair",
        "final_query": "SELECT T2.Name ,  COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID  =  T2.technician_ID GROUP BY T2.Name",
        "final_utterance": "Show names of technicians and the number of machines they are assigned to repair.",
        "interaction_utterance": [
            "How many repair assignments are there in file?",
            "What about in terms of technicians?",
            "Show me their names instead of ids."
        ],
        "interaction_query": [
            "SELECT count(*) FROM repair_assignment",
            "SELECT technician_ID, count(*) FROM repair_assignment GROUP BY technician_ID",
            "SELECT T2.Name ,  COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID  =  T2.technician_ID GROUP BY T2.Name"
        ]
    },
    {
        "db_id": "machine_repair",
        "final_query": "SELECT Name FROM technician WHERE technician_id NOT IN (SELECT technician_id FROM repair_assignment)",
        "final_utterance": "List the names of technicians who have not been assigned to repair machines.",
        "interaction_utterance": [
            "How many repair assignments are there in file?",
            "Show me their names.",
            "What about the technicians in file who are not one of those?",
            "Show me their names."
        ],
        "interaction_query": [
            "SELECT count(*) FROM repair_assignment",
            "SELECT technician_id FROM repair_assignment",
            "SELECT technician_id FROM technician WHERE technician_id NOT IN (SELECT technician_id FROM repair_assignment)",
            "SELECT Name FROM technician WHERE technician_id NOT IN (SELECT technician_id FROM repair_assignment)"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT T1.grant_amount FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id  =  T2.grant_id WHERE T2.sent_date  <  '1986-08-26 20:49:27' INTERSECT SELECT grant_amount FROM grants WHERE grant_end_date  >  '1989-03-16 18:27:16';",
        "final_utterance": "What are the distinct grant amount for the grants where the documents were sent before '1986-08-26 20:49:27' and grant were ended after '1989-03-16 18:27:16'?",
        "interaction_utterance": [
            "Show me the grant id for grants where the documents were sent before '1986-08-26 20:49:27'.",
            "Which of those grant ended after '1989-03-16 18:27:16'? Show their id.",
            "What are the distinct grant amount of these grants?"
        ],
        "interaction_query": [
            "SELECT T1.grant_id FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id  =  T2.grant_id WHERE T2.sent_date  <  '1986-08-26 20:49:27';",
            "SELECT T1.grant_id FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id  =  T2.grant_id WHERE T2.sent_date  <  '1986-08-26 20:49:27' INTERSECT SELECT grant_id FROM grants WHERE grant_end_date  >  '1989-03-16 18:27:16'",
            "SELECT T1.grant_amount FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id  =  T2.grant_id WHERE T2.sent_date  <  '1986-08-26 20:49:27' INTERSECT SELECT grant_amount FROM grants WHERE grant_end_date  >  '1989-03-16 18:27:16';"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id WHERE T2.outcome_code  =  'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id WHERE T2.outcome_code  =  'Patent'",
        "final_utterance": "List the project details of the project both producing patent and paper as outcomes.",
        "interaction_utterance": [
            "What are the project details of all projects?",
            "Which ones of the result produced patent?",
            "Among the current result, which ones also had paper outcome?"
        ],
        "interaction_query": [
            "SELECT project_details FROM Projects;",
            "SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id WHERE T2.outcome_code  =  'Patent';",
            "SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id WHERE T2.outcome_code  =  'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id WHERE T2.outcome_code  =  'Patent'"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT sum(grant_amount) FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id  =  T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type  =  T3.organisation_type WHERE T3.organisation_type_description  =  'Research';",
        "final_utterance": "What is the total grant amount of the organisations described as research?",
        "interaction_utterance": [
            "Show me the grant amount of the organisations described as sponser?",
            "How about the organisations described as research?",
            "Show me the sum of the result."
        ],
        "interaction_query": [
            "SELECT grant_amount FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id  =  T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type  =  T3.organisation_type WHERE T3.organisation_type_description  =  'Sponsor';",
            "SELECT grant_amount FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id  =  T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type  =  T3.organisation_type WHERE T3.organisation_type_description  =  'Research';",
            "SELECT sum(grant_amount) FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id  =  T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type  =  T3.organisation_type WHERE T3.organisation_type_description  =  'Research';"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT date_from ,  date_to FROM Project_Staff WHERE project_id IN( SELECT project_id FROM Project_Staff GROUP BY project_id ORDER BY count(*) DESC LIMIT 1 ) UNION SELECT date_from ,  date_to FROM Project_Staff WHERE role_code  =  'leader';",
        "final_utterance": "List from which date and to which date these staff work: project staff of the project which hires the most staffs",
        "interaction_utterance": [
            "Which project hires the most staffs?",
            "Who's the leader of this project? Show me the id.",
            "What's his from-date and to-date of working?"
        ],
        "interaction_query": [
            "SELECT project_id FROM Project_Staff GROUP BY project_id ORDER BY count(*) DESC LIMIT 1;",
            "SELECT staff_id FROM Project_Staff WHERE project_id IN( SELECT project_id FROM Project_Staff GROUP BY project_id ORDER BY count(*) DESC LIMIT 1 ) UNION SELECT date_from ,  date_to FROM Project_Staff WHERE role_code  =  'leader';",
            "SELECT date_from ,  date_to FROM Project_Staff WHERE project_id IN( SELECT project_id FROM Project_Staff GROUP BY project_id ORDER BY count(*) DESC LIMIT 1 ) UNION SELECT date_from ,  date_to FROM Project_Staff WHERE role_code  =  'leader';"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT T2.organisation_id ,  T2.organisation_details FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id  =  T2.organisation_id GROUP BY T2.organisation_id HAVING sum(T1.grant_amount)  >  6000;",
        "final_utterance": "Find the organisation ids and details of the organisations which are involved in more than 6000 grant amount.",
        "interaction_utterance": [
            "Show me the id of organizations involved in less then 3000$ grant amount.",
            "How about those with a total of more than 6000$ grants?",
            "List their description as well."
        ],
        "interaction_query": [
            "SELECT T2.organisation_id FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id  =  T2.organisation_id GROUP BY T2.organisation_id HAVING sum(T1.grant_amount)  <  3000;",
            "SELECT T2.organisation_id FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id  =  T2.organisation_id GROUP BY T2.organisation_id HAVING sum(T1.grant_amount)  >  6000;",
            "SELECT T2.organisation_id ,  T2.organisation_details FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id  =  T2.organisation_id GROUP BY T2.organisation_id HAVING sum(T1.grant_amount)  >  6000;"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT T1.organisation_type ,  T1.organisation_id FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1;",
        "final_utterance": "What is the organisation type and id of the organisation which has the most number of research staff?",
        "interaction_utterance": [
            "Which organization has the least number of research staff?",
            "How about the one with the most number of research staff?",
            "List the organization type together with the result."
        ],
        "interaction_query": [
            "SELECT T1.organisation_id FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) ASC LIMIT 1;",
            "SELECT T1.organisation_id FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1;",
            "SELECT T1.organisation_type ,  T1.organisation_id FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT T1.organisation_type FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_type ORDER BY count(*) DESC LIMIT 1;",
        "final_utterance": "Which organisation type hires most research staff?",
        "interaction_utterance": [
            "Show me all the organization types.",
            "Which of those hires the least research staff?",
            "How about the one hiring the most research staff?"
        ],
        "interaction_query": [
            "SELECT organisation_type FROM Organisations;",
            "SELECT T1.organisation_type FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_type ORDER BY count(*) ASC LIMIT 1;",
            "SELECT T1.organisation_type FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_type ORDER BY count(*) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT T1.sent_date FROM documents AS T1 JOIN Grants AS T2 ON T1.grant_id  =  T2.grant_id JOIN Organisations AS T3 ON T2.organisation_id  =  T3.organisation_id JOIN organisation_Types AS T4 ON T3.organisation_type  =  T4.organisation_type WHERE T2.grant_amount  >  5000 AND T4.organisation_type_description  =  'Research'",
        "final_utterance": "Find out the send dates of the documents with the grant amount of more than 5000 which were granted by organisation type described research.",
        "interaction_utterance": [
            "Show me the all documents with grant amount more than 5000 dollars.",
            "Which of the result were granted by organisation type described research.",
            "Show me their send dates."
        ],
        "interaction_query": [
            "SELECT * FROM documents AS T1 JOIN Grants AS T2 ON T1.grant_id  =  T2.grant_id WHERE T2.grant_amount  >  5000;",
            "SELECT * FROM documents AS T1 JOIN Grants AS T2 ON T1.grant_id  =  T2.grant_id JOIN Organisations AS T3 ON T2.organisation_id  =  T3.organisation_id JOIN organisation_Types AS T4 ON T3.organisation_type  =  T4.organisation_type WHERE T2.grant_amount  >  5000 AND T4.organisation_type_description  =  'Research'",
            "SELECT T1.sent_date FROM documents AS T1 JOIN Grants AS T2 ON T1.grant_id  =  T2.grant_id JOIN Organisations AS T3 ON T2.organisation_id  =  T3.organisation_id JOIN organisation_Types AS T4 ON T3.organisation_type  =  T4.organisation_type WHERE T2.grant_amount  >  5000 AND T4.organisation_type_description  =  'Research'"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT T1.response_received_date FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code  =  T2.document_type_code JOIN Grants AS T3 ON T1.grant_id  =  T3.grant_id WHERE T2.document_description  =  'Regular' OR T3.grant_amount  >  100",
        "final_utterance": "What are the response received dates for the documents described as 'Regular' or granted with more than 100?",
        "interaction_utterance": [
            "What're the response received dates for the documents described as 'Initial Application'?",
            "How about those granted with more than 100?",
            "What are the response received dates for the documents described as 'Regular' or granted with more than 100?"
        ],
        "interaction_query": [
            "SELECT T1.response_received_date FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code  =  T2.document_type_code WHERE T2.document_description  =  'Initial Application';",
            "SELECT T1.response_received_date FROM Documents AS T1 JOIN Grants AS T3 ON T1.grant_id  =  T3.grant_id WHERE T3.grant_amount  >  100;",
            "SELECT T1.response_received_date FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code  =  T2.document_type_code JOIN Grants AS T3 ON T1.grant_id  =  T3.grant_id WHERE T2.document_description  =  'Regular' OR T3.grant_amount  >  100"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_Staff WHERE role_code  =  'researcher' )",
        "final_utterance": "List the project details of the projects which did not hire any staff for a researcher role.",
        "interaction_utterance": [
            "Show me the project ids of the projects which did not hire any staff for a leader role.",
            "How about those without a researcher role?",
            "What are their details?"
        ],
        "interaction_query": [
            "SELECT project_id FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_Staff WHERE role_code  =  'leader' )",
            "SELECT project_id FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_Staff WHERE role_code  =  'researcher' )",
            "SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_Staff WHERE role_code  =  'researcher' )"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT T1.task_details ,  T1.task_id ,  T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id  =  T2.project_id WHERE T2.project_details  =  'omnis' UNION SELECT T1.task_details ,  T1.task_id ,  T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id  =  T2.project_id JOIN Project_outcomes AS T3 ON T2.project_id  =  T3.project_id GROUP BY T2.project_id HAVING count(*)  >  2",
        "final_utterance": "What are the task details, task id and project id for the projects which are detailed as 'omnis' or  have more than 2 outcomes?",
        "interaction_utterance": [
            "Show me the task ids for projects detailed as 'omnis'.",
            "How about the project id for projects which are detailed as 'omnis' or  have more than 2 outcomes?",
            "List the corresponding task details and task id as well."
        ],
        "interaction_query": [
            "SELECT  T1.task_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id  =  T2.project_id WHERE T2.project_details  =  'omnis';",
            "SELECT T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id  =  T2.project_id WHERE T2.project_details  =  'omnis' UNION SELECT T1.task_details ,  T1.task_id ,  T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id  =  T2.project_id JOIN Project_outcomes AS T3 ON T2.project_id  =  T3.project_id GROUP BY T2.project_id HAVING count(*)  >  2",
            "SELECT T1.task_details ,  T1.task_id ,  T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id  =  T2.project_id WHERE T2.project_details  =  'omnis' UNION SELECT T1.task_details ,  T1.task_id ,  T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id  =  T2.project_id JOIN Project_outcomes AS T3 ON T2.project_id  =  T3.project_id GROUP BY T2.project_id HAVING count(*)  >  2"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id JOIN Research_outcomes AS T3 ON T2.outcome_code  =  T3.outcome_code WHERE T3.outcome_description LIKE '%Published%';",
        "final_utterance": "List the project details of the projects with the research outcome described with the substring 'Published'.",
        "interaction_utterance": [
            "Show me all the research outcome.",
            "List those described with the substring 'Published' in the result.",
            "How about the project details of the result?"
        ],
        "interaction_query": [
            "SELECT * FROM Research_outcomes;",
            "SELECT * FROM Research_outcomes WHERE outcome_description LIKE '%Published%';",
            "SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id JOIN Research_outcomes AS T3 ON T2.outcome_code  =  T3.outcome_code WHERE T3.outcome_description LIKE '%Published%';"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT T1.project_id ,  count(*) FROM Project_Staff AS T1 JOIN Projects AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id ORDER BY count(*) ASC;",
        "final_utterance": "How many staff does each project has? List the project id and the number in an ascending order.",
        "interaction_utterance": [
            "Show me the number of staff for project with id 1.",
            "How about the number of staff each project has? List the project id and the number.",
            "Order the result by ascending number of staff."
        ],
        "interaction_query": [
            "SELECT  count(*) FROM Project_Staff WHERE project_id = 1;",
            "SELECT T1.project_id ,  count(*) FROM Project_Staff AS T1 JOIN Projects AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id;",
            "SELECT T1.project_id ,  count(*) FROM Project_Staff AS T1 JOIN Projects AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id ORDER BY count(*) ASC;"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT date_from FROM Project_Staff ORDER BY date_from ASC LIMIT 1;",
        "final_utterance": "When did the first staff for the projects started working?",
        "interaction_utterance": [
            "Show me the end date of all projects staff.",
            "What about the start date?",
            "What's the earliest date among the result?"
        ],
        "interaction_query": [
            "SELECT date_to FROM Project_Staff;",
            "SELECT date_from FROM Project_Staff;",
            "SELECT date_from FROM Project_Staff ORDER BY date_from ASC LIMIT 1;"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT T1.project_details ,  T1.project_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id ORDER BY count(*) DESC LIMIT 1;",
        "final_utterance": "Which project made the most number of outcomes? List the project details and the project id.",
        "interaction_utterance": [
            "Show me the project ids of all projects.",
            "Which of those had the most number of outcomes?",
            "Show me the project details as well."
        ],
        "interaction_query": [
            "SELECT project_id FROM Projects;",
            "SELECT T1.project_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id ORDER BY count(*) DESC LIMIT 1;",
            "SELECT T1.project_details ,  T1.project_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id ORDER BY count(*) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_outcomes );",
        "final_utterance": "Which projects have no outcome? List the project details.",
        "interaction_utterance": [
            "Show me all the ids of projects with outcomes.",
            "How many projects do not have outcome?",
            "List their details."
        ],
        "interaction_query": [
            "SELECT project_id FROM Project_outcomes;",
            "SELECT count(*) FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_outcomes );",
            "SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_outcomes );"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT T1.organisation_id ,  T1.organisation_type ,  T1.organisation_details FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1;",
        "final_utterance": "Which organisation hired the most number of research staff? List the organisation id, type and detail.",
        "interaction_utterance": [
            "Show me the number of research staff each organisation hired.",
            "Which organisation hired the least number? Show ids.",
            "How about the most number of research staff. List the organisation id, type and detail."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_id;",
            "SELECT T1.organisation_id FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) ASC LIMIT 1;",
            "SELECT T1.organisation_id ,  T1.organisation_type ,  T1.organisation_details FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT T1.role_description ,  T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code  =  T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id  =  T3.project_id GROUP BY T2.staff_id ORDER BY count(*) DESC LIMIT 1;",
        "final_utterance": "Show the role description and the id of the project staff involved in most number of project outcomes?",
        "interaction_utterance": [
            "What are the number of project outcomes each project staff involved in?",
            "Who is involved in the most number of project outcomes? Show ids.",
            "Give me the person's role description."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code  =  T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id  =  T3.project_id GROUP BY T2.staff_id;",
            "SELECT T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code  =  T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id  =  T3.project_id GROUP BY T2.staff_id ORDER BY count(*) DESC LIMIT 1;",
            "SELECT T1.role_description ,  T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code  =  T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id  =  T3.project_id GROUP BY T2.staff_id ORDER BY count(*) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT document_type_code FROM Document_Types WHERE document_description LIKE 'Initial%';",
        "final_utterance": "Which document type is described with the prefix 'Initial'?",
        "interaction_utterance": [
            "Show me all the document type description.",
            "How about document type code?",
            "Which one is described with the prefix 'Initial'?"
        ],
        "interaction_query": [
            "SELECT document_description FROM Document_Types;",
            "SELECT document_type_code FROM Document_Types ;",
            "SELECT document_type_code FROM Document_Types WHERE document_description LIKE 'Initial%';"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id  =  T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code  =  T3.document_type_code WHERE T3.document_description  =  'Regular' INTERSECT SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id  =  T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code  =  T3.document_type_code WHERE T3.document_description  =  'Initial Application'",
        "final_utterance": "For grants with both documents described as 'Regular' and documents described as 'Initial Application', list its start date.",
        "interaction_utterance": [
            "Show me all the grants start dates.",
            "Which ones of those have documents described as 'Regular'?",
            "How about ones that have both documents described as 'Regular' and documents described as 'Initial Application'?"
        ],
        "interaction_query": [
            "SELECT grant_start_date FROM Grants;",
            "SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id  =  T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code  =  T3.document_type_code WHERE T3.document_description  =  'Regular';",
            "SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id  =  T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code  =  T3.document_type_code WHERE T3.document_description  =  'Regular' INTERSECT SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id  =  T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code  =  T3.document_type_code WHERE T3.document_description  =  'Initial Application'"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT grant_id ,  count(*) FROM Documents GROUP BY grant_id ORDER BY count(*) DESC LIMIT 1;",
        "final_utterance": "How many documents can one grant have at most? List the grant id and number.",
        "interaction_utterance": [
            "How many documents are there?",
            "How many documents does each grant have? List the grant id and number.",
            "Give me the one having the most documents."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Documents;",
            "SELECT grant_id ,  count(*) FROM Documents GROUP BY grant_id ;",
            "SELECT grant_id ,  count(*) FROM Documents GROUP BY grant_id ORDER BY count(*) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT T1.organisation_type_description FROM organisation_Types AS T1 JOIN Organisations AS T2 ON T1.organisation_type  =  T2.organisation_type WHERE T2.organisation_details  =  'quo';",
        "final_utterance": "Find the organisation type description of the organisation detailed as 'quo'.",
        "interaction_utterance": [
            "Show me the organisation types.",
            "How about the type description?",
            "Find the ones detailed as \"quo\"."
        ],
        "interaction_query": [
            "SELECT organisation_Type FROM organisation_Types;",
            "SELECT organisation_type_description FROM organisation_Types;",
            "SELECT T1.organisation_type_description FROM organisation_Types AS T1 JOIN Organisations AS T2 ON T1.organisation_type  =  T2.organisation_type WHERE T2.organisation_details  =  'quo';"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT organisation_details FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type  =  T2.organisation_type WHERE T2.organisation_type_description  =  'Sponsor' ORDER BY organisation_details ASC;",
        "final_utterance": "What are all the details of the organisations described as 'Sponsor'? Sort the result in an ascending order.",
        "interaction_utterance": [
            "Show me all the details of organisations.",
            "Among the result, which ones are described as 'Sponsor'?",
            "Sort the result in an ascending order."
        ],
        "interaction_query": [
            "SELECT organisation_details FROM Organisations;",
            "SELECT organisation_details FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type  =  T2.organisation_type WHERE T2.organisation_type_description  =  'Sponsor';",
            "SELECT organisation_details FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type  =  T2.organisation_type WHERE T2.organisation_type_description  =  'Sponsor' ORDER BY organisation_details ASC;"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT count(*) FROM Project_Staff WHERE role_code  =  'leader' OR date_from  <  '1989-04-24 23:51:54';",
        "final_utterance": "How many project staff worked as leaders or started working before '1989-04-24 23:51:54'?",
        "interaction_utterance": [
            "Show me the number of project staffs.",
            "How many of those worked as leaders?",
            "How about the number of those who either worked as leaders or started working before '1989-04-24 23:51:54'?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM Project_Staff;",
            "SELECT count(*) FROM Project_Staff WHERE role_code  =  'leader';",
            "SELECT count(*) FROM Project_Staff WHERE role_code  =  'leader' OR date_from  <  '1989-04-24 23:51:54';"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT date_to FROM Project_Staff ORDER BY date_to DESC LIMIT 1;",
        "final_utterance": "What is the last date of the staff leaving the projects?",
        "interaction_utterance": [
            "What are the start dates of project staff?",
            "What about the end date of them?",
            "What's the last date among the result?"
        ],
        "interaction_query": [
            "SELECT date_from FROM Project_Staff;",
            "SELECT date_to FROM Project_Staff;",
            "SELECT date_to FROM Project_Staff ORDER BY date_to DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code  =  T2.outcome_code JOIN Projects AS T3 ON T2.project_id  =  T3.project_id WHERE T3.project_details  =  'sint';",
        "final_utterance": "What are the result description of the project whose detail is 'sint'?",
        "interaction_utterance": [
            "Give me the outcome descriptions of research outcomes.",
            "What are the result description of the project whose detail is 'sed'?",
            "How about 'sint'?"
        ],
        "interaction_query": [
            "SELECT outcome_description FROM Research_outcomes;",
            "SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code  =  T2.outcome_code JOIN Projects AS T3 ON T2.project_id  =  T3.project_id WHERE T3.project_details  =  'sed';",
            "SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code  =  T2.outcome_code JOIN Projects AS T3 ON T2.project_id  =  T3.project_id WHERE T3.project_details  =  'sint';"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT T1.organisation_id ,  count(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1;",
        "final_utterance": "List the organisation id with the maximum outcome count, and the count.",
        "interaction_utterance": [
            "Show me the outcome count for each organisation.",
            "Which organisation has the least number of outcome? Show ids.",
            "How about the one with the most outcome count? Show the count as well."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.organisation_id;",
            "SELECT  T1.organisation_id  FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.organisation_id ORDER BY count(*) ASC LIMIT 1;",
            "SELECT T1.organisation_id ,  count(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1;"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT project_details FROM Projects WHERE organisation_id IN ( SELECT organisation_id FROM Projects GROUP BY organisation_id ORDER BY count(*) DESC LIMIT 1 );",
        "final_utterance": "List the project details of the projects launched by the organisation with the most number of projects.",
        "interaction_utterance": [
            "What're the project details?",
            "Show me only the one launched by the organisation with the most number of projects.",
            "How about the one with most projects?"
        ],
        "interaction_query": [
            "SELECT project_details FROM Projects;",
            "SELECT project_details FROM Projects WHERE organisation_id IN ( SELECT organisation_id FROM Projects GROUP BY organisation_id ORDER BY count(*) ASC LIMIT 1 );",
            "SELECT project_details FROM Projects WHERE organisation_id IN ( SELECT organisation_id FROM Projects GROUP BY organisation_id ORDER BY count(*) DESC LIMIT 1 );"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT count(*) ,  T1.project_details FROM Projects AS T1 JOIN Tasks AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id;",
        "final_utterance": "How many tasks does each project have? List the task count and the project detail.",
        "interaction_utterance": [
            "How tasks are there?",
            "How many tasks does each project have?",
            "Show the project details as well."
        ],
        "interaction_query": [
            "SELECT count(*) FROM Tasks;",
            "SELECT count(*) FROM Projects AS T1 JOIN Tasks AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id;",
            "SELECT count(*) ,  T1.project_details FROM Projects AS T1 JOIN Tasks AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id;"
        ]
    },
    {
        "db_id": "tracking_grants_for_research",
        "final_query": "SELECT role_code FROM Project_Staff WHERE date_from  >  '2003-04-19 15:06:20' AND date_to  <  '2016-03-15 00:33:18'",
        "final_utterance": "What are the staff roles of the staff who starts working after 2003-04-19 15:06:20 and ends working before 2016-03-15 00:33:18?",
        "interaction_utterance": [
            "Show me all the role codes.",
            "How about those of staff who starts working after 2003-04-19 15:06:20?",
            "List those of the staff who starts working after 2003-04-19 15:06:20 and ends working before 2016-03-15 00:33:18?"
        ],
        "interaction_query": [
            "SELECT role_code FROM Project_Staff;",
            "SELECT role_code FROM Project_Staff WHERE date_from  >  '2003-04-19 15:06:20';",
            "SELECT role_code FROM Project_Staff WHERE date_from  >  '2003-04-19 15:06:20' AND date_to  <  '2016-03-15 00:33:18'"
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE  t1.fname  =  \"Jeremy\" AND t1.lname  =  \"Gibbons\"",
        "final_utterance": "What are the titles of papers published by \"Jeremy Gibbons\"?",
        "interaction_utterance": [
            "What are all the papers?",
            "Give me the titles of those who are published by \"Jeremy Gibbons\"?"
        ],
        "interaction_query": [
            "SELECT * FROM PAPERS",
            "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE  t1.fname  =  \"Jeremy\" AND t1.lname  =  \"Gibbons\""
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE  t1.fname  =  \"Aaron\" AND t1.lname  =  \"Turon\"",
        "final_utterance": "Find all the papers published by \"Aaron Turon\".",
        "interaction_utterance": [
            "What are all the papers?",
            "Show me the ones that are published by \"Aaron Turon\"."
        ],
        "interaction_query": [
            "SELECT * FROM PAPERS",
            "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE  t1.fname  =  \"Aaron\" AND t1.lname  =  \"Turon\""
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT count(*) FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE  t1.fname  =  \"Atsushi\" AND t1.lname  =  \"Ohori\"",
        "final_utterance": "How many papers have \"Atsushi Ohori\" published?",
        "interaction_utterance": [
            "How many papers are there?",
            "How many authors are there?",
            "How many of those papers are published by \"Atsushi Ohori\"?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM papers",
            "SELECT count(*) FROM authors",
            "SELECT count(*) FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE  t1.fname  =  \"Atsushi\" AND t1.lname  =  \"Ohori\""
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t1.fname  =  \"Matthias\" AND t1.lname  =  \"Blume\"",
        "final_utterance": "What is the name of the institution that \"Matthias Blume\" belongs to?",
        "interaction_utterance": [
            "What are the names of all the institutions?",
            "Which one does \"Matthias Blume\" belong to?"
        ],
        "interaction_query": [
            "SELECT name FROM inst",
            "SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t1.fname  =  \"Matthias\" AND t1.lname  =  \"Blume\""
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t1.fname  =  \"Katsuhiro\" AND t1.lname  =  \"Ueno\"",
        "final_utterance": "Which institution does \"Katsuhiro Ueno\" belong to?",
        "interaction_utterance": [
            "What are all the institutions?",
            "Which one does \"Katsuhiro Ueno\" belong to?"
        ],
        "interaction_query": [
            "SELECT * FROM INST",
            "SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t1.fname  =  \"Katsuhiro\" AND t1.lname  =  \"Ueno\""
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT DISTINCT t1.fname ,  t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  \"University of Oxford\"",
        "final_utterance": "Who belong to the institution \"University of Oxford\"? Show the first names and last names.",
        "interaction_utterance": [
            "Show me the name of all the institutions?",
            "show me the name of all the authors?",
            "Give me the first names and last names of those belong to the \"University of Oxford\"."
        ],
        "interaction_query": [
            "SELECT name FROM INST",
            "SELECT fname ,  lname FROM authors",
            "SELECT DISTINCT t1.fname ,  t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  \"University of Oxford\""
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT DISTINCT t1.fname ,  t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  \"Google\"",
        "final_utterance": "Which authors belong to the institution \"Google\"? Show the first names and last names.",
        "interaction_utterance": [
            "What are the name of all the institutions?",
            "Who are the name of all the authors?",
            "Give me those belong to \"Google\"."
        ],
        "interaction_query": [
            "SELECT NAME FROM INST",
            "SELECT fname ,  lname FROM authors",
            "SELECT DISTINCT t1.fname ,  t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  \"Google\""
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t3.title  =  \"Binders Unbound\"",
        "final_utterance": "What are the last names of the author of the paper titled \"Binders Unbound\"?",
        "interaction_utterance": [
            "What are the name of all the authors?",
            "Who published the paper \"Binders Unbound\"?",
            "Give me only the last names."
        ],
        "interaction_query": [
            "SELECT fname , lname FROM authors",
            "SELECT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t3.title  =  \"Binders Unbound\"",
            "SELECT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t3.title  =  \"Binders Unbound\""
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT t1.fname ,  t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t3.title  =  \"Nameless ,  Painless\"",
        "final_utterance": "Find the first and last name of the author(s) who wrote the paper \"Nameless, Painless\".",
        "interaction_utterance": [
            "What are all the papers?",
            "What are the name of all the authors?",
            "Who wrote the paper \"Nameless, Painless\"?"
        ],
        "interaction_query": [
            "SELECT * FROM PAPERS",
            "SELECT fname , lname FROM authors",
            "SELECT t1.fname ,  t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t3.title  =  \"Nameless ,  Painless\""
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid  =  t2.paperid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  \"Indiana University\"",
        "final_utterance": "What are the papers published under the institution \"Indiana University\"?",
        "interaction_utterance": [
            "What are all the papers?",
            "What are the name of all the institutions?",
            "Which papers are published under \"Indiana University\"?"
        ],
        "interaction_query": [
            "SELECT * FROM PAPERS",
            "SELECT name FROM INST",
            "SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid  =  t2.paperid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  \"Indiana University\""
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid  =  t2.paperid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  \"Google\"",
        "final_utterance": "Find all the papers published by the institution \"Google\".",
        "interaction_utterance": [
            "What are all the papers?",
            "Give me information about the institution \"Google\".",
            "Which papers did it publish?"
        ],
        "interaction_query": [
            "SELECT * FROM PAPERS",
            "SELECT * FROM INST WHERE NAME = \"Google\"",
            "SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid  =  t2.paperid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  \"Google\""
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid  =  t2.paperid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  \"Tokohu University\"",
        "final_utterance": "How many papers are published by the institution \"Tokohu University\"?",
        "interaction_utterance": [
            "How many papers are there?",
            "What are all the institutions?",
            "How many papers are published by \"Tokohu University\"?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM PAPERS",
            "SELECT * FROM INST",
            "SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid  =  t2.paperid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  \"Tokohu University\""
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid  =  t2.paperid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  \"University of Pennsylvania\"",
        "final_utterance": "Find the number of papers published by the institution \"University of Pennsylvania\".",
        "interaction_utterance": [
            "How many papers are there?",
            "What are all the institutions?",
            "Give me the number of papers published by \"\"University of Pennsylvania\"\"."
        ],
        "interaction_query": [
            "SELECT count(*) FROM PAPERS",
            "SELECT * FROM INST",
            "SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid  =  t2.paperid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  \"University of Pennsylvania\""
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t1.fname  =  \"Olin\" AND t1.lname  =  \"Shivers\"",
        "final_utterance": "Find the papers which have \"Olin Shivers\" as an author.",
        "interaction_utterance": [
            "What are all the papers?",
            "What are the name of all the authors?",
            "Which papers did \"Olin Shivers\" write?"
        ],
        "interaction_query": [
            "SELECT * FROM PAPERS",
            "SELECT fname , lname FROM authors",
            "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t1.fname  =  \"Olin\" AND t1.lname  =  \"Shivers\""
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t1.fname  =  \"Stephanie\" AND t1.lname  =  \"Weirich\"",
        "final_utterance": "Which papers have \"Stephanie Weirich\" as an author?",
        "interaction_utterance": [
            "What are all the papers?",
            "What are all the authors?",
            "Which papers did \"Stephanie Weirich\" write?"
        ],
        "interaction_query": [
            "SELECT * FROM PAPERS",
            "SELECT fname , lname FROM authors",
            "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t1.fname  =  \"Stephanie\" AND t1.lname  =  \"Weirich\""
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid JOIN inst AS t4 ON t2.instid  =  t4.instid WHERE t4.country  =  \"USA\" AND t2.authorder  =  2 AND t1.lname  =  \"Turon\"",
        "final_utterance": "Which paper is published in an institution in \"USA\" and have \"Turon\" as its second author?",
        "interaction_utterance": [
            "What are all institutions in \"USA\"?",
            "What papers did they publish?",
            "Among those, which have \"Turon\" as its second author?"
        ],
        "interaction_query": [
            "SELECT * FROM INST WHERE country = \"USA\"",
            "SELECT distinct t3.title FROM authorship AS t2 JOIN papers AS t3 ON t2.paperid  =  t3.paperid JOIN inst AS t4 ON t2.instid  =  t4.instid WHERE t4.country  =  \"USA\"",
            "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid JOIN inst AS t4 ON t2.instid  =  t4.instid WHERE t4.country  =  \"USA\" AND t2.authorder  =  2 AND t1.lname  =  \"Turon\""
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid JOIN inst AS t4 ON t2.instid  =  t4.instid WHERE t4.country  =  \"Japan\" AND t2.authorder  =  1 AND t1.lname  =  \"Ohori\"",
        "final_utterance": "Find the titles of papers whose first author is affiliated with an institution in the country \"Japan\" and has last name \"Ohori\"?",
        "interaction_utterance": [
            "What are all institutions in \"Japan\"?",
            "Which authors belong to them?",
            "Who has last name \"Ohori\"?",
            "Give me the titles of papers he wrote as the first author."
        ],
        "interaction_query": [
            "SELECT * FROM INST WHERE country = \"Japan\"",
            "SELECT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 on t2.instid = t3.instid WHERE t3.country = \"Japan\"",
            "SELECT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 on t2.instid = t3.instid WHERE t3.country = \"Japan\" and t1.lname = \"Ohori\"",
            "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid JOIN inst AS t4 ON t2.instid  =  t4.instid WHERE t4.country  =  \"Japan\" AND t2.authorder  =  1 AND t1.lname  =  \"Ohori\""
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid GROUP BY t1.fname ,  t1.lname ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the last name of the author that has published the most papers?",
        "interaction_utterance": [
            "What are the name of all the authors?",
            "How many papers did each of them publish?",
            "Who published the most? Give me the last name."
        ],
        "interaction_query": [
            "SELECT fname, lname FROM authors",
            "SELECT t1.fname, t1.lname, count(*) FROM authors as t1 JOIN authorship as t2 on t1.authID = t2.authID",
            "SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid GROUP BY t1.fname ,  t1.lname ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid  =  t2.instid JOIN papers AS t3 ON t2.paperid  =  t3.paperid GROUP BY t1.country ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Retrieve the country that has published the most papers.",
        "interaction_utterance": [
            "What are all the countries?",
            "How many papers did each of them publish?",
            "Which country published the most?"
        ],
        "interaction_query": [
            "SELECT country FROM inst",
            "SELECT country, count(*) FROM inst as t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.country",
            "SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid  =  t2.instid JOIN papers AS t3 ON t2.paperid  =  t3.paperid GROUP BY t1.country ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT t1.name FROM inst AS t1 JOIN authorship AS t2 ON t1.instid  =  t2.instid JOIN papers AS t3 ON t2.paperid  =  t3.paperid GROUP BY t1.name ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Find the name of the organization that has published the largest number of papers.",
        "interaction_utterance": [
            "What are the name of all the organizations?",
            "How many papers did each of them publish?",
            "Give me the name of the one published the most."
        ],
        "interaction_query": [
            "SELECT name FROM inst",
            "SELECT t1.name, count(*) FROM inst AS t1 JOIN authorship AS t2 ON t1.instid  =  t2.instid JOIN papers AS t3 ON t2.paperid  =  t3.paperid GROUP BY t1.name",
            "SELECT t1.name FROM inst AS t1 JOIN authorship AS t2 ON t1.instid  =  t2.instid JOIN papers AS t3 ON t2.paperid  =  t3.paperid GROUP BY t1.name ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT title FROM papers WHERE title LIKE \"%ML%\"",
        "final_utterance": "Find the titles of the papers that contain the word \"ML\".",
        "interaction_utterance": [
            "What are all the papers?",
            "Which contains the word \"ML\"? Give me the titles of them."
        ],
        "interaction_query": [
            "SELECT * FROM papers",
            "SELECT title FROM papers WHERE title LIKE \"%ML%\""
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT title FROM papers WHERE title LIKE \"%Database%\"",
        "final_utterance": "Which paper's title contains the word \"Database\"?",
        "interaction_utterance": [
            "What are all the papers?",
            "Which contains the word \"Database\"? Give me the titles of them."
        ],
        "interaction_query": [
            "SELECT * FROM papers",
            "SELECT title FROM papers WHERE title LIKE \"%Database%\""
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT t1.fname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t3.title LIKE \"%Functional%\"",
        "final_utterance": "Find the first names of all the authors who have written a paper with title containing the word \"Functional\".",
        "interaction_utterance": [
            "What are all the papers?",
            "Give me those whose title contains \"Functional\".",
            "Who wrote any of those? Give me the first names only."
        ],
        "interaction_query": [
            "SELECT * FROM papers",
            "SELECT * FROM papers WHERE title LIKE \"%Functional%\"",
            "SELECT t1.fname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t3.title LIKE \"%Functional%\""
        ]
    },
    {
        "db_id": "icfp_1",
        "final_query": "SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t3.title LIKE \"%Monadic%\"",
        "final_utterance": "Find the last names of all the authors that have written a paper with title containing the word \"Monadic\".",
        "interaction_utterance": [
            "What are all the papers?",
            "Give me those whose title contains \"Monadic\".",
            "Who wrote any of those? Give me the last names only."
        ],
        "interaction_query": [
            "SELECT * FROM papers",
            "SELECT * FROM papers WHERE title LIKE \"%Monadic%\"",
            "SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t3.title LIKE \"%Monadic%\""
        ]
    },
    {
        "db_id": "customers_card_transactions",
        "final_query": "SELECT T2.customer_first_name ,  T2.customer_last_name ,  T2.customer_phone FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.account_name  =  \"162\"",
        "final_utterance": "What is the first name, last name, and phone of the customer with account name 162?",
        "interaction_utterance": [
            "How many custmers are there?",
            "How many customers are there that have account name 162?",
            "Show his first name, last name, and phone."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Customers",
            "SELECT COUNT(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.account_name  =  \"162\"",
            "SELECT T2.customer_first_name ,  T2.customer_last_name ,  T2.customer_phone FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.account_name  =  \"162\""
        ]
    },
    {
        "db_id": "customers_card_transactions",
        "final_query": "SELECT count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  \"Art\" AND T2.customer_last_name  =  \"Turcotte\"",
        "final_utterance": "How many accounts does the customer with first name Art and last name Turcotte have?",
        "interaction_utterance": [
            "Show the information of the customer with first name Art and last name Turcotte.",
            "Please show the account information of this customer.",
            "How many accounts are there?"
        ],
        "interaction_query": [
            "SELECT * FROM Customers WHERE customer_first_name  =  \"Art\" AND customer_last_name  =  \"Turcotte\"",
            "SELECT * FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  \"Art\" AND T2.customer_last_name  =  \"Turcotte\"",
            "SELECT count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  \"Art\" AND T2.customer_last_name  =  \"Turcotte\""
        ]
    },
    {
        "db_id": "customers_card_transactions",
        "final_query": "SELECT customer_id ,  count(*) FROM Accounts GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "Show the customer id and number of accounts with most accounts.",
        "interaction_utterance": [
            "How many accounts are there?",
            "How many accounts does each customer have?",
            "Which customer has most accounts? Show its id.",
            "Please also show the number of his accounts."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Accounts",
            "SELECT customer_id, count(*) FROM Accounts GROUP BY customer_id",
            "SELECT customer_id FROM Accounts GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1",
            "SELECT customer_id ,  count(*) FROM Accounts GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "customers_card_transactions",
        "final_query": "SELECT T2.customer_first_name ,  T2.customer_last_name ,  T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1",
        "final_utterance": "What is the customer first, last name and id with least number of accounts.",
        "interaction_utterance": [
            "How many accounts are there?",
            "Which customer has least number of accounts?",
            "Please also show his id."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Accounts",
            "SELECT T2.customer_first_name ,  T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1",
            "SELECT T2.customer_first_name ,  T2.customer_last_name ,  T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1"
        ]
    },
    {
        "db_id": "customers_card_transactions",
        "final_query": "SELECT count(*) FROM Customers WHERE customer_id NOT IN (SELECT customer_id FROM Accounts)",
        "final_utterance": "Show the number of all customers without an account.",
        "interaction_utterance": [
            "How many customer are there?",
            "How many accounts are there?",
            "So, how many customers are there that does not have an account?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM Customers",
            "SELECT COUNT(*) FROM Accounts",
            "SELECT count(*) FROM Customers WHERE customer_id NOT IN (SELECT customer_id FROM Accounts)"
        ]
    },
    {
        "db_id": "customers_card_transactions",
        "final_query": "SELECT customer_first_name ,  customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name ,  T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id  =  T2.customer_id",
        "final_utterance": "Show the first names and last names of customers without any account.",
        "interaction_utterance": [
            "How many customers are there?",
            "Who have at least one accounts?",
            "Who does not have any accounts?",
            "Show his first names and last names."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Customers",
            "SELECT T1.customer_first_name ,  T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id  =  T2.customer_id",
            "SELECT customer_first_name ,  customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name ,  T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id  =  T2.customer_id",
            "SELECT customer_first_name ,  customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name ,  T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id  =  T2.customer_id"
        ]
    },
    {
        "db_id": "customers_card_transactions",
        "final_query": "SELECT customer_phone ,  customer_email FROM Customers WHERE customer_first_name  =  \"Aniyah\" AND customer_last_name  =  \"Feest\"",
        "final_utterance": "What is the phone and email for customer with first name Aniyah and last name Feest?",
        "interaction_utterance": [
            "What information do you have for the customer  with first name Aniyah and last name Feest?",
            "Show her address please.",
            "What is the phone and email for this customer?"
        ],
        "interaction_query": [
            "SELECT * FROM Customers WHERE customer_first_name  =  \"Aniyah\" AND customer_last_name  =  \"Feest\"",
            "SELECT customer_address FROM Customers WHERE customer_first_name  =  \"Aniyah\" AND customer_last_name  =  \"Feest\"",
            "SELECT customer_phone ,  customer_email FROM Customers WHERE customer_first_name  =  \"Aniyah\" AND customer_last_name  =  \"Feest\""
        ]
    },
    {
        "db_id": "customers_card_transactions",
        "final_query": "SELECT T2.customer_first_name ,  T2.customer_last_name ,  T2.customer_phone FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.card_number  =  \"4560596484842\"",
        "final_utterance": "What is the first name, last name, and phone of the customer with card 4560596484842.",
        "interaction_utterance": [
            "How many cards are there?",
            "Who has the card 4560596484842? Show full name.",
            "Please also show his phone number."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM Customers_cards",
            "SELECT T2.customer_first_name ,  T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.card_number  =  \"4560596484842\"",
            "SELECT T2.customer_first_name ,  T2.customer_last_name ,  T2.customer_phone FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.card_number  =  \"4560596484842\""
        ]
    },
    {
        "db_id": "customers_card_transactions",
        "final_query": "SELECT count(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  \"Art\" AND T2.customer_last_name  =  \"Turcotte\"",
        "final_utterance": "How many cards does customer Art Turcotte have?",
        "interaction_utterance": [
            "What information can you provide for the customer Art Turcotte?",
            "What is his phone number?",
            "How many cards does he have?"
        ],
        "interaction_query": [
            "SELECT * FROM Customers WHERE customer_first_name  =  \"Art\" AND customer_last_name  =  \"Turcotte\"",
            "SELECT customer_phone FROM Customers WHERE customer_first_name  =  \"Art\" AND customer_last_name  =  \"Turcotte\"",
            "SELECT count(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  \"Art\" AND T2.customer_last_name  =  \"Turcotte\""
        ]
    },
    {
        "db_id": "local_govt_in_alabama",
        "final_query": "SELECT T1.event_details FROM EVENTS AS T1 JOIN Services AS T2 ON T1.Service_ID  =  T2.Service_ID WHERE T2.Service_Type_Code  =  'Marriage'",
        "final_utterance": "what are the event details of the services that have the type code 'Marriage'?",
        "interaction_utterance": [
            "List all the event ids with the type code being \"Death Proof\".",
            "What about 'Marriage'?",
            "What are the event details of them?"
        ],
        "interaction_query": [
            "SELECT T1.event_id FROM EVENTS AS T1 JOIN Services AS T2 ON T1.Service_ID  =  T2.Service_ID WHERE T2.Service_Type_Code  =  'Death Proof'",
            "SELECT T1.event_id FROM EVENTS AS T1 JOIN Services AS T2 ON T1.Service_ID  =  T2.Service_ID WHERE T2.Service_Type_Code  =  'Marriage'",
            "SELECT T1.event_details FROM EVENTS AS T1 JOIN Services AS T2 ON T1.Service_ID  =  T2.Service_ID WHERE T2.Service_Type_Code  =  'Marriage'"
        ]
    },
    {
        "db_id": "local_govt_in_alabama",
        "final_query": "SELECT T1.event_id ,  T1.event_details FROM EVENTS AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID  =  T2.Event_ID GROUP BY T1.Event_ID HAVING count(*)  >  1",
        "final_utterance": "What are the ids and details of events that have more than one participants?",
        "interaction_utterance": [
            "How many participants are there for event 3?",
            "How many events have 3 participants, list the event id and details.",
            "What about more than one participants?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM EVENTS AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID  =  T2.Event_ID where T1.event_id = 3",
            "SELECT T1.event_id ,  T1.event_details FROM EVENTS AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID  =  T2.Event_ID GROUP BY T1.Event_ID HAVING count(*)  = 3",
            "SELECT T1.event_id ,  T1.event_details FROM EVENTS AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID  =  T2.Event_ID GROUP BY T1.Event_ID HAVING count(*)  >  1"
        ]
    },
    {
        "db_id": "local_govt_in_alabama",
        "final_query": "SELECT T1.Participant_ID ,  T1.Participant_Type_Code ,  count(*) FROM Participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID  =  T2.Participant_ID GROUP BY T1.Participant_ID",
        "final_utterance": "How many events have each participants attended? List the participant id, type and the number.",
        "interaction_utterance": [
            "List all the events that participant 66 has joined.",
            "How many events are there?",
            "Show how many events for each participant that one has attended, keep the participant id, type and the count."
        ],
        "interaction_query": [
            "SELECT * FROM Participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID  =  T2.Participant_ID WHERE T2.PARTICIPANT_ID = 66",
            "SELECT count(*) FROM Participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID  =  T2.Participant_ID WHERE T2.PARTICIPANT_ID = 66",
            "SELECT T1.Participant_ID ,  T1.Participant_Type_Code ,  count(*) FROM Participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID  =  T2.Participant_ID GROUP BY T1.Participant_ID"
        ]
    },
    {
        "db_id": "local_govt_in_alabama",
        "final_query": "SELECT Participant_ID ,  Participant_Type_Code ,  Participant_Details FROM  Participants",
        "final_utterance": "What are all the the participant ids, type code and details?",
        "interaction_utterance": [
            "Show all the information about participants.",
            "What are the participant ids, type code and details about them?"
        ],
        "interaction_query": [
            "SELECT * FROM  Participants",
            "SELECT Participant_ID ,  Participant_Type_Code ,  Participant_Details FROM  Participants"
        ]
    },
    {
        "db_id": "local_govt_in_alabama",
        "final_query": "SELECT count(*) FROM participants WHERE participant_type_code  =  'Organizer'",
        "final_utterance": "How many participants belong to the type 'Organizer'?",
        "interaction_utterance": [
            "How many unique participant types are there?",
            "How many people are with the type 'Participant'?",
            "What about 'Organizer'?"
        ],
        "interaction_query": [
            "SELECT count(distinct participant_type_code) FROM participants",
            "SELECT count(*) FROM participants WHERE participant_type_code  =  'Participant'",
            "SELECT count(*) FROM participants WHERE participant_type_code  =  'Organizer'"
        ]
    },
    {
        "db_id": "local_govt_in_alabama",
        "final_query": "SELECT service_type_code FROM services ORDER BY service_type_code",
        "final_utterance": "List the type of the services in alphabetical order.",
        "interaction_utterance": [
            "How many service type codes are there?",
            "Order them in alphabetical order."
        ],
        "interaction_query": [
            "SELECT count(service_type_code) FROM services",
            "SELECT service_type_code FROM services ORDER BY service_type_code"
        ]
    },
    {
        "db_id": "local_govt_in_alabama",
        "final_query": "SELECT service_id ,  event_details FROM EVENTS",
        "final_utterance": "List the service id and details for the events.",
        "interaction_utterance": [
            "List all the information about events.",
            "Only keep service id and details."
        ],
        "interaction_query": [
            "SELECT * FROM EVENTS",
            "SELECT service_id ,  event_details FROM EVENTS"
        ]
    },
    {
        "db_id": "local_govt_in_alabama",
        "final_query": "SELECT count(*) FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID  =  T2.Participant_ID WHERE T1.participant_details LIKE '%Dr.%'",
        "final_utterance": "How many events had participants whose details had the substring 'Dr.'",
        "interaction_utterance": [
            "How many events are there in total?",
            "Among those, which of them had participants whose details had the substring 'Miss'",
            "What about 'Dr.'?",
            "How many are there in total?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM participants",
            "SELECT * FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID  =  T2.Participant_ID WHERE T1.participant_details LIKE '%Miss%'",
            "SELECT * FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID  =  T2.Participant_ID WHERE T1.participant_details LIKE '%Dr.%'",
            "SELECT count(*) FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID  =  T2.Participant_ID WHERE T1.participant_details LIKE '%Dr.%'"
        ]
    },
    {
        "db_id": "local_govt_in_alabama",
        "final_query": "SELECT participant_type_code FROM participants GROUP BY participant_type_code ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the most common participant type?",
        "interaction_utterance": [
            "List all the participant types.",
            "How many unique participant types are there?",
            "Among those which one is the most popular one?"
        ],
        "interaction_query": [
            "SELECT participant_type_code FROM participants",
            "SELECT count(DISTINCT participant_type_code) FROM participants",
            "SELECT participant_type_code FROM participants GROUP BY participant_type_code ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "local_govt_in_alabama",
        "final_query": "SELECT T3.service_id ,  T4.Service_Type_Code FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID  =  T2.Participant_ID JOIN EVENTS AS T3 ON T2.Event_ID   =  T3.Event_ID JOIN services AS T4 ON T3.service_id  =  T4.service_id GROUP BY T3.service_id ORDER BY count(*) ASC LIMIT 1",
        "final_utterance": "Which service id and type has the least number of participants?",
        "interaction_utterance": [
            "Count the number of participants for each event.",
            "Among those, which event id has the least participants?",
            "What service id is it?",
            "Also list the service type of it."
        ],
        "interaction_query": [
            "SELECT event_id,count(*) FROM Participants_in_Events group by event_id",
            "SELECT event_id FROM Participants_in_Events group by event_id order by count(*) asc limit 1",
            "SELECT service_id FROM Events where event_id = (SELECT event_id FROM Participants_in_Events group by event_id order by count(*) asc limit 1)",
            "SELECT T3.service_id ,  T4.Service_Type_Code FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID  =  T2.Participant_ID JOIN EVENTS AS T3 ON T2.Event_ID   =  T3.Event_ID JOIN services AS T4 ON T3.service_id  =  T4.service_id GROUP BY T3.service_id ORDER BY count(*) ASC LIMIT 1"
        ]
    },
    {
        "db_id": "local_govt_in_alabama",
        "final_query": "SELECT Event_ID FROM Participants_in_Events GROUP BY Event_ID ORDER BY count(*) DESC LIMIT 1",
        "final_utterance": "What is the id of the event with the most participants?",
        "interaction_utterance": [
            "Count the number of participants for each event.",
            "Among those, which event id has the least participants?",
            "What about the one that has the mose participants?"
        ],
        "interaction_query": [
            "SELECT event_id,count(*) FROM Participants_in_Events group by event_id",
            "SELECT event_id FROM Participants_in_Events group by event_id order by count(*) ASC limit 1",
            "SELECT Event_ID FROM Participants_in_Events GROUP BY Event_ID ORDER BY count(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "local_govt_in_alabama",
        "final_query": "SELECT event_id FROM EVENTS EXCEPT SELECT T1.event_id FROM Participants_in_Events AS T1 JOIN Participants AS T2 ON T1.Participant_ID  =  T2.Participant_ID WHERE Participant_Details  =  'Kenyatta Kuhn'",
        "final_utterance": "Which events id does not have any participant with detail 'Kenyatta Kuhn'?",
        "interaction_utterance": [
            "How many events are there?",
            "List the events that have participant details with 'Lupe Deckow'?",
            "What about the ones with 'Kenyatta Kuhn'?",
            "Show the id of the events where the above participants did not participate."
        ],
        "interaction_query": [
            "SELECT count(*) FROM EVENTS",
            "SELECT * FROM Participants where participant_details = 'Lupe Deckow'",
            "SELECT * FROM Participants where participant_details = 'Kenyatta Kuhn'",
            "SELECT event_id FROM EVENTS EXCEPT SELECT T1.event_id FROM Participants_in_Events AS T1 JOIN Participants AS T2 ON T1.Participant_ID  =  T2.Participant_ID WHERE Participant_Details  =  'Kenyatta Kuhn'"
        ]
    },
    {
        "db_id": "local_govt_in_alabama",
        "final_query": "SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id  =  T2.service_id WHERE T2.event_details  =  'Success' INTERSECT SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id  =  T2.service_id WHERE T2.event_details  =  'Fail'",
        "final_utterance": "Which services type had both successful and failure event details?",
        "interaction_utterance": [
            "List all the service types.",
            "Which service code has successful details?",
            "Then which has both successful and failure event details?"
        ],
        "interaction_query": [
            "SELECT service_type_code FROM Services",
            "SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id  =  T2.service_id WHERE T2.event_details  =  'Success'",
            "SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id  =  T2.service_id WHERE T2.event_details  =  'Success' INTERSECT SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id  =  T2.service_id WHERE T2.event_details  =  'Fail'"
        ]
    },
    {
        "db_id": "local_govt_in_alabama",
        "final_query": "SELECT count(*) FROM EVENTS WHERE event_id NOT IN (SELECT event_id FROM Participants_in_Events)",
        "final_utterance": "How many events did not have any participants?",
        "interaction_utterance": [
            "How many events are there?",
            "List all the event ids.",
            "Show all the event information if the event has someone participated.",
            "How about nobody has participated?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM EVENTS",
            "SELECT event_id FROM Participants_in_Events",
            "SELECT * FROM EVENTS WHERE event_id IN (SELECT event_id FROM Participants_in_Events)",
            "SELECT * FROM EVENTS WHERE event_id NOT IN (SELECT event_id FROM Participants_in_Events)",
            "SELECT count(*) FROM EVENTS WHERE event_id NOT IN (SELECT event_id FROM Participants_in_Events)"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT count(*) FROM body_builder",
        "final_utterance": "How many body builders are there?",
        "interaction_utterance": [
            "Show all body builder information.",
            "Then how many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM body_builder",
            "SELECT count(*) FROM body_builder"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT Total FROM body_builder ORDER BY Total ASC",
        "final_utterance": "List the total scores of body builders in ascending order.",
        "interaction_utterance": [
            "What are the total scores for each body builder?",
            "How do you order them in ascending order?"
        ],
        "interaction_query": [
            "SELECT Total FROM body_builder",
            "SELECT Total FROM body_builder ORDER BY Total ASC"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT Snatch ,  Clean_Jerk FROM body_builder ORDER BY Snatch ASC",
        "final_utterance": "List the snatch score and clean jerk score of body builders in ascending order of snatch score.",
        "interaction_utterance": [
            "What are the snatch scores of each body builder?",
            "What are the snatch score and clean jerk score of each body_builder?",
            "Order the results in ascending order of snatch score."
        ],
        "interaction_query": [
            "SELECT Snatch FROM body_builder",
            "SELECT Snatch ,  Clean_Jerk FROM body_builder",
            "SELECT Snatch ,  Clean_Jerk FROM body_builder ORDER BY Snatch ASC"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT avg(Snatch) FROM body_builder",
        "final_utterance": "What is the average snatch score of body builders?",
        "interaction_utterance": [
            "What is the snatch score of each body builder?",
            "What is the minimum value of the them?",
            "What about the mean value?"
        ],
        "interaction_query": [
            "SELECT Snatch FROM body_builder",
            "SELECT min(Snatch) FROM body_builder",
            "SELECT avg(Snatch) FROM body_builder"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT Clean_Jerk FROM body_builder ORDER BY Total DESC LIMIT 1",
        "final_utterance": "What are the clean and jerk score of the body builder with the highest total score?",
        "interaction_utterance": [
            "What are all the information about the body builders?",
            "Which have the top three total score?",
            "What about top one?",
            "Show the clean and jerk score of it."
        ],
        "interaction_query": [
            "SELECT * FROM body_builder",
            "SELECT * FROM body_builder ORDER BY Total DESC LIMIT 3",
            "SELECT * FROM body_builder ORDER BY Total DESC LIMIT 1",
            "SELECT Clean_Jerk FROM body_builder ORDER BY Total DESC LIMIT 1"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT Birth_Date FROM People ORDER BY Height ASC",
        "final_utterance": "What are the birthdays of people in ascending order of height?",
        "interaction_utterance": [
            "Show everything about the people.",
            "What are the birthdays?",
            "Order the results in descending order of height.",
            "What about ascending order?"
        ],
        "interaction_query": [
            "SELECT * FROM People",
            "SELECT Birth_Date FROM People",
            "SELECT Birth_Date FROM People ORDER BY Height DESC",
            "SELECT Birth_Date FROM People ORDER BY Height ASC"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID",
        "final_utterance": "What are the names of body builders?",
        "interaction_utterance": [
            "What are the names of all the people?",
            "How many are there?",
            "Show the names of body builders."
        ],
        "interaction_query": [
            "SELECT Name FROM people",
            "SELECT count(Name) FROM people",
            "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Total  >  300",
        "final_utterance": "What are the names of body builders whose total score is higher than 300?",
        "interaction_utterance": [
            "What are the names of all the people?",
            "Show the names of body builders.",
            "Among those, which total score is higher than 200?",
            "What about higher than 300?"
        ],
        "interaction_query": [
            "SELECT Name FROM people",
            "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID",
            "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Total  >  200",
            "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Total  >  300"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Weight DESC LIMIT 1",
        "final_utterance": "What is the name of the body builder with the greatest body weight?",
        "interaction_utterance": [
            "What are the names of all the people?",
            "Show the names of body builders.",
            "Show the names of them which has the greatest body weight."
        ],
        "interaction_query": [
            "SELECT Name FROM people",
            "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID",
            "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Weight DESC LIMIT 1"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT T2.Birth_Date ,  T2.Birth_Place FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Total DESC LIMIT 1",
        "final_utterance": "What are the birth date and birth place of the body builder with the highest total points?",
        "interaction_utterance": [
            "Show the information of all the people.",
            "Show the Birth Date and Birth Place about each one.",
            "What about the body builders?",
            "Among those, show the three which have the highest total points?",
            "What about the highest total point?"
        ],
        "interaction_query": [
            "SELECT * from people",
            "SELECT Birth_Date, Birth_Place from people",
            "SELECT T2.Birth_Date ,  T2.Birth_Place FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID",
            "SELECT T2.Birth_Date ,  T2.Birth_Place FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Total DESC LIMIT 3",
            "SELECT T2.Birth_Date ,  T2.Birth_Place FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Total DESC LIMIT 1"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT T2.Height FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Total  <  315",
        "final_utterance": "What are the heights of body builders with total score smaller than 315?",
        "interaction_utterance": [
            "What are the heights of the people?",
            "What is the average?",
            "What are the heights of the body builders?",
            "For those results, which ones have weight larger than 91.0?",
            "What about the total score is smaller than 315?"
        ],
        "interaction_query": [
            "SELECT Height FROM people",
            "SELECT avg(Height) FROM people",
            "SELECT T2.Height FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID",
            "SELECT T2.Height FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Weight  >  91.0",
            "SELECT T2.Height FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Total  <  315"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT avg(T1.Total) FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Height  >  200",
        "final_utterance": "What is the average total score of body builders with height bigger than 200?",
        "interaction_utterance": [
            "What are the total scores of body builder?",
            "How about the average value of those scores?",
            "What are the average scores of those results where the people weight is larger than 100.0?",
            "What about the people height larger than 200?"
        ],
        "interaction_query": [
            "SELECT Total FROM body_builder",
            "SELECT avg(Total) FROM body_builder",
            "SELECT avg(T1.Total) FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Weight  >  100.0",
            "SELECT avg(T1.Total) FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Height  >  200"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Total DESC",
        "final_utterance": "What are the names of body builders in descending order of total scores?",
        "interaction_utterance": [
            "What are the names of body builders?",
            "List these results in ascending order by the weight.",
            "Now list them in descending order by the total score."
        ],
        "interaction_query": [
            "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID",
            "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Weight ASC",
            "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Total DESC"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT Birth_Place, COUNT(*) FROM people GROUP BY Birth_Place",
        "final_utterance": "List each birth place along with the number of people from there.",
        "interaction_utterance": [
            "What are the birth places?",
            "How many people in each birth place?"
        ],
        "interaction_query": [
            "SELECT Birth_Place FROM people",
            "SELECT Birth_Place, COUNT(*) FROM people GROUP BY Birth_Place"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT Birth_Place FROM people GROUP BY Birth_Place ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "What is the most common birth place of people?",
        "interaction_utterance": [
            "What are the information of all the people?",
            "What are the birth places of all the people?",
            "How many people in each of the birth place?",
            "What are the four most popular birth places?",
            "What about top one?"
        ],
        "interaction_query": [
            "SELECT * FROM people",
            "SELECT Birth_Place FROM people",
            "SELECT Birth_Place, count(*) FROM people GROUP BY Birth_Place",
            "SELECT Birth_Place FROM people GROUP BY Birth_Place ORDER BY COUNT(*) DESC LIMIT 4",
            "SELECT Birth_Place FROM people GROUP BY Birth_Place ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT Birth_Place FROM people GROUP BY Birth_Place HAVING COUNT(*)  >=  2",
        "final_utterance": "What are the birth places that are shared by at least two people?",
        "interaction_utterance": [
            "What are the birth places of all the people?",
            "How many people in each of the birth place?",
            "Keep the birth places where the birth place is only token by one person.",
            "What about at least two people?"
        ],
        "interaction_query": [
            "SELECT Birth_Place FROM people",
            "SELECT Birth_Place, count(*) FROM people GROUP BY Birth_Place",
            "SELECT Birth_Place FROM people GROUP BY Birth_Place HAVING COUNT(*)  =  1",
            "SELECT Birth_Place FROM people GROUP BY Birth_Place HAVING COUNT(*)  >=  2"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT Height ,  Weight FROM people ORDER BY Height DESC",
        "final_utterance": "List the height and weight of people in descending order of height.",
        "interaction_utterance": [
            "What are the heights and weights of all the people?",
            "Show those results in descending order?"
        ],
        "interaction_query": [
            "SELECT Height ,  Weight FROM people",
            "SELECT Height ,  Weight FROM people ORDER BY Height DESC"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT * FROM body_builder",
        "final_utterance": "Show all information about each body builder.",
        "interaction_utterance": [
            "What information about all the body builders?"
        ],
        "interaction_query": [
            "SELECT * FROM body_builder"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT Name ,  birth_place FROM people EXCEPT SELECT T1.Name ,  T1.birth_place FROM people AS T1 JOIN body_builder AS T2 ON T1.people_id  =  T2.people_id",
        "final_utterance": "List the names and origins of people who are not body builders.",
        "interaction_utterance": [
            "Show the name and birth place about the people.",
            "Show that of all the body builders",
            "What are the name and birth place of people who are not body builders?"
        ],
        "interaction_query": [
            "SELECT Name ,  birth_place FROM people",
            "SELECT T1.Name ,  T1.birth_place FROM people AS T1 JOIN body_builder AS T2 ON T1.people_id  =  T2.people_id",
            "SELECT Name ,  birth_place FROM people EXCEPT SELECT T1.Name ,  T1.birth_place FROM people AS T1 JOIN body_builder AS T2 ON T1.people_id  =  T2.people_id"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT count(DISTINCT Birth_Place) FROM people",
        "final_utterance": "How many distinct birth places are there?",
        "interaction_utterance": [
            "What are the birth places are there?",
            "What are the unique birth places?",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT Birth_Place FROM people",
            "SELECT DISTINCT Birth_Place FROM people",
            "SELECT count(DISTINCT Birth_Place) FROM people"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT count(*) FROM people WHERE people_id NOT IN (SELECT People_ID FROM body_builder)",
        "final_utterance": "How many persons are not body builders?",
        "interaction_utterance": [
            "Show the people Id of the body builders.",
            "Which people are there?",
            "What about people who are not there?",
            "How many such people in total?"
        ],
        "interaction_query": [
            "SELECT People_ID FROM body_builder",
            "SELECT * FROM people WHERE people_id IN (SELECT People_ID FROM body_builder)",
            "SELECT * FROM people WHERE people_id NOT IN (SELECT People_ID FROM body_builder)",
            "SELECT count(*) FROM people WHERE people_id NOT IN (SELECT People_ID FROM body_builder)"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT T2.weight FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id  =  T2.people_id WHERE T1.snatch  >  140 OR T2.height  >  200;",
        "final_utterance": "List the weight of the body builders who have snatch score higher than 140 or have the height greater than 200.",
        "interaction_utterance": [
            "What are the weights of the body builders?",
            "With those weights, keep the ones whose snatch score is higher 180.",
            "What about higher than 140 or the height is greater than 200?"
        ],
        "interaction_query": [
            "SELECT T2.weight FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id  =  T2.people_id",
            "SELECT T2.weight FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id  =  T2.people_id WHERE T1.snatch  >  180",
            "SELECT T2.weight FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id  =  T2.people_id WHERE T1.snatch  >  140 OR T2.height  >  200;"
        ]
    },
    {
        "db_id": "body_builder",
        "final_query": "SELECT T1.total FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id  =  T2.people_id WHERE T2.Birth_Date LIKE \"%January%\";",
        "final_utterance": "What are the total scores of the body builders whose birthday contains the string \"January\" ?",
        "interaction_utterance": [
            "What are the total scores of the body builders",
            "Among those, show the one who was born in May.",
            "What about born in January?"
        ],
        "interaction_query": [
            "SELECT total FROM body_builder",
            "SELECT T1.total FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id  =  T2.people_id WHERE T2.Birth_Date LIKE \"%May%\";",
            "SELECT T1.total FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id  =  T2.people_id WHERE T2.Birth_Date LIKE \"%January%\";"
        ]
    },
    {
        "db_id": "pilot_record",
        "final_query": "SELECT count(*) FROM pilot",
        "final_utterance": "How many pilots are there?",
        "interaction_utterance": [
            "List all the pilots.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM pilot",
            "SELECT count(*) FROM pilot"
        ]
    },
    {
        "db_id": "pilot_record",
        "final_query": "SELECT Pilot_name FROM pilot ORDER BY Rank ASC",
        "final_utterance": "List the names of pilots in ascending order of rank.",
        "interaction_utterance": [
            "Show all the pilot names",
            "How many in total?",
            "Order them in ascending order of the rank."
        ],
        "interaction_query": [
            "SELECT Pilot_name FROM pilot",
            "SELECT count(Pilot_name) FROM pilot",
            "SELECT Pilot_name FROM pilot ORDER BY Rank ASC"
        ]
    },
    {
        "db_id": "pilot_record",
        "final_query": "SELECT POSITION ,  Team FROM pilot",
        "final_utterance": "What are the positions and teams of pilots?",
        "interaction_utterance": [
            "Show all the pilot names and positions.",
            "What about the pilot names and their teams?"
        ],
        "interaction_query": [
            "SELECT Pilot_name, POSITION FROM pilot",
            "SELECT POSITION ,  Team FROM pilot"
        ]
    },
    {
        "db_id": "pilot_record",
        "final_query": "SELECT DISTINCT POSITION FROM pilot WHERE Age  >  30",
        "final_utterance": "List the distinct positions of pilots older than 30.",
        "interaction_utterance": [
            "Show all the pilot names and positions",
            "Show all the names and their age?",
            "Keep those who are 37 years old.",
            "Show the distinct positions of pilots older than 30."
        ],
        "interaction_query": [
            "SELECT Pilot_name, POSITION FROM pilot",
            "SELECT Pilot_name, Age FROM pilot",
            "SELECT Pilot_name, Age FROM pilot WHERE Age = 37",
            "SELECT DISTINCT POSITION FROM pilot WHERE Age  >  30"
        ]
    },
    {
        "db_id": "pilot_record",
        "final_query": "SELECT Pilot_name FROM pilot WHERE Team  =  \"Bradley\" OR Team  =  \"Fordham\"",
        "final_utterance": "Show the names of pilots from team \"Bradley\" or \"Fordham\".",
        "interaction_utterance": [
            "List all pilot names with there team name.",
            "Among those, which are from the Team \"Bradley\"?",
            "What about \"Eau Claire High School\"?",
            "What about \"Bradley\" or \"Fordham\"?"
        ],
        "interaction_query": [
            "SELECT Pilot_name, Team FROM pilot",
            "SELECT Pilot_name FROM pilot WHERE Team  =  \"Bradley\"",
            "SELECT Pilot_name FROM pilot WHERE Team  =  \"Eau Claire High School\"",
            "SELECT Pilot_name FROM pilot WHERE Team  =  \"Bradley\" OR Team  =  \"Fordham\""
        ]
    },
    {
        "db_id": "pilot_record",
        "final_query": "SELECT Join_Year FROM pilot ORDER BY Rank ASC LIMIT 1",
        "final_utterance": "What is the joined year of the pilot of the highest rank?",
        "interaction_utterance": [
            "Show all the pilot names and the join years.",
            "How many unique years are there?",
            "List the years by the pilot rank in ascending order.",
            "In which join year, the pilot has the highest rank?"
        ],
        "interaction_query": [
            "SELECT Pilot_name, Join_Year FROM pilot",
            "SELECT count(Join_Year) FROM pilot",
            "SELECT Join_Year FROM pilot ORDER BY Rank ASC",
            "SELECT Join_Year FROM pilot ORDER BY Rank ASC LIMIT 1"
        ]
    },
    {
        "db_id": "pilot_record",
        "final_query": "SELECT Nationality ,  COUNT(*) FROM pilot GROUP BY Nationality",
        "final_utterance": "What are the different nationalities of pilots? Show each nationality and the number of pilots of each nationality.",
        "interaction_utterance": [
            "Show the pilot names and their nationalities.",
            "Which nationalities have the pilots whose position is \"Center Team\"?",
            "Show the nationalities and the number of pilots for each."
        ],
        "interaction_query": [
            "SELECT Pilot_name, Nationality FROM pilot",
            "SELECT Nationality FROM pilot WHERE Position = \"Center Team\"",
            "SELECT Nationality, count(*) FROM pilot GROUP BY Nationality"
        ]
    },
    {
        "db_id": "pilot_record",
        "final_query": "SELECT Nationality FROM pilot GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the most common nationality of pilots.",
        "interaction_utterance": [
            "Show the pilot names and their nationalities.",
            "Which nationalities have the pilots who is younger than 34?",
            "Show each one and the number of pilots.",
            "Among those, which one is the most popular one?"
        ],
        "interaction_query": [
            "SELECT Pilot_name, Nationality FROM pilot",
            "SELECT Nationality FROM pilot WHERE Age < 34",
            "SELECT Nationality, count(*) FROM pilot GROUP BY Nationality",
            "SELECT Nationality FROM pilot GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "pilot_record",
        "final_query": "SELECT POSITION FROM pilot WHERE Join_Year\t <  2000 INTERSECT SELECT POSITION FROM pilot WHERE Join_Year\t >  2005",
        "final_utterance": "Show the pilot positions that have both pilots joining after year 2005 and pilots joining before 2000.",
        "interaction_utterance": [
            "List all the  pilot positions.",
            "Keep the ones whose age is younger than 35",
            "What about the join year is early than 2000?",
            "What about in the range of year f2000 and 2005?"
        ],
        "interaction_query": [
            "SELECT POSITION FROM pilot",
            "SELECT POSITION FROM pilot WHERE Age <  35",
            "SELECT POSITION FROM pilot WHERE Join_Year\t <  2000",
            "SELECT POSITION FROM pilot WHERE Join_Year\t <  2000 INTERSECT SELECT POSITION FROM pilot WHERE Join_Year\t >  2005"
        ]
    },
    {
        "db_id": "pilot_record",
        "final_query": "SELECT T3.Pilot_name ,  T2.Model FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID  =  T3.Pilot_ID",
        "final_utterance": "Show the names of pilots and models of aircrafts they have flied with.",
        "interaction_utterance": [
            "What are all the information about the pilots?",
            "What about the fleet series?",
            "How about the aircraft models?",
            "Show all the flying records with the pilot names and the aircraft's models."
        ],
        "interaction_query": [
            "SELECT * FROM pilot",
            "SELECT Fleet_Series FROM aircraft",
            "SELECT Model FROM aircraft",
            "SELECT T3.Pilot_name ,  T2.Model FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID  =  T3.Pilot_ID"
        ]
    },
    {
        "db_id": "pilot_record",
        "final_query": "SELECT T3.Pilot_name ,  T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID  =  T3.Pilot_ID ORDER BY T3.Rank",
        "final_utterance": "Show the names of pilots and fleet series of the aircrafts they have flied with in ascending order of the rank of the pilot.",
        "interaction_utterance": [
            "What are all the information about the pilots?",
            "What about the fleet series?",
            "Show all the flying records with the pilot names and the aircraft's sleet series.",
            "Now show those results in ascending order of the pilot age.",
            "What about in ascending order of the pilot rank?"
        ],
        "interaction_query": [
            "SELECT * FROM pilot",
            "SELECT Fleet_Series FROM aircraft",
            "SELECT T3.Pilot_name ,  T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID  =  T3.Pilot_ID",
            "SELECT T3.Pilot_name ,  T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID  =  T3.Pilot_ID ORDER BY T3.Age",
            "SELECT T3.Pilot_name ,  T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID  =  T3.Pilot_ID ORDER BY T3.Rank"
        ]
    },
    {
        "db_id": "pilot_record",
        "final_query": "SELECT T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID  =  T3.Pilot_ID WHERE T3.Age  <  34",
        "final_utterance": "Show the fleet series of the aircrafts flied by pilots younger than 34",
        "interaction_utterance": [
            "Show all the fleet series?",
            "Which aircrafts have been flied by pilot whose name is \"Charles Oakley\"?",
            "What about the ones that have been flied by pilots younger than 34"
        ],
        "interaction_query": [
            "SELECT Fleet_Series FROM aircraft",
            "SELECT T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID  =  T3.Pilot_ID WHERE T3.Pilot_name = \"Charles Oakley\"",
            "SELECT T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID  =  T3.Pilot_ID WHERE T3.Age  <  34"
        ]
    },
    {
        "db_id": "pilot_record",
        "final_query": "SELECT T2.Pilot_name ,  COUNT(*) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID  =  T2.pilot_ID GROUP BY T2.Pilot_name",
        "final_utterance": "Show the names of pilots and the number of records they have.",
        "interaction_utterance": [
            "How many records in total?",
            "Show the pilot names where there is at lease one record.",
            "Show the names and the corresponding number of records."
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM pilot_record",
            "SELECT T2.Pilot_name FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID  =  T2.pilot_ID GROUP BY T2.Pilot_name",
            "SELECT T2.Pilot_name ,  COUNT(*) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID  =  T2.pilot_ID GROUP BY T2.Pilot_name"
        ]
    },
    {
        "db_id": "pilot_record",
        "final_query": "SELECT T2.Pilot_name ,  COUNT(*) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID  =  T2.pilot_ID GROUP BY T2.Pilot_name HAVING COUNT(*)  >  1",
        "final_utterance": "Show names of pilots that have more than one record.",
        "interaction_utterance": [
            "How many records are there?",
            "Show the pilot names where there is at lease one record.",
            "Which pilot has only one record?",
            "What about the ones who have more than one record?"
        ],
        "interaction_query": [
            "SELECT COUNT(*) FROM pilot_record",
            "SELECT T2.Pilot_name FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID  =  T2.pilot_ID GROUP BY T2.Pilot_name",
            "SELECT T2.Pilot_name ,  COUNT(*) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID  =  T2.pilot_ID GROUP BY T2.Pilot_name HAVING COUNT(*)  =  1",
            "SELECT T2.Pilot_name ,  COUNT(*) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID  =  T2.pilot_ID GROUP BY T2.Pilot_name HAVING COUNT(*)  >  1"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT start_station_name ,  end_station_name FROM trip ORDER BY id LIMIT 3",
        "final_utterance": "Give me the start station and end station for the trips with the three oldest ids.",
        "interaction_utterance": [
            "Which trips have the oldest ids? Limit it to 3.",
            "Just show information on the start station and end station for those."
        ],
        "interaction_query": [
            "SELECT * FROM trip ORDER BY id LIMIT 3",
            "SELECT start_station_name ,  end_station_name FROM trip ORDER BY id LIMIT 3"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT avg(lat) ,  avg(long) FROM station WHERE city  =  \"San Jose\"",
        "final_utterance": "What is the average latitude and longitude of stations located in San Jose city?",
        "interaction_utterance": [
            "Which stations are located in San Jose City?",
            "For those, which are their latitude and longitude?",
            "Take averages."
        ],
        "interaction_query": [
            "SELECT name from station where city = \"San Jose\"",
            "SELECT lat, long FROM station WHERE city  =  \"San Jose\"",
            "SELECT avg(lat) ,  avg(long) FROM station WHERE city  =  \"San Jose\""
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT id FROM trip ORDER BY duration LIMIT 1",
        "final_utterance": "What is the id of the trip that has the shortest duration?",
        "interaction_utterance": [
            "Order the trips by duration, ascending.",
            "Limit it to the ids.",
            "Limit it to the shortest duration."
        ],
        "interaction_query": [
            "SELECT * FROM trip ORDER BY duration",
            "SELECT id FROM trip ORDER BY duration",
            "SELECT id FROM trip ORDER BY duration LIMIT 1"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT sum(duration) ,  max(duration) FROM trip WHERE bike_id  =  636",
        "final_utterance": "What is the total and maximum duration of trips with bike id 636?",
        "interaction_utterance": [
            "Show records of trips with bike id 636.",
            "just show the durations.",
            "Take a sum and max."
        ],
        "interaction_query": [
            "SELECT * FROM trip WHERE bike_id  =  636",
            "SELECT duration FROM trip WHERE bike_id  =  636",
            "SELECT sum(duration) ,  max(duration) FROM trip WHERE bike_id  =  636"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT zip_code  ,  avg(mean_temperature_f) FROM weather WHERE date LIKE \"8/%\" GROUP BY zip_code",
        "final_utterance": "For each zip code, return the average mean temperature of August there.",
        "interaction_utterance": [
            "Show weather records from August.",
            "Just show the mean temperature in those records.",
            "Group by zipcode and average those records."
        ],
        "interaction_query": [
            "SELECT * FROM weather WHERE date LIKE \"8/%\"",
            "SELECT mean_temperature_f FROM weather WHERE date LIKE \"8/%\"",
            "SELECT zip_code  ,  avg(mean_temperature_f) FROM weather WHERE date LIKE \"8/%\" GROUP BY zip_code"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT DISTINCT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id  =  T2.station_id WHERE T2.bikes_available  =  7",
        "final_utterance": "Return the unique name for stations that have ever had 7 bikes available.",
        "interaction_utterance": [
            "Which station ids ever had 7 bikes available?",
            "Give the names for those stations."
        ],
        "interaction_query": [
            "SELECT DISTINCT station_id from status WHERE bikes_available = 7",
            "SELECT DISTINCT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id  =  T2.station_id WHERE T2.bikes_available  =  7"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT start_station_name ,  start_station_id FROM trip WHERE start_date LIKE \"8/%\" GROUP BY start_station_name ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Which start station had the most trips starting from August? Give me the name and id of the station.",
        "interaction_utterance": [
            "Show trip records from August.",
            "Limit that to the start station name and id.",
            "Which start station had the most trips starting from August? Give me the name and id of the station."
        ],
        "interaction_query": [
            "SELECT * from trip WHERE start_date LIKE \"8/%\"",
            "SELECT start_station_name ,  start_station_id FROM trip WHERE start_date LIKE \"8/%\"",
            "SELECT start_station_name ,  start_station_id FROM trip WHERE start_date LIKE \"8/%\" GROUP BY start_station_name ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT bike_id FROM trip WHERE zip_code  =  94002 GROUP BY bike_id ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Which bike traveled the most often in zip code 94002?",
        "interaction_utterance": [
            "Show bike ids that traveled in zip code 94002.",
            "Which traveled there most often?"
        ],
        "interaction_query": [
            "SELECT DISTINCT bike_id FROM trip WHERE zip_code  =  94002",
            "SELECT bike_id FROM trip WHERE zip_code  =  94002 GROUP BY bike_id ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT COUNT(*) FROM weather WHERE mean_humidity  >  50 AND mean_visibility_miles  >  8",
        "final_utterance": "How many days had both mean humidity above 50 and mean visibility above 8?",
        "interaction_utterance": [
            "Show the records of weather events with both mean humidity above 50 and mean visibility above 8.",
            "Count those days."
        ],
        "interaction_query": [
            "SELECT * FROM weather WHERE mean_humidity  >  50 AND mean_visibility_miles  >  8",
            "SELECT COUNT(*) FROM weather WHERE mean_humidity  >  50 AND mean_visibility_miles  >  8"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT T1.lat ,  T1.long ,  T1.city FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.start_station_id ORDER BY T2.duration LIMIT 1",
        "final_utterance": "What is the latitude, longitude, city of the station from which the shortest trip started?",
        "interaction_utterance": [
            "Give records on the lengths of trips.",
            "Give records on the shortest trip.",
            "From which station id did it originate?",
            "For that start station id, give latitude, longitude, and city."
        ],
        "interaction_query": [
            "SELECT duration from trip",
            "SELECT * from trip ORDER by duration limit 1",
            "SELECT start_station_id from trip ORDER by duration limit 1",
            "SELECT T1.lat ,  T1.long ,  T1.city FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.start_station_id ORDER BY T2.duration LIMIT 1"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT id FROM station WHERE city  =  \"San Francisco\" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING avg(bikes_available)  >  10",
        "final_utterance": "What are the ids of stations that are located in San Francisco and have average bike availability above 10.",
        "interaction_utterance": [
            "Which station ids have average availability above 10?",
            "And which are located in San Francisco?",
            "Which pass both conditions?"
        ],
        "interaction_query": [
            "SELECT DISTINCT station_id FROM status GROUP BY station_id HAVING avg(bikes_available)  >  10",
            "SELECT DISTINCT id FROM station WHERE city  =  \"San Francisco\"",
            "SELECT id FROM station WHERE city  =  \"San Francisco\" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING avg(bikes_available)  >  10"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT T1.name ,  T1.id FROM station AS T1 JOIN status AS T2 ON T1.id  =  T2.station_id GROUP BY T2.station_id HAVING avg(T2.bikes_available)  >  14 UNION SELECT name ,  id FROM station WHERE installation_date LIKE \"12/%\"",
        "final_utterance": "What are the names and ids of stations that had more than 14 bikes available on average or were installed in December?",
        "interaction_utterance": [
            "Show records (name and id) of stations installed in December.",
            "Which had more than 14 bikes available?",
            "Union those two."
        ],
        "interaction_query": [
            "SELECT name ,  id FROM station WHERE installation_date LIKE \"12/%\"",
            "SELECT T1.name ,  T1.id FROM station AS T1 JOIN status AS T2 ON T1.id  =  T2.station_id GROUP BY T2.station_id HAVING avg(T2.bikes_available)  >  14",
            "SELECT T1.name ,  T1.id FROM station AS T1 JOIN status AS T2 ON T1.id  =  T2.station_id GROUP BY T2.station_id HAVING avg(T2.bikes_available)  >  14 UNION SELECT name ,  id FROM station WHERE installation_date LIKE \"12/%\""
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT cloud_cover FROM weather WHERE zip_code  =  94107 GROUP BY cloud_cover ORDER BY COUNT (*) DESC LIMIT 3",
        "final_utterance": "What is the 3 most common cloud cover rates in the region of zip code 94107?",
        "interaction_utterance": [
            "Show records on cloud cover?",
            "Just for the zip code 94107.",
            "What is the 3 most common cloud cover rates in the region of zip code 94107?"
        ],
        "interaction_query": [
            "SELECT cloud_cover FROM weather",
            "SELECT cloud_cover FROM weather WHERE zip_code = 94107",
            "SELECT cloud_cover FROM weather WHERE zip_code  =  94107 GROUP BY cloud_cover ORDER BY COUNT (*) DESC LIMIT 3"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT zip_code FROM weather GROUP BY zip_code ORDER BY avg(mean_sea_level_pressure_inches) LIMIT 1",
        "final_utterance": "What is the zip code in which the average mean sea level pressure is the lowest?",
        "interaction_utterance": [
            "Show the records on mean sea level pressure by zip code.",
            "Now group by zip code and average over the pressure.",
            "Which zip code has the lowest of those?"
        ],
        "interaction_query": [
            "SELECT zip_code, mean_sea_level_pressure_inches FROM weather GROUP BY zip_code",
            "SELECT zip_code, avg(mean_sea_level_pressure_inches) FROM weather GROUP BY zip_code",
            "SELECT zip_code FROM weather GROUP BY zip_code ORDER BY avg(mean_sea_level_pressure_inches) LIMIT 1"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT avg(bikes_available) FROM status WHERE station_id NOT IN (SELECT id FROM station WHERE city  =  \"Palo Alto\")",
        "final_utterance": "What is the average bike availability in stations that are not located in Palo Alto?",
        "interaction_utterance": [
            "Which stations are located in \"Palo Alto\"?",
            "What is the average bike availability in stations that are not located in Palo Alto?"
        ],
        "interaction_query": [
            "SELECT id FROM station WHERE city  =  \"Palo Alto\"",
            "SELECT avg(bikes_available) FROM status WHERE station_id NOT IN (SELECT id FROM station WHERE city  =  \"Palo Alto\")"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT avg(long) FROM station WHERE id NOT IN (SELECT station_id FROM status GROUP BY station_id HAVING max(bikes_available)  >  10)",
        "final_utterance": "What is the average longitude of stations that never had bike availability more than 10?",
        "interaction_utterance": [
            "Which station ids ever had bike availability more than 10?",
            "Which did not?",
            "For those, take the average longitude."
        ],
        "interaction_query": [
            "SELECT DISTINCT station_id FROM status GROUP BY station_id HAVING max(bikes_available)  >  10",
            "SELECT id FROM station WHERE id NOT IN (SELECT station_id FROM status GROUP BY station_id HAVING max(bikes_available)  >  10)",
            "SELECT avg(long) FROM station WHERE id NOT IN (SELECT station_id FROM status GROUP BY station_id HAVING max(bikes_available)  >  10)"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT T1.id FROM trip AS T1 JOIN weather AS T2 ON T1.zip_code  =  T2.zip_code GROUP BY T2.zip_code HAVING avg(T2.mean_temperature_f)  >  60",
        "final_utterance": "Give me ids for all the trip that took place in a zip code area with average mean temperature above 60.",
        "interaction_utterance": [
            "Give zip codes from trips.",
            "Which zip codes had an average mean temperature greater than 60?",
            "Give me ids for all the trip that took place in a zip code area with average mean temperature above 60."
        ],
        "interaction_query": [
            "SELECT DISTINCT zip_code from trip",
            "SELECT zip_code from weather group by zip_code HAVING avg(mean_temperature_f) > 60",
            "SELECT T1.id FROM trip AS T1 JOIN weather AS T2 ON T1.zip_code  =  T2.zip_code GROUP BY T2.zip_code HAVING avg(T2.mean_temperature_f)  >  60"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT zip_code , count(*) FROM weather WHERE max_wind_Speed_mph  >=  25 GROUP BY zip_code",
        "final_utterance": "For each zip code, return how many times max wind speed reached 25?",
        "interaction_utterance": [
            "Give weather records with max wind speed greater than or equal to 25.",
            "Count the times that event occurred by zip code."
        ],
        "interaction_query": [
            "SELECT * FROM weather WHERE max_wind_Speed_mph  >=  25",
            "SELECT zip_code , count(*) FROM weather WHERE max_wind_Speed_mph  >=  25 GROUP BY zip_code"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT date ,  zip_code FROM weather WHERE min_dew_point_f  <  (SELECT min(min_dew_point_f) FROM weather WHERE zip_code  =  94107)",
        "final_utterance": "On which day and in which zip code was the min dew point lower than any day in zip code 94107?",
        "interaction_utterance": [
            "What is the minimum min dew point in zip code 94107?",
            "Give dates and zip codes with lower min dew points than that, even."
        ],
        "interaction_query": [
            "SELECT min(min_dew_point_f) FROM weather WHERE zip_code  =  94107",
            "SELECT date ,  zip_code FROM weather WHERE min_dew_point_f  <  (SELECT min(min_dew_point_f) FROM weather WHERE zip_code  =  94107)"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT T1.id FROM trip AS T1 JOIN station AS T2 ON T1.start_station_id  =  T2.id ORDER BY T2.dock_count DESC LIMIT 1",
        "final_utterance": "Which trip started from the station with the largest dock count? Give me the trip id.",
        "interaction_utterance": [
            "Show the dock counts of stations.",
            "Which dock count is largest?",
            "Give the trip id of the trip that started there."
        ],
        "interaction_query": [
            "SELECT name, dock_count from station",
            "SELECT name, dock_count from station ORDER by dock_count desc limit 1",
            "SELECT T1.id FROM trip AS T1 JOIN station AS T2 ON T1.start_station_id  =  T2.id ORDER BY T2.dock_count DESC LIMIT 1"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT count(*) FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id  =  T2.id WHERE T2.city !=  \"San Francisco\"",
        "final_utterance": "Count the number of trips that did not end in San Francisco city.",
        "interaction_utterance": [
            "Which trips ended in San Francisco?",
            "Which did not?",
            "Count them."
        ],
        "interaction_query": [
            "SELECT T1.id FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id  =  T2.id WHERE T2.city =  \"San Francisco\"",
            "SELECT T1.id FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id  =  T2.id WHERE T2.city !=  \"San Francisco\"",
            "SELECT count(*) FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id  =  T2.id WHERE T2.city !=  \"San Francisco\""
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT date FROM weather WHERE zip_code  =  94107 AND EVENTS != \"Fog\" AND EVENTS != \"Rain\"",
        "final_utterance": "In zip code 94107, on which day neither Fog nor Rain was observed?",
        "interaction_utterance": [
            "Which weather events had Fog or Rain?",
            "Which had neither?",
            "Limit the search to zip code 94107.",
            "Just give the date."
        ],
        "interaction_query": [
            "SELECT * FROM weather WHERE EVENTS = \"Fog\" OR EVENTS = \"Rain\"",
            "SELECT * FROM weather WHERE EVENTS != \"Fog\" AND EVENTS != \"Rain\"",
            "SELECT * FROM weather WHERE zip_code  =  94107 AND EVENTS != \"Fog\" AND EVENTS != \"Rain\"",
            "SELECT date FROM weather WHERE zip_code  =  94107 AND EVENTS != \"Fog\" AND EVENTS != \"Rain\""
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT id FROM station WHERE lat  >  37.4 EXCEPT SELECT station_id FROM status GROUP BY station_id HAVING min(bikes_available)  <  7",
        "final_utterance": "What are the ids of stations that have latitude above 37.4 and never had bike availability below 7?",
        "interaction_utterance": [
            "Which station ids ever had bike availability below 7?",
            "Which did not?",
            "Force those stations to additionally have latitude above 37.4."
        ],
        "interaction_query": [
            "SELECT DISTINCT station_id FROM status GROUP BY station_id HAVING min(bikes_available)  <  7",
            "SELECT id FROM station EXCEPT SELECT station_id FROM status GROUP BY station_id HAVING min(bikes_available)  <  7",
            "SELECT id FROM station WHERE lat  >  37.4 EXCEPT SELECT station_id FROM status GROUP BY station_id HAVING min(bikes_available)  <  7"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id  =  T2.station_id GROUP BY T2.station_id HAVING avg(bikes_available)  >  10 EXCEPT SELECT name FROM station WHERE city  =  \"San Jose\"",
        "final_utterance": "What are names of stations that have average bike availability above 10 and are not located in San Jose city?",
        "interaction_utterance": [
            "Which stations are located in San Jose?",
            "What are names of stations that have average bike availability above 10 and are not located in San Jose city?"
        ],
        "interaction_query": [
            "SELECT name FROM station WHERE city  =  \"San Jose\"",
            "SELECT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id  =  T2.station_id GROUP BY T2.station_id HAVING avg(bikes_available)  >  10 EXCEPT SELECT name FROM station WHERE city  =  \"San Jose\""
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT name ,  lat ,  city FROM station ORDER BY lat LIMIT 1",
        "final_utterance": "What are the name, latitude, and city of the station with the lowest latitude?",
        "interaction_utterance": [
            "Give name, latitude, and city from stations.",
            "Order that by latitude ascending.",
            "Just limit it to the lowest latitude."
        ],
        "interaction_query": [
            "SELECT name ,  lat ,  city FROM station",
            "SELECT name ,  lat ,  city FROM station ORDER BY lat",
            "SELECT name ,  lat ,  city FROM station ORDER BY lat LIMIT 1"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT date ,  mean_temperature_f ,  mean_humidity FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 3",
        "final_utterance": "What are the date, mean temperature and mean humidity for the top 3 days with the largest max gust speeds?",
        "interaction_utterance": [
            "Which dates had the largest max gust speed?",
            "Also give mean temperature and mean humidity.",
            "Give the top 3 days instead."
        ],
        "interaction_query": [
            "SELECT date FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 1",
            "SELECT date ,  mean_temperature_f ,  mean_humidity FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 1",
            "SELECT date ,  mean_temperature_f ,  mean_humidity FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 3"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT city ,  COUNT(*) FROM station GROUP BY city HAVING COUNT(*)  >=  15",
        "final_utterance": "List the name and the number of stations for all the cities that have at least 15 stations.",
        "interaction_utterance": [
            "Which city has the most stations?",
            "List the name and the number of stations for all the cities that have at least 15 stations."
        ],
        "interaction_query": [
            "SELECT city FROM station GROUP BY city ORDER By count(*) DESC limit 1",
            "SELECT city ,  COUNT(*) FROM station GROUP BY city HAVING COUNT(*)  >=  15"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT start_station_id ,  start_station_name FROM trip GROUP BY start_station_id HAVING COUNT(*)  >=  200",
        "final_utterance": "Find the ids and names of stations from which at least 200 trips started.",
        "interaction_utterance": [
            "Give the ids of start stations together with the count of trips originated there.",
            "Show the id and name for those with count at least 200."
        ],
        "interaction_query": [
            "SELECT start_station_id, count(*) from trip GROUP by start_station_id",
            "SELECT start_station_id ,  start_station_name FROM trip GROUP BY start_station_id HAVING COUNT(*)  >=  200"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_visibility_miles)  <  10",
        "final_utterance": "Find the zip code in which the average mean visibility is lower than 10.",
        "interaction_utterance": [
            "Show the zip codes and average mean visibilities.",
            "Find the zip code in which the average mean visibility is lower than 10."
        ],
        "interaction_query": [
            "SELECT zip_code, mean_visibility_miles from weather",
            "SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_visibility_miles)  <  10"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT city FROM station GROUP BY city ORDER BY max(lat) DESC",
        "final_utterance": "List all the cities in a decreasing order of each city's stations' highest latitude.",
        "interaction_utterance": [
            "What is the highest latitude of any station?",
            "Show that for each city",
            "List all the cities in a decreasing order of each city's stations' highest latitude."
        ],
        "interaction_query": [
            "SELECT max(lat) from station",
            "SELECT city, max(lat) from station group by city",
            "SELECT city FROM station GROUP BY city ORDER BY max(lat) DESC"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT date ,  cloud_cover FROM weather ORDER BY cloud_cover DESC LIMIT 5",
        "final_utterance": "What are the dates that had the top 5 cloud cover rates? Also tell me the cloud cover rate.",
        "interaction_utterance": [
            "Show dates ordered by descending cloud cover rate.",
            "Also show me the cloud cover rate.",
            "Only the top 5."
        ],
        "interaction_query": [
            "SELECT date FROM weather ORDER BY cloud_cover",
            "SELECT date ,  cloud_cover FROM weather ORDER BY cloud_cover",
            "SELECT date ,  cloud_cover FROM weather ORDER BY cloud_cover DESC LIMIT 5"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT id ,  duration FROM trip ORDER BY duration DESC LIMIT 3",
        "final_utterance": "What are the ids and durations of the trips with the top 3 durations?",
        "interaction_utterance": [
            "Show trip durations.",
            "What are the ids and durations of the trips with the top 3 durations?"
        ],
        "interaction_query": [
            "SELECT duration FROM trip",
            "SELECT id ,  duration FROM trip ORDER BY duration DESC LIMIT 3"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT T1.name ,  T1.long ,  avg(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.start_station_id GROUP BY T2.start_station_id",
        "final_utterance": "For each station, return its longitude and the average duration of trips that started from the station.",
        "interaction_utterance": [
            "Show the average duration of trips starting from each station id.",
            "For each station, return its longitude and the average duration of trips that started from the station."
        ],
        "interaction_query": [
            "SELECT start_station_id, avg(duration) from trip group by start_station_id",
            "SELECT T1.name ,  T1.long ,  avg(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.start_station_id GROUP BY T2.start_station_id"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT T1.name ,  T1.lat ,  min(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.end_station_id GROUP BY T2.end_station_id",
        "final_utterance": "For each station, find its latitude and the minimum duration of trips that ended at the station.",
        "interaction_utterance": [
            "Show the average duration of trips ending at each station id.",
            "For each station, find its latitude and the minimum duration of trips that ended at the station."
        ],
        "interaction_query": [
            "SELECT end_station_id, avg(duration) from trip group by end_station_id",
            "SELECT T1.name ,  T1.lat ,  min(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.end_station_id GROUP BY T2.end_station_id"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT DISTINCT zip_code FROM weather EXCEPT SELECT DISTINCT zip_code FROM weather WHERE max_dew_point_f  >=  70",
        "final_utterance": "Find all the zip codes in which the max dew point have never reached 70.",
        "interaction_utterance": [
            "Which zip codes ever had a max dew point reaching 70?",
            "Which did not?"
        ],
        "interaction_query": [
            "SELECT DISTINCT zip_code FROM weather WHERE max_dew_point_f  >=  70",
            "SELECT DISTINCT zip_code FROM weather EXCEPT SELECT DISTINCT zip_code FROM weather WHERE max_dew_point_f  >=  70"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT id FROM trip WHERE duration  >=  (SELECT avg(duration) FROM trip WHERE zip_code  =  94103)",
        "final_utterance": "Find the id for the trips that lasted at least as long as the average duration of trips in zip code 94103.",
        "interaction_utterance": [
            "What was the average duration of trips in zip code 94103?",
            "Which ids of trips lasted at least that long?"
        ],
        "interaction_query": [
            "SELECT avg(duration) FROM trip WHERE zip_code  =  94103",
            "SELECT id FROM trip WHERE duration  >=  (SELECT avg(duration) FROM trip WHERE zip_code  =  94103)"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT date ,  max_temperature_f - min_temperature_f FROM weather ORDER BY max_temperature_f - min_temperature_f LIMIT 1",
        "final_utterance": "Find the day in which the difference between the max temperature and min temperature was the smallest. Also report the difference.",
        "interaction_utterance": [
            "Show the min temperature and max temperature for each day.",
            "Order that by ascending order of difference between the max and min temperatures.",
            "Find the day in which the difference between the max temperature and min temperature was the smallest. Also report the difference."
        ],
        "interaction_query": [
            "SELECT date, max_temperature_f, min_temperature_f from weather",
            "SELECT date, max_temperature_f, min_temperature_f from weather ORDER by max_temperature_f - min_temperature_f",
            "SELECT date ,  max_temperature_f - min_temperature_f FROM weather ORDER BY max_temperature_f - min_temperature_f LIMIT 1"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT DISTINCT T1.id ,  T1.name FROM station AS T1 JOIN status AS T2 ON T1.id  =  T2.station_id WHERE T2.bikes_available  >  12",
        "final_utterance": "What are the id and name of the stations that have ever had more than 12 bikes available?",
        "interaction_utterance": [
            "Which station ids never had more than 12 bikes available?",
            "Which ones ever had more than 12 bikes available?",
            "What are the id and name of the stations that have ever had more than 12 bikes available?"
        ],
        "interaction_query": [
            "SELECT DISTINCT station_id from status where station_id not in (SELECT station_id from status where bikes_available > 12)",
            "SELECT DISTINCT station_id from status where bikes_available > 12",
            "SELECT DISTINCT T1.id ,  T1.name FROM station AS T1 JOIN status AS T2 ON T1.id  =  T2.station_id WHERE T2.bikes_available  >  12"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_humidity)  <  70 INTERSECT SELECT zip_code FROM trip GROUP BY zip_code HAVING count(*)  >=  100",
        "final_utterance": "Give me the zip code where the average mean humidity is below 70 and at least 100 trips took place.",
        "interaction_utterance": [
            "Which zip code had at least 100 trips taking place there?",
            "Give me the zip code where the average mean humidity is below 70",
            "Intersect those."
        ],
        "interaction_query": [
            "SELECT DISTINCT zip_code FROM trip GROUP BY zip_code HAVING count(*)  >=  100",
            "SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_humidity)  <  70",
            "SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_humidity)  <  70 INTERSECT SELECT zip_code FROM trip GROUP BY zip_code HAVING count(*)  >=  100"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT name FROM station WHERE city  =  \"Palo Alto\" EXCEPT SELECT end_station_name FROM trip GROUP BY end_station_name HAVING count(*)  >  100",
        "final_utterance": "What are the names of stations that are located in Palo Alto city but have never been the ending point of trips more than 100 times?",
        "interaction_utterance": [
            "Which end station names have more than 100 trips ending there?",
            "Which station names are in city \"Palo Alto\"?",
            "Take set minus on the last two results: what are the names of stations that are located in Palo Alto city but have never been the ending point of trips more than 100 times?"
        ],
        "interaction_query": [
            "SELECT DISTINCT end_station_name FROM trip GROUP BY end_station_name HAVING count(*)  >  100",
            "SELECT name FROM station WHERE city  =  \"Palo Alto\"",
            "SELECT name FROM station WHERE city  =  \"Palo Alto\" EXCEPT SELECT end_station_name FROM trip GROUP BY end_station_name HAVING count(*)  >  100"
        ]
    },
    {
        "db_id": "bike_1",
        "final_query": "SELECT count(*) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id  =  T2.start_station_id AND T2.id  =  T4.id AND T3.id  =  T4.end_station_id WHERE T1.city  =  \"Mountain View\" AND T3.city  =  \"Palo Alto\"",
        "final_utterance": "How many trips started from Mountain View city and ended at Palo Alto city?",
        "interaction_utterance": [
            "How many trips started from Mountain View city",
            "How many trips started from Mountain View city and ended at Palo Alto city?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id  =  T2.start_station_id AND T2.id  =  T4.id AND T3.id  =  T4.end_station_id WHERE T1.city  =  \"Mountain View\"",
            "SELECT count(*) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id  =  T2.start_station_id AND T2.id  =  T4.id AND T3.id  =  T4.end_station_id WHERE T1.city  =  \"Mountain View\" AND T3.city  =  \"Palo Alto\""
        ]
    },
    {
        "db_id": "riding_club",
        "final_query": "SELECT count(*) FROM player",
        "final_utterance": "How many players are there?",
        "interaction_utterance": [
            "Show all the information about the players.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM player",
            "SELECT count(*) FROM player"
        ]
    },
    {
        "db_id": "riding_club",
        "final_query": "SELECT Player_name FROM player ORDER BY Votes ASC",
        "final_utterance": "List the names of players in ascending order of votes.",
        "interaction_utterance": [
            "What are the player names?",
            "How many vote does each player has?",
            "Who has the maximum vote?",
            "Order the names by number of vote in ascending order."
        ],
        "interaction_query": [
            "SELECT Player_name FROM player",
            "SELECT Player_name,Votes FROM player",
            "SELECT Player_name FROM player ORDER BY Votes DESC limit 1",
            "SELECT Player_name FROM player ORDER BY Votes ASC"
        ]
    },
    {
        "db_id": "riding_club",
        "final_query": "SELECT Gender ,  Occupation FROM player",
        "final_utterance": "What are the gender and occupation of players?",
        "interaction_utterance": [
            "Show the player names and the residences.",
            "Show the names and the occupation of each them."
        ],
        "interaction_query": [
            "SELECT Player_name ,  residence FROM player",
            "SELECT Gender ,  Occupation FROM player"
        ]
    },
    {
        "db_id": "riding_club",
        "final_query": "SELECT Player_name ,  residence FROM player WHERE Occupation != \"Researcher\"",
        "final_utterance": "List the name and residence for players whose occupation is not \"Researcher\".",
        "interaction_utterance": [
            "Show the player names and the residences.",
            "Only keep those whose gender is male.",
            "Show the player names and the residences whose occupation is not \"Researcher\"."
        ],
        "interaction_query": [
            "SELECT Player_name ,  residence FROM player",
            "SELECT Player_name ,  residence FROM player WHERE Gender = \"M\"",
            "SELECT Player_name ,  residence FROM player WHERE Occupation != \"Researcher\""
        ]
    },
    {
        "db_id": "riding_club",
        "final_query": "SELECT Sponsor_name FROM player WHERE Residence  =  \"Brandon\" OR Residence  =  \"Birtle\"",
        "final_utterance": "Show the names of sponsors of players whose residence is either \"Brandon\" or \"Birtle\".",
        "interaction_utterance": [
            "List the name and the sponsor name of each player.",
            "How many unique sponsor names are there?",
            "Which sponsor names support female players?",
            "What about supporting players whose residence is \"Brandon\" or \"Birtle\"?"
        ],
        "interaction_query": [
            "SELECT Player_name, Sponsor_name FROM player",
            "SELECT count(DISTINCT Sponsor_name) FROM player",
            "SELECT Sponsor_name FROM player WHERE Gender  =  \"F\"",
            "SELECT Sponsor_name FROM player WHERE Residence  =  \"Brandon\" OR Residence  =  \"Birtle\""
        ]
    },
    {
        "db_id": "riding_club",
        "final_query": "SELECT Player_name FROM player ORDER BY Votes DESC LIMIT 1",
        "final_utterance": "What is the name of the player with the largest number of votes?",
        "interaction_utterance": [
            "What are the player names and their number of votes?",
            "Which one has the minimum vote?",
            "What about the one with the maximum vote?"
        ],
        "interaction_query": [
            "SELECT Player_name, Votes FROM player",
            "SELECT Player_name FROM player ORDER BY Votes ASC LIMIT 1",
            "SELECT Player_name FROM player ORDER BY Votes DESC LIMIT 1"
        ]
    },
    {
        "db_id": "riding_club",
        "final_query": "SELECT Occupation ,  COUNT(*) FROM player GROUP BY Occupation",
        "final_utterance": "Show different occupations along with the number of players in each occupation.",
        "interaction_utterance": [
            "Show the unique occupation for the players?",
            "How many in total?",
            "How many are there in each occupation?"
        ],
        "interaction_query": [
            "SELECT distinct Occupation FROM player",
            "SELECT count(distinct Occupation) FROM player",
            "SELECT Occupation ,  COUNT(*) FROM player GROUP BY Occupation"
        ]
    },
    {
        "db_id": "riding_club",
        "final_query": "SELECT Occupation FROM player GROUP BY Occupation ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Please show the most common occupation of players.",
        "interaction_utterance": [
            "Show the unique occupation for the players?",
            "How many in total?",
            "Which is the most popular occupation?"
        ],
        "interaction_query": [
            "SELECT distinct Occupation FROM player",
            "SELECT count(distinct Occupation) FROM player",
            "SELECT Occupation FROM player GROUP BY Occupation ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "riding_club",
        "final_query": "SELECT Residence FROM player GROUP BY Residence HAVING COUNT(*)  >=  2",
        "final_utterance": "Show the residences that have at least two players.",
        "interaction_utterance": [
            "Show the unique residences for the players?",
            "How many in total?",
            "Which residences have only one player?",
            "What about at least two?"
        ],
        "interaction_query": [
            "SELECT distinct Residence FROM player",
            "SELECT count(distinct Residence) FROM player",
            "SELECT Residence FROM player GROUP BY Residence HAVING COUNT(*)  =  1",
            "SELECT Residence FROM player GROUP BY Residence HAVING COUNT(*)  >=  2"
        ]
    },
    {
        "db_id": "riding_club",
        "final_query": "SELECT T3.Player_name ,  T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID",
        "final_utterance": "Show the names of players and names of their coaches.",
        "interaction_utterance": [
            "List the name and gender of players",
            "How many coaches are there?",
            "Show the name of each player and also the corresponding coach name of each."
        ],
        "interaction_query": [
            "SELECT Player_name, Gender FROM player",
            "SELECT count(*) FROM coach",
            "SELECT T3.Player_name ,  T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID"
        ]
    },
    {
        "db_id": "riding_club",
        "final_query": "SELECT T3.Player_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID WHERE T2.Rank  =  1",
        "final_utterance": "Show the names of players coached by the rank 1 coach.",
        "interaction_utterance": [
            "Which coaches are rank in the 1st and 2nd place?",
            "Which coach is the 1st, show the name of the coach?",
            "What are the names of players of that coach?"
        ],
        "interaction_query": [
            "SELECT Coach_name FROM coach where rank < 3",
            "SELECT Coach_name FROM coach where rank = 1",
            "SELECT T3.Player_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID WHERE T2.Rank  =  1"
        ]
    },
    {
        "db_id": "riding_club",
        "final_query": "SELECT T3.Player_name ,  T3.gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID WHERE T1.Starting_year  >  2011",
        "final_utterance": "Show the names and genders of players with a coach starting after 2011.",
        "interaction_utterance": [
            "List the name of players",
            "Show the name of each player and also the corresponding coach name.",
            "Which pair starts before 2012?",
            "What about after 2011?",
            "Only show the player names and genders of those results."
        ],
        "interaction_query": [
            "SELECT Player_name FROM player",
            "SELECT T3.Player_name ,  T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID",
            "SELECT T3.Player_name ,  T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID WHERE T1.Starting_year  <  2012",
            "SELECT T3.Player_name ,  T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID WHERE T1.Starting_year  >  2011",
            "SELECT T3.Player_name ,  T3.gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID WHERE T1.Starting_year  >  2011"
        ]
    },
    {
        "db_id": "riding_club",
        "final_query": "SELECT T3.Player_name ,  T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID ORDER BY T3.Votes DESC",
        "final_utterance": "Show the names of players and names of their coaches in descending order of the votes of players.",
        "interaction_utterance": [
            "List the name of players",
            "How many coaches in total?",
            "Show the name of each player and also the corresponding coach name of each.",
            "Who is Ross Eadie's coach?",
            "List all the player-coach name pair with the vote of players, in descending order."
        ],
        "interaction_query": [
            "SELECT Player_name FROM player",
            "SELECT count(*) FROM coach",
            "SELECT T3.Player_name ,  T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID",
            "SELECT T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID where T3.Player_name = 'Ross Eadie'",
            "SELECT T3.Player_name ,  T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID ORDER BY T3.Votes DESC"
        ]
    },
    {
        "db_id": "riding_club",
        "final_query": "SELECT Player_name FROM player WHERE Player_ID NOT IN (SELECT Player_ID FROM player_coach)",
        "final_utterance": "List the names of players that do not have coaches.",
        "interaction_utterance": [
            "How many players are there?",
            "What about coaches?",
            "Which players do not have a coach?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM player",
            "SELECT count(*) FROM coach",
            "SELECT Player_name FROM player WHERE Player_ID NOT IN (SELECT Player_ID FROM player_coach)"
        ]
    },
    {
        "db_id": "riding_club",
        "final_query": "SELECT Residence FROM player WHERE gender  =  \"M\" INTERSECT SELECT Residence FROM player WHERE gender  =  \"F\"",
        "final_utterance": "Show the residences that have both a player of gender \"M\" and a player of gender \"F\".",
        "interaction_utterance": [
            "How many female players are there?",
            "What about male players?",
            "What are the residences of them?",
            "Which residences have both female and male players?"
        ],
        "interaction_query": [
            "SELECT count(*) FROM player where gender = 'F'",
            "SELECT count(*) FROM player where gender = 'M'",
            "SELECT Residence FROM player where gender = 'M'",
            "SELECT Residence FROM player WHERE gender  =  \"M\" INTERSECT SELECT Residence FROM player WHERE gender  =  \"F\""
        ]
    },
    {
        "db_id": "riding_club",
        "final_query": "SELECT T1.club_id ,  T1.club_name, count(*) FROM club AS T1 JOIN coach AS T2 ON T1.club_id  =  T2.club_id GROUP BY T1.club_id",
        "final_utterance": "How many coaches does each club has? List the club id, name and the number of coaches.",
        "interaction_utterance": [
            "How many clubs are there?",
            "How many coaches in total?",
            "How many coaches are there from 'AIK' club?",
            "How many coaches in each club, give the club id, club name and number of coaches."
        ],
        "interaction_query": [
            "SELECT count(club_id) FROM club",
            "SELECT count(*) FROM coach",
            "SELECT count(*) FROM coach as T1 join club as T2 on T1.club_id = T2.club_id where T2.club_name = \"AIK\"",
            "SELECT T1.club_id ,  T1.club_name, count(*) FROM club AS T1 JOIN coach AS T2 ON T1.club_id  =  T2.club_id GROUP BY T1.club_id"
        ]
    },
    {
        "db_id": "railway",
        "final_query": "SELECT count(*) FROM railway",
        "final_utterance": "How many railways are there?",
        "interaction_utterance": [
            "List all the railways.",
            "How many in total?"
        ],
        "interaction_query": [
            "SELECT * FROM railway",
            "SELECT count(*) FROM railway"
        ]
    },
    {
        "db_id": "railway",
        "final_query": "SELECT Builder FROM railway ORDER BY Builder ASC",
        "final_utterance": "List the builders of railways in ascending alphabetical order.",
        "interaction_utterance": [
            "Show all the builders of the railway.",
            "Order them in ascending alphabetical order."
        ],
        "interaction_query": [
            "SELECT Builder FROM railway",
            "SELECT Builder FROM railway ORDER BY Builder ASC"
        ]
    },
    {
        "db_id": "railway",
        "final_query": "SELECT Wheels ,  LOCATION FROM railway",
        "final_utterance": "List the wheels and locations of the railways.",
        "interaction_utterance": [
            "Show the wheels and also locations of each railway."
        ],
        "interaction_query": [
            "SELECT Wheels ,  LOCATION FROM railway"
        ]
    },
    {
        "db_id": "railway",
        "final_query": "SELECT max(LEVEL) FROM manager WHERE Country != \"Australia\t\"",
        "final_utterance": "What is the maximum level of managers in countries that are not \"Australia\"?",
        "interaction_utterance": [
            "Show all the level of managers.",
            "What is the average level?",
            "What is that of the managers that come from \"United States\"?",
            "What is the maximum level of managers that do not come from \"Australia\"?"
        ],
        "interaction_query": [
            "SELECT LEVEL FROM manager",
            "SELECT avg(LEVEL) FROM manager",
            "SELECT avg(LEVEL) FROM manager WHERE Country != \"United States\"",
            "SELECT max(LEVEL) FROM manager WHERE Country != \"Australia\t\""
        ]
    },
    {
        "db_id": "railway",
        "final_query": "SELECT avg(Age) FROM manager",
        "final_utterance": "What is the average age for all managers?",
        "interaction_utterance": [
            "List all the ages of the managers",
            "What is the maximum value of it?",
            "How about the average?"
        ],
        "interaction_query": [
            "SELECT Age FROM manager",
            "SELECT max(Age) FROM manager",
            "SELECT avg(Age) FROM manager"
        ]
    },
    {
        "db_id": "railway",
        "final_query": "SELECT Name FROM manager ORDER BY LEVEL ASC",
        "final_utterance": "What are the names of managers in ascending order of level?",
        "interaction_utterance": [
            "Show the names and levels of all managers.",
            "Only keep the name whose level is at least 7",
            "Order all the names in ascending order of level."
        ],
        "interaction_query": [
            "SELECT Name, Level FROM manager",
            "SELECT Name FROM manager WHERE LEVEL >= 7",
            "SELECT Name FROM manager ORDER BY LEVEL ASC"
        ]
    },
    {
        "db_id": "railway",
        "final_query": "SELECT Name ,  Arrival FROM train",
        "final_utterance": "What are the names and arrival times of trains?",
        "interaction_utterance": [
            "Show the names of the trains.",
            "Add the arrival time for each of them."
        ],
        "interaction_query": [
            "SELECT Name FROM train",
            "SELECT Name ,  Arrival FROM train"
        ]
    },
    {
        "db_id": "railway",
        "final_query": "SELECT Name FROM manager ORDER BY Age DESC LIMIT 1",
        "final_utterance": "What is the name of the oldest manager?",
        "interaction_utterance": [
            "Show the names and ages of all managers.",
            "Only keep the ones whose level is at least 5.",
            "Order all the names in descending order of the age.",
            "Who is the oldest manager?"
        ],
        "interaction_query": [
            "SELECT Name, Age FROM manager",
            "SELECT Name FROM manager WHERE LEVEL >= 5",
            "SELECT Name FROM manager ORDER BY Age DESC",
            "SELECT Name FROM manager ORDER BY Age DESC LIMIT 1"
        ]
    },
    {
        "db_id": "railway",
        "final_query": "SELECT T2.Name ,  T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID  =  T2.Railway_ID",
        "final_utterance": "Show the names of trains and locations of railways they are in.",
        "interaction_utterance": [
            "List the names of the trains.",
            "Add the locations to each."
        ],
        "interaction_query": [
            "SELECT Name FROM train",
            "SELECT T2.Name ,  T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID  =  T2.Railway_ID"
        ]
    },
    {
        "db_id": "railway",
        "final_query": "SELECT T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID  =  T2.Railway_ID WHERE T2.Name  =  \"Andaman Exp\"",
        "final_utterance": "Show the builder of railways associated with the trains named \"Andaman Exp\".",
        "interaction_utterance": [
            "List the train information with the name \"Andaman Exp\".",
            "Which railway is it? Show the railway name.",
            "And which builder is it?"
        ],
        "interaction_query": [
            "SELECT  * FROM train WHERE Name  =  \"Andaman Exp\"",
            "SELECT T1.Railway FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID  =  T2.Railway_ID WHERE T2.Name  =  \"Andaman Exp\"",
            "SELECT T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID  =  T2.Railway_ID WHERE T2.Name  =  \"Andaman Exp\""
        ]
    },
    {
        "db_id": "railway",
        "final_query": "SELECT T2.Railway_ID ,  T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID  =  T2.Railway_ID GROUP BY T2.Railway_ID HAVING COUNT(*)  >  1",
        "final_utterance": "Show id and location of railways that are associated with more than one train.",
        "interaction_utterance": [
            "Show the builders of the railways.",
            "List the railway id and the location of each railway.",
            "Only keep the ones that are associated with more than one train."
        ],
        "interaction_query": [
            "SELECT Builder FROM railway",
            "SELECT T2.Railway_ID ,  T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID  =  T2.Railway_ID",
            "SELECT T2.Railway_ID ,  T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID  =  T2.Railway_ID GROUP BY T2.Railway_ID HAVING COUNT(*)  >  1"
        ]
    },
    {
        "db_id": "railway",
        "final_query": "SELECT T2.Railway_ID ,  T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID  =  T2.Railway_ID GROUP BY T2.Railway_ID ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the id and builder of the railway that are associated with the most trains.",
        "interaction_utterance": [
            "Show the builders of the railways.",
            "List the railway id and the builder for each one.",
            "Among those results, keep the one that associated with the most trains."
        ],
        "interaction_query": [
            "SELECT Builder FROM railway",
            "SELECT T2.Railway_ID ,  T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID  =  T2.Railway_ID",
            "SELECT T2.Railway_ID ,  T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID  =  T2.Railway_ID GROUP BY T2.Railway_ID ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "railway",
        "final_query": "SELECT Builder ,  COUNT(*) FROM railway GROUP BY Builder",
        "final_utterance": "Show different builders of railways, along with the corresponding number of railways using each builder.",
        "interaction_utterance": [
            "List all the builders about the railways.",
            "Show each one and the corresponding counts of railways."
        ],
        "interaction_query": [
            "SELECT Builder FROM railway",
            "SELECT Builder, count(*) FROM railway GROUP BY LOCATION"
        ]
    },
    {
        "db_id": "railway",
        "final_query": "SELECT Builder FROM railway GROUP BY Builder ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the most common builder of railways.",
        "interaction_utterance": [
            "List all the builders.",
            "Show the builders and the corresponding counts of each.",
            "Which one is the most popular one?"
        ],
        "interaction_query": [
            "SELECT Builder FROM railway",
            "SELECT Builder, count(*) FROM railway GROUP BY LOCATION",
            "SELECT Builder FROM railway GROUP BY Builder ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "railway",
        "final_query": "SELECT LOCATION ,  COUNT(*) FROM railway GROUP BY LOCATION",
        "final_utterance": "Show different locations of railways along with the corresponding number of railways at each location.",
        "interaction_utterance": [
            "List all the locations.",
            "Which ones have more than one railways?",
            "Show the locations and the corresponding counts of each."
        ],
        "interaction_query": [
            "SELECT LOCATION FROM railway",
            "SELECT LOCATION FROM railway GROUP BY LOCATION HAVING COUNT(*)  >  1",
            "SELECT LOCATION, count(*) FROM railway GROUP BY LOCATION"
        ]
    },
    {
        "db_id": "railway",
        "final_query": "SELECT LOCATION FROM railway GROUP BY LOCATION HAVING COUNT(*)  >  1",
        "final_utterance": "Show the locations that have more than one railways.",
        "interaction_utterance": [
            "List all the locations.",
            "What are the corresponding counts of railways?",
            "Which locations have more than one railways?"
        ],
        "interaction_query": [
            "SELECT LOCATION FROM railway",
            "SELECT LOCATION, count(*) FROM railway GROUP BY LOCATION",
            "SELECT LOCATION FROM railway GROUP BY LOCATION HAVING COUNT(*)  >  1"
        ]
    },
    {
        "db_id": "railway",
        "final_query": "SELECT ObjectNumber FROM railway WHERE Railway_ID NOT IN (SELECT Railway_ID FROM train)",
        "final_utterance": "List the object number of railways that do not have any trains.",
        "interaction_utterance": [
            "Show all the information about each railway.",
            "What are the object numbers?",
            "Which of the railway has no trains, keep the object number."
        ],
        "interaction_query": [
            "SELECT * FROM railway",
            "SELECT ObjectNumber FROM railway",
            "SELECT ObjectNumber FROM railway WHERE Railway_ID NOT IN (SELECT Railway_ID FROM train)"
        ]
    },
    {
        "db_id": "railway",
        "final_query": "SELECT Country FROM manager WHERE Age  >  50 INTERSECT SELECT Country FROM manager WHERE Age  <  46",
        "final_utterance": "Show the countries that have both managers of age above 50 and managers of age below 46.",
        "interaction_utterance": [
            "List all the countries of the managers.",
            "How many are there?",
            "Keep the ones where the manager age is in the range of 50 and 46",
            "What about the other countries?"
        ],
        "interaction_query": [
            "SELECT Country FROM manager",
            "SELECT count (DISTINCT Country) FROM manager",
            "SELECT Country FROM manager WHERE Age  <  50 INTERSECT SELECT Country FROM manager WHERE Age  >  46",
            "SELECT Country FROM manager WHERE Age  >  50 INTERSECT SELECT Country FROM manager WHERE Age  <  46"
        ]
    },
    {
        "db_id": "railway",
        "final_query": "SELECT DISTINCT Country FROM manager",
        "final_utterance": "Show the distinct countries of managers.",
        "interaction_utterance": [
            "List all the countries of the managers.",
            "How many unique ones are there?"
        ],
        "interaction_query": [
            "SELECT Country FROM manager",
            "SELECT count (DISTINCT Country) FROM manager"
        ]
    },
    {
        "db_id": "railway",
        "final_query": "SELECT Working_year_starts FROM manager ORDER BY LEVEL DESC",
        "final_utterance": "Show the working years of managers in descending order of their level.",
        "interaction_utterance": [
            "List the manager names and the working years.",
            "Which is the maximum working years?",
            "Order the working years by the manager level."
        ],
        "interaction_query": [
            "SELECT Name, Working_year_starts FROM manager",
            "SELECT max(Working_year_starts) FROM manager",
            "SELECT Working_year_starts FROM manager ORDER BY LEVEL DESC"
        ]
    },
    {
        "db_id": "climbing",
        "final_query": "SELECT count(*) FROM climber",
        "final_utterance": "How many climbers are there?",
        "interaction_utterance": [
            "List all the climber information.",
            "How many records are there?"
        ],
        "interaction_query": [
            "SELECT * FROM climber",
            "SELECT count(*) FROM climber"
        ]
    },
    {
        "db_id": "climbing",
        "final_query": "SELECT Name FROM climber ORDER BY Points DESC",
        "final_utterance": "List the names of climbers in descending order of points.",
        "interaction_utterance": [
            "What are the names of the climbers?",
            "Keep the ones whose point is at least 6?",
            "Order all the climber names in descending order of points."
        ],
        "interaction_query": [
            "SELECT Name FROM climber",
            "SELECT Name FROM climber where Points >= 6",
            "SELECT Name FROM climber ORDER BY Points DESC"
        ]
    },
    {
        "db_id": "climbing",
        "final_query": "SELECT Name FROM climber WHERE Country != \"Switzerland\"",
        "final_utterance": "List the names of climbers whose country is not Switzerland.",
        "interaction_utterance": [
            "What are the names of the climbers?",
            "Keep the ones whose point is at least 4.6?",
            "Keep the ones whose country is \"West Germany\".",
            "What about the ones whose country is not \"Switzerland\"?"
        ],
        "interaction_query": [
            "SELECT Name FROM climber",
            "SELECT Name FROM climber where Points >= 4.6",
            "SELECT Name FROM climber WHERE Country = \"West Germany\"",
            "SELECT Name FROM climber WHERE Country != \"Switzerland\""
        ]
    },
    {
        "db_id": "climbing",
        "final_query": "SELECT max(Points) FROM climber WHERE Country  =  \"United Kingdom\"",
        "final_utterance": "What is the maximum point for climbers whose country is United Kingdom?",
        "interaction_utterance": [
            "Which climber comes from Switzerland?",
            "What about United Kingdom?",
            "List all the points of those climber.",
            "What is the maximum point number?"
        ],
        "interaction_query": [
            "SELECT Name FROM climber WHERE Country = \"Switzerland\"",
            "SELECT Name FROM climber WHERE Country != \"United Kingdom\"",
            "SELECT Points FROM climber WHERE Country != \"United Kingdom\"",
            "SELECT max(Points) FROM climber WHERE Country  =  \"United Kingdom\""
        ]
    },
    {
        "db_id": "climbing",
        "final_query": "SELECT COUNT(DISTINCT Country) FROM climber",
        "final_utterance": "How many distinct countries are the climbers from?",
        "interaction_utterance": [
            "List all the countries of the climbers.",
            "How many unique countries are there?"
        ],
        "interaction_query": [
            "SELECT Country FROM climber",
            "SELECT COUNT(DISTINCT Country) FROM climber"
        ]
    },
    {
        "db_id": "climbing",
        "final_query": "SELECT Name FROM mountain ORDER BY Name ASC",
        "final_utterance": "What are the names of mountains in ascending alphabetical order?",
        "interaction_utterance": [
            "Show all the information about the mountains.",
            "List those results in ascending alphabetical order by the mountain names.",
            "What are the mountain names from those results?"
        ],
        "interaction_query": [
            "SELECT * FROM mountain",
            "SELECT * FROM mountain ORDER BY Name ASC",
            "SELECT Name FROM mountain ORDER BY Name ASC"
        ]
    },
    {
        "db_id": "climbing",
        "final_query": "SELECT Country FROM mountain WHERE Height  >  5000",
        "final_utterance": "What are the countries of mountains with height bigger than 5000?",
        "interaction_utterance": [
            "List all the countries of the mountains.",
            "Keep the ones that the mountain height is more than 4985.0.",
            "What about the height is more than 5000?"
        ],
        "interaction_query": [
            "SELECT Country FROM mountain",
            "SELECT Country FROM mountain WHERE Height  > 4985.0",
            "SELECT Country FROM mountain WHERE Height  >  5000"
        ]
    },
    {
        "db_id": "climbing",
        "final_query": "SELECT Name FROM mountain ORDER BY Height DESC LIMIT 1",
        "final_utterance": "What is the name of the highest mountain?",
        "interaction_utterance": [
            "List all the names of the mountains.",
            "Keep the ones that the mountain Prominence is more than 900.0.",
            "So which mountain is the highest one?"
        ],
        "interaction_query": [
            "SELECT Name FROM mountain",
            "SELECT Name FROM mountain WHERE Prominence  > 900.0",
            "SELECT Name FROM mountain ORDER BY Height DESC LIMIT 1"
        ]
    },
    {
        "db_id": "climbing",
        "final_query": "SELECT DISTINCT Range FROM mountain ORDER BY Prominence DESC LIMIT 3",
        "final_utterance": "List the distinct ranges of the mountains with the top 3 prominence.",
        "interaction_utterance": [
            "List all the ranges of the mountains.",
            "Order those results by Prominence in descending order.",
            "Which one is the top one?",
            "What about top 3?"
        ],
        "interaction_query": [
            "SELECT Range FROM mountain",
            "SELECT DISTINCT Range FROM mountain ORDER BY Prominence DESC",
            "SELECT DISTINCT Range FROM mountain ORDER BY Prominence DESC LIMIT 1",
            "SELECT DISTINCT Range FROM mountain ORDER BY Prominence DESC LIMIT 3"
        ]
    },
    {
        "db_id": "climbing",
        "final_query": "SELECT T1.Name ,  T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID  =  T2.Mountain_ID",
        "final_utterance": "Show names of climbers and the names of mountains they climb.",
        "interaction_utterance": [
            "List all the climber names",
            "Show the mountain names for those climbers."
        ],
        "interaction_query": [
            "SELECT Name FROM climber mountain",
            "SELECT T1.Name ,  T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID  =  T2.Mountain_ID"
        ]
    },
    {
        "db_id": "climbing",
        "final_query": "SELECT T1.Name ,  T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID  =  T2.Mountain_ID",
        "final_utterance": "Show the names of climbers and the heights of mountains they climb.",
        "interaction_utterance": [
            "Show all the climber names",
            "Also show the mountain height for those climbers."
        ],
        "interaction_query": [
            "SELECT Name FROM climber mountain",
            "SELECT T1.Name ,  T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID  =  T2.Mountain_ID"
        ]
    },
    {
        "db_id": "climbing",
        "final_query": "SELECT T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID  =  T2.Mountain_ID ORDER BY T1.Points DESC LIMIT 1",
        "final_utterance": "Show the height of the mountain climbed by the climber with the maximum points.",
        "interaction_utterance": [
            "Which climbers have the point to be 8.0",
            "Which one has the minimum point?",
            "What about the maximum?",
            "Show the mountain height of the mountain that climber has climbed."
        ],
        "interaction_query": [
            "SELECT Name FROM climber WHERE Points = 8.0",
            "SELECT Name FROM climber ORDER BY Points ASC LIMIT 1",
            "SELECT Name FROM climber ORDER BY Points DESC LIMIT 1",
            "SELECT T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID  =  T2.Mountain_ID ORDER BY T1.Points DESC LIMIT 1"
        ]
    },
    {
        "db_id": "climbing",
        "final_query": "SELECT DISTINCT T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID  =  T2.Mountain_ID WHERE T1.Country  =  \"West Germany\"",
        "final_utterance": "Show the distinct names of mountains climbed by climbers from country \"West Germany\".",
        "interaction_utterance": [
            "List all the climber names who come from \"United Kingdom\".",
            "What about from \"West Germany\"",
            "Show the mountains they have climbed."
        ],
        "interaction_query": [
            "SELECT Name FROM climber WHERE Country = \"United Kingdom\"",
            "SELECT Name FROM climber WHERE Country = \"West Germany\"",
            "SELECT DISTINCT T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID  =  T2.Mountain_ID WHERE T1.Country  =  \"West Germany\""
        ]
    },
    {
        "db_id": "climbing",
        "final_query": "SELECT T1.Time FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID  =  T2.Mountain_ID WHERE T2.Country  =  \"Uganda\"",
        "final_utterance": "Show the times used by climbers to climb mountains in Country Uganda.",
        "interaction_utterance": [
            "How many countries are there?",
            "How many mountains are there in Tanzania?",
            "What about in Uganda?",
            "List the times used by the climbers for those mountains."
        ],
        "interaction_query": [
            "SELECT count(*) FROM mountain",
            "SELECT count(*) FROM mountain where country = 'Tanzania'",
            "SELECT count(*) FROM mountain where country = 'Uganda'",
            "SELECT T1.Time FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID  =  T2.Mountain_ID WHERE T2.Country  =  \"Uganda\""
        ]
    },
    {
        "db_id": "climbing",
        "final_query": "SELECT Country ,  COUNT(*) FROM climber GROUP BY Country",
        "final_utterance": "Please show the countries and the number of climbers from each country.",
        "interaction_utterance": [
            "How many unique countries in total?",
            "Show the countries with the number of mountains for each of them."
        ],
        "interaction_query": [
            "SELECT count( DISTINCT Country) FROM mountain",
            "SELECT Country, count(*) FROM mountain GROUP BY Country"
        ]
    },
    {
        "db_id": "climbing",
        "final_query": "SELECT Country FROM mountain GROUP BY Country HAVING COUNT(*)  >  1",
        "final_utterance": "List the countries that have more than one mountain.",
        "interaction_utterance": [
            "How many countries in total?",
            "List the countries with the number of mountains for each.",
            "Keep the country names that have only one mountain.",
            "How about more than one mountain?"
        ],
        "interaction_query": [
            "SELECT count( DISTINCT Country) FROM mountain",
            "SELECT Country, count(*) FROM mountain GROUP BY Country",
            "SELECT Country FROM mountain GROUP BY Country HAVING COUNT(*)  =  1",
            "SELECT Country FROM mountain GROUP BY Country HAVING COUNT(*)  >  1"
        ]
    },
    {
        "db_id": "climbing",
        "final_query": "SELECT Name FROM mountain WHERE Mountain_ID NOT IN (SELECT Mountain_ID FROM climber)",
        "final_utterance": "List the names of mountains that do not have any climber.",
        "interaction_utterance": [
            "List the names of all the mountains",
            "Which of those has no climbers?"
        ],
        "interaction_query": [
            "SELECT Name FROM mountain",
            "SELECT Name FROM mountain WHERE Mountain_ID NOT IN (SELECT Mountain_ID FROM climber)"
        ]
    },
    {
        "db_id": "climbing",
        "final_query": "SELECT Country FROM mountain WHERE Height  >  5600 INTERSECT SELECT Country FROM mountain WHERE Height  <  5200",
        "final_utterance": "Show the countries that have mountains with height more than 5600 stories and mountains with height less than 5200.",
        "interaction_utterance": [
            "List all the countries of the mountains.",
            "Keep the ones that the mountain height is more than 4985.0.",
            "What about the height is more than 5600?",
            "Keep the country names where the mountain height is within the range of 5200 to 5600."
        ],
        "interaction_query": [
            "SELECT Country FROM mountain",
            "SELECT Country FROM mountain WHERE Height  > 4985.0",
            "SELECT Country FROM mountain WHERE Height  >  5600",
            "SELECT Country FROM mountain WHERE Height  >  5600 INTERSECT SELECT Country FROM mountain WHERE Height  <  5200"
        ]
    },
    {
        "db_id": "climbing",
        "final_query": "SELECT Range FROM mountain GROUP BY Range ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the range that has the most number of mountains.",
        "interaction_utterance": [
            "List all the ranges of mountains.",
            "How many unique ranges are there?",
            "How many mountains in each range?",
            "Which one has the largest number of mountains?"
        ],
        "interaction_query": [
            "SELECT Range FROM mountain",
            "SELECT count(DISTINCT Range) FROM mountain",
            "SELECT Range, count (*) FROM mountain GROUP BY Range",
            "SELECT Range FROM mountain GROUP BY Range ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "device",
        "final_query": "SELECT count(*) FROM device",
        "final_utterance": "How many devices are there?",
        "interaction_utterance": [
            "List all the devices",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM device",
            "SELECT count(*) FROM device"
        ]
    },
    {
        "db_id": "device",
        "final_query": "SELECT Carrier FROM device ORDER BY Carrier ASC",
        "final_utterance": "List the carriers of devices in ascending alphabetical order.",
        "interaction_utterance": [
            "List all the carrier names of each device",
            "How many are there?",
            "Order the carrier names in ascending order."
        ],
        "interaction_query": [
            "SELECT Carrier FROM device",
            "SELECT count (DISTINCT Carrier) FROM device",
            "SELECT Carrier FROM device ORDER BY Carrier ASC"
        ]
    },
    {
        "db_id": "device",
        "final_query": "SELECT Carrier FROM device WHERE Software_Platform != 'Android'",
        "final_utterance": "What are the carriers of devices whose software platforms are not \"Android\"?",
        "interaction_utterance": [
            "List the carrier name and software platform of each device",
            "How many of them use Android as software platform?",
            "What about not Android?",
            "What are the carrier names of them?"
        ],
        "interaction_query": [
            "SELECT Carrier, Software_Platform FROM device",
            "SELECT count(*) FROM device where Software_Platform = 'Android'",
            "SELECT count(*) FROM device where Software_Platform != 'Android'",
            "SELECT Carrier FROM device WHERE Software_Platform != 'Android'"
        ]
    },
    {
        "db_id": "device",
        "final_query": "SELECT Shop_Name FROM shop ORDER BY Open_Year ASC",
        "final_utterance": "What are the names of shops in ascending order of open year?",
        "interaction_utterance": [
            "List the shop names and their open year.",
            "Keep the shop names, then show those names in ascending order of open year."
        ],
        "interaction_query": [
            "SELECT Shop_Name, Open_Year FROM shop",
            "SELECT Shop_Name FROM shop ORDER BY Open_Year ASC"
        ]
    },
    {
        "db_id": "device",
        "final_query": "SELECT avg(Quantity) FROM stock",
        "final_utterance": "What is the average quantity of stocks?",
        "interaction_utterance": [
            "What is the minimum quantity of stocks?",
            "What about the average value?"
        ],
        "interaction_query": [
            "SELECT min(Quantity) FROM stock",
            "SELECT avg(Quantity) FROM stock"
        ]
    },
    {
        "db_id": "device",
        "final_query": "SELECT Shop_Name ,  LOCATION FROM shop ORDER BY Shop_Name ASC",
        "final_utterance": "What are the names and location of the shops in ascending alphabetical order of name.",
        "interaction_utterance": [
            "List all the names of the shop and their locations",
            "Order those results in ascending alphabetical order of name."
        ],
        "interaction_query": [
            "SELECT Shop_Name ,  LOCATION FROM shop",
            "SELECT Shop_Name ,  LOCATION FROM shop ORDER BY Shop_Name ASC"
        ]
    },
    {
        "db_id": "device",
        "final_query": "SELECT count(DISTINCT Software_Platform) FROM device",
        "final_utterance": "How many different software platforms are there for devices?",
        "interaction_utterance": [
            "Show all in the information about devices.",
            "What are the unique software platforms",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM device",
            "SELECT DISTINCT Software_Platform FROM device",
            "SELECT count(DISTINCT Software_Platform) FROM device"
        ]
    },
    {
        "db_id": "device",
        "final_query": "SELECT Open_Date ,  Open_Year FROM shop WHERE Shop_Name  =  \"Apple\"",
        "final_utterance": "List the open date of open year of the shop named \"Apple\".",
        "interaction_utterance": [
            "Show the information about the shops that are not \"Apple\".",
            "How about the shops are \"Apple\"?",
            "What are the open dates and open years of them?"
        ],
        "interaction_query": [
            "SELECT * FROM shop WHERE Shop_Name  !=  \"Apple\"",
            "SELECT * FROM shop WHERE Shop_Name  =  \"Apple\"",
            "SELECT Open_Date ,  Open_Year FROM shop WHERE Shop_Name  =  \"Apple\""
        ]
    },
    {
        "db_id": "device",
        "final_query": "SELECT Shop_Name FROM shop ORDER BY Open_Year DESC LIMIT 1",
        "final_utterance": "List the name of the shop with the latest open year.",
        "interaction_utterance": [
            "List the names and open year of all the shops.",
            "Keep those opens later than 2010?",
            "Order all the shop names by the open year, from early to late.",
            "Show the name of the shop with the latest open year."
        ],
        "interaction_query": [
            "SELECT Shop_Name, Open_Year FROM shop",
            "SELECT Shop_Name, Open_Year FROM shop where open_year > 2010",
            "SELECT Shop_Name, open_year FROM shop ORDER BY Open_Year",
            "SELECT Shop_Name FROM shop ORDER BY Open_Year DESC LIMIT 1"
        ]
    },
    {
        "db_id": "device",
        "final_query": "SELECT T3.Shop_Name ,  T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID  =  T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID  =  T3.Shop_ID",
        "final_utterance": "Show names of shops and the carriers of devices they have in stock.",
        "interaction_utterance": [
            "List the shop names.",
            "Keep the names where there is a stock",
            "Keep the names of shops and the carriers of devices where there is a stock."
        ],
        "interaction_query": [
            "SELECT Shop_Name from shop",
            "SELECT T1.Shop_Name from shop as T1 join stock as T2 on T1.shop_id = T2.shop_id",
            "SELECT T3.Shop_Name ,  T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID  =  T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID  =  T3.Shop_ID"
        ]
    },
    {
        "db_id": "device",
        "final_query": "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID HAVING COUNT(*)  >  1",
        "final_utterance": "Show names of shops that have more than one kind of device in stock.",
        "interaction_utterance": [
            "List all the shop names.",
            "List all the shop names that has stock in the shops.",
            "Among those, keep the shop names whose open year is later than 2010",
            "List the names of shops that have more than one kind of device in stock."
        ],
        "interaction_query": [
            "SELECT Shop_Name FROM shop",
            "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID",
            "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID Having T2.Open_Year > 2010",
            "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID HAVING COUNT(*)  >  1"
        ]
    },
    {
        "db_id": "device",
        "final_query": "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Show the name of the shop that has the most kind of devices in stock.",
        "interaction_utterance": [
            "List all the shop names.",
            "Which shop has the least quantity of devices, show the shop name.",
            "What about the shop that has the most kind of devices in stock?"
        ],
        "interaction_query": [
            "SELECT Shop_Name FROM shop",
            "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM(T1.quantity) ASC LIMIT 1",
            "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "device",
        "final_query": "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM(T1.quantity) DESC LIMIT 1",
        "final_utterance": "Show the name of the shop that have the largest quantity of devices in stock.",
        "interaction_utterance": [
            "List all the shop names.",
            "Which shop has the least quantity of devices, show the shop name.",
            "What about the largest quantity one?"
        ],
        "interaction_query": [
            "SELECT Shop_Name FROM shop",
            "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM(T1.quantity) ASC LIMIT 1",
            "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM(T1.quantity) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "device",
        "final_query": "SELECT Software_Platform ,  COUNT(*) FROM device GROUP BY Software_Platform",
        "final_utterance": "Please show different software platforms and the corresponding number of devices using each.",
        "interaction_utterance": [
            "Show all the software platforms",
            "How many for each?"
        ],
        "interaction_query": [
            "SELECT Software_Platform FROM device",
            "SELECT Software_Platform, count(*) FROM device GROUP BY Software_Platform"
        ]
    },
    {
        "db_id": "device",
        "final_query": "SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC",
        "final_utterance": "Please show the software platforms of devices in descending order of the count.",
        "interaction_utterance": [
            "Show all the software platforms",
            "How many device for each?",
            "Order the software platforms by popularity, from the most to the least?"
        ],
        "interaction_query": [
            "SELECT Software_Platform FROM device",
            "SELECT Software_Platform, count(*) FROM device GROUP BY Software_Platform",
            "SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC"
        ]
    },
    {
        "db_id": "device",
        "final_query": "SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "List the software platform shared by the greatest number of devices.",
        "interaction_utterance": [
            "Show all the software platforms",
            "How many for each?",
            "Which two are the most popular software platform?",
            "What about top 1?"
        ],
        "interaction_query": [
            "SELECT Software_Platform FROM device",
            "SELECT Software_Platform, count(*) FROM device GROUP BY Software_Platform",
            "SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC LIMIT 2",
            "SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "device",
        "final_query": "SELECT Shop_Name FROM shop WHERE Shop_ID NOT IN (SELECT Shop_ID FROM stock)",
        "final_utterance": "List the names of shops that have no devices in stock.",
        "interaction_utterance": [
            "What are the names of the shops?",
            "Which shop has some devices in stock?",
            "What about no device at all?"
        ],
        "interaction_query": [
            "SELECT Shop_Name FROM shop",
            "SELECT Shop_Name FROM shop WHERE Shop_ID IN (SELECT Shop_ID FROM stock)",
            "SELECT Shop_Name FROM shop WHERE Shop_ID NOT IN (SELECT Shop_ID FROM stock)"
        ]
    },
    {
        "db_id": "device",
        "final_query": "SELECT LOCATION FROM shop WHERE Open_Year  >  2012 INTERSECT SELECT LOCATION FROM shop WHERE Open_Year  <  2008",
        "final_utterance": "Show the locations shared by shops with open year later than 2012 and shops with open year before 2008.",
        "interaction_utterance": [
            "Show all the shop names and the location",
            "Keep those shops which opened in January.",
            "Keep the locations shared by shops with open year later than 2012 and shops with open year before 2008."
        ],
        "interaction_query": [
            "SELECT Shop_name, LOCATION FROM shop",
            "SELECT Shop_name, LOCATION FROM shop WHERE Open_Date like \"%Jan%\"",
            "SELECT LOCATION FROM shop WHERE Open_Year  >  2012 INTERSECT SELECT LOCATION FROM shop WHERE Open_Year  <  2008"
        ]
    },
    {
        "db_id": "device",
        "final_query": "SELECT Carrier FROM device WHERE Device_ID NOT IN (SELECT Device_ID FROM stock)",
        "final_utterance": "List the carriers of devices that have no devices in stock.",
        "interaction_utterance": [
            "List all the carriers",
            "Show all the unique carriers of the devices in the stock.",
            "Which carriers have no devices in stock?"
        ],
        "interaction_query": [
            "SELECT Carrier FROM device",
            "SELECT DISTINCT T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID  =  T2.Device_ID",
            "SELECT Carrier FROM device WHERE Device_ID NOT IN (SELECT Device_ID FROM stock)"
        ]
    },
    {
        "db_id": "musical",
        "final_query": "SELECT count(*) FROM actor",
        "final_utterance": "How many actors are there?",
        "interaction_utterance": [
            "List all the actors.",
            "How many are there?"
        ],
        "interaction_query": [
            "SELECT * FROM actor",
            "SELECT count(*) FROM actor"
        ]
    },
    {
        "db_id": "musical",
        "final_query": "SELECT Name FROM actor ORDER BY Name ASC",
        "final_utterance": "List the name of actors in ascending alphabetical order.",
        "interaction_utterance": [
            "Show all the names of the actors.",
            "List them in ascending alphabetical order."
        ],
        "interaction_query": [
            "SELECT Name FROM actor",
            "SELECT Name FROM actor ORDER BY Name ASC"
        ]
    },
    {
        "db_id": "musical",
        "final_query": "SELECT Character ,  Duration FROM actor",
        "final_utterance": "What are the characters and duration of actors?",
        "interaction_utterance": [
            "List all the actors.",
            "How many in total?",
            "What are the characters and duration of them?"
        ],
        "interaction_query": [
            "SELECT * FROM actor",
            "SELECT count(*) FROM actor",
            "SELECT Character ,  Duration FROM actor"
        ]
    },
    {
        "db_id": "musical",
        "final_query": "SELECT Name FROM actor WHERE Age != 20",
        "final_utterance": "List the name of actors whose age is not 20.",
        "interaction_utterance": [
            "List all the names and ages.",
            "Keep the names who are younger than 21.",
            "What about the names of actors whose age is not 20."
        ],
        "interaction_query": [
            "SELECT Name, Age FROM actor",
            "SELECT Name FROM actor WHERE Age < 21",
            "SELECT Name FROM actor WHERE Age != 20"
        ]
    },
    {
        "db_id": "musical",
        "final_query": "SELECT Character FROM actor ORDER BY age DESC",
        "final_utterance": "What are the characters of actors in descending order of age?",
        "interaction_utterance": [
            "Show the characters of actors.",
            "List them in descending order of age."
        ],
        "interaction_query": [
            "SELECT Character FROM actor",
            "SELECT Character FROM actor ORDER BY age DESC"
        ]
    },
    {
        "db_id": "musical",
        "final_query": "SELECT Duration FROM actor ORDER BY Age DESC LIMIT 1",
        "final_utterance": "What is the duration of the oldest actor?",
        "interaction_utterance": [
            "List the durations of all actors.",
            "What is the duration of 'Lynne McGranger'?",
            "What about the oldest actor?"
        ],
        "interaction_query": [
            "SELECT Duration FROM actor",
            "SELECT Duration FROM actor WHERE Name = 'Lynne McGranger'",
            "SELECT Duration FROM actor ORDER BY Age DESC LIMIT 1"
        ]
    },
    {
        "db_id": "musical",
        "final_query": "SELECT Name FROM musical WHERE Nominee  =  \"Bob Fosse\"",
        "final_utterance": "What are the names of musicals with nominee \"Bob Fosse\"?",
        "interaction_utterance": [
            "Show all the musical names information.",
            "Which of them has the award of 'Tony Award'?",
            "What about having the nominee of \"Bob Fosse\"?"
        ],
        "interaction_query": [
            "SELECT Name FROM musical",
            "SELECT Name FROM musical WHERE Award = 'Tony Award'",
            "SELECT Name FROM musical WHERE Nominee  =  \"Bob Fosse\""
        ]
    },
    {
        "db_id": "musical",
        "final_query": "SELECT DISTINCT Nominee FROM musical WHERE Award != \"Tony Award\"",
        "final_utterance": "What are the distinct nominees of the musicals with the award that is not \"Tony Award\"?",
        "interaction_utterance": [
            "Show all the musical names information.",
            "Which of them has the nominee of \"Bob Fosse\"?",
            "How about the award of 'Tony Award'?",
            "What about the distinct nominees of the musicals with the award that is not that award?"
        ],
        "interaction_query": [
            "SELECT Name FROM musical",
            "SELECT Name FROM musical WHERE Nominee  =  \"Bob Fosse\"",
            "SELECT Name FROM musical WHERE Award = 'Tony Award'",
            "SELECT DISTINCT Nominee FROM musical WHERE Award != \"Tony Award\""
        ]
    },
    {
        "db_id": "musical",
        "final_query": "SELECT T1.Name ,  T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID",
        "final_utterance": "Show names of actors and names of musicals they are in.",
        "interaction_utterance": [
            "List all the names of actors.",
            "Show the names of actors and their corresponding musical names."
        ],
        "interaction_query": [
            "SELECT * FROM actor",
            "SELECT T1.Name ,  T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID"
        ]
    },
    {
        "db_id": "musical",
        "final_query": "SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID WHERE T2.Name  =  \"The Phantom of the Opera\"",
        "final_utterance": "Show names of actors that have appeared in musical with name \"The Phantom of the Opera\".",
        "interaction_utterance": [
            "Which actors appeared in musical with name \"Wicked\"?",
            "What about \"The Phantom of the Opera\"?"
        ],
        "interaction_query": [
            "SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID WHERE T2.Name  =  \"Wicked\"",
            "SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID WHERE T2.Name  =  \"The Phantom of the Opera\""
        ]
    },
    {
        "db_id": "musical",
        "final_query": "SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID ORDER BY T2.Year DESC",
        "final_utterance": "Show names of actors in descending order of the year their musical is awarded.",
        "interaction_utterance": [
            "List the names of actors and their musical names.",
            "Order the names of actors in in descending order of the year their musical is awarded."
        ],
        "interaction_query": [
            "SELECT T1.Name,T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID",
            "SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID ORDER BY T2.Year DESC"
        ]
    },
    {
        "db_id": "musical",
        "final_query": "SELECT T2.Name ,  COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID GROUP BY T1.Musical_ID",
        "final_utterance": "Show names of musicals and the number of actors who have appeared in the musicals.",
        "interaction_utterance": [
            "Which musical name has two actors?",
            "Show each musical name and the number of actors."
        ],
        "interaction_query": [
            "SELECT T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID GROUP BY T1.Musical_ID having count(*) = 2",
            "SELECT T2.Name ,  COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID"
        ]
    },
    {
        "db_id": "musical",
        "final_query": "SELECT T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID GROUP BY T1.Musical_ID HAVING COUNT(*)  >=  3",
        "final_utterance": "Show names of musicals which have at least three actors.",
        "interaction_utterance": [
            "List the names of actors and their musical names.",
            "What are the musical names that have two actors?",
            "What about at least three actors?"
        ],
        "interaction_query": [
            "SELECT T1.Name,T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID",
            "SELECT T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID GROUP BY T1.Musical_ID HAVING COUNT(*)  =  2",
            "SELECT T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID GROUP BY T1.Musical_ID HAVING COUNT(*)  >=  3"
        ]
    },
    {
        "db_id": "musical",
        "final_query": "SELECT Nominee ,  COUNT(*) FROM musical GROUP BY Nominee",
        "final_utterance": "Show different nominees and the number of musicals they have been nominated.",
        "interaction_utterance": [
            "List all the nominee names.",
            "Count how many musicals for each."
        ],
        "interaction_query": [
            "SELECT Nominee  FROM musical",
            "SELECT Nominee, count(*) FROM musical GROUP BY Nominee"
        ]
    },
    {
        "db_id": "musical",
        "final_query": "SELECT Nominee FROM musical GROUP BY Nominee ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "Please show the nominee who has been nominated the greatest number of times.",
        "interaction_utterance": [
            "Count how many musicals for each one.",
            "Which nominee has 2 musicals?",
            "Who has been nominated the greatest number of times?"
        ],
        "interaction_query": [
            "SELECT Nominee, count(*) FROM musical GROUP BY Nominee",
            "SELECT Nominee FROM musical GROUP BY Nominee having count(*) = 2",
            "SELECT Nominee FROM musical GROUP BY Nominee ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "musical",
        "final_query": "SELECT RESULT FROM musical GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1",
        "final_utterance": "List the most common result of the musicals.",
        "interaction_utterance": [
            "List all the results from the musicals.",
            "How many are there for each result type?",
            "Which one is the most popular result?"
        ],
        "interaction_query": [
            "SELECT RESULT FROM musical",
            "SELECT RESULT, count(*) FROM musical GROUP BY RESULT",
            "SELECT RESULT FROM musical GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1"
        ]
    },
    {
        "db_id": "musical",
        "final_query": "SELECT Nominee FROM musical GROUP BY Nominee HAVING COUNT(*)  >  2",
        "final_utterance": "List the nominees that have been nominated more than two musicals.",
        "interaction_utterance": [
            "Show all the nominees.",
            "Count how many musicals for each one.",
            "Which nominee has 5 musicals?",
            "How about more than two musicals?"
        ],
        "interaction_query": [
            "SELECT Nominee FROM musical",
            "SELECT Nominee, count(*) FROM musical GROUP BY Nominee",
            "SELECT Nominee FROM musical GROUP BY Nominee having count(*) = 5",
            "SELECT Nominee FROM musical GROUP BY Nominee HAVING COUNT(*)  >  2"
        ]
    },
    {
        "db_id": "musical",
        "final_query": "SELECT Name FROM musical WHERE Musical_ID NOT IN (SELECT Musical_ID FROM actor)",
        "final_utterance": "List the name of musicals that do not have actors.",
        "interaction_utterance": [
            "List all the information about musicals.",
            "Show all the names of musicals which have actors.",
            "What about having no actors?"
        ],
        "interaction_query": [
            "SELECT * FROM musical",
            "SELECT Name FROM musical WHERE Musical_ID IN (SELECT Musical_ID FROM actor)",
            "SELECT Name FROM musical WHERE Musical_ID NOT IN (SELECT Musical_ID FROM actor)"
        ]
    },
    {
        "db_id": "musical",
        "final_query": "SELECT Nominee FROM musical WHERE Award  =  \"Tony Award\" INTERSECT SELECT Nominee FROM musical WHERE Award  =  \"Drama Desk Award\"",
        "final_utterance": "Show the nominees that have nominated musicals for both \"Tony Award\" and \"Drama Desk Award\".",
        "interaction_utterance": [
            "Show all the information about the musical that has the award of 'Tony Award'?",
            "What are the nominees with award \"Bob Fosse\" or \"Cleavant Derricks\"?",
            "What about both \"Tony Award\" and \"Drama Desk Award\"?"
        ],
        "interaction_query": [
            "SELECT * FROM musical WHERE Award = 'Tony Award'",
            "SELECT Nominee FROM musical WHERE Award  =  \"Tony Award\" OR Award  =  \"Cleavant Derricks\"",
            "SELECT Nominee FROM musical WHERE Award  =  \"Tony Award\" INTERSECT SELECT Nominee FROM musical WHERE Award  =  \"Drama Desk Award\""
        ]
    }
]