[
  {
    "db_name": "car_1",
    "turns": [
      {
        "isuser": true,
        "text": "What is the most popular car color?",
        "type": "unanswerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "This question cannot be answered because the provided database schema does not contain any information about car colors. Without a table or column that stores data on the color of cars, it is impossible to determine or list the most popular car color."
      },
      {
        "isuser": true,
        "text": "How many car models are produced by each maker? List the count and the maker full name.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Count(*) ,  T2.FullName  FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker  =  T2.Id GROUP BY T2.id;"
      },
      {
        "isuser": true,
        "text": "Which models are the most popular?",
        "type": "unanswerable"
      },
      {
        "isuser": false,
        "text": "The database doesn't have any information about popularity.",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Which companies have three or more models? list the maker's full name and the count.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT  T2.FullName, Count(*)  FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker  =  T2.Id GROUP BY T2.id having count(*) >=3;"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Welcome goodbye!",
        "query": ""
      }
    ],
    "id": 0
  },
  {
    "db_name": "cre_Doc_Template_Mgt",
    "turns": [
      {
        "isuser": true,
        "text": "Hi!  Can you tell me how many unique template IDs of documents there are?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(distinct template_id) FROM Documents "
      },
      {
        "isuser": true,
        "text": "How many of those 12 template IDs are used by more than one document?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(template_id) FROM Documents GROUP BY template_id HAVING count(*)  >  1"
      },
      {
        "isuser": true,
        "text": "Great!  Can you show me the corresponding document names that used each of those template IDs on the list you just provided me?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT document_id FROM Documents GROUP BY template_id HAVING count(*)  >  1"
      },
      {
        "isuser": true,
        "text": "After that, how can I ensure that the documents are properly archived and easily accessible for future reference?",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "To ensure that the documents are properly archived and easily accessible for future reference, you should label each document with the corresponding template ID, store them in clearly marked folders, organize the folders in a logical order within the filing cabinet, and maintain a digital index or catalog that records the location and details of each document.",
        "query": ""
      }
    ],
    "id": 1
  },
  {
    "db_name": "student_transcripts_tracking",
    "turns": [
      {
        "isuser": true,
        "text": "Find the first name of the students who permanently live in the country Haiti.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.first_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.permanent_address_id  =  T2.address_id WHERE T2.country  =  'Haiti' "
      },
      {
        "isuser": true,
        "text": "Please also find the first name of the students who have the cell phone number 09700166582",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT first_name FROM Students WHERE cell_mobile_number = '09700166582'"
      },
      {
        "isuser": true,
        "text": "Can you show me the last name and city he lives?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you want the city of his current address or the permanent address?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "current address please",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.last_name, T2.city FROM Students as T1 join addresses as T2 on T1.current_address_id = T2.address_id WHERE T1.cell_mobile_number = '09700166582'"
      },
      {
        "isuser": true,
        "text": "Ok. Can you also give me his email address?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT email_address FROM Students where cell_mobile_number = '09700166582'"
      },
      {
        "isuser": true,
        "text": "Send him an email , please.",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Sorry , I am an AI and cannot send emails directly. However, you can use this email address jillian26@example.net to contact the person yourself. If you need help drafting an email, feel free to ask!",
        "query": ""
      },
      {
        "isuser": true,
        "text": "OK, creat a mailto link with subject 'Hello' and body 'Hi, I am interested in your work.'",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Sure! Here is the mailto link: mailto:jillian26@example.net?subject=Hello&body=Hi, I am interested in your work.",
        "query": ""
      }
    ],
    "id": 2
  },
  {
    "db_name": "concert_singer",
    "turns": [
      {
        "isuser": true,
        "text": "what is the name of the stadium that does not have a concert in year 2014?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.stadium_id WHERE T1.year  =  2014"
      },
      {
        "isuser": true,
        "text": "what is the capacity of Balmoor?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select Capacity from stadium where name = 'Balmoor'"
      },
      {
        "isuser": true,
        "text": "what is the theme of Balmoor?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select T2.Theme from stadium as T1 join concert as T2 on T1.Stadium_ID = T2.Stadium_ID where T1.Name = 'Balmoor'"
      },
      {
        "isuser": true,
        "text": "Cool! good theme.",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Yes, the theme 'Happy Tonight' for Balmoor is indeed very cool!",
        "query": ""
      }
    ],
    "id": 3
  },
  {
    "db_name": "dog_kennels",
    "turns": [
      {
        "isuser": true,
        "text": "how many dogs have gone through treatment ",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )"
      },
      {
        "isuser": true,
        "text": "what are their ages",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT age FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )"
      },
      {
        "isuser": true,
        "text": "what is the highest weight of age 2",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT weight FROM Dogs WHERE age=2 ORDER BY weight DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "No problem. Anything more you'd like to ask?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "No, Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Good bye.",
        "query": ""
      }
    ],
    "id": 4
  },
  {
    "db_name": "course_teach",
    "turns": [
      {
        "isuser": true,
        "text": "How many teachers are there?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT COUNT(*) FROM teacher"
      },
      {
        "isuser": true,
        "text": "How many courses do you have?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT COUNT(*) FROM course"
      },
      {
        "isuser": true,
        "text": "Can you tell me the names of teachers and the number of courses they teach?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T2.Name , COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name"
      },
      {
        "isuser": true,
        "text": "Sure. Can you tell me the age of each teacher?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT age FROM teacher"
      },
      {
        "isuser": true,
        "text": "What is the email address of each teacher?",
        "type": "unanswerable"
      },
      {
        "isuser": false,
        "text": "This question cannot be answered because the database schema provided does not include a field for the email addresses of the teachers.",
        "query": ""
      }
    ],
    "id": 5
  },
  {
    "db_name": "car_1",
    "turns": [
      {
        "isuser": true,
        "text": "Which is higher?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Can you please clarify your question?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "what is the highest weight on the table?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Weight FROM CARS_DATA ORDER BY Weight DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "how many cars data on the table?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM CARS_DATA"
      },
      {
        "isuser": true,
        "text": "sum of all cylinders?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT sum(cylinders) FROM CARS_DATA"
      }
    ],
    "id": 6
  },
  {
    "db_name": "world_1",
    "turns": [
      {
        "isuser": true,
        "text": "I want to know the average population of all cities please",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT avg(Population) FROM city"
      },
      {
        "isuser": true,
        "text": "And which districts have cities with populations greater than the average?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT DISTINCT District FROM city WHERE Population  >  (SELECT avg(Population) FROM city)"
      },
      {
        "isuser": true,
        "text": "Within these districts, how many cities does each have with a population greater than the average?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT  District, count(*) FROM city WHERE Population  >  (SELECT avg(Population) FROM city) GROUP BY District"
      },
      {
        "isuser": true,
        "text": "What does 'Abu Dhabi' mean in Arabic?",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "In Arabic, 'Abu Dhabi' translates to 'Father of the Gazelle' in Arabic. 'Abu' means 'father' and 'Dhabi' refers to a type of gazelle. The name is believed to originate from the abundance of gazelles in the area.",
        "query": ""
      }
    ],
    "id": 7
  },
  {
    "db_name": "world_1",
    "turns": [
      {
        "isuser": true,
        "text": "Can you list all nations whose government is US territory?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Name FROM country WHERE GovernmentForm  =  \"US Territory\""
      },
      {
        "isuser": true,
        "text": "Hmm, I also want to know their GNP and population.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT GNP, population FROM country WHERE GovernmentForm  =  \"US Territory\""
      },
      {
        "isuser": true,
        "text": "How is GNP typically calculated?",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "GNP (Gross National Product) is typically calculated by first determining the Gross Domestic Product (GDP), which is the total market value of all final goods and services produced within a country during a specific period, usually a year. This includes consumption, investment, government spending, and net exports (exports minus imports). Next, you add the net income from abroad, which is the total income earned by residents from overseas investments and other sources minus the total income earned by foreign residents from domestic investments and other sources. By combining these two components, you get the GNP. In essence, GNP equals GDP plus the net income from abroad. For example, if a country has a GDP of $1,000 billion, and its residents earn $50 billion from abroad while foreign residents earn $30 billion from the country, then the GNP would be $1,020 billion.",
        "query": ""
      },
      {
        "isuser": true,
        "text": "OK, please find out the average GNP and total population of those nations.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT avg(GNP) ,  sum(population) FROM country WHERE GovernmentForm  =  \"US Territory\""
      }
    ],
    "id": 8
  },
  {
    "db_name": "world_1",
    "turns": [
      {
        "isuser": true,
        "text": "give me the total surface area of the continent\n Asia ",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT sum(SurfaceArea) FROM country WHERE Continent = \"Asia\""
      },
      {
        "isuser": true,
        "text": "give me all all local names in the world",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT LocalName FROM country"
      },
      {
        "isuser": true,
        "text": "What is Aruba's code? ",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Code FROM country WHERE Name = \"Aruba\""
      }
    ],
    "id": 9
  },
  {
    "db_name": "concert_singer",
    "turns": [
      {
        "isuser": true,
        "text": "what are the singers name on this list?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name from singer"
      },
      {
        "isuser": true,
        "text": "Joe Sharp song \"You\" was released in what year?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT song_release_year from singer where Name = \"Joe Sharp\" and Song_Name = \"You\""
      },
      {
        "isuser": true,
        "text": "how many number of concert has Joe Sharp held?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id  =  T2.singer_id where T2.name = \"Joe Sharp\" GROUP BY T2.singer_id"
      },
      {
        "isuser": true,
        "text": "ok. what country is Joe sharp from?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT country from singer where name = \"Joe Sharp\" "
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Thank you, good bye. ",
        "query": ""
      }
    ],
    "id": 10
  },
  {
    "db_name": "car_1",
    "turns": [
      {
        "isuser": true,
        "text": "which models are lighter than 3500?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model  =  T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId  =  T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker  =  T4.Id WHERE T3.weight  <  3500"
      },
      {
        "isuser": true,
        "text": "what is the weight of  BMW?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT DISTINCT T3.Weight FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model  =  T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId  =  T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker  =  T4.Id WHERE T1.Model=\"bmw\""
      },
      {
        "isuser": true,
        "text": "all information of id 2",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Are you asking about the car or the carmaker?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "YES car",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT * FROM car_names WHERE MakeId=2"
      }
    ],
    "id": 11
  },
  {
    "db_name": "student_transcripts_tracking",
    "turns": [
      {
        "isuser": true,
        "text": "How many different lessons it have?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you mean the number of the courses with different course ids?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT  count(distinct course_id) from courses"
      },
      {
        "isuser": true,
        "text": "What's the name of the course with least number of students of enrollments?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT  T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name ORDER BY count(*) LIMIT 1"
      },
      {
        "isuser": true,
        "text": "Who will be the most successful student in the student table in the next five years?",
        "type": "unanswerable"
      },
      {
        "isuser": false,
        "text": "Sorry, I can't answer this question. It is impossible to determine who will be the most successful student in the student table over the next five years. Success is influenced by numerous unpredictable factors, and its definition varies from person to person. Additionally, the current data in the student table does not provide sufficient information to make such a long-term prediction.",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome.",
        "query": ""
      }
    ],
    "id": 12
  },
  {
    "db_name": "dog_kennels",
    "turns": [
      {
        "isuser": true,
        "text": "How many different treatments are there?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select count(*) from (SELECT distinct treatment_type_code from treatments)"
      },
      {
        "isuser": true,
        "text": "the most expensive treatment's name?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT * FROM Treatments ORDER BY cost_of_treatment DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "And how about the price of the most recent treatment? ",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Thanks. Bye!",
        "query": ""
      }
    ],
    "id": 13
  },
  {
    "db_name": "flight_2",
    "turns": [
      {
        "isuser": true,
        "text": "hey",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "hi, how can i help you? ",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Find all airlines that have fewer than 200 flights.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline HAVING count(*)  <  200"
      },
      {
        "isuser": true,
        "text": "which ones are London bound?",
        "type": "unanswerable"
      },
      {
        "isuser": false,
        "text": "Sorry, This question is not answerable by the table information. You can ask what country is their destination. ",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Thank you, good bye. ",
        "query": ""
      }
    ],
    "id": 14
  },
  {
    "db_name": "flight_2",
    "turns": [
      {
        "isuser": true,
        "text": "how many flights are landing in the city of aberdeen or abilene",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport  =  T2.AirportCode WHERE T2.city  like  \"%Aberdeen%\" OR T2.city  like  \"%Abilene%\""
      },
      {
        "isuser": true,
        "text": "what is the airport code for the city abilene",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT airportCode FROM  Airports  WHERE  city like \"%Abilene%\""
      },
      {
        "isuser": true,
        "text": "thanks",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "welcome  and  goodbye ",
        "query": ""
      }
    ],
    "id": 15
  },
  {
    "db_name": "tvshow",
    "turns": [
      {
        "isuser": true,
        "text": "Which titles were directed by Ben Jones or Brandon Vietti?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\" OR Directed_by = \"Brandon Vietti\";"
      },
      {
        "isuser": true,
        "text": "What are their original air dates?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Title, original_air_date FROM Cartoon WHERE Directed_by = \"Ben Jones\" OR Directed_by = \"Brandon Vietti\";"
      },
      {
        "isuser": true,
        "text": "Who are the writers of these cartoons?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Title, written_by FROM Cartoon WHERE Directed_by = \"Ben Jones\" OR Directed_by = \"Brandon Vietti\";"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome!",
        "query": ""
      }
    ],
    "id": 16
  },
  {
    "db_name": "cre_Doc_Template_Mgt",
    "turns": [
      {
        "isuser": true,
        "text": "Can I get all the documents with 'w' in them",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you want documents with 'w' in the name or description?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Description pls",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT * from Documents WHERE Document_Description LIKE \"%w%\""
      },
      {
        "isuser": true,
        "text": "Ok can I get just their names",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT document_name from Documents WHERE Document_Description LIKE \"%w%\""
      },
      {
        "isuser": true,
        "text": "I need the template ids too oops",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT document_name , template_id FROM Documents WHERE Document_Description LIKE \"%w%\"\n\n"
      },
      {
        "isuser": true,
        "text": "Thanks",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Goodbye!",
        "query": ""
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT document_name , template_id FROM Documents WHERE Document_Description LIKE \"%w%\"\n\n"
      }
    ],
    "id": 17
  },
  {
    "db_name": "wta_1",
    "turns": [
      {
        "isuser": true,
        "text": "What is the average age of the losers from all matches?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT avg(loser_age)  FROM matches"
      },
      {
        "isuser": true,
        "text": "What about the average age of the winners from all matches?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT avg(winner_age)  FROM matches"
      },
      {
        "isuser": true,
        "text": "How many winners are left handed?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) from matches where winner_hand = \"L\""
      },
      {
        "isuser": true,
        "text": "What are the names of the winner and loser from the longest match?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT winner_name, loser_name from matches where minutes = (select max(minutes) from matches)"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Thank you! Bye",
        "query": ""
      }
    ],
    "id": 18
  },
  {
    "db_name": "dog_kennels",
    "turns": [
      {
        "isuser": true,
        "text": "Show me all the dogs",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "do you want to show all the attributes of the dogs?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "just show me the names of the dogs",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name FROM Dogs "
      },
      {
        "isuser": true,
        "text": "Nice! Tell me which of these dogs are the rarest breed",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name FROM Dogs WHERE breed_code  =  ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )"
      },
      {
        "isuser": true,
        "text": "What are the genders of these dogs?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name, gender FROM Dogs WHERE breed_code  =  ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )"
      },
      {
        "isuser": true,
        "text": "What does the ones and twos mean in the table?",
        "type": "unanswerable"
      },
      {
        "isuser": false,
        "text": "Sorry, I don't know the answer. Please ask me other questions related to the data.",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Ok sure. Tell me about dog treatments",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Sorry, could you specify your question, There are all attributes of the dog treatments, which one do you want to show?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Alright! just show me the treatment dates of these dogs",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id  =  T2.dog_id WHERE T1.breed_code  =  ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )"
      }
    ],
    "id": 19
  },
  {
    "db_name": "pets_1",
    "turns": [
      {
        "isuser": true,
        "text": "How many students have a cat pet? ",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat'"
      },
      {
        "isuser": true,
        "text": "And what about students that don't have a cat pet?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select count(*) from (SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat')"
      },
      {
        "isuser": true,
        "text": "And what are their ids? ",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat'"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "goodbye!",
        "query": ""
      }
    ],
    "id": 20
  },
  {
    "db_name": "museum_visit",
    "turns": [
      {
        "isuser": true,
        "text": "What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID  =  t2.Museum_ID WHERE t3.open_year  <  2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID  =  t2.Museum_ID WHERE t3.open_year  >  2011"
      },
      {
        "isuser": true,
        "text": "What museum did he visit before 2009?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT t3.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID  =  t2.Museum_ID WHERE t3.open_year  <  2009 AND t1.name = (SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID  =  t2.Museum_ID WHERE t3.open_year  <  2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID  =  t2.Museum_ID WHERE t3.open_year  >  2011)"
      },
      {
        "isuser": true,
        "text": "What is the ticket price at the Plaza Museum?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT t2.total_spent / t2.Num_of_ticket FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID  =  t2.Museum_ID WHERE t3.name = \"Plaza Museum\""
      },
      {
        "isuser": true,
        "text": "How many people visited the plaza museum in 2009?\n",
        "type": "unanswerable"
      },
      {
        "isuser": false,
        "text": "Sorry, we do not have information on the number of visits in each year.",
        "query": ""
      },
      {
        "isuser": true,
        "text": "What is the average number of tickets sold at the Plaza Museum?",
        "type": "unanswerable"
      },
      {
        "isuser": false,
        "text": "Sorry, we do not have information on the number of tickets sold at museums.",
        "query": ""
      },
      {
        "isuser": true,
        "text": "What is Fernando Gago's membership level?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT level_of_membership FROM visitor WHERE name = \"Fernando Gago\""
      },
      {
        "isuser": true,
        "text": "How old is Fernando Gago?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT age FROM visitor WHERE name = \"Fernando Gago\""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome!",
        "query": ""
      }
    ],
    "id": 21
  },
  {
    "db_name": "flight_2",
    "turns": [
      {
        "isuser": true,
        "text": "what is the source airport for United Airlines?\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.SourceAirport FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid  =  T1.Airline WHERE T2.Airline  =  \"United Airlines\""
      },
      {
        "isuser": true,
        "text": "What are the flight numbers for United Airlines?\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid  =  T1.Airline WHERE T2.Airline  =  \"United Airlines\""
      },
      {
        "isuser": true,
        "text": "Where is flight 28 going to?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT DestAirport FROM flights WHERE FlightNo = 28"
      },
      {
        "isuser": true,
        "text": "29 going to?\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT DestAirport FROM flights WHERE FlightNo = 29"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Welcome! Bye.",
        "query": ""
      }
    ],
    "id": 22
  },
  {
    "db_name": "course_teach",
    "turns": [
      {
        "isuser": true,
        "text": "Show the name of the teacher for the math course please?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID  =  T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID  =  T3.Teacher_ID WHERE T2.Course  =  \"Math\""
      },
      {
        "isuser": true,
        "text": "What grades do they teach?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.Grade FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID  =  T2.Course_ID where T2.Course = \"Math\""
      },
      {
        "isuser": true,
        "text": "What dates do those courses start?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T2.Staring_Date  FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID  =  T2.Course_ID where T2.Course = \"Math\""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Welcome and goodbye",
        "query": ""
      }
    ],
    "id": 23
  },
  {
    "db_name": "world_1",
    "turns": [
      {
        "isuser": true,
        "text": "how many country there",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) from country"
      },
      {
        "isuser": true,
        "text": "what is the Code of Herat",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you mean the country code of city Herat?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "yes sir",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT countrycode  from city where name = \"Herat\""
      },
      {
        "isuser": true,
        "text": "what is the Population of Qandahar",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT population  from city where name = \"Qandahar\""
      },
      {
        "isuser": true,
        "text": "thanks",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome.",
        "query": ""
      }
    ],
    "id": 24
  },
  {
    "db_name": "world_1",
    "turns": [
      {
        "isuser": true,
        "text": "LIST THE NATIONS WHICH DO NOT USE ENGLISH",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Name FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"English\")"
      },
      {
        "isuser": true,
        "text": "HOW MANY ARE THERE IN THE NATIONS THAT DO NOT USE ENGLISH",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "did you mean you want the Population of the country DO NOT USE ENGLISH",
        "query": ""
      },
      {
        "isuser": true,
        "text": "YES, THE CITY NAME AND TOTAL NUMBER OF PEOPLE LIVING IN THE NATIONS THAT DO NOT USE ENGLISH",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Name,sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  \"English\") group by Name"
      },
      {
        "isuser": true,
        "text": "THANKS",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "welcome,goodbye",
        "query": ""
      }
    ],
    "id": 25
  },
  {
    "db_name": "car_1",
    "turns": [
      {
        "isuser": true,
        "text": "What is the W of 1?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Did you mean to ask for the weight of the car with makeid 1?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T2.Weight FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id WHERE T1.MakeID = 1"
      },
      {
        "isuser": true,
        "text": "Which year launch the buick?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Did you want to ask for the year on which the car model buick was launched?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T2.Year FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id WHERE T1.Model = \"buick\""
      },
      {
        "isuser": true,
        "text": "Find the horsepower of model plymouth.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T2.Horsepower FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id WHERE T1.Model = \"plymouth\""
      },
      {
        "isuser": true,
        "text": "For the cars with 4 cylinders, which model has the largest horspower?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1;"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome. Good bye!",
        "query": ""
      }
    ],
    "id": 26
  },
  {
    "db_name": "car_1",
    "turns": [
      {
        "isuser": true,
        "text": "How many different cars on this list were produced in 1974?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select count(*) from cars_data where year='1974'"
      },
      {
        "isuser": true,
        "text": "Can you list just the car IDs produced in 1974 with 8 cylinders?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select id  from cars_data where year='1974' and Cylinders = '8'"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "bye",
        "query": ""
      }
    ],
    "id": 27
  },
  {
    "db_name": "singer",
    "turns": [
      {
        "isuser": true,
        "text": "how many singers are on the table?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select count(distinct Singer_ID) from Singer"
      },
      {
        "isuser": true,
        "text": "how many singers have songs with sales more than 300000?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(DISTINCT T1.Name) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000"
      },
      {
        "isuser": true,
        "text": "show distinct names of singers that have songs with sales more than 300000",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome!",
        "query": ""
      }
    ],
    "id": 28
  },
  {
    "db_name": "voter_1",
    "turns": [
      {
        "isuser": true,
        "text": "who all are the contest",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Did you mean to ask for the names of all contestants?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "yes.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT contestant_name FROM CONTESTANTS"
      },
      {
        "isuser": true,
        "text": "can you send the total contestant number?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT COUNT(contestant_name) FROM CONTESTANTS"
      },
      {
        "isuser": true,
        "text": "how is about the summer?",
        "type": "unanswerable"
      },
      {
        "isuser": false,
        "text": "I am sorry, I cannot understand that question. Can you rephrase it?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "how many female contestants are there?",
        "type": "unanswerable"
      },
      {
        "isuser": false,
        "text": "Sorry, I cannot answer that question.",
        "query": ""
      },
      {
        "isuser": true,
        "text": "who is the first contestant?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Did you mean to ask for the name of the contestant with contestant number 1?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "yes can tell me?\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT contestant_name FROM CONTESTANTS WHERE contestant_number = 1"
      },
      {
        "isuser": true,
        "text": "who is the 2 contestant?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT contestant_name FROM CONTESTANTS WHERE contestant_number = 2"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Good bye!",
        "query": ""
      }
    ],
    "id": 29
  },
  {
    "db_name": "dog_kennels",
    "turns": [
      {
        "isuser": true,
        "text": "How many dog breeds are there?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) from Breeds"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome! Do you want to know more?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "What is the name of the breed with the most dogs?\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code  =  T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "Thanks!\n",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Bye!",
        "query": ""
      }
    ],
    "id": 30
  },
  {
    "db_name": "orchestra",
    "turns": [
      {
        "isuser": true,
        "text": "List the name of the conductor with the most years of work.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "How many years did Robert Craft work?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Year_of_Work FROM conductor where name='Robert Craft'"
      },
      {
        "isuser": true,
        "text": "List the name of the conductor with the least years of work",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Name FROM conductor ORDER BY Year_of_Work asc LIMIT 1"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "welcome,goodbye",
        "query": ""
      }
    ],
    "id": 31
  },
  {
    "db_name": "voter_1",
    "turns": [
      {
        "isuser": true,
        "text": "Can you tell me what the total number of votes are for the states of \"NY\" and \"CA\"?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM votes WHERE state  =  'NY' or  state  =  'CA'"
      },
      {
        "isuser": true,
        "text": "Thank you!  Can you provide me with a list of all of the different contestant numbers?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT distinct contestant_number FROM votes "
      },
      {
        "isuser": true,
        "text": "Awesome!  Can you show me which of the contestants received the most votes and show me that total please?",
        "type": "unanswerable"
      },
      {
        "isuser": false,
        "text": "Sorry, I can't answer the question based on the information in the table.",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Okay.  How many vote IDs correspond to contestant number 5?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) from votes where contestant_number = '5'"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome. Goodbye.",
        "query": ""
      }
    ],
    "id": 32
  },
  {
    "db_name": "poker_player",
    "turns": [
      {
        "isuser": true,
        "text": "List all the nationalities in the table with no duplicate records",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT distinct Nationality FROM people"
      },
      {
        "isuser": true,
        "text": "List all the nationalities in the table",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Nationality FROM people "
      },
      {
        "isuser": true,
        "text": "Count the number of records where nationality is Russia",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM people where Nationality = 'Russia'"
      },
      {
        "isuser": true,
        "text": "Count the number of records where nationality is Bulgaria",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM people where \tNationality = 'Bulgaria'"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "welcome goodbye",
        "query": ""
      }
    ],
    "id": 33
  },
  {
    "db_name": "car_1",
    "turns": [
      {
        "isuser": true,
        "text": "list the all info of makers who designed more than 3 car models",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.* FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker GROUP BY T1.Id HAVING count(*)  >  3;"
      },
      {
        "isuser": true,
        "text": "what is the id of these makers",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker GROUP BY T1.Id HAVING count(*)  >  3;"
      },
      {
        "isuser": true,
        "text": "make a list so that the full name and id of the makers who designed more than 3 car models appear in the same table ",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.FullName ,  T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker GROUP BY T1.Id HAVING count(*)  >  3;"
      },
      {
        "isuser": true,
        "text": "thanks",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "bye",
        "query": ""
      }
    ],
    "id": 34
  },
  {
    "db_name": "car_1",
    "turns": [
      {
        "isuser": true,
        "text": "What is the average horsepower?\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT avg(Horsepower) FROM cars_data"
      },
      {
        "isuser": true,
        "text": "Which car has the largest horsepower?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Id FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "What is the accelerate of car 39?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "Which cars have an accelerate larger than 19.0?\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate  >  19.0"
      }
    ],
    "id": 35
  },
  {
    "db_name": "concert_singer",
    "turns": [
      {
        "isuser": true,
        "text": "When was the Auditions concert?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT year from concert where concert_name = \"Auditions\""
      },
      {
        "isuser": true,
        "text": "When was the Super bootcamp concert?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT year from concert where concert_name = \"Super bootcamp\""
      },
      {
        "isuser": true,
        "text": "When was the Home Visits concert?\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT year from concert where concert_name = \"Home Visits\""
      },
      {
        "isuser": true,
        "text": "Were there any other concerts other than Auditions, Super bootcamp, and Home Visits in 2014 or 2015?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT concert_name FROM concert WHERE YEAR  =  2014 OR YEAR  =  2015"
      },
      {
        "isuser": true,
        "text": "How many concerts were there total in 2014 or 2015?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM concert WHERE YEAR  =  2014 OR YEAR  =  2015"
      },
      {
        "isuser": true,
        "text": "And how many concerts were there just in 2014?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM concert WHERE YEAR  =  2014"
      },
      {
        "isuser": true,
        "text": "And how many were there in 2015?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM concert WHERE YEAR  =  2015"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Thanks. bye.",
        "query": ""
      }
    ],
    "id": 36
  },
  {
    "db_name": "student_transcripts_tracking",
    "turns": [
      {
        "isuser": true,
        "text": "How many graduates of the school are there?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*)  from students "
      },
      {
        "isuser": true,
        "text": "Did the 15 graduates graduate at different times?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT distinct date_left from students "
      },
      {
        "isuser": true,
        "text": "Ok. Who graduated the earliest?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "What attributes of this student who graduated the earliest would you like to know? ",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Please tell me the first name, middle name, and last name.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT first_name ,  middle_name ,  last_name FROM Students ORDER BY date_left ASC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Thank you, good bye. ",
        "query": ""
      }
    ],
    "id": 37
  },
  {
    "db_name": "network_1",
    "turns": [
      {
        "isuser": true,
        "text": "How many friends in this table?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM Friend"
      },
      {
        "isuser": true,
        "text": "Find average grade?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you want me to find the average grade of entries in the Highschooler table?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT avg(grade) FROM Highschooler"
      },
      {
        "isuser": true,
        "text": "Show names of all high school students?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT DISTINCT name  FROM Highschooler"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Thank you! Goodbye.",
        "query": ""
      }
    ],
    "id": 38
  },
  {
    "db_name": "dog_kennels",
    "turns": [
      {
        "isuser": true,
        "text": "how many dogs on the table",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM Dogs"
      },
      {
        "isuser": true,
        "text": "what is the age of Kacey",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT age FROM Dogs where name = \"Kacey\""
      },
      {
        "isuser": true,
        "text": "which dog is very very fat",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you want the name of the dog with the highest weight?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "exactly",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name FROM Dogs order by weight desc limit 1"
      },
      {
        "isuser": true,
        "text": "what is the size of BUL",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Did you mean the size codes of dogs with a breed code BUL?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "exactly",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT size_code FROM Dogs where breed_code = \"BUL\""
      },
      {
        "isuser": true,
        "text": "thanks",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "bye. ",
        "query": ""
      }
    ],
    "id": 39
  },
  {
    "db_name": "world_1",
    "turns": [
      {
        "isuser": true,
        "text": "What are the names of the nations with the 3 lowest populations?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Name FROM country ORDER BY Population ASC LIMIT 3"
      },
      {
        "isuser": true,
        "text": "Which nation has the largest surface area?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Name FROM country ORDER BY surfacearea desc LIMIT 1"
      },
      {
        "isuser": true,
        "text": "Of the 3 nations with the lowest populations, which has the largest surface area?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Name FROM (select * FROM country order by population asc limit 3) ORDER BY surfacearea desc LIMIT 1"
      },
      {
        "isuser": true,
        "text": "What is the total population of Antarctica?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT population from country where name = \"Antarctica\""
      },
      {
        "isuser": true,
        "text": "Wow!  of the 3 nations with the lowest population, what are the population sizes of the other two besides Antarctica?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name, population FROM country ORDER BY Population ASC LIMIT 3"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome.",
        "query": ""
      }
    ],
    "id": 40
  },
  {
    "db_name": "car_1",
    "turns": [
      {
        "isuser": true,
        "text": "How many makes are there for Chevrolet?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(DISTINCT Make) FROM CAR_NAMES WHERE Model = 'chevrolet'"
      },
      {
        "isuser": true,
        "text": "How many models are in the list?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(DISTINCT Model) FROM CAR_NAMES"
      },
      {
        "isuser": true,
        "text": "Can you tell me which model has the most makes of cars?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(DISTINCT Make) DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Thank you! Goodbye.",
        "query": ""
      }
    ],
    "id": 41
  },
  {
    "db_name": "world_1",
    "turns": [
      {
        "isuser": true,
        "text": "What is the average percent?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select avg(percentage) from countrylanguage"
      },
      {
        "isuser": true,
        "text": "Which code of country has the highest dutch speaking population?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select countrycode from countrylanguage where language = \"Dutch\" order by percentage desc limit 1"
      },
      {
        "isuser": true,
        "text": "What is the difference to Dutch speaking and Papiamento speaking countries?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "What difference do you want?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "The difference of the overall percent",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you mean average percent?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "yes",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select avg(percentage) from countrylanguage where language = \"Papiamento\""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Bye!",
        "query": ""
      }
    ],
    "id": 42
  },
  {
    "db_name": "museum_visit",
    "turns": [
      {
        "isuser": true,
        "text": "What is the membership level of Gonzalo Higuaín ?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Level_of_membership FROM visitor WHERE name =  \"Gonzalo Higuaín \""
      },
      {
        "isuser": true,
        "text": "whose membership level is 5?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name FROM visitor WHERE Level_of_membership= 5"
      },
      {
        "isuser": true,
        "text": "how many numbers of persons whose membership level is greater than 5?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM visitor WHERE Level_of_membership>5"
      },
      {
        "isuser": true,
        "text": "What is the age of membership level 8?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT age FROM visitor WHERE Level_of_membership  =8"
      },
      {
        "isuser": true,
        "text": "how many persons who have membership level greater than 4?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM visitor WHERE Level_of_membership > 4"
      },
      {
        "isuser": true,
        "text": "please sort the names of persons whose age from old to young according to the membership level?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name ,  Level_of_membership FROM visitor WHERE Level_of_membership  >  4 ORDER BY age DESC"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "bye!",
        "query": ""
      }
    ],
    "id": 43
  },
  {
    "db_name": "world_1",
    "turns": [
      {
        "isuser": true,
        "text": "Which country speaks the largest number of languages?\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "How many languages are spoken in Canada?\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode where T1.name = \"Canada\""
      },
      {
        "isuser": true,
        "text": "What are the names of those languages?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T2.language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode where T1.name = \"Canada\""
      },
      {
        "isuser": true,
        "text": "How many countries is Chinese spoken in?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(distinct CountryCode) FROM countrylanguage WHERE Language = \"Chinese\""
      },
      {
        "isuser": true,
        "text": "How many people in Canada speak Chinese?",
        "type": "unanswerable"
      },
      {
        "isuser": false,
        "text": "Sorry, we don't have that information.",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Which countries are in North America?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT NAME FROM country WHERE Continent = \"North America\""
      },
      {
        "isuser": true,
        "text": "What are the official languages of these countries?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT LANGUAGE FROM countrylanguage WHERE countrycode in (SELECT Code FROM country WHERE Continent = \"North America\") and IsOfficial = \"T\""
      },
      {
        "isuser": true,
        "text": "What is the life expectancy in Canada?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT LifeExpectancy FROM country WHERE name = \"Canada\""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Welcome! Goodbye!.",
        "query": ""
      }
    ],
    "id": 44
  },
  {
    "db_name": "world_1",
    "turns": [
      {
        "isuser": true,
        "text": "HOw many regions are there in ASia?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select count(*) from (SELECT region FROM country WHERE Continent  =  \"Asia\" group by region)"
      },
      {
        "isuser": true,
        "text": "What about in Europe?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select count(*) from (SELECT region FROM country WHERE Continent  =  \"Europe\" group by region)"
      },
      {
        "isuser": true,
        "text": "What is the surface area of all 10 of them?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT sum(SurfaceArea) FROM country WHERE Continent  =  \"Asia\" OR Continent  =  \"Europe\""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Thanks. Bye!",
        "query": ""
      }
    ],
    "id": 45
  },
  {
    "db_name": "real_estate_properties",
    "turns": [
      {
        "isuser": true,
        "text": "What are the names of the properties with more that one room?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT property_name FROM Properties WHERE room_count  >  1"
      },
      {
        "isuser": true,
        "text": "What are the names of the properties that are either houses or apartments with more than one room?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT property_name FROM Properties WHERE property_type_code  =  \"House\" UNION SELECT property_name FROM Properties WHERE property_type_code  =  \"Apartment\" AND room_count  >  1"
      },
      {
        "isuser": true,
        "text": "How many rooms do each of those have?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT property_name, room_count FROM Properties WHERE property_type_code  =  \"House\" UNION SELECT property_name, room_count FROM Properties WHERE property_type_code  =  \"Apartment\" AND room_count  >  1"
      },
      {
        "isuser": true,
        "text": "How many apartments with only one room?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM Properties WHERE property_type_code  =  \"Apartment\" AND room_count  =  1"
      },
      {
        "isuser": true,
        "text": "What is the average agreed selling price of all houses with more than one room?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT avg(agreed_selling_price) FROM Properties WHERE property_type_code  =  \"House\" AND room_count  >  1"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "thanks.bye.",
        "query": ""
      }
    ],
    "id": 46
  },
  {
    "db_name": "flight_2",
    "turns": [
      {
        "isuser": true,
        "text": "How many airports are there?\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) from airports"
      },
      {
        "isuser": true,
        "text": "How many have departing flights?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(distinct sourceairport) from flights"
      },
      {
        "isuser": true,
        "text": "How many will arrive in ASY?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) from flights where destairport like \"%ASY%\""
      },
      {
        "isuser": true,
        "text": "Of those flights, how many come from APG and ABR?\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) from flights where destairport like \"%ASY%\" and sourceairport like \"%APG%\" UNION SELECT count(*) from flights where destairport like \"%ASY%\" and sourceairport like \"%ABR%\""
      },
      {
        "isuser": true,
        "text": "Are there any other flights planned to depart from APG or ABR and what are the flight number of all flights planning to depart?\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT flightno from flights where (sourceairport like \"%APG%\" or sourceairport like \"%ABR%\") and destairport not like \"%ASY%\""
      },
      {
        "isuser": true,
        "text": "Thanks!\n",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Thank you! bye",
        "query": ""
      }
    ],
    "id": 47
  },
  {
    "db_name": "car_1",
    "turns": [
      {
        "isuser": true,
        "text": "how many car makers are their in germany",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country  =  T2.CountryId WHERE T2.CountryName  =  'germany';"
      },
      {
        "isuser": true,
        "text": "what are their names ",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECt T1.maker FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country  =  T2.CountryId WHERE T2.CountryName  =  'germany';"
      },
      {
        "isuser": true,
        "text": "how many cars are their in usa",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "do you mean car makers? ",
        "query": ""
      },
      {
        "isuser": true,
        "text": "yes",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECt count(T1.maker) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country  =  T2.CountryId WHERE T2.CountryName  =  'usa';"
      },
      {
        "isuser": true,
        "text": "what are their names ",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECt T1.maker FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country  =  T2.CountryId WHERE T2.CountryName  =  'usa';"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Thank you, good bye. ",
        "query": ""
      }
    ],
    "id": 48
  },
  {
    "db_name": "dog_kennels",
    "turns": [
      {
        "isuser": true,
        "text": "Can you show the owners and the states they live in?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you want the first and last names of owners and the states they live in?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes please.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT first_name ,  last_name, state FROM Owners"
      },
      {
        "isuser": true,
        "text": "Hmm, I want to know the first and last names of owners and also their emails.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT first_name ,  last_name, email_address FROM Owners"
      },
      {
        "isuser": true,
        "text": "Can you list the first and last name with emails of owners living in the state whose name contains the substring \"North\"?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT first_name ,  last_name ,  email_address FROM Owners WHERE state LIKE '%North%'"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "bye.",
        "query": ""
      }
    ],
    "id": 49
  },
  {
    "db_name": "employee_hire_evaluation",
    "turns": [
      {
        "isuser": true,
        "text": "Which cities do more than one employee under age 30 come from?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT city FROM employee WHERE age  <  30 GROUP BY city HAVING count(*)  >  1"
      },
      {
        "isuser": true,
        "text": "Which cities do more than one employee over age 30 come from?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT city FROM employee WHERE age  >  30 GROUP BY city HAVING count(*)  >  1"
      },
      {
        "isuser": true,
        "text": "What are the names and ages of all employees over age 30?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Name, Age FROM employee WHERE age  >  30 "
      },
      {
        "isuser": true,
        "text": "What are the names and ages of all employees under age 30?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Name, Age FROM employee WHERE age  <  30 "
      },
      {
        "isuser": true,
        "text": "What cities are all employees under age 29 from?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT City FROM employee WHERE age  <  29"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "goodbye",
        "query": ""
      }
    ],
    "id": 50
  },
  {
    "db_name": "battle_death",
    "turns": [
      {
        "isuser": true,
        "text": "How many battles did not lose any ship with tonnage 225?\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM battle WHERE id NOT IN ( SELECT lost_in_battle FROM ship WHERE tonnage  =  '225' );"
      },
      {
        "isuser": true,
        "text": "How many battles did lose a ship with tonnage 225?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM battle WHERE id IN ( SELECT lost_in_battle FROM ship WHERE tonnage  =  '225' );"
      },
      {
        "isuser": true,
        "text": "How many ships have a tonnage of 225?\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM ship WHERE tonnage  =  '225'"
      },
      {
        "isuser": true,
        "text": "Do any ships have a tonnage above 225?\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM ship WHERE tonnage  >  '225'"
      },
      {
        "isuser": true,
        "text": "Who won in the battle when the ship with a tonnage of 225 was sunk?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT result FROM battle WHERE id IN ( SELECT lost_in_battle FROM ship WHERE tonnage  =  '225' );"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome.",
        "query": ""
      }
    ],
    "id": 51
  },
  {
    "db_name": "car_1",
    "turns": [
      {
        "isuser": true,
        "text": "tell me the FullName of the maker amc",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Fullname FROM car_makers WHERE maker = \"amc\""
      },
      {
        "isuser": true,
        "text": "Tell me CountryName for Countryid  1, 2, and 3.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT countryname FROM countries WHERE countryid=1 or countryid=2 or countryid=3)"
      },
      {
        "isuser": true,
        "text": "Tell me the model id made by amc...",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT modelid FROM model_list WHERE model = \"amc\""
      },
      {
        "isuser": true,
        "text": "What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model ?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.countryId ,  T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId  =  T2.Country GROUP BY T1.countryId HAVING count(*)  >  3 UNION SELECT T1.countryId ,  T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId  =  T2.Country JOIN MODEL_LIST AS T3 ON T2.Id  =  T3.Maker WHERE T3.Model  =  'fiat';"
      },
      {
        "isuser": true,
        "text": "thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome. bye",
        "query": ""
      }
    ],
    "id": 52
  },
  {
    "db_name": "orchestra",
    "turns": [
      {
        "isuser": true,
        "text": "How many orchestras are there?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT COUNT(DISTINCT Orchestra) FROM orchestra"
      },
      {
        "isuser": true,
        "text": "How many without performance?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Did you mean to ask for the number of orchestras that have no performance?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes ",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT COUNT(Orchestra) FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)\n\n"
      },
      {
        "isuser": true,
        "text": "Can you show me its id and its name please?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Orchestra_ID, Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)\n\n"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome. Good bye!",
        "query": ""
      }
    ],
    "id": 53
  },
  {
    "db_name": "student_transcripts_tracking",
    "turns": [
      {
        "isuser": true,
        "text": "what are the degree_program IDs in the Table Name: Student_Enrolment?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT DISTINCT degree_program_id from Student_Enrolment"
      },
      {
        "isuser": true,
        "text": "what are the semester IDs in the Table Name: Student_Enrolment?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT DISTINCT semester_id from Student_Enrolment"
      },
      {
        "isuser": true,
        "text": "what are the semester_name in the Table Name: Semesters?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT semester_name from semesters"
      },
      {
        "isuser": true,
        "text": "what is the semester which most student registered in? show both the name and the id.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.semester_name ,  T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id  =  T2.semester_id GROUP BY T1.semester_id ORDER BY count(*) DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "okay, thanks for your help.",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Thank you, bye. ",
        "query": ""
      }
    ],
    "id": 54
  },
  {
    "db_name": "dog_kennels",
    "turns": [
      {
        "isuser": true,
        "text": "Can you show me a list?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "can you give more Information about this question?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "I want you to extract just the owner ids and zip codes from the table. Does it make sense?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT  \nowner_id,\tzip_code from Owners"
      },
      {
        "isuser": true,
        "text": "Hmm, can you put the owner ids, dog ids and the cost of treatment in a table?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.owner_id , T2.dog_id ,T3.cost_of_treatment  FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id "
      },
      {
        "isuser": true,
        "text": "Name of the customers who spend most for it",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Did you mean the full name of the owner who has cost largest amount of total cost of treatment for all dogs owned by an owner?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "YES, but just the first name will be fine.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT  T1.first_name  FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "To make sure, can you also show me the last name of Jaclyn?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT last_name  from Owners where first_name=\"Jaclyn\""
      },
      {
        "isuser": true,
        "text": "As a last thing, can you also tell me the owner id and zip code of Jaclyn Stoltenberg, who has paid the largest amount of money in total for their treatments for dogs?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.owner_id , T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "welcome  and  bye\n",
        "query": ""
      }
    ],
    "id": 55
  },
  {
    "db_name": "dog_kennels",
    "turns": [
      {
        "isuser": true,
        "text": "kindly give me the names that might be used for professionals or owners but cannot be use for dog names",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs"
      },
      {
        "isuser": true,
        "text": "Are there names that are mostly used by professional but aren't used for dog names",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Can you please clarify what you would like me to search the database for?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "How to contact Taryn",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Would you like the email address of professionals with name Taryn?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT email_address FROM Professionals WHERE First_Name = \"Taryn\""
      },
      {
        "isuser": true,
        "text": "In what state can i find Jayson",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT state FROM Professionals WHERE First_Name = \"Jayson\""
      },
      {
        "isuser": true,
        "text": "thanks",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Thank you! Goodbye.",
        "query": ""
      }
    ],
    "id": 56
  },
  {
    "db_name": "flight_2",
    "turns": [
      {
        "isuser": true,
        "text": "How many flights in this table?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM flights"
      },
      {
        "isuser": true,
        "text": "Which city has least number of departing flights?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.SourceAirport GROUP BY T1.City ORDER BY count(*) ASC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "Find the flight number of APG?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT FlightNo FROM flights WHERE SourceAirport=\"APG\""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome. Anything you'd like to know more?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Find the airport names of DYS?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT AirportName FROM airports WHERE AirportCode=\"DYS\""
      },
      {
        "isuser": true,
        "text": "Fin the city of ABR?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT CITY FROM airports WHERE AirportCode=\"ABR\""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome.",
        "query": ""
      }
    ],
    "id": 57
  },
  {
    "db_name": "world_1",
    "turns": [
      {
        "isuser": true,
        "text": "What is the name of the country with the shortest life expectancy in Asia?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Name FROM country WHERE Continent  =  \"Asia\" ORDER BY LifeExpectancy LIMIT 1"
      },
      {
        "isuser": true,
        "text": "And in Africa?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you mean among country in Africa, or among the country in Africa and in Asia.",
        "query": ""
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Name FROM country WHERE Continent  =  \"Africa\" ORDER BY LifeExpectancy LIMIT 1"
      },
      {
        "isuser": true,
        "text": "Among country in Africa",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Name FROM country WHERE Continent  =  \"Africa\" ORDER BY LifeExpectancy LIMIT 1"
      },
      {
        "isuser": true,
        "text": "What is the GNP of Afghanistan?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT \tGNP FROM country WHERE name=\"Afghanistan\""
      },
      {
        "isuser": true,
        "text": "What is the population of Afghanistan?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT \tPopulation FROM country WHERE name=\"Afghanistan\""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Sure! Do you want to know more?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "No.",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Thanks. Bye!",
        "query": ""
      }
    ],
    "id": 58
  },
  {
    "db_name": "poker_player",
    "turns": [
      {
        "isuser": true,
        "text": "How much did the winning poker player make?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Earnings FROM poker_player "
      },
      {
        "isuser": true,
        "text": "Cool, i want the winner's twitter id!",
        "type": "unanswerable"
      },
      {
        "isuser": false,
        "text": "Sorry the information is not available from the table.",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Can you rank the poker players earnings from highest to lowest?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Earnings FROM poker_player order by Earnings desc "
      },
      {
        "isuser": true,
        "text": "How many final tables did the poker player with the least amount of earnings make?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Final_Table_Made FROM poker_player order by Earnings asc limit 1"
      },
      {
        "isuser": true,
        "text": "What about the poker player with the most earnings how many final table did they make?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Final_Table_Made FROM poker_player order by Earnings desc limit 1"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome.",
        "query": ""
      }
    ],
    "id": 59
  },
  {
    "db_name": "dog_kennels",
    "turns": [
      {
        "isuser": true,
        "text": "Tell me how many dogs have gone through any treatments.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )"
      },
      {
        "isuser": true,
        "text": "Tell me how old the youngest is.",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you mean the youngest among those that have gone through any treatment?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "yes",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT min(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )"
      },
      {
        "isuser": true,
        "text": "And how old is the oldest that has gone through any treatment?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT max(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )"
      },
      {
        "isuser": true,
        "text": "How about the average age?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you mean the average age of those that have gone through any treatment?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "yes",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "thanks.bye.",
        "query": ""
      }
    ],
    "id": 60
  },
  {
    "db_name": "dog_kennels",
    "turns": [
      {
        "isuser": true,
        "text": "Tell me how many dogs have gone through any treatments.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )"
      },
      {
        "isuser": true,
        "text": "Tell me the smallest dog is.",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you mean the age of the youngest among those that have gone through any treatment?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "yes",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT min(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )"
      },
      {
        "isuser": true,
        "text": "And how old is the oldest that has gone through any treatment?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT max(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )"
      },
      {
        "isuser": true,
        "text": "How about the average?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you mean the average age of those that have gone through any treatment?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "yes",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "thanks.bye.",
        "query": ""
      }
    ],
    "id": 61
  },
  {
    "db_name": "student_transcripts_tracking",
    "turns": [
      {
        "isuser": true,
        "text": "Hi there! Does different semesters this list have?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do  you  mean  the type of  semester name?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes!  My apologies for being unclear.  How many different semester name types are on this list?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT distinct semester_name FROM Semesters "
      },
      {
        "isuser": true,
        "text": "Awesome!  Much appreciated!  Can you filter this list to show just the semester names which do not have any \nstudent enrolment ids associated, or in other words semesters which do not have any students enrolled?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment )"
      },
      {
        "isuser": true,
        "text": "Thank you!  Can you update this list to show the associated semester IDs and semester descriptions?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT semester_id,semester_name,semester_description FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment )"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You  are  welcome and  goodbye!",
        "query": ""
      }
    ],
    "id": 62
  },
  {
    "db_name": "wta_1",
    "turns": [
      {
        "isuser": true,
        "text": "What are the codes of countries that have more than 50 players?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT country_code FROM players GROUP BY country_code HAVING count(*)  >  50"
      },
      {
        "isuser": true,
        "text": "What are the codes of countries that have less than 40 players?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT country_code FROM players GROUP BY country_code HAVING count(*)  <  40"
      },
      {
        "isuser": true,
        "text": "What are the player names from the country code AHO?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you want first name and last name?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "yes",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT first_name,last_name FROM players where country_code='AHO'"
      },
      {
        "isuser": true,
        "text": "What are their player IDs?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT player_id FROM players where country_code='AHO'"
      },
      {
        "isuser": true,
        "text": "What hand is player id 206449?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT hand FROM players where player_id=206449"
      },
      {
        "isuser": true,
        "text": "How many other players have that?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM players where hand='U'"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Sure! Do you want more?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "No, thank you! Have a great day!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You too. Bye!",
        "query": ""
      }
    ],
    "id": 63
  },
  {
    "db_name": "battle_death",
    "turns": [
      {
        "isuser": true,
        "text": "Can you please show the names of the battles that had no ships lost in the 'English Channel'?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name FROM battle EXCEPT SELECT T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle WHERE T2.location  =  'English Channel'"
      },
      {
        "isuser": true,
        "text": "What are the results of those battles?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT RESULT  FROM battle where name not in (SELECT T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle WHERE T2.location  =  'English Channel')"
      },
      {
        "isuser": true,
        "text": "Who are the Bulgarian commanders of those battles, please?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT bulgarian_commander FROM battle where name not in (SELECT T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle WHERE T2.location  =  'English Channel')"
      },
      {
        "isuser": true,
        "text": "What were the dates of those battles?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT date FROM battle where name not in (SELECT T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle WHERE T2.location  =  'English Channel')"
      },
      {
        "isuser": true,
        "text": "What ship type was in those battles?",
        "type": "unanswerable"
      },
      {
        "isuser": false,
        "text": "Sorry, I cannot answer this.",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Who were the latin commanders of those battles?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT  latin_commander  FROM battle where name not in (SELECT T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle WHERE T2.location  =  'English Channel')"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Sure! Bye!",
        "query": ""
      }
    ],
    "id": 64
  },
  {
    "db_name": "employee_hire_evaluation",
    "turns": [
      {
        "isuser": true,
        "text": "The no. of stores?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Did you mean to ask for the number of shops in the database?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT COUNT(*) FROM shop"
      },
      {
        "isuser": true,
        "text": "What is the most products that one shop has?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT MAX(Number_products) FROM shop"
      },
      {
        "isuser": true,
        "text": "What about the minimum number or products that one shop has?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT MIN(Number_products) FROM shop"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome. Good bye!",
        "query": ""
      }
    ],
    "id": 65
  },
  {
    "db_name": "dog_kennels",
    "turns": [
      {
        "isuser": true,
        "text": "which breed has the highest number of dogs in the entire database?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code  =  T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "what is the total count for bulldog?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code  =  T2.breed_code where T1.breed_name = \"Bulldog\""
      },
      {
        "isuser": true,
        "text": "after bulldog, which breed has the next most dogs?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code  =  T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 2"
      },
      {
        "isuser": true,
        "text": "are there any breeds with 0 dogs?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.breed_name except SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code  =  T2.breed_code GROUP BY T1.breed_name"
      },
      {
        "isuser": true,
        "text": "any with 1 dog?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code  =  T2.breed_code GROUP BY T1.breed_name having count(*) == 1"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome.",
        "query": ""
      }
    ],
    "id": 66
  },
  {
    "db_name": "pets_1",
    "turns": [
      {
        "isuser": true,
        "text": "What are the names of all students who have cat pets?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat' "
      },
      {
        "isuser": true,
        "text": "What are the first names of all students who have dog pets?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'dog' "
      },
      {
        "isuser": true,
        "text": "How many students have any type of pet?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(T2.StuId) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid "
      },
      {
        "isuser": true,
        "text": "Are there any students that have both a cat and a dog?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat' INTERSECT SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'dog'"
      },
      {
        "isuser": true,
        "text": "What is the age of Linda's pet?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T3.pet_age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T1.Fname = \"Linda\""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "goodbye",
        "query": ""
      }
    ],
    "id": 67
  },
  {
    "db_name": "student_transcripts_tracking",
    "turns": [
      {
        "isuser": true,
        "text": "The students enrolled in 2 degree programs in one semester?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "did you want to return their first, middle and last names?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "yes",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.first_name ,  T1.middle_name ,  T1.last_name ,  T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING count(*)  =  2"
      },
      {
        "isuser": true,
        "text": "what are their student_id?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING count(*)  =  2"
      },
      {
        "isuser": true,
        "text": "what is student_id 4 email address",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT email_address FROM Students where student_id = 4"
      },
      {
        "isuser": true,
        "text": "what is Timothy Anna Ward's date first registered?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT date_first_registered FROM Students where first_name = 'Timmothy' and middle_name = 'Anna' and last_name = 'Ward'"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "goodbye.",
        "query": ""
      }
    ],
    "id": 68
  },
  {
    "db_name": "orchestra",
    "turns": [
      {
        "isuser": true,
        "text": "How many record companies are there?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(Record_Company) FROM orchestra "
      },
      {
        "isuser": true,
        "text": "How many orchestras are there?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(Orchestra_ID) FROM orchestra "
      },
      {
        "isuser": true,
        "text": "Do any conductors work for more than one orchestra?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select count(Orchestra) from orchestra group by Conductor_ID having count(orchestra)>1"
      },
      {
        "isuser": true,
        "text": "Can you list the orchestras by the date?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you mean listing the names of the orchestras by the date they were founded starting with the oldest?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "yes.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select orchestra from orchestra order by Year_of_Founded"
      },
      {
        "isuser": true,
        "text": "What year was the Royal Danish Orchestra founded?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select year_of_founded  from orchestra where orchestra='Royal Danish Orchestra'"
      },
      {
        "isuser": true,
        "text": "What record company is shared by the most orchestras?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome. Goodbye.",
        "query": ""
      }
    ],
    "id": 69
  },
  {
    "db_name": "flight_2",
    "turns": [
      {
        "isuser": true,
        "text": "How many 'United Airlines' flights go to the Airport 'ASY'?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline  =  T1.uid WHERE T1.Airline  =  \"United Airlines\" AND T2.DestAirport  =  \"ASY\""
      },
      {
        "isuser": true,
        "text": "What is the airline ID of United Airlines?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select uid from airlines where airline = \"United Airlines\""
      },
      {
        "isuser": true,
        "text": "How many airlines with airline id 1 go to the destination airport ASY?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM FLIGHTS WHERE airline = 1 and DestAirport  =  \" ASY\""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "thank. bye.",
        "query": ""
      }
    ],
    "id": 70
  },
  {
    "db_name": "car_1",
    "turns": [
      {
        "isuser": true,
        "text": "How many Volvo cars are there?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM CAR_names where model = \"volvo\""
      },
      {
        "isuser": true,
        "text": "Which of them has the least accelerate?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you want its car id?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.id FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC LIMIT 1;"
      },
      {
        "isuser": true,
        "text": "How many cylinders does that car have?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC LIMIT 1;"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Bye",
        "query": ""
      }
    ],
    "id": 71
  },
  {
    "db_name": "network_1",
    "turns": [
      {
        "isuser": true,
        "text": "How many students are there?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM Highschooler "
      },
      {
        "isuser": true,
        "text": "What about friends?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM Friend"
      },
      {
        "isuser": true,
        "text": "What are the names of all the highschoolers who have friends ?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id"
      },
      {
        "isuser": true,
        "text": "Can you show me their corresponding friends\n as well?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T2.name ,  count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome.",
        "query": ""
      }
    ],
    "id": 72
  },
  {
    "db_name": "car_1",
    "turns": [
      {
        "isuser": true,
        "text": "Which model saves the most gasoline? That is to say, have the maximum miles per gallon?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id ORDER BY T2.mpg DESC LIMIT 1;"
      },
      {
        "isuser": true,
        "text": "Which model has the highest horsepower?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id ORDER BY T2.horsepower DESC LIMIT 1;"
      }
    ],
    "id": 73
  },
  {
    "db_name": "wta_1",
    "turns": [
      {
        "isuser": true,
        "text": "how many players are presented on the table",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM players "
      },
      {
        "isuser": true,
        "text": "list out the players first name",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT first_name FROM players "
      },
      {
        "isuser": true,
        "text": "what is the country code of Mirjana",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT country_code FROM players  where first_name = \"Mirjana\""
      },
      {
        "isuser": true,
        "text": "what is the birth date of Justine",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT birth_date FROM players  where first_name = \"Mirjana\""
      },
      {
        "isuser": true,
        "text": "thanks",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Bye",
        "query": ""
      }
    ],
    "id": 74
  },
  {
    "db_name": "world_1",
    "turns": [
      {
        "isuser": true,
        "text": "What is the population of Afghanistan?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Population FROM country where Name  =  \"Afghanistan\""
      },
      {
        "isuser": true,
        "text": "And for Aruba?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Population FROM country where Name  =  \"Aruba\""
      },
      {
        "isuser": true,
        "text": "What languages are spoken in Aruba?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T2.language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Name  =  \"Aruba\""
      },
      {
        "isuser": true,
        "text": "How about official?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you ask for the official language of Aruba?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T2.language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Name  =  \"Aruba\" and T2.IsOfficial='T'"
      },
      {
        "isuser": true,
        "text": "What about for Afghanistan?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T2.language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Name  =  \"Afghanistan\" and T2.IsOfficial='T'"
      },
      {
        "isuser": true,
        "text": "How many other countries speak Dari?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.language='Dari' and T1.name != 'Afghanistan'"
      },
      {
        "isuser": true,
        "text": "Do other countries speak Pashto?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.language='Pashto' and T1.name!='Afghanistan'"
      },
      {
        "isuser": true,
        "text": "Is it an official language of Pakistan?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T2.language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.isOfficial='T' and T1.name='Pakistan'"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Sure! You are welcome! Anything else I can do?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Nope, that's all, THX~",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Bye!",
        "query": ""
      }
    ],
    "id": 75
  },
  {
    "db_name": "wta_1",
    "turns": [
      {
        "isuser": true,
        "text": "What are the names of the 3 youngest winners across all matches?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT winner_name  FROM matches ORDER BY winner_age LIMIT 3"
      },
      {
        "isuser": true,
        "text": "What are their ranks?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "do you want to show their names as well?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "yes, please",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT DISTINCT winner_name,  winner_rank FROM matches ORDER BY winner_age LIMIT 3"
      },
      {
        "isuser": false,
        "text": "There are the names and ranks of the 3 youngest winners across all matches.",
        "query": ""
      },
      {
        "isuser": true,
        "text": "What is the loser name for each of those matches?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT loser_name FROM matches ORDER BY winner_age LIMIT 3"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "goodbye!",
        "query": ""
      }
    ],
    "id": 76
  },
  {
    "db_name": "dog_kennels",
    "turns": [
      {
        "isuser": true,
        "text": "List the names of all the professionals. ",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT first_name, last_name FROM professionals "
      },
      {
        "isuser": true,
        "text": "List the names of all professionals that live in a city containing the substring West.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT first_name, last_name FROM professionals  WHERE city LIKE '%West%'"
      },
      {
        "isuser": true,
        "text": "List the role of the professional named Taryn. ",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT role_code FROM professionals  WHERE first_name = \"Taryn\""
      },
      {
        "isuser": true,
        "text": "List the role, street, city, and state of the professional with first name Taryn. ",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT role_code , street , city , state FROM professionals WHERE first_name = \"Taryn\""
      },
      {
        "isuser": true,
        "text": "where did taryn graduate from?",
        "type": "unanswerable"
      },
      {
        "isuser": false,
        "text": "Sorry I can't answer this question",
        "query": ""
      },
      {
        "isuser": true,
        "text": "List the names of all the professionals and their state. ",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT first_name,state FROM professionals"
      },
      {
        "isuser": true,
        "text": "List the names of all professionals with the state Indiana. ",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT first_name FROM professionals WHERE state = \"Indiana\""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "bye!\n",
        "query": ""
      }
    ],
    "id": 77
  },
  {
    "db_name": "battle_death",
    "turns": [
      {
        "isuser": true,
        "text": "How many death events are there?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM death "
      },
      {
        "isuser": true,
        "text": "Which event has the most deaths?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "What information do you need? all the information of this event or some specific information, like the note?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Which death event has the highest number killed?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT * FROM death where killed = (select max(killed) from death)"
      },
      {
        "isuser": true,
        "text": "Was anyone injured in these death events?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT * FROM death where injured > 0"
      },
      {
        "isuser": true,
        "text": "Were there any death with the substring East?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "You mean the events with the substring East in the event note?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes, please list them",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT * FROM death where note like \"%East%\""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Thank you! Bye!",
        "query": ""
      }
    ],
    "id": 78
  },
  {
    "db_name": "battle_death",
    "turns": [
      {
        "isuser": true,
        "text": "What are the death situations caused by the ship with tonnage 't' ?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.killed FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id WHERE T2.tonnage = 't'\n\n"
      },
      {
        "isuser": true,
        "text": "What are the injury situations caused by the ship with tonnage 't' ?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id WHERE T2.tonnage = 't'\n\n"
      },
      {
        "isuser": true,
        "text": "Tell me the total number of death and injury situations caused by the ship with tonnage 't'..",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT COUNT(T1.id) FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id WHERE T2.tonnage = 't'\n\n"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome. Good bye!",
        "query": ""
      }
    ],
    "id": 79
  },
  {
    "db_name": "car_1",
    "turns": [
      {
        "isuser": true,
        "text": "Can you list the number of car makers on each continent?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.Continent ,  count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId  =  T2.continent JOIN car_makers AS T3 ON T2.CountryId  =  T3.Country GROUP BY T1.Continent;"
      },
      {
        "isuser": true,
        "text": "What about the number of car makers in the country USA?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "seLECT count(*) FROM car_makers as T1 join countries as T2 on T2.CountryId  =  T1.Country where T2.countryname = \"usa\""
      },
      {
        "isuser": true,
        "text": "How about in the country Germany?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "seLECT count(*) FROM car_makers as T1 join countries as T2 on T2.CountryId  =  T1.Country where T2.countryname = \"germany\""
      },
      {
        "isuser": true,
        "text": "What about France?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "seLECT count(*) FROM car_makers as T1 join countries as T2 on T2.CountryId  =  T1.Country where T2.countryname = \"france\""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Bye",
        "query": ""
      }
    ],
    "id": 80
  },
  {
    "db_name": "cre_Doc_Template_Mgt",
    "turns": [
      {
        "isuser": true,
        "text": "How many documents have template type code BK?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id WHERE T1.template_type_code  =  \"BK\""
      },
      {
        "isuser": true,
        "text": "And their names?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id WHERE T1.template_type_code  =  \"BK\""
      },
      {
        "isuser": true,
        "text": "How many documents do not have template type code BK?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "Select count(*) from documents where document_name not in \n(SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id WHERE T1.template_type_code  =  \"BK\")"
      },
      {
        "isuser": true,
        "text": "Great! I appreciate your help. Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Thank you, good bye. ",
        "query": ""
      }
    ],
    "id": 81
  },
  {
    "db_name": "world_1",
    "turns": [
      {
        "isuser": true,
        "text": "What are the codes of the countries that do not speak English?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT CountryCode FROM countrylanguage WHERE LANGUAGE  !=  \"English\""
      },
      {
        "isuser": true,
        "text": "What are the codes of the countries that do not speak English whose government forms are not Republic?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE  =  \"English\""
      },
      {
        "isuser": true,
        "text": "What language do each of those speak, please?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select countrycode, language from countrylanguage where countrycode in (SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE  =  \"English\")"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select countrycode from countrylanguage where isOfficial = \"T\" and countrycode in (SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE  =  \"English\")"
      },
      {
        "isuser": true,
        "text": "Which of those countries is on the continent North America?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select code from country where continent = \"North America\" and code in (SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE  =  \"English\")"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Thanks. bye.",
        "query": ""
      }
    ],
    "id": 82
  },
  {
    "db_name": "dog_kennels",
    "turns": [
      {
        "isuser": true,
        "text": "which professionals live in state of indiana?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "What information do you want to know about these professionals? ",
        "query": ""
      },
      {
        "isuser": true,
        "text": "I would like to know all the information about professionals?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT * FROM Professionals WHERE state  =  'Indiana'"
      },
      {
        "isuser": true,
        "text": "ok, I need to know the cell number of taryn",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT cell_number FROM Professionals WHERE first_name = \"Taryn\""
      },
      {
        "isuser": true,
        "text": "ok,thanks",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "thank you, good bye",
        "query": ""
      }
    ],
    "id": 83
  },
  {
    "db_name": "cre_Doc_Template_Mgt",
    "turns": [
      {
        "isuser": true,
        "text": "how many templates there",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM Templates"
      },
      {
        "isuser": true,
        "text": "what is the date effective of template id 1",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Date_Effective_From, Date_Effective_To FROM Templates where Template_ID=1 "
      },
      {
        "isuser": true,
        "text": "what is the template type code of template id 4",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Template_Type_Code  FROM Templates where Template_ID=4"
      },
      {
        "isuser": true,
        "text": "what is the version number of template id 0",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Version_Number  FROM Templates where Template_ID=0"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Do you want to know something else?",
        "query": ""
      }
    ],
    "id": 84
  },
  {
    "db_name": "car_1",
    "turns": [
      {
        "isuser": true,
        "text": "WHAT IS THE ACCELERATE OF THE CAR MAKE AMC HORNET SPORTABOUT(SW)",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id  =  T2.MakeId WHERE T2.Make  =  'amc hornet sportabout (sw)';"
      },
      {
        "isuser": true,
        "text": "WHICH CAR MODEL GIVES MORE ACCELRATION",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T2.Model FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id  =  T2.MakeId order by T1.Accelerate desc limit 1"
      },
      {
        "isuser": true,
        "text": "THANKS! GOODBYE",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "welcome goodbye",
        "query": ""
      }
    ],
    "id": 85
  },
  {
    "db_name": "cre_Doc_Template_Mgt",
    "turns": [
      {
        "isuser": true,
        "text": "what are all of the template ids?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT template_id FROM Templates;"
      },
      {
        "isuser": true,
        "text": "which of those is not used in a document ",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents\n\n"
      },
      {
        "isuser": true,
        "text": "are those still effective?\n",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you mean the effective-to date of those templates?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "yes",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Date_effective_to FROM Templates WHERE template_id IN ( SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents)\n\n"
      },
      {
        "isuser": true,
        "text": "how many are used in documents?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM Templates WHERE template_id IN (SELECT template_id FROM Documents)\n\n"
      },
      {
        "isuser": true,
        "text": "and how many templates are not used?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM Templates WHERE template_id in (SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents)\n\n\n"
      },
      {
        "isuser": true,
        "text": "what were those IDs again?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents\n\n\n\n"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Bye!",
        "query": ""
      }
    ],
    "id": 86
  },
  {
    "db_name": "world_1",
    "turns": [
      {
        "isuser": true,
        "text": "What is the population in Asian continent?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT sum(Population) FROM country where Continent = 'Asia'"
      },
      {
        "isuser": true,
        "text": "Which language has 9.5%?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Language FROM countrylanguage where Percentage = 9.5"
      },
      {
        "isuser": true,
        "text": "What is the life expectancy rate in Angola?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT LifeExpectancy FROM country where LocalName = 'Angola'"
      },
      {
        "isuser": true,
        "text": "What is the GNP rate of Aruba?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "did you mean the GNP or GNP old?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "GNP",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT GNP FROM country where LocalName = 'Angola'"
      },
      {
        "isuser": true,
        "text": "What is the GNP old of Afghanistan?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT GNPOld FROM country where Name = 'Afghanistan'"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "goodbye.",
        "query": ""
      }
    ],
    "id": 87
  },
  {
    "db_name": "concert_singer",
    "turns": [
      {
        "isuser": true,
        "text": "What are the names of the singers whose song release year is greater than the average song release year",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT song_name FROM singer WHERE song_release_year  >  (SELECT avg(song_release_year) FROM singer)"
      },
      {
        "isuser": true,
        "text": "What is the average song release year?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT avg(song_release_year) FROM singer"
      },
      {
        "isuser": true,
        "text": "List all the songs, and order them",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you want the names of the songs ordered by their release year?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes I do\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT song_name from singer order by song_release_year"
      },
      {
        "isuser": true,
        "text": "List all song names by singers above the average age\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT song_name FROM singer WHERE age  >  (SELECT avg(age) FROM singer)"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "bye.",
        "query": ""
      }
    ],
    "id": 88
  },
  {
    "db_name": "orchestra",
    "turns": [
      {
        "isuser": true,
        "text": "Hola!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Hi, how can I help you?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Please answer the question:the orchestra of conductor?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you want all the orchestras of all conductors?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "yes",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID "
      },
      {
        "isuser": true,
        "text": "what is the name of all conductors?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Name FROM conductor"
      },
      {
        "isuser": true,
        "text": "What is the age of Colin Davis?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Age FROM conductor WHERE Name = \"Colin Davis\""
      },
      {
        "isuser": true,
        "text": "OK Thanks. ",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Thank you. Goodbye!",
        "query": ""
      }
    ],
    "id": 89
  },
  {
    "db_name": "cre_Doc_Template_Mgt",
    "turns": [
      {
        "isuser": true,
        "text": "What are the templates ever used by any document?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT * FROM Templates AS T1 JOIN Documents AS T2 ON T1.Template_ID  =  T2.template_ID"
      },
      {
        "isuser": true,
        "text": "What are the template type descriptions for these templates?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID"
      },
      {
        "isuser": true,
        "text": "Can I get the distinct template type descriptions for these templates?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID"
      },
      {
        "isuser": true,
        "text": "Thanks",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Goodbye!",
        "query": ""
      }
    ],
    "id": 90
  },
  {
    "db_name": "employee_hire_evaluation",
    "turns": [
      {
        "isuser": true,
        "text": "how many shop are presented on the table",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM shop "
      },
      {
        "isuser": true,
        "text": "list out the shop names",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name FROM shop "
      },
      {
        "isuser": true,
        "text": "what is the location of FC Haka",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT location FROM shop where name = \"FC Haka\""
      },
      {
        "isuser": true,
        "text": "what is the number of products in HJK",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Number_products FROM shop where name = \"HJK\""
      },
      {
        "isuser": true,
        "text": "thanks",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome",
        "query": ""
      }
    ],
    "id": 91
  },
  {
    "db_name": "dog_kennels",
    "turns": [
      {
        "isuser": true,
        "text": "What are the ids of the professionals?\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT professional_id  FROM Professionals "
      },
      {
        "isuser": true,
        "text": "What is the role of each of the professionals?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT professional_id, role_code  FROM Professionals "
      },
      {
        "isuser": true,
        "text": "Could I please have their email addresses of professionals that did not operate any treatment on dogs?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT professional_id , role_code , email_address FROM Professionals EXCEPT SELECT T1.professional_id , T1.role_code , T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id"
      }
    ],
    "id": 92
  },
  {
    "db_name": "car_1",
    "turns": [
      {
        "isuser": true,
        "text": "Can you tell me the ID of the american motor company ?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker WHERE T1.FullName  =  'American Motor Company';"
      },
      {
        "isuser": true,
        "text": "Can you tell me the model id of the maker amc ?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT ModelId FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker WHERE T1.Maker  =  'amc';"
      },
      {
        "isuser": true,
        "text": "Who is maker for the ID 2 ?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Did you mean Id or ModelId?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "I mean id\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT DISTINCT(T1.Maker) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker WHERE T1.Id = 2;"
      },
      {
        "isuser": true,
        "text": "How many car models were produced by the maker with the full name American Motor Company ?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker WHERE T1.FullName  =  'American Motor Company';"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome!",
        "query": ""
      }
    ],
    "id": 93
  },
  {
    "db_name": "museum_visit",
    "turns": [
      {
        "isuser": true,
        "text": "how many museum id in the list?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(Museum_ID ) FROM museum"
      },
      {
        "isuser": true,
        "text": "find the staff count in the museum with an id 3?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Num_of_Staff FROM museum where museum.Museum_ID = 3"
      },
      {
        "isuser": true,
        "text": "which year open the capital plaza museum?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Open_year FROM museum where \tName='Capital Plaza Museum'"
      },
      {
        "isuser": true,
        "text": "Thanks",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Bye!",
        "query": ""
      }
    ],
    "id": 94
  },
  {
    "db_name": "world_1",
    "turns": [
      {
        "isuser": true,
        "text": "How many government forms are in the table?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(GovernmentForm) FROM country"
      },
      {
        "isuser": true,
        "text": "How many of those have an average life expectancy that is longer than 72?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy)  >  72"
      },
      {
        "isuser": true,
        "text": "What is the population of each of those government forms?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT sum(Population) ,  GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy)  >  72"
      },
      {
        "isuser": true,
        "text": "Who is the oldest people for each of these?",
        "type": "unanswerable"
      },
      {
        "isuser": false,
        "text": "Sorry, I cannot answer this.",
        "query": ""
      },
      {
        "isuser": true,
        "text": "What is the life expectancy for each of these?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT avg(LifeExpectancy) FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy)  >  72"
      },
      {
        "isuser": true,
        "text": "hich types of governance are associated with higher life expectancies, and how large are their populations?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Sorry, I cannot understand this question. Can you elaborate?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Which government forms have an average life expectancy over 72, and what are their populations?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT sum(Population) ,  GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy)  >  72"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Sure! Bye!\n",
        "query": ""
      }
    ],
    "id": 95
  },
  {
    "db_name": "museum_visit",
    "turns": [
      {
        "isuser": true,
        "text": "Whats the level of membership customer id 1 has?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT \tLevel_of_membership FROM visitor WHERE ID = 1"
      },
      {
        "isuser": true,
        "text": "What is the name of customer id 1?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT \tName FROM visitor WHERE ID = 1"
      },
      {
        "isuser": true,
        "text": "What is the age of customer id 1?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT \t\tAge FROM visitor WHERE ID = 1"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "goodbye",
        "query": ""
      }
    ],
    "id": 96
  },
  {
    "db_name": "car_1",
    "turns": [
      {
        "isuser": true,
        "text": "What are the name of amc?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Did you mean the full name of the car maker amc?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select fullname from car_makers where maker = \"amc\""
      },
      {
        "isuser": true,
        "text": "What type of car making by german?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Sorry we don't have information about type of car. Can you clarify your question?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "What kind of car is produced in Germany?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Did you mean the car models produced in Germany?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T3.model FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId  =  T2.Country JOIN MODEL_LIST AS T3 ON T2.Id  =  T3.Maker WHERE T1.countryname = \"germany\""
      },
      {
        "isuser": true,
        "text": "What are the model id of BMW?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT modelid from model_list where model = \"bmw\""
      },
      {
        "isuser": true,
        "text": "What are the id and names of the countries which have more than 3 cars makers or produce the 'flat' model?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.countryId ,  T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId  =  T2.Country GROUP BY T1.countryId HAVING count(*)  >  3 UNION SELECT T1.countryId ,  T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId  =  T2.Country JOIN MODEL_LIST AS T3 ON T2.Id  =  T3.Maker WHERE T3.Model  =  'fiat';"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "bye",
        "query": ""
      }
    ],
    "id": 97
  },
  {
    "db_name": "dog_kennels",
    "turns": [
      {
        "isuser": true,
        "text": "What is the phone number of the professional who has done the most treatment.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id GROUP BY T1.professional_id order by count(*)  desc limit 1"
      },
      {
        "isuser": true,
        "text": "What are the professional id of the professionals who have done at least two types of treatments?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.professional_id  FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id GROUP BY T1.professional_id HAVING count(*)  >=  2"
      },
      {
        "isuser": true,
        "text": "How many professionals have done only one treatment?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select count(*) from (SELECT *  FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id GROUP BY T1.professional_id HAVING count(*)  = 1)"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome.",
        "query": ""
      }
    ],
    "id": 98
  },
  {
    "db_name": "cre_Doc_Template_Mgt",
    "turns": [
      {
        "isuser": true,
        "text": "WHAT IS THE DOCUMENT ID WITH 1 TO 2 PARAGRAPH?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2"
      },
      {
        "isuser": true,
        "text": "WHAT IS THE DOCUMENT TEXT ",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Did you mean the \tParagraph Text?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "YES \n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Paragraph_Text FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2"
      },
      {
        "isuser": true,
        "text": "OK THANKS! GOODBYE",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Bye!",
        "query": ""
      }
    ],
    "id": 99
  },
  {
    "db_name": "course_teach",
    "turns": [
      {
        "isuser": true,
        "text": "Who is the youngest teacher?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select name from teacher order by Age asc limit 1"
      },
      {
        "isuser": true,
        "text": "What is his hometown?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select Hometown from teacher order by Age asc limit 1"
      },
      {
        "isuser": true,
        "text": "Are there any other teachers from there?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select Name from teacher where Hometown='Farnworth Municipal Borough' and Name not is 'Vicente Carretero'"
      },
      {
        "isuser": true,
        "text": "What is the age of Vicente Carretero?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select Age from teacher where Name='Vicente Carretero'"
      },
      {
        "isuser": true,
        "text": "Are there any other teachers with that age?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select Name from teacher where Age='26'"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome!",
        "query": ""
      }
    ],
    "id": 100
  },
  {
    "db_name": "car_1",
    "turns": [
      {
        "isuser": true,
        "text": "What are the cars with lower hp?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you mean the id of the car with the lowest horsepower?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes please.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT id from cars_data order by horsepower limit 1 "
      },
      {
        "isuser": true,
        "text": "What is the average horsepower of all the cars?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT avg(horsepower)from cars_data "
      },
      {
        "isuser": true,
        "text": "Can you list the car ids of all the cars with lower than the average horsepower?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.Id FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id  =  T2.MakeId WHERE T1.Horsepower < (SELECT avg(Horsepower) FROM CARS_DATA) "
      },
      {
        "isuser": true,
        "text": "Could you add the model and make of each of those into the table please?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.Id ,T2.model FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id  =  T2.MakeId WHERE T1.Horsepower < (SELECT avg(Horsepower) FROM CARS_DATA) "
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome.",
        "query": ""
      }
    ],
    "id": 101
  },
  {
    "db_name": "student_transcripts_tracking",
    "turns": [
      {
        "isuser": true,
        "text": "Hi what is the latest transcript?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT transcript_id FROM Transcripts ORDER BY transcript_date DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "what is the date of transcript number 5?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT transcript_date FROM Transcripts WHERE transcript_id = 5"
      },
      {
        "isuser": true,
        "text": "is there any data providing who the transcript was recorded by?",
        "type": "unanswerable"
      },
      {
        "isuser": false,
        "text": "Sorry, our databases do not have information on who recorded the transcripts.",
        "query": ""
      },
      {
        "isuser": true,
        "text": "ok, Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome!",
        "query": ""
      }
    ],
    "id": 102
  },
  {
    "db_name": "flight_2",
    "turns": [
      {
        "isuser": true,
        "text": "Find Flight No from CVO to SNA",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT FlightNo FROM flights where SourceAirport=\"CVO\" and DestAirport=\"SNA\""
      },
      {
        "isuser": true,
        "text": "Flight from CVO to DFW",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT * FROM flights where SourceAirport=\"CVO\" and DestAirport=\"DFW\""
      },
      {
        "isuser": true,
        "text": "Which airlines have flight from CVO?\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  \" CVO\""
      },
      {
        "isuser": true,
        "text": "Thank\n",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Sure! Do you want to know more?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "No Thanks!\n\n",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Okay, Bye!",
        "query": ""
      }
    ],
    "id": 103
  },
  {
    "db_name": "tvshow",
    "turns": [
      {
        "isuser": true,
        "text": "What is the TV Channel of TV series \"A love of a lifetime\"?\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = \"A Love of a Lifetime\";"
      },
      {
        "isuser": true,
        "text": "How may viewers does \"A love of a lifetime\" have?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT  Viewers_m FROM  TV_series  where Episode = \"A Love of a Lifetime\";"
      },
      {
        "isuser": true,
        "text": "How about the rating of \"A love of a lifetime?\"",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT  Weekly_Rank  FROM  TV_series  where Episode = \"A Love of a Lifetime\";"
      },
      {
        "isuser": true,
        "text": "And when was \"A love of a lifetime\" aired?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT  \tAir_Date  FROM  TV_series  where Episode = \"A Love of a Lifetime\";"
      },
      {
        "isuser": true,
        "text": "Thanks!\n",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "goodbye!",
        "query": ""
      }
    ],
    "id": 104
  },
  {
    "db_name": "course_teach",
    "turns": [
      {
        "isuser": true,
        "text": "What're the names of the teachers who teach two or more courses?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID  =  T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*)  >=  2"
      },
      {
        "isuser": true,
        "text": "What is her age and hometown?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T2.age, t2.hometown FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID  =  T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*)  >=  2"
      },
      {
        "isuser": true,
        "text": "What grade does the oldest teacher teach?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT t1.grade FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID  =  T2.Teacher_ID order by t2.age desc limit 1"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome.",
        "query": ""
      }
    ],
    "id": 105
  },
  {
    "db_name": "concert_singer",
    "turns": [
      {
        "isuser": true,
        "text": "What is the name of the youngest singer?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Name FROM singer ORDER BY age LIMIT 1"
      },
      {
        "isuser": true,
        "text": "What's the name of the song by Tribal King?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Song_Name FROM singer where name = 'Tribal King'"
      },
      {
        "isuser": true,
        "text": "What was the release year of that song?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT song_release_year FROM singer where name = 'Tribal King'"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "goodbye.",
        "query": ""
      }
    ],
    "id": 106
  },
  {
    "db_name": "world_1",
    "turns": [
      {
        "isuser": true,
        "text": "Can you please list all the names of the countries that are in the continent of Europe?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Name FROM country WHERE continent  =  \"Europe\""
      },
      {
        "isuser": true,
        "text": "Can you please only show those countries with a population more than 80000 in the table?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Name FROM country WHERE continent  =  \"Europe\" AND Population  >  \"80000\""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome.",
        "query": ""
      }
    ],
    "id": 107
  },
  {
    "db_name": "student_transcripts_tracking",
    "turns": [
      {
        "isuser": true,
        "text": "What is the full name of the department that has the substring computer in its name?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT department_name FROM Departments WHERE department_name LIKE '%computer%'"
      },
      {
        "isuser": true,
        "text": "What's the description of that department?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'"
      },
      {
        "isuser": true,
        "text": "What is that department's id?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT department_id FROM Departments WHERE department_name LIKE '%computer%'"
      },
      {
        "isuser": true,
        "text": "Are there any other details about that department?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT other_details FROM Departments WHERE department_name LIKE '%computer%'"
      },
      {
        "isuser": true,
        "text": "how about history?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "What do you mean exactly?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "What are the other details for the department named history?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT other_details FROM Departments WHERE department_name = \"history\""
      },
      {
        "isuser": true,
        "text": "Are there any departments with other details that are not the word 'NULL' ?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT department_name FROM Departments WHERE other_details != \"NULL\""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome.",
        "query": ""
      }
    ],
    "id": 108
  },
  {
    "db_name": "concert_singer",
    "turns": [
      {
        "isuser": true,
        "text": "what is the age of Joe sharp ",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT age from singer where name = \"Joe Sharp\""
      },
      {
        "isuser": true,
        "text": "How many US Singers? ",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select count(*) from singer where country = \"United States\""
      },
      {
        "isuser": true,
        "text": "How many Male Singers?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select count(*) from singer where Is_male = \"True\""
      },
      {
        "isuser": true,
        "text": "Thank! for your kind reply .",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "thanks. good bye.",
        "query": ""
      }
    ],
    "id": 109
  },
  {
    "db_name": "car_1",
    "turns": [
      {
        "isuser": true,
        "text": "Which models are manufactured by the maker with the name \"General Motors\"?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model  =  T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker  =  T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId  =  T4.Id WHERE T3.FullName  =  'General Motors'"
      },
      {
        "isuser": true,
        "text": "How about models that weight more than 3500?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model  =  T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker  =  T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId  =  T4.Id WHERE T4.weight  >  3500;"
      },
      {
        "isuser": true,
        "text": "What is the make and model of the car with the largest horsepower?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT DISTINCT T2.Model, T3.maker FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model  =  T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker  =  T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId  =  T4.Id WHERE T3.FullName  =  'General Motors' order by t4.horsepower desc limit 1"
      },
      {
        "isuser": true,
        "text": "How many cars manufactured by General Motors get more than 15 mpg?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model  =  T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker  =  T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId  =  T4.Id WHERE T3.FullName  =  'General Motors' and t4.mpg > 15"
      },
      {
        "isuser": true,
        "text": "What is the make and model of the car manufactured by General Motors that gets the highest mpg?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT DISTINCT t1.make, t1.model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model  =  T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker  =  T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId  =  T4.Id WHERE T3.FullName  =  'General Motors' order by t4.mpg desc limit 1"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Bye!",
        "query": ""
      }
    ],
    "id": 110
  },
  {
    "db_name": "network_1",
    "turns": [
      {
        "isuser": true,
        "text": "How many students in this table?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM Highschooler"
      },
      {
        "isuser": true,
        "text": "To find average grade of these students?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT avg(grade) FROM Highschooler"
      },
      {
        "isuser": true,
        "text": "Find top grade of the student?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT grade FROM Highschooler order by grade desc limit 1"
      },
      {
        "isuser": true,
        "text": "Find the lowest  grade of the student?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT grade FROM Highschooler order by grade limit 1"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome.",
        "query": ""
      }
    ],
    "id": 111
  },
  {
    "db_name": "network_1",
    "turns": [
      {
        "isuser": true,
        "text": "Can you show me a list of student IDs and their friends IDs?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT student_id, friend_id FROM Friend"
      },
      {
        "isuser": true,
        "text": "Show me a list of all IDs?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Did you mean the id of all High schoolers?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT id FROM Highschooler "
      },
      {
        "isuser": true,
        "text": "Can you show a list of IDs that are on the second list, but are not on the first list?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT id FROM Highschooler where id not in (SELECT student_id FROM Friend UNION SELECT friend_id FROM Friend)"
      },
      {
        "isuser": true,
        "text": "Can you tell me the total number of student IDs?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(id) FROM Highschooler"
      },
      {
        "isuser": true,
        "text": "Can you tell me the total number of Friend IDs?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(distinct friend_id) FROM Friend"
      },
      {
        "isuser": true,
        "text": "Can you tell me which Student ID is not on the list of Friend IDs?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "by student id, do you mean the student id in the table friend or all high schoolers' ids.",
        "query": ""
      },
      {
        "isuser": true,
        "text": "All high schoolers' ids",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT id FROM Highschooler EXCEPT SELECT friend_id FROM Friend"
      },
      {
        "isuser": true,
        "text": "Can you tell me the name and the grade of student ID 1510?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name, grade FROM Highschooler where id = 1510"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "you are welcome, bye!",
        "query": ""
      }
    ],
    "id": 112
  },
  {
    "db_name": "pets_1",
    "turns": [
      {
        "isuser": true,
        "text": "How many students in the \"Student\" table are over the age of 20?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM student WHERE age  >  20"
      },
      {
        "isuser": true,
        "text": "How many of those students own pets?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid WHERE T1.age  >  20"
      }
    ],
    "id": 113
  },
  {
    "db_name": "wta_1",
    "turns": [
      {
        "isuser": true,
        "text": "Tell me the loser_name whose age is 24.626967830300003 ",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT distinct loser_name from matches where loser_age = 24.626967830300003"
      },
      {
        "isuser": true,
        "text": "Tell me the total number of matches played by Petra Kvitova...",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) from matches where loser_name = \"Petra Kvitova\" or winner_name = \"Petra Kvitova\""
      },
      {
        "isuser": true,
        "text": "the one loser_rank_points higher than 3500 ?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "What attributes of the people  with loser_rank_points higher than 3500 would you like to know? ",
        "query": ""
      },
      {
        "isuser": true,
        "text": "based on loser_id",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT distinct loser_id from matches where loser_rank_points > 3500"
      },
      {
        "isuser": true,
        "text": "Find the name and rank points of the winner who won the most times...",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT winner_name , winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Thank you, goodbye. ",
        "query": ""
      }
    ],
    "id": 114
  },
  {
    "db_name": "network_1",
    "turns": [
      {
        "isuser": true,
        "text": "What are the names of all of the high schoolers?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name FROM Highschooler"
      },
      {
        "isuser": true,
        "text": "What is the value of the greatest number of likes for each high schooler?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "what  did  you mean  the value?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Sorry, the amount of the greatest number of likes.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) from  Likes  group by student_id order by  count(*) desc limit  1"
      },
      {
        "isuser": true,
        "text": "What is the name of the high schooler who has the greatest number of likes?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC limit 1"
      }
    ],
    "id": 115
  },
  {
    "db_name": "student_transcripts_tracking",
    "turns": [
      {
        "isuser": true,
        "text": "Can you list the transcript date that appears least often?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT transcript_date FROM Transcripts group by transcript_date order by count(*) asc limit 1"
      },
      {
        "isuser": true,
        "text": "How many times does the transcript date 1975-05-06 12:04:47\tshow up in the table?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM Transcripts Where transcript_date = \"1975-05-06 12:04:47\""
      },
      {
        "isuser": true,
        "text": "Which transcript date shows up the most number of times?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT transcript_date FROM Transcripts GROUP BY transcript_date ORDER BY count(*) desc limit 1"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You're welcome. Bye!",
        "query": ""
      }
    ],
    "id": 116
  },
  {
    "db_name": "flight_2",
    "turns": [
      {
        "isuser": true,
        "text": "What is the destination of airline United Airlines?",
        "type": "unanswerable"
      },
      {
        "isuser": false,
        "text": "Sorry, I cannot understand. Can you rephrase your question?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "What is the destination airport of  United Airlines?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T2.DestAirport FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T1.Airline = \"United Airlines\"\n\n"
      },
      {
        "isuser": true,
        "text": "How many airlines have flights departing from APG?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT COUNT(T1.Airline) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.sourceAirport like \"%APG%\"\n\n"
      },
      {
        "isuser": true,
        "text": "What is the flight number of Delta Airlines",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Did you mean to ask for the flight numbers of all flights on Delta Airlines?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "yes flight numbers of all flights on Delta Airlines",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T2.FlightNo FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T1.Airline = \"Delta Airlines\"\n\n"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome. Good bye!",
        "query": ""
      }
    ],
    "id": 117
  },
  {
    "db_name": "car_1",
    "turns": [
      {
        "isuser": true,
        "text": "how many car models are produced in the USA?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker  =  T2.Id JOIN COUNTRIES AS T3 ON T2.Country  =  T3.CountryId WHERE T3.CountryName  =  'usa';"
      },
      {
        "isuser": true,
        "text": "which companies produce those models?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT distinct t1.maker FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country  =  T2.CountryId WHERE T2.CountryName  =  'usa';"
      },
      {
        "isuser": true,
        "text": "how many Models has Ford produced?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select count( *) from model_list as t1 join car_makers as t2 where t1.maker = t2.id and t2.maker = \"ford\""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Bye!",
        "query": ""
      }
    ],
    "id": 118
  },
  {
    "db_name": "flight_2",
    "turns": [
      {
        "isuser": true,
        "text": "what is the dest airport of airline 1",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT DestAirport FROM flights WHERE airline  =  \"1\""
      },
      {
        "isuser": true,
        "text": "what is the country of united airlines",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT COUNTRY FROM AIRLINES WHERE AIRLINE  =  \"United Airlines\""
      },
      {
        "isuser": true,
        "text": "what is the source airport of ASY",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "What is ASY?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "dest airport",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT SourceAirport FROM flights WHERE DestAirport  =  \"ASY\""
      },
      {
        "isuser": true,
        "text": "what is the country of us airways",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT country FROM Airlines WHERE Airline  =  \"US Airways\""
      },
      {
        "isuser": true,
        "text": "what is the airline of country usa",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Airline FROM Airlines WHERE country  =  \"USA\""
      },
      {
        "isuser": true,
        "text": "thanks",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "yOU ARE WELCOME",
        "query": ""
      }
    ],
    "id": 119
  },
  {
    "db_name": "network_1",
    "turns": [
      {
        "isuser": true,
        "text": "what is the average of grades?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT AVG(grade) FROM Highschooler"
      },
      {
        "isuser": true,
        "text": "what is the name of higshoolers that starting with 'A'?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name FROM Highschooler WHERE name LIKE 'A%'"
      },
      {
        "isuser": true,
        "text": "Top score",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Did you mean to ask for the highest grade?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "yes\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT MAX(grade) FROM Highschooler"
      },
      {
        "isuser": true,
        "text": "thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome. Good bye!",
        "query": ""
      }
    ],
    "id": 120
  },
  {
    "db_name": "concert_singer",
    "turns": [
      {
        "isuser": true,
        "text": "How many stadiums can accommodate more than 1000 people in average.?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM stadium WHERE average > 1000"
      },
      {
        "isuser": true,
        "text": "Which singer have the longest time performing at these stadiums?",
        "type": "unanswerable"
      },
      {
        "isuser": false,
        "text": "The database does not track the duration of performances or future concert schedules, making this question unanswerable",
        "query": ""
      },
      {
        "isuser": true,
        "text": "What is the name of the stadium with the lowest attendance in average.?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name FROM stadium ORDER BY average LIMIT 1"
      },
      {
        "isuser": true,
        "text": "What about the one with highest average attendance?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name FROM stadium ORDER BY average DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "bye!",
        "query": ""
      }
    ],
    "id": 121
  },
  {
    "db_name": "employee_hire_evaluation",
    "turns": [
      {
        "isuser": true,
        "text": "how old is George Chuter?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select age from employee where name = \"George Chuter\""
      },
      {
        "isuser": true,
        "text": "how much bonus was Employee with ID 1 awarded?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select sum(bonus) from evaluation where employee_id = 1"
      },
      {
        "isuser": true,
        "text": "What city is Lee Mears from?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select city from employee where name = \"Lee Mears\""
      },
      {
        "isuser": true,
        "text": "Thanks",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Bye!",
        "query": ""
      }
    ],
    "id": 122
  },
  {
    "db_name": "student_transcripts_tracking",
    "turns": [
      {
        "isuser": true,
        "text": "Find the program which most number of students are enrolled in. List both the id and the summary.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.degree_program_id ,  T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY count(*) DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "for id program 9, which degree summary is the most common",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Could you please clarify your question? Since one program has only one degree summary.",
        "query": ""
      },
      {
        "isuser": true,
        "text": "which program has the most students\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.degree_program_id  FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY count(*) DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "How many students are in program 9\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT COUNT(*) FROM Student_Enrolment WHERE degree_program_id = \"9\""
      },
      {
        "isuser": true,
        "text": "how many master are in program 9",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT COUNT(*) FROM Degree_Programs WHERE degree_summary_name = \"Master\" AND degree_program_id = \"9\""
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT COUNT(*) FROM Degree_Programs WHERE degree_summary_name = \"Master\" AND degree_program_id = \"9\""
      },
      {
        "isuser": true,
        "text": "which program has the least students",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.degree_program_id ,  T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY count(*) limit 1"
      },
      {
        "isuser": true,
        "text": "how many students does id 3 have",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT COUNT(*) FROM Student_Enrolment where degree_program_id = \"3\""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome.",
        "query": ""
      }
    ],
    "id": 123
  },
  {
    "db_name": "cre_Doc_Template_Mgt",
    "turns": [
      {
        "isuser": true,
        "text": "Hello!  How are you?  First, I'll start with a straightforward request...  Can you show me all document IDs and their corresponding document names and number of paragraphs?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.document_id ,  T2.document_name ,  count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id GROUP BY T1.document_id"
      },
      {
        "isuser": true,
        "text": "What is the favorite color of each user in the Users table?",
        "type": "unanswerable"
      },
      {
        "isuser": false,
        "text": "The database schema provided does not include a Users table or any information about users' favorite colors. Without this table or relevant data, it is impossible to determine or query the favorite color of each user. Thus, the question cannot be answered with the given schema and data.",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Okay...  I'll ask something different.  Can you show me a list of all of the paragraph text values?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Paragraph_Text FROM Paragraphs"
      },
      {
        "isuser": true,
        "text": "Thanks!  Can you filter this list to show the Paragraph_Texts which have something other than \"NULL\" as the Other Details?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Paragraph_Text FROM Paragraphs WHERE Other_Details != \"NULL\""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Do you have any more questions?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "I don't think so...  Thank you!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Goodbye!",
        "query": ""
      }
    ],
    "id": 124
  },
  {
    "db_name": "cre_Doc_Template_Mgt",
    "turns": [
      {
        "isuser": true,
        "text": "How many 'Welcome to NY'?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you mean how many paragraphs are associated with document 'Welcome to NY'?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "yes\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id WHERE T2.Document_Name  =  'Welcome to NY'"
      },
      {
        "isuser": true,
        "text": "What are their texts?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id WHERE T2.Document_Name  =  'Welcome to NY'"
      },
      {
        "isuser": true,
        "text": "What are their id numbers?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.paragraph_id FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id WHERE T2.Document_Name  =  'Welcome to NY'"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome.",
        "query": ""
      }
    ],
    "id": 125
  },
  {
    "db_name": "wta_1",
    "turns": [
      {
        "isuser": true,
        "text": "find the total ranking point for each player and their first name",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT sum(ranking_points) ,  T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.first_name"
      },
      {
        "isuser": true,
        "text": "which player got first rank and their name",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you want the first name or last name?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "first name",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT distinct T1.first_name, T2.ranking FROM players AS T1 JOIN rankings AS T2 ON T1.player_id  =  T2.player_id WHERE T2.ranking = 1"
      },
      {
        "isuser": true,
        "text": "ok,thanks",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome.",
        "query": ""
      }
    ],
    "id": 126
  },
  {
    "db_name": "museum_visit",
    "turns": [
      {
        "isuser": true,
        "text": "How many customers are there now?",
        "type": "unanswerable"
      },
      {
        "isuser": false,
        "text": "Sorry, I can not answer that question based on this table. ",
        "query": ""
      },
      {
        "isuser": true,
        "text": "How many visitors are ther?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) from visitor"
      },
      {
        "isuser": true,
        "text": "How many of them have membership levels higher than 4?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM visitor WHERE Level_of_membership  >  4"
      },
      {
        "isuser": true,
        "text": "Can you please list their names?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name FROM visitor WHERE Level_of_membership  >  4"
      },
      {
        "isuser": true,
        "text": "Can you rank them by their membership level from high to low?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name FROM visitor WHERE Level_of_membership  >  4 ORDER BY Level_of_membership DESC"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Thank you,  good bye. ",
        "query": ""
      }
    ],
    "id": 127
  },
  {
    "db_name": "wta_1",
    "turns": [
      {
        "isuser": true,
        "text": "Could you list the average ranking for each player with their first name?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT avg(ranking) ,  T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id"
      },
      {
        "isuser": true,
        "text": "Could you add in their last names please?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT avg(ranking) ,  T1.first_name, t1.last_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id"
      },
      {
        "isuser": true,
        "text": "What are the full names of all left-handed players (hand value \"L\")?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT  T1.first_name, t1.last_name FROM players AS T1 where t1.hand = \"L\";"
      },
      {
        "isuser": true,
        "text": "Could you just show their last names, please?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.last_name FROM players AS T1 where t1.hand = \"L\";"
      },
      {
        "isuser": true,
        "text": "Would you also add in their ranks?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you mean their average rankings?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes, please.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT avg(ranking) ,  T1.last_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id  =  T2.player_id where T1.hand = \"L\" GROUP BY T1.first_name;"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Bye!",
        "query": ""
      }
    ],
    "id": 128
  },
  {
    "db_name": "network_1",
    "turns": [
      {
        "isuser": true,
        "text": "What is the average grade of all students who have some friends, please?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT avg(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id)"
      },
      {
        "isuser": true,
        "text": "Are there any students that have no friends?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT * FROM Highschooler WHERE id not IN (SELECT student_id FROM Friend)"
      },
      {
        "isuser": true,
        "text": "What are their grades?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT grade FROM Highschooler WHERE id not IN (SELECT student_id FROM Friend)"
      },
      {
        "isuser": true,
        "text": "What are their names?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name FROM Highschooler WHERE id not IN (SELECT student_id FROM Friend)"
      },
      {
        "isuser": true,
        "text": "What are the names of the students with friends?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name FROM Highschooler WHERE id IN (SELECT student_id FROM Friend)"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Sure! Bye!",
        "query": ""
      }
    ],
    "id": 129
  },
  {
    "db_name": "concert_singer",
    "turns": [
      {
        "isuser": true,
        "text": "show the stadium names without any concern",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert)"
      },
      {
        "isuser": true,
        "text": "which is the most famous stadium?\n",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "By which metric do you mean famous?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "football stadium",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name FROM stadium ORDER BY Highest DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "yes\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name FROM stadium ORDER BY Highest DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "thanks",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome.",
        "query": ""
      }
    ],
    "id": 130
  },
  {
    "db_name": "singer",
    "turns": [
      {
        "isuser": true,
        "text": "What is the most common citizenship of singers, please?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "What about the least common?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) ASC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "What are the names of all the singers from Australia, please?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name FROM singer where Citizenship='Australia'"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Sure! Anything else?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "No, that's all! Thank you!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Bye!",
        "query": ""
      }
    ],
    "id": 131
  },
  {
    "db_name": "student_transcripts_tracking",
    "turns": [
      {
        "isuser": true,
        "text": "Which program had the least number of students enrolled?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY count(*) DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "what is the average  number of students enrolled in all programs?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select avg(ct) from (SELECT count(student_enrolment_id) as ct from Student_Enrolment group by degree_program_id)"
      },
      {
        "isuser": true,
        "text": "What is the degree ID for architecto?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT degree_program_id from Degree_Programs where degree_summary_description = 'architecto'"
      },
      {
        "isuser": true,
        "text": "What about camque?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT degree_program_id from Degree_Programs where degree_summary_description = 'camque'"
      },
      {
        "isuser": true,
        "text": "Thanks",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Goodbye!",
        "query": ""
      }
    ],
    "id": 132
  },
  {
    "db_name": "wta_1",
    "turns": [
      {
        "isuser": true,
        "text": "find the name of loser and winner who played in the match with the greatest number of minutes",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT winner_name ,  loser_name FROM matches ORDER BY minutes DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "what were the player's scores?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT score FROM matches ORDER BY minutes DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "which games did they participate in?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "What information about the game do you need?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Bye!",
        "query": ""
      }
    ],
    "id": 133
  },
  {
    "db_name": "network_1",
    "turns": [
      {
        "isuser": true,
        "text": "which grade has the \nmost high schoolers",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "what are the name of high schoolers in grade 9\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name FROM Highschooler WHERE grade = 9;"
      },
      {
        "isuser": true,
        "text": "what grade is tiffany\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT grade FROM Highschooler WHERE name = \"Tiffany\""
      },
      {
        "isuser": true,
        "text": "how many high schoolers in grade 9\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM Highschooler WHERE grade = 9;"
      },
      {
        "isuser": true,
        "text": "what grade is gabrel",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Did you mean the Gabriel with ID 1689?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "yes",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT grade FROM Highschooler WHERE name = \"Gabriel\" AND ID = 1689"
      },
      {
        "isuser": true,
        "text": "What ID is Tiffany?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT ID FROM Highschooler WHERE name = \"Tiffany\""
      },
      {
        "isuser": true,
        "text": "Which high schooler has ID of 1510?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name FROM Highschooler WHERE ID = 1510"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome!",
        "query": ""
      }
    ],
    "id": 134
  },
  {
    "db_name": "dog_kennels",
    "turns": [
      {
        "isuser": true,
        "text": "Show  me the first and last name that id number 1",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you mean the owner id is 1 or dog id is 1?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "owner id please.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.first_name , T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id WHERE T1.owner_id  = 1"
      },
      {
        "isuser": true,
        "text": " name the dog which  aged 6?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name  FROM Dogs  WHERE age = 6"
      },
      {
        "isuser": true,
        "text": "name the dog having age more than 5",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT  name  FROM  Dogs WHERE age >5"
      },
      {
        "isuser": true,
        "text": "which dogs are owned by someone who lives in virginia? List the name.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T2.name  FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id WHERE T1.state  =\"Virginia\""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "goodbye",
        "query": ""
      }
    ],
    "id": 135
  },
  {
    "db_name": "student_transcripts_tracking",
    "turns": [
      {
        "isuser": true,
        "text": "Which cause has the least enrollment?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you want the course id or course name?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "the name",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT  T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name ORDER BY count(*) LIMIT 1"
      },
      {
        "isuser": true,
        "text": "What is the course ID of Math?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT course_id from courses where course_name = \"math\""
      },
      {
        "isuser": true,
        "text": "How many students enrolled a course with the id of 14",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT  count(*) FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name having T1.course_id = 14"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome.",
        "query": ""
      }
    ],
    "id": 136
  },
  {
    "db_name": "world_1",
    "turns": [
      {
        "isuser": true,
        "text": "how many pepole in these country ?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do  you mean  the  total population in the country table ?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "how many city code in related table",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do  you  want  to  know  the distinct country code?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "how many language in the countrylanguage table",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(distinct  Language) from countrylanguage"
      },
      {
        "isuser": true,
        "text": "what the highest percentage in the countrylanguage table",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT max(Percentage) from countrylanguage"
      },
      {
        "isuser": true,
        "text": "thanks",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Welcome and goodbye",
        "query": ""
      }
    ],
    "id": 137
  },
  {
    "db_name": "network_1",
    "turns": [
      {
        "isuser": true,
        "text": "Show the names of all of the high schoolers.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select name from highschooler"
      },
      {
        "isuser": true,
        "text": "Friends with Kyle?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you want the name of the high schoolers that are friends with Kyle?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes, I do.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = \"Kyle\""
      },
      {
        "isuser": true,
        "text": "What is Kyle's ID?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT id FROM highschooler where name = \"Kyle\" "
      },
      {
        "isuser": true,
        "text": "Who has the ID 1709?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT name FROM highschooler where id = 1709"
      },
      {
        "isuser": true,
        "text": "Who else is Jordan friends with?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = \"Jordan\" "
      },
      {
        "isuser": true,
        "text": "Who is friends with Gabriel?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = \"Gabriel\" "
      },
      {
        "isuser": true,
        "text": "Okay, thank you.",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Thank you. Bye",
        "query": ""
      }
    ],
    "id": 138
  },
  {
    "db_name": "dog_kennels",
    "turns": [
      {
        "isuser": true,
        "text": "Hi! How many owners temporarily do not have dogs?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )"
      },
      {
        "isuser": true,
        "text": "What are their full names?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT first_name, last_name FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )"
      },
      {
        "isuser": true,
        "text": "Did they abandon their dogs (abandoned yes or no)?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select abandoned_yn from dogs where owner_id in (SELECT owner_id FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs ))"
      },
      {
        "isuser": true,
        "text": "Good! Doggies are too cute to be abandoned. Thank you!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Agree! thanks. bye.",
        "query": ""
      }
    ],
    "id": 139
  },
  {
    "db_name": "singer",
    "turns": [
      {
        "isuser": true,
        "text": "which singers were born before 1945?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT * FROM singer WHERE Birth_Year  <  1945"
      },
      {
        "isuser": true,
        "text": "how about after 1955?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT * FROM singer WHERE Birth_Year  >  1955"
      },
      {
        "isuser": true,
        "text": "which singers born before 1945 have the same citizenship?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT * FROM singer WHERE Birth_Year < 1945"
      },
      {
        "isuser": true,
        "text": "which singers born after 1955 have the same citizenship?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT * FROM singer WHERE Birth_Year > 1955"
      },
      {
        "isuser": true,
        "text": "1945 & 1955",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Did you mean the singers born before 1945 OR after 1955 have the same citizenship?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "what is the citizenship of the singers born before 1945?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Citizenship FROM singer WHERE Birth_Year  <  1945"
      },
      {
        "isuser": true,
        "text": "and after 1955?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT Citizenship FROM singer WHERE Birth_Year  <  1945 or Birth_Year  >  1955"
      },
      {
        "isuser": true,
        "text": "Which singers with a citizenship of United States were born before 1945?\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT * FROM singer WHERE Birth_Year  <  1945 and Citizenship = 'United States'"
      },
      {
        "isuser": true,
        "text": "and after 1955\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT * FROM singer WHERE Birth_Year  <  1945 and Citizenship = 'United States' UNION SELECT * FROM singer WHERE Birth_Year  >  1955 and Citizenship = 'United States'"
      },
      {
        "isuser": true,
        "text": "Which singers with a citizenship of France were born before 1945?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT * FROM singer WHERE Birth_Year  <  1945 and Citizenship = 'France'"
      },
      {
        "isuser": true,
        "text": "and after 1955?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT * FROM singer WHERE Birth_Year  <  1945 and Citizenship = 'France' UNION SELECT * FROM singer WHERE Birth_Year  >  1955 and Citizenship = 'France'"
      },
      {
        "isuser": true,
        "text": "Which singers with a citizenship of Chile were born before 1945 or after 1955?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT * FROM singer WHERE Birth_Year  <  1945 and Citizenship = 'Chile' UNION SELECT * FROM singer WHERE Birth_Year  >  1955 and Citizenship = 'Chile'"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "you are welcome! Goodbye.",
        "query": ""
      }
    ],
    "id": 140
  },
  {
    "db_name": "dog_kennels",
    "turns": [
      {
        "isuser": true,
        "text": "can you tell me the email id of this owner ?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you mean all owner id and all email address?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "owner id 1",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT email_address from owners where owner_id = 1"
      },
      {
        "isuser": true,
        "text": "what is the weight of dog id 1 ?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT weight from dogs where dog_id = 1"
      },
      {
        "isuser": true,
        "text": "Can you tell me age of dog id 1 ?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT age from dogs where dog_id = 1"
      },
      {
        "isuser": true,
        "text": "Which owner has paid for the most treatments on his or her dogs ? List the owner id and last name.",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.owner_id ,  T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id JOIN Treatments AS T3 ON T2.dog_id  =  T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome.",
        "query": ""
      }
    ],
    "id": 141
  },
  {
    "db_name": "wta_1",
    "turns": [
      {
        "isuser": true,
        "text": "How many matches played in 2013?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM matches WHERE YEAR  =  2013 "
      },
      {
        "isuser": true,
        "text": "How many matches played in 2016?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM matches WHERE YEAR  =  2016"
      },
      {
        "isuser": true,
        "text": "What is the id of petra kvitota?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do  you mean \tloser  id",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT distinct loser_id  FROM  matches where loser_name  =\"Petra Kvitova\""
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "Welcome and goodbye",
        "query": ""
      }
    ],
    "id": 142
  },
  {
    "db_name": "pets_1",
    "turns": [
      {
        "isuser": true,
        "text": "hi, what number of students have a dog as a pet?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'dog'"
      },
      {
        "isuser": true,
        "text": "and what about the number that have a cat as a pet?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat'"
      },
      {
        "isuser": true,
        "text": "Great. Can you tell me the first names of these 3 students?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat' OR T3.pettype  =  'dog'"
      },
      {
        "isuser": true,
        "text": "excellent. Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome.",
        "query": ""
      }
    ],
    "id": 143
  },
  {
    "db_name": "dog_kennels",
    "turns": [
      {
        "isuser": true,
        "text": "Do any states have owners living there?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT state FROM Owners"
      },
      {
        "isuser": true,
        "text": "Which states have professionals living there?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT state FROM Professionals"
      },
      {
        "isuser": true,
        "text": "May I have a list of states that has both owners and professionals living there?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "You are welcome.",
        "query": ""
      }
    ],
    "id": 144
  },
  {
    "db_name": "car_1",
    "turns": [
      {
        "isuser": true,
        "text": "Can you list names are on each continent please?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you want the name of the continent and the count of car makers on each of them?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes please, in a table if possible?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.Continent ,  count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId  =  T2.continent JOIN car_makers AS T3 ON T2.CountryId  =  T3.Country GROUP BY T1.Continent;"
      },
      {
        "isuser": true,
        "text": "List the name and asia country of every car maker?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you want the full name and country name of the car makers from asia?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T3.fullname,  T2.countryName FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId  =  T2.continent JOIN car_makers AS T3 ON T2.CountryId  =  T3.Country where T1.continent = \"asia\""
      },
      {
        "isuser": true,
        "text": "What about from Europe?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T3.fullname,  T2.countryName FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId  =  T2.continent JOIN car_makers AS T3 ON T2.CountryId  =  T3.Country where T1.continent = \"europe\""
      },
      {
        "isuser": true,
        "text": "How about America?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T3.fullname,  T2.countryName FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId  =  T2.continent JOIN car_makers AS T3 ON T2.CountryId  =  T3.Country where T1.continent = \"america\""
      },
      {
        "isuser": true,
        "text": "How many car makers are there total?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "select count(*) from car_makers"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "bye.",
        "query": ""
      }
    ],
    "id": 145
  },
  {
    "db_name": "dog_kennels",
    "turns": [
      {
        "isuser": true,
        "text": "Hi there! Can you tell me how many different professional IDs are on this list?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(distinct professional_id) from professionals"
      },
      {
        "isuser": true,
        "text": "Great!  Could you update this list to include both the first names and treatment type codes for each of these professionals IDs?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you want the ids, first name for all professionals, along with the type codes of the treatment they have done?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "Yes please!",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.professional_id, T1.first_name ,  T3.treatment_type_code FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code  =  T3.treatment_type_code"
      },
      {
        "isuser": true,
        "text": "Excellent!  Can you filter this list to show me just the entries for the 5 most recent treatments?",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT T1.professional_id, T1.first_name, T3.treatment_type_code FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code  =  T3.treatment_type_code order by T2.date_of_treatment desc limit 5"
      },
      {
        "isuser": true,
        "text": "Thanks!",
        "type": "improper"
      },
      {
        "isuser": false,
        "text": "bye",
        "query": ""
      }
    ],
    "id": 146
  },
  {
    "db_name": "network_1",
    "turns": [
      {
        "isuser": true,
        "text": "how many Likes there",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM Likes"
      },
      {
        "isuser": true,
        "text": "how many friends there",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(*) FROM friend"
      },
      {
        "isuser": true,
        "text": "1689 id",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "Do you mean the id of students with friend id 1689?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "yes sir\n",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT student_id FROM friend where friend_id = 1689"
      },
      {
        "isuser": true,
        "text": "Who likes the most outgoing student?",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "This question is ambiguous because it does not clearly define what makes a student 'outgoing'. The database schema does not include any attributes or metrics to measure a student's outgoingness, such as participation in activities, number of friends, or social behavior.",
        "query": ""
      }
    ],
    "id": 147
  },
  {
    "db_name": "world_1",
    "turns": [
      {
        "isuser": true,
        "text": "what are the official unique official language spoken in the country\n",
        "type": "ambiguous"
      },
      {
        "isuser": false,
        "text": "In which country?",
        "query": ""
      },
      {
        "isuser": true,
        "text": "what are the unique official languages spoken that are found before 1930",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE  IndepYear  <  1930 AND T2.IsOfficial  =  \"T\""
      },
      {
        "isuser": true,
        "text": "what is the total number of unique official languages spoken in the countries that are founded before 1930",
        "type": "answerable"
      },
      {
        "isuser": false,
        "text": "",
        "query": "SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE  IndepYear  <  1930 AND T2.IsOfficial  =  \"T\""
      }
    ],
    "id": 148
  }
]