[
  {
    "database": "perpetrator",
    "table": "perpetrator",
    "questions": [
      "How many perpetrators are there?",
      "List the date of perpetrators in descending order of the number of people killed.",
      "List the number of people injured by perpetrators in ascending order.",
      "What is the average number of people injured by all perpetrators?",
      "What is the location of the perpetrator with the largest kills.",
      "What are the countries of perpetrators? Show each country and the corresponding number of perpetrators there.",
      "What is the country that has the most perpetrators?",
      "What are the countries that have at least two perpetrators?",
      "Show the countries that have both perpetrators with injures more than 50 and perpetrators with injures smaller than 20.",
      "How many distinct locations of perpetrators are there?"
    ],
    "col_names": [
      "Perpetrator_ID",
      "People_ID",
      "Date",
      "Year",
      "Location",
      "Country",
      "Killed",
      "Injured"
    ],
    "standard_answer": [
      "SELECT count(*) FROM perpetrator",
      "SELECT Date FROM perpetrator ORDER BY Killed DESC",
      "SELECT Injured FROM perpetrator ORDER BY Injured ASC",
      "SELECT avg(Injured) FROM perpetrator",
      "SELECT LOCATION FROM perpetrator ORDER BY Killed DESC LIMIT 1",
      "SELECT Country ,  COUNT(*) FROM perpetrator GROUP BY Country",
      "SELECT Country ,  COUNT(*) FROM perpetrator GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Country ,  COUNT(*) FROM perpetrator GROUP BY Country HAVING COUNT(*)  >=  2",
      "SELECT Country FROM perpetrator WHERE Injured  >  50 INTERSECT SELECT Country FROM perpetrator WHERE Injured  <  20",
      "SELECT count(DISTINCT LOCATION) FROM perpetrator"
    ]
  },
  {
    "database": "perpetrator",
    "table": "people",
    "questions": [
      "What are the names of perpetrators?",
      "What are the names of perpetrators whose country is not \"China\"?",
      "What is the name of the perpetrator with the biggest weight.",
      "What is the total kills of the perpetrators with height more than 1.84.",
      "What are the names of perpetrators in country \"China\" or \"Japan\"?",
      "What are the heights of perpetrators in descending order of the number of people they injured?",
      "List the names of perpetrators in descending order of the year.",
      "List the names of people that are not perpetrators.",
      "Show the date of the tallest perpetrator."
    ],
    "col_names": [
      "People_ID",
      "Name",
      "Height",
      "Weight",
      "Home Town"
    ],
    "standard_answer": [
      "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID",
      "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Country != \"China\"",
      "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Weight DESC LIMIT 1",
      "SELECT sum(T2.Killed) FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Height  >  1.84",
      "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Country  =  \"China\" OR T2.Country  =  \"Japan\"",
      "SELECT T1.Height FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Injured DESC",
      "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Year DESC",
      "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM perpetrator)",
      "SELECT T2.Date FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Height DESC LIMIT 1"
    ]
  },
  {
    "database": "college_2",
    "table": "classroom",
    "questions": [
      "Find the buildings which have rooms with capacity more than 50.",
      "What are the distinct buildings with capacities of greater than 50?",
      "Count the number of rooms that are not in the Lamberton building.",
      "How many classrooms are not in Lamberton?",
      "Find the room number of the rooms which can sit 50 to 100 students and their buildings.",
      "What are the room numbers and corresponding buildings for classrooms which can seat between 50 to 100 students?",
      "How many rooms does the Lamberton building have?",
      "Count the number of classrooms in Lamberton.",
      "How many rooms whose capacity is less than 50 does the Lamberton building have?",
      "Count the number of rooms in Lamberton with capacity lower than 50.",
      "Find the number of rooms with more than 50 capacity for each building.",
      "How many rooms in each building have a capacity of over 50?",
      "Find the maximum and average capacity among rooms in each building.",
      "What are the greatest and average capacity for rooms in each building?",
      "What is the title and credits of the course that is taught in the largest classroom (with the highest capacity)?",
      "Give the title and credits for the course that is taught in the classroom with the greatest capacity."
    ],
    "col_names": [
      "building",
      "room_number",
      "capacity"
    ],
    "standard_answer": [
      "SELECT DISTINCT building FROM classroom WHERE capacity  >  50",
      "SELECT DISTINCT building FROM classroom WHERE capacity  >  50",
      "SELECT count(*) FROM classroom WHERE building != 'Lamberton'",
      "SELECT count(*) FROM classroom WHERE building != 'Lamberton'",
      "SELECT building ,  room_number FROM classroom WHERE capacity BETWEEN 50 AND 100",
      "SELECT building ,  room_number FROM classroom WHERE capacity BETWEEN 50 AND 100",
      "SELECT count(*) FROM classroom WHERE building  =  'Lamberton'",
      "SELECT count(*) FROM classroom WHERE building  =  'Lamberton'",
      "SELECT count(*) FROM classroom WHERE building  =  'Lamberton' AND capacity  <  50",
      "SELECT count(*) FROM classroom WHERE building  =  'Lamberton' AND capacity  <  50",
      "SELECT count(*) ,  building FROM classroom WHERE capacity  >  50 GROUP BY building",
      "SELECT count(*) ,  building FROM classroom WHERE capacity  >  50 GROUP BY building",
      "SELECT max(capacity) ,  avg(capacity) ,  building FROM classroom GROUP BY building",
      "SELECT max(capacity) ,  avg(capacity) ,  building FROM classroom GROUP BY building",
      "SELECT T3.title ,  T3.credits FROM classroom AS T1 JOIN SECTION AS T2 ON T1.building  =  T2.building AND T1.room_number  =  T2.room_number JOIN course AS T3 ON T2.course_id  =  T3.course_id WHERE T1.capacity  =  (SELECT max(capacity) FROM classroom)",
      "SELECT T3.title ,  T3.credits FROM classroom AS T1 JOIN SECTION AS T2 ON T1.building  =  T2.building AND T1.room_number  =  T2.room_number JOIN course AS T3 ON T2.course_id  =  T3.course_id WHERE T1.capacity  =  (SELECT max(capacity) FROM classroom)"
    ]
  },
  {
    "database": "college_2",
    "table": "department",
    "questions": [
      "What is the name and building of the departments whose budget is more than the average budget?",
      "Give the name and building of the departments with greater than average budget.",
      "Find the name and building of the department with the highest budget.",
      "What is the department name and corresponding building for the department with the greatest budget?",
      "Find the total budgets of the Marketing or Finance department.",
      "What is the sum of budgets of the Marketing and Finance departments?",
      "Find the name and budget of departments whose budgets are more than the average budget.",
      "What are the names and budgets of departments with budgets greater than the average?",
      "Which department has the lowest budget?",
      "Give the name of the department with the lowest budget.",
      "List the names and buildings of all departments sorted by the budget from large to small.",
      "What are the names and buildings of the deparments, sorted by budget descending?",
      "Find the total number of students and total number of instructors for each department.",
      "How many students and instructors are in each department?"
    ],
    "col_names": [
      "dept_name",
      "building",
      "budget"
    ],
    "standard_answer": [
      "SELECT dept_name ,  building FROM department WHERE budget  >  (SELECT avg(budget) FROM department)",
      "SELECT dept_name ,  building FROM department WHERE budget  >  (SELECT avg(budget) FROM department)",
      "SELECT dept_name ,  building FROM department ORDER BY budget DESC LIMIT 1",
      "SELECT dept_name ,  building FROM department ORDER BY budget DESC LIMIT 1",
      "SELECT sum(budget) FROM department WHERE dept_name  =  'Marketing' OR dept_name  =  'Finance'",
      "SELECT sum(budget) FROM department WHERE dept_name  =  'Marketing' OR dept_name  =  'Finance'",
      "SELECT dept_name ,  budget FROM department WHERE budget  >  (SELECT avg(budget) FROM department)",
      "SELECT dept_name ,  budget FROM department WHERE budget  >  (SELECT avg(budget) FROM department)",
      "SELECT dept_name FROM department ORDER BY budget LIMIT 1",
      "SELECT dept_name FROM department ORDER BY budget LIMIT 1",
      "SELECT dept_name ,  building FROM department ORDER BY budget DESC",
      "SELECT dept_name ,  building FROM department ORDER BY budget DESC",
      "SELECT count(DISTINCT T2.id) ,  count(DISTINCT T3.id) ,  T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name  =  T2.dept_name JOIN instructor AS T3 ON T1.dept_name  =  T3.dept_name GROUP BY T3.dept_name",
      "SELECT count(DISTINCT T2.id) ,  count(DISTINCT T3.id) ,  T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name  =  T2.dept_name JOIN instructor AS T3 ON T1.dept_name  =  T3.dept_name GROUP BY T3.dept_name"
    ]
  },
  {
    "database": "college_2",
    "table": "course",
    "questions": [
      "How many departments offer courses?",
      "Count the number of departments which offer courses.",
      "How many different courses offered by Physics department?",
      "Count the number of courses in the Physics department.",
      "Find the title of courses that have two prerequisites?",
      "What are the titles for courses with two prerequisites?",
      "Find the title, credit, and department name of courses that have more than one prerequisites?",
      "What is the title, credit value, and department name for courses with more than one prerequisite?",
      "How many courses that do not have prerequisite?",
      "Count the number of courses without prerequisites.",
      "Find the name of the courses that do not have any prerequisite?",
      "What are the titles of courses without prerequisites?",
      "Find the title of course that is provided by both Statistics and Psychology departments.",
      "What is the title of a course that is listed in both the Statistics and Psychology departments?",
      "Find the title of course that is provided by Statistics but not Psychology departments.",
      "What are the titles of courses that are in the Statistics department but not the Psychology department?",
      "Find the names of the top 3 departments that provide the largest amount of courses?",
      "What are the names of the 3 departments with the most courses?",
      "Find the name of the department that offers the highest total credits?",
      "What is the name of the department with the most credits?",
      "List the names of all courses ordered by their titles and credits.",
      "Given the titles of all courses, in order of titles and credits.",
      "list in alphabetic order all course names and their instructors' names in year 2008.",
      "Show all titles and their instructors' names for courses in 2008, in alphabetical order by title.",
      "Find the title of the course that is offered by more than one department.",
      "What are the titles of courses that are offered in more than one department?",
      "Find the total credits of courses provided by different department.",
      "How many total credits are offered by each department?",
      "Find the id of the courses that do not have any prerequisite?",
      "What are the ids of courses without prerequisites?",
      "Find the name of the courses that do not have any prerequisite?",
      "What are the names of courses without prerequisites?",
      "What is the title of the prerequisite class of International Finance course?",
      "Give the title of the prerequisite to the course International Finance.",
      "Find the title of course whose prerequisite is course Differential Geometry.",
      "What is the title of the course with Differential Geometry as a prerequisite?",
      "What is the title of the course that was offered at building Chandler during the fall semester in the year of 2010?",
      "Give the title of the course offered in Chandler during the Fall of 2010.",
      "What is the course title of the prerequisite of course Mobile Computing?",
      "What is the title of the course that is a prerequisite for Mobile Computing?",
      "Find the name of students who took some course offered by Statistics department.",
      "What are the names of students who have taken Statistics courses?",
      "Find the building, room number, semester and year of all courses offered by Psychology department sorted by course titles.",
      "What are the building, room number, semester and year of courses in the Psychology department, sorted using course title?"
    ],
    "col_names": [
      "course_id",
      "title",
      "dept_name",
      "credits"
    ],
    "standard_answer": [
      "SELECT count(DISTINCT dept_name) FROM course",
      "SELECT count(DISTINCT dept_name) FROM course",
      "SELECT count(DISTINCT course_id) FROM course WHERE dept_name  =  'Physics'",
      "SELECT count(DISTINCT course_id) FROM course WHERE dept_name  =  'Physics'",
      "SELECT T1.title FROM course AS T1 JOIN prereq AS T2 ON T1.course_id  =  T2.course_id GROUP BY T2.course_id HAVING count(*)  =  2",
      "SELECT T1.title FROM course AS T1 JOIN prereq AS T2 ON T1.course_id  =  T2.course_id GROUP BY T2.course_id HAVING count(*)  =  2",
      "SELECT T1.title ,  T1.credits , T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id  =  T2.course_id GROUP BY T2.course_id HAVING count(*)  >  1",
      "SELECT T1.title ,  T1.credits , T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id  =  T2.course_id GROUP BY T2.course_id HAVING count(*)  >  1",
      "SELECT count(*) FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)",
      "SELECT count(*) FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)",
      "SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)",
      "SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)",
      "SELECT title FROM course WHERE dept_name  =  'Statistics' INTERSECT SELECT title FROM course WHERE dept_name  =  'Psychology'",
      "SELECT title FROM course WHERE dept_name  =  'Statistics' INTERSECT SELECT title FROM course WHERE dept_name  =  'Psychology'",
      "SELECT title FROM course WHERE dept_name  =  'Statistics' EXCEPT SELECT title FROM course WHERE dept_name  =  'Psychology'",
      "SELECT title FROM course WHERE dept_name  =  'Statistics' EXCEPT SELECT title FROM course WHERE dept_name  =  'Psychology'",
      "SELECT dept_name FROM course GROUP BY dept_name ORDER BY count(*) DESC LIMIT 3",
      "SELECT dept_name FROM course GROUP BY dept_name ORDER BY count(*) DESC LIMIT 3",
      "SELECT dept_name FROM course GROUP BY dept_name ORDER BY sum(credits) DESC LIMIT 1",
      "SELECT dept_name FROM course GROUP BY dept_name ORDER BY sum(credits) DESC LIMIT 1",
      "SELECT title FROM course ORDER BY title ,  credits",
      "SELECT title FROM course ORDER BY title ,  credits",
      "SELECT T1.title ,  T3.name FROM course AS T1 JOIN teaches AS T2 ON T1.course_id  =  T2.course_id JOIN instructor AS T3 ON T2.id  =  T3.id WHERE YEAR  =  2008 ORDER BY T1.title",
      "SELECT T1.title ,  T3.name FROM course AS T1 JOIN teaches AS T2 ON T1.course_id  =  T2.course_id JOIN instructor AS T3 ON T2.id  =  T3.id WHERE YEAR  =  2008 ORDER BY T1.title",
      "SELECT title FROM course GROUP BY title HAVING count(*)  >  1",
      "SELECT title FROM course GROUP BY title HAVING count(*)  >  1",
      "SELECT sum(credits) ,  dept_name FROM course GROUP BY dept_name",
      "SELECT sum(credits) ,  dept_name FROM course GROUP BY dept_name",
      "SELECT course_id FROM course EXCEPT SELECT course_id FROM prereq",
      "SELECT course_id FROM course EXCEPT SELECT course_id FROM prereq",
      "SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)",
      "SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)",
      "SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id  =  T2.course_id WHERE T2.title  =  'International Finance')",
      "SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id  =  T2.course_id WHERE T2.title  =  'International Finance')",
      "SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id  =  T2.course_id WHERE T2.title  =  'Differential Geometry')",
      "SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id  =  T2.course_id WHERE T2.title  =  'Differential Geometry')",
      "SELECT T1.title FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id  =  T2.course_id WHERE building  =  'Chandler' AND semester  =  'Fall' AND YEAR  =  2010",
      "SELECT T1.title FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id  =  T2.course_id WHERE building  =  'Chandler' AND semester  =  'Fall' AND YEAR  =  2010",
      "SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id  =  T2.course_id WHERE T2.title  =  'Mobile Computing')",
      "SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id  =  T2.course_id WHERE T2.title  =  'Mobile Computing')",
      "SELECT T3.name FROM course AS T1 JOIN takes AS T2 ON T1.course_id  =  T2.course_id JOIN student AS T3 ON T2.id  =  T3.id WHERE T1.dept_name  =  'Statistics'",
      "SELECT T3.name FROM course AS T1 JOIN takes AS T2 ON T1.course_id  =  T2.course_id JOIN student AS T3 ON T2.id  =  T3.id WHERE T1.dept_name  =  'Statistics'",
      "SELECT T2.building ,  T2.room_number ,  T2.semester ,  T2.year FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id  =  T2.course_id WHERE T1.dept_name  =  'Psychology' ORDER BY T1.title",
      "SELECT T2.building ,  T2.room_number ,  T2.semester ,  T2.year FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id  =  T2.course_id WHERE T1.dept_name  =  'Psychology' ORDER BY T1.title"
    ]
  },
  {
    "database": "college_2",
    "table": "instructor",
    "questions": [
      "Find the department name of the instructor whose name contains 'Soisalon'.",
      "What is the name of the department with an instructure who has a name like 'Soisalon'?",
      "what is the name of the instructor who is in Statistics department and earns the lowest salary?",
      "Give the name of the lowest earning instructor in the Statistics department.",
      "Who is the instructor with the highest salary?",
      "Give the name of the highest paid instructor.",
      "List the information of all instructors ordered by their salary in ascending order.",
      "Give all information regarding instructors, in order of salary from least to greatest.",
      "Find the name of instructors who are advising more than one student.",
      "What are the names of instructors who advise more than one student?",
      "Find the minimum salary for the departments whose average salary is above the average payment of all instructors.",
      "What is the lowest salary in departments with average salary greater than the overall average.",
      "Find the name of the instructors who taught C Programming course before.",
      "What are the names of instructors who have taught C Programming courses?",
      "Find the name of instructors who didn't teach any courses?",
      "What are the names of instructors who didn't teach?",
      "Find the id of instructors who didn't teach any courses?",
      "What are the ids of instructors who didnt' teach?",
      "Find the names of instructors who didn't each any courses in any Spring semester.",
      "What are the names of instructors who didn't teach courses in the Spring?",
      "Find the name of the department which has the highest average salary of professors.",
      "Which department has the highest average instructor salary?",
      "Find the number and averaged salary of all instructors who are in the department with the highest budget.",
      "How many instructors are in the department with the highest budget, and what is their average salary?",
      "Find the name and salary of instructors whose salary is below the average salary of the instructors in the Physics department.",
      "What are the names and salaries for instructors who earn less than the average salary of instructors in the Physics department?",
      "Find the names of all instructors in computer science department",
      "What are the names of all instructors in the Comp. Sci. department?",
      "Find the names of all instructors in Comp. Sci. department with salary > 80000.",
      "What are the names of the instructors in the Comp. Sci. department who earn more than 80000?",
      "Find the names of all instructors who have taught some course and the course_id.",
      "What are the names of all instructors who have taught a course, as well as the corresponding course id?",
      "Find the names of all instructors in the Art department who have taught some course and the course_id.",
      "What are the names of Art instructors who have taught a course, and the corresponding course id?",
      "Find the names of all instructors whose name includes the substring \u201cdar\u201d.",
      "What are the names of all instructors with names that include \"dar\"?",
      "Find the salaries of all distinct instructors that are less than the largest salary.",
      "What are the distinct salaries of all instructors who earned less than the maximum salary?",
      "Find the names and average salaries of all departments whose average salary is greater than 42000.",
      "What are the names and average salaries for departments with average salary higher than 42000?",
      "Find names of instructors with salary greater than that of some (at least one) instructor in the Biology department.",
      "What are the names of instructors who earn more than at least one instructor from the Biology department?",
      "Find the names of all instructors whose salary is greater than the salary of all instructors in the Biology department.",
      "What are the names of all instructors with a higher salary than any of the instructors in the Biology department?"
    ],
    "col_names": [
      "ID",
      "name",
      "dept_name",
      "salary"
    ],
    "standard_answer": [
      "SELECT dept_name FROM instructor WHERE name LIKE '%Soisalon%'",
      "SELECT dept_name FROM instructor WHERE name LIKE '%Soisalon%'",
      "SELECT name FROM instructor WHERE dept_name  =  'Statistics' ORDER BY salary LIMIT 1",
      "SELECT name FROM instructor WHERE dept_name  =  'Statistics' ORDER BY salary LIMIT 1",
      "SELECT name FROM instructor ORDER BY salary DESC LIMIT 1",
      "SELECT name FROM instructor ORDER BY salary DESC LIMIT 1",
      "SELECT * FROM instructor ORDER BY salary",
      "SELECT * FROM instructor ORDER BY salary",
      "SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id  =  T2.i_id GROUP BY T2.i_id HAVING count(*)  >  1",
      "SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id  =  T2.i_id GROUP BY T2.i_id HAVING count(*)  >  1",
      "SELECT min(salary) ,  dept_name FROM instructor GROUP BY dept_name HAVING avg(salary)  >  (SELECT avg(salary) FROM instructor)",
      "SELECT min(salary) ,  dept_name FROM instructor GROUP BY dept_name HAVING avg(salary)  >  (SELECT avg(salary) FROM instructor)",
      "SELECT T1.name FROM instructor AS T1 JOIN teaches AS T2 ON T1.id  =  T2.id JOIN course AS T3 ON T2.course_id  =  T3.course_id WHERE T3.title  =  'C Programming'",
      "SELECT T1.name FROM instructor AS T1 JOIN teaches AS T2 ON T1.id  =  T2.id JOIN course AS T3 ON T2.course_id  =  T3.course_id WHERE T3.title  =  'C Programming'",
      "SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches)",
      "SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches)",
      "SELECT id FROM instructor EXCEPT SELECT id FROM teaches",
      "SELECT id FROM instructor EXCEPT SELECT id FROM teaches",
      "SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches WHERE semester  =  'Spring')",
      "SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches WHERE semester  =  'Spring')",
      "SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY avg(salary) DESC LIMIT 1",
      "SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY avg(salary) DESC LIMIT 1",
      "SELECT avg(T1.salary) ,  count(*) FROM instructor AS T1 JOIN department AS T2 ON T1.dept_name  =  T2.dept_name ORDER BY T2.budget DESC LIMIT 1",
      "SELECT avg(T1.salary) ,  count(*) FROM instructor AS T1 JOIN department AS T2 ON T1.dept_name  =  T2.dept_name ORDER BY T2.budget DESC LIMIT 1",
      "SELECT name ,  salary FROM instructor WHERE salary  <  (SELECT avg(salary) FROM instructor WHERE dept_name  =  'Physics')",
      "SELECT name ,  salary FROM instructor WHERE salary  <  (SELECT avg(salary) FROM instructor WHERE dept_name  =  'Physics')",
      "SELECT name FROM instructor WHERE dept_name  =  'Comp. Sci.'",
      "SELECT name FROM instructor WHERE dept_name  =  'Comp. Sci.'",
      "SELECT name FROM instructor WHERE dept_name  =  'Comp. Sci.'  AND salary  >  80000",
      "SELECT name FROM instructor WHERE dept_name  =  'Comp. Sci.'  AND salary  >  80000",
      "SELECT name ,  course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID  =  T2.ID",
      "SELECT name ,  course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID  =  T2.ID",
      "SELECT name ,  course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID  =  T2.ID WHERE T1.dept_name  =  'Art'",
      "SELECT name ,  course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID  =  T2.ID WHERE T1.dept_name  =  'Art'",
      "SELECT name FROM instructor WHERE name LIKE '%dar%'",
      "SELECT name FROM instructor WHERE name LIKE '%dar%'",
      "SELECT DISTINCT salary FROM instructor WHERE salary  <  (SELECT max(salary) FROM instructor)",
      "SELECT DISTINCT salary FROM instructor WHERE salary  <  (SELECT max(salary) FROM instructor)",
      "SELECT dept_name ,  AVG (salary) FROM instructor GROUP BY dept_name HAVING AVG (salary)  >  42000",
      "SELECT dept_name ,  AVG (salary) FROM instructor GROUP BY dept_name HAVING AVG (salary)  >  42000",
      "SELECT name FROM instructor WHERE salary  >  (SELECT min(salary) FROM instructor WHERE dept_name  =  'Biology')",
      "SELECT name FROM instructor WHERE salary  >  (SELECT min(salary) FROM instructor WHERE dept_name  =  'Biology')",
      "SELECT name FROM instructor WHERE salary  >  (SELECT max(salary) FROM instructor WHERE dept_name  =  'Biology')",
      "SELECT name FROM instructor WHERE salary  >  (SELECT max(salary) FROM instructor WHERE dept_name  =  'Biology')"
    ]
  },
  {
    "database": "college_2",
    "table": "section",
    "questions": [],
    "col_names": [
      "course_id",
      "sec_id",
      "semester",
      "year",
      "building",
      "room_number",
      "time_slot_id"
    ],
    "standard_answer": []
  },
  {
    "database": "college_2",
    "table": "teaches",
    "questions": [
      "How many different instructors have taught some course?",
      "Count the number of distinct instructors who have taught a course.",
      "Find the id of instructors who taught a class in Fall 2009 but not in Spring 2010.",
      "What are the ids of instructors who taught in the Fall of 2009 but not in the Spring of 2010?",
      "Find the total number of instructors who teach a course in the Spring 2010 semester.",
      "How many instructors teach a course in the Spring of 2010?"
    ],
    "col_names": [
      "ID",
      "course_id",
      "sec_id",
      "semester",
      "year"
    ],
    "standard_answer": [
      "SELECT COUNT (DISTINCT id) FROM teaches",
      "SELECT COUNT (DISTINCT id) FROM teaches",
      "SELECT id FROM teaches WHERE semester  =  'Fall' AND YEAR  =  2009 EXCEPT SELECT id FROM teaches WHERE semester  =  'Spring' AND YEAR  =  2010",
      "SELECT id FROM teaches WHERE semester  =  'Fall' AND YEAR  =  2009 EXCEPT SELECT id FROM teaches WHERE semester  =  'Spring' AND YEAR  =  2010",
      "SELECT COUNT (DISTINCT ID) FROM teaches WHERE semester  =  'Spring' AND YEAR  =  2010",
      "SELECT COUNT (DISTINCT ID) FROM teaches WHERE semester  =  'Spring' AND YEAR  =  2010"
    ]
  },
  {
    "database": "college_2",
    "table": "student",
    "questions": [
      "What is the name of the student who has the highest total credits in the History department.",
      "Give the name of the student in the History department with the most credits.",
      "Find the name of students who took any class in the years of 2009 and 2010.",
      "What are the names of the students who took classes in 2009 or 2010?",
      "Find the name of the students and their department names sorted by their total credits in ascending order.",
      "What are the names of students and their respective departments, ordered by number of credits from least to greatest?",
      "Find the name of the students who have more than one advisor?",
      "What are the names of students who have more than one advisor?",
      "Find the name of department has the highest amount of students?",
      "What is the name of the deparment with the highest enrollment?",
      "Find the total number of students in each department.",
      "How many students are in each department?",
      "Find the names of students who have taken any course in the fall semester of year 2003.",
      "What are the names of students who took a course in the Fall of 2003?",
      "Find the name of students who didn't take any course from Biology department.",
      "What are the names of students who haven't taken any Biology courses?",
      "Find the name of students who have taken the prerequisite course of the course with title International Finance.",
      "What are the names of students who have taken the prerequisite for the course International Finance?"
    ],
    "col_names": [
      "ID",
      "name",
      "dept_name",
      "tot_cred"
    ],
    "standard_answer": [
      "SELECT name FROM student WHERE dept_name  =  'History' ORDER BY tot_cred DESC LIMIT 1",
      "SELECT name FROM student WHERE dept_name  =  'History' ORDER BY tot_cred DESC LIMIT 1",
      "SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id  =  T2.id WHERE YEAR  =  2009 OR YEAR  =  2010",
      "SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id  =  T2.id WHERE YEAR  =  2009 OR YEAR  =  2010",
      "SELECT name ,  dept_name FROM student ORDER BY tot_cred",
      "SELECT name ,  dept_name FROM student ORDER BY tot_cred",
      "SELECT T1.name FROM student AS T1 JOIN advisor AS T2 ON T1.id  =  T2.s_id GROUP BY T2.s_id HAVING count(*)  >  1",
      "SELECT T1.name FROM student AS T1 JOIN advisor AS T2 ON T1.id  =  T2.s_id GROUP BY T2.s_id HAVING count(*)  >  1",
      "SELECT dept_name FROM student GROUP BY dept_name ORDER BY count(*) DESC LIMIT 1",
      "SELECT dept_name FROM student GROUP BY dept_name ORDER BY count(*) DESC LIMIT 1",
      "SELECT count(*) ,  dept_name FROM student GROUP BY dept_name",
      "SELECT count(*) ,  dept_name FROM student GROUP BY dept_name",
      "SELECT name FROM student WHERE id IN (SELECT id FROM takes WHERE semester  =  'Fall' AND YEAR  =  2003)",
      "SELECT name FROM student WHERE id IN (SELECT id FROM takes WHERE semester  =  'Fall' AND YEAR  =  2003)",
      "SELECT name FROM student WHERE id NOT IN (SELECT T1.id FROM takes AS T1 JOIN course AS T2 ON T1.course_id  =  T2.course_id WHERE T2.dept_name  =  'Biology')",
      "SELECT name FROM student WHERE id NOT IN (SELECT T1.id FROM takes AS T1 JOIN course AS T2 ON T1.course_id  =  T2.course_id WHERE T2.dept_name  =  'Biology')",
      "SELECT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id  =  T2.id WHERE T2.course_id IN (SELECT T4.prereq_id FROM course AS T3 JOIN prereq AS T4 ON T3.course_id  =  T4.course_id WHERE T3.title  =  'International Finance')",
      "SELECT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id  =  T2.id WHERE T2.course_id IN (SELECT T4.prereq_id FROM course AS T3 JOIN prereq AS T4 ON T3.course_id  =  T4.course_id WHERE T3.title  =  'International Finance')"
    ]
  },
  {
    "database": "college_2",
    "table": "takes",
    "questions": [
      "Find the semester and year which has the least number of student taking any class.",
      "Which semeseter and year had the fewest students?"
    ],
    "col_names": [
      "ID",
      "course_id",
      "sec_id",
      "semester",
      "year",
      "grade"
    ],
    "standard_answer": [
      "SELECT semester ,  YEAR FROM takes GROUP BY semester ,  YEAR ORDER BY count(*) LIMIT 1",
      "SELECT semester ,  YEAR FROM takes GROUP BY semester ,  YEAR ORDER BY count(*) LIMIT 1"
    ]
  },
  {
    "database": "college_2",
    "table": "advisor",
    "questions": [
      "How many students have advisors?",
      "Count the number of students who have advisors.",
      "What is the id of the instructor who advises of all students from History department?",
      "Give id of the instructor who advises students in the History department.",
      "Find the name and salary of the instructors who are advisors of any student from History department?",
      "What are the names and salaries of instructors who advises students in the History department?",
      "Find the name and salary of instructors who are advisors of the students from the Math department.",
      "What are the names and salaries of instructors who advise students in the Math department?",
      "Find the name of instructors who are advisors of the students from the Math department, and sort the results by students' total credit.",
      "What are the names of all instructors who advise students in the math depart sorted by total credits of the student.",
      "Find the name of instructor who is the advisor of the student who has the highest number of total credits.",
      "What is the name of the instructor who advises the student with the greatest number of total credits?"
    ],
    "col_names": [
      "s_ID",
      "i_ID"
    ],
    "standard_answer": [
      "SELECT count(DISTINCT s_id) FROM advisor",
      "SELECT count(DISTINCT s_id) FROM advisor",
      "SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id  =  T2.id WHERE T2.dept_name  =  'History'",
      "SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id  =  T2.id WHERE T2.dept_name  =  'History'",
      "SELECT T2.name ,  T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id WHERE T3.dept_name  =  'History'",
      "SELECT T2.name ,  T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id WHERE T3.dept_name  =  'History'",
      "SELECT T2.name ,  T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id WHERE T3.dept_name  =  'Math'",
      "SELECT T2.name ,  T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id WHERE T3.dept_name  =  'Math'",
      "SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id WHERE T3.dept_name  =  'Math' ORDER BY T3.tot_cred",
      "SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id WHERE T3.dept_name  =  'Math' ORDER BY T3.tot_cred",
      "SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id ORDER BY T3.tot_cred DESC LIMIT 1",
      "SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id ORDER BY T3.tot_cred DESC LIMIT 1"
    ]
  },
  {
    "database": "college_2",
    "table": "time_slot",
    "questions": [],
    "col_names": [
      "time_slot_id",
      "day",
      "start_hr",
      "start_min",
      "end_hr",
      "end_min"
    ],
    "standard_answer": []
  },
  {
    "database": "college_2",
    "table": "prereq",
    "questions": [],
    "col_names": [
      "course_id",
      "prereq_id"
    ],
    "standard_answer": []
  },
  {
    "database": "flight_company",
    "table": "airport",
    "questions": [
      "List the id, country, city and name of the airports ordered alphabetically by the name.",
      "What are the names of the airports which are not in the country 'Iceland'?",
      "What is the id, name and IATA code of the airport that had most number of flights?",
      "What are the different pilot names who had piloted a flight in the country 'United States' or in the airport named 'Billund Airport'?",
      "How many airports haven't the pilot 'Thompson' driven an aircraft?",
      "Which of the airport names contains the word 'international'?",
      "how many airports are there in each country?",
      "which countries have more than 2 airports?"
    ],
    "col_names": [
      "id",
      "City",
      "Country",
      "IATA",
      "ICAO",
      "name"
    ],
    "standard_answer": [
      "SELECT id ,  country ,  city ,  name FROM airport ORDER BY name",
      "SELECT name FROM airport WHERE country != 'Iceland'",
      "SELECT T1.id ,  T1.name ,  T1.IATA FROM airport AS T1 JOIN flight AS T2 ON T1.id  =  T2.airport_id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1",
      "SELECT DISTINCT T2.pilot FROM airport AS T1 JOIN flight AS T2 ON T1.id  =  T2.airport_id WHERE T1.country  =  'United States' OR T1.name  =  'Billund Airport'",
      "SELECT count(*) FROM airport WHERE id NOT IN ( SELECT airport_id FROM flight WHERE pilot  =  'Thompson' );",
      "SELECT name FROM airport WHERE name LIKE '%international%'",
      "SELECT count(*) ,  country FROM airport GROUP BY country",
      "SELECT country FROM airport GROUP BY country HAVING count(*)  >  2"
    ]
  },
  {
    "database": "flight_company",
    "table": "operate_company",
    "questions": [
      "What is maximum group equity shareholding of the companies?",
      "What are the names and types of the companies that have ever operated a flight?",
      "What are the distinct types of the companies that have operated any flights with velocity less than 200?",
      "What are the ids and names of the companies that operated more than one flight?",
      "What is the most common company type, and how many are there?",
      "List the name of the pilots who have flied for both a company that mainly provide 'Cargo' services and a company that runs 'Catering services' activities.",
      "How many companies operates airlines in each airport?"
    ],
    "col_names": [
      "id",
      "name",
      "Type",
      "Principal_activities",
      "Incorporated_in",
      "Group_Equity_Shareholding"
    ],
    "standard_answer": [
      "SELECT max(group_equity_shareholding) FROM operate_company",
      "SELECT T1.name ,  T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id",
      "SELECT DISTINCT T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id WHERE T2.velocity  <  200",
      "SELECT T1.id ,  T1.name FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id GROUP BY T1.id HAVING count(*)  >  1",
      "SELECT TYPE ,  count(*) FROM operate_company GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1",
      "SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id WHERE T1.principal_activities  =  'Cargo' INTERSECT SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id WHERE T1.principal_activities  =  'Catering services'",
      "SELECT T3.id ,  count(*) FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id JOIN airport AS T3 ON T2.airport_id  =  T3.id GROUP BY T3.id"
    ]
  },
  {
    "database": "flight_company",
    "table": "flight",
    "questions": [
      "How many flights have a velocity larger than 200?",
      "List the vehicle flight number, date and pilot of all the flights, ordered by altitude.",
      "What is the velocity of the pilot named 'Thompson'?",
      "which pilot is in charge of the most number of flights?"
    ],
    "col_names": [
      "id",
      "Vehicle_Flight_number",
      "Date",
      "Pilot",
      "Velocity",
      "Altitude",
      "airport_id",
      "company_id"
    ],
    "standard_answer": [
      "SELECT count(*) FROM flight WHERE velocity  >  200",
      "SELECT vehicle_flight_number ,  date ,  pilot FROM flight ORDER BY altitude ASC",
      "SELECT avg(velocity) FROM flight WHERE pilot  =  'Thompson'",
      "SELECT pilot FROM flight GROUP BY pilot ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "icfp_1",
    "table": "Inst",
    "questions": [],
    "col_names": [
      "instID",
      "name",
      "country"
    ],
    "standard_answer": []
  },
  {
    "database": "icfp_1",
    "table": "Authors",
    "questions": [],
    "col_names": [
      "authID",
      "lname",
      "fname"
    ],
    "standard_answer": []
  },
  {
    "database": "icfp_1",
    "table": "Papers",
    "questions": [],
    "col_names": [
      "paperID",
      "title"
    ],
    "standard_answer": []
  },
  {
    "database": "icfp_1",
    "table": "Authorship",
    "questions": [],
    "col_names": [
      "authID",
      "instID",
      "paperID",
      "authOrder"
    ],
    "standard_answer": []
  },
  {
    "database": "body_builder",
    "table": "body_builder",
    "questions": [
      "How many body builders are there?",
      "List the total scores of body builders in ascending order.",
      "List the snatch score and clean jerk score of body builders in ascending order of snatch score.",
      "What is the average snatch score of body builders?",
      "What are the clean and jerk score of the body builder with the highest total score?",
      "What are the names of body builders?",
      "What are the names of body builders whose total score is higher than 300?",
      "What is the name of the body builder with the greatest body weight?",
      "What are the birth date and birth place of the body builder with the highest total points?",
      "What are the heights of body builders with total score smaller than 315?",
      "What is the average total score of body builders with height bigger than 200?",
      "What are the names of body builders in descending order of total scores?",
      "Show all information about each body builder.",
      "List the weight of the body builders who have snatch score higher than 140 or have the height greater than 200.",
      "What are the total scores of the body builders whose birthday contains the string \"January\" ?",
      "What is the minimum snatch score?"
    ],
    "col_names": [
      "Body_Builder_ID",
      "People_ID",
      "Snatch",
      "Clean_Jerk",
      "Total"
    ],
    "standard_answer": [
      "SELECT count(*) FROM body_builder",
      "SELECT Total FROM body_builder ORDER BY Total ASC",
      "SELECT Snatch ,  Clean_Jerk FROM body_builder ORDER BY Snatch ASC",
      "SELECT avg(Snatch) FROM body_builder",
      "SELECT Clean_Jerk FROM body_builder ORDER BY Total DESC LIMIT 1",
      "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID",
      "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Total  >  300",
      "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Weight DESC LIMIT 1",
      "SELECT T2.Birth_Date ,  T2.Birth_Place FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Total DESC LIMIT 1",
      "SELECT T2.Height FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Total  <  315",
      "SELECT avg(T1.Total) FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Height  >  200",
      "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Total DESC",
      "SELECT * FROM body_builder",
      "SELECT T2.weight FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id  =  T2.people_id WHERE T1.snatch  >  140 OR T2.height  >  200;",
      "SELECT T1.total FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id  =  T2.people_id WHERE T2.Birth_Date LIKE \"%January%\";",
      "SELECT min(snatch) FROM body_builder"
    ]
  },
  {
    "database": "body_builder",
    "table": "people",
    "questions": [
      "List each birth place along with the number of people from there.",
      "What is the most common birth place of people?",
      "What are the birth places that are shared by at least two people?",
      "List the height and weight of people in descending order of height.",
      "List the names and origins of people who are not body builders.",
      "How many distinct birth places are there?",
      "How many persons are not body builders?"
    ],
    "col_names": [
      "People_ID",
      "Name",
      "Height",
      "Weight",
      "Birth_Date",
      "Birth_Place"
    ],
    "standard_answer": [
      "SELECT Birth_Place ,  COUNT(*) FROM people GROUP BY Birth_Place",
      "SELECT Birth_Place FROM people GROUP BY Birth_Place ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Birth_Place FROM people GROUP BY Birth_Place HAVING COUNT(*)  >=  2",
      "SELECT Height ,  Weight FROM people ORDER BY Height DESC",
      "SELECT Name ,  birth_place FROM people EXCEPT SELECT T1.Name ,  T1.birth_place FROM people AS T1 JOIN body_builder AS T2 ON T1.people_id  =  T2.people_id",
      "SELECT count(DISTINCT Birth_Place) FROM people",
      "SELECT count(*) FROM people WHERE people_id NOT IN (SELECT People_ID FROM body_builder)"
    ]
  },
  {
    "database": "storm_record",
    "table": "storm",
    "questions": [
      "How many storms had death records?",
      "Count the number of storms in which at least 1 person died.",
      "List name, dates active, and number of deaths for all storms with at least 1 death.",
      "What are the names, dates active, and number of deaths for storms that had 1 or more death?",
      "Show the average and maximum damage for all storms with max speed higher than 1000.",
      "What is the average and maximum damage in millions for storms that had a max speed over 1000?",
      "What is the total number of deaths and damage for all storms with a max speed greater than the average?",
      "Return the total number of deaths and total damange in millions for storms that had a max speed greater than the average.",
      "List name and damage for all storms in a descending order of max speed.",
      "What are the names and damage in millions for storms, ordered by their max speeds descending?",
      "List the name for storms and the number of affected regions for each storm.",
      "How many regions were affected by each storm?",
      "What is the storm name and max speed which affected the greatest number of regions?",
      "Return the name and max speed of the storm that affected the most regions.",
      "Show the name of storms which don't have affected region in record.",
      "What are the names of storms that did not affect any regions?",
      "Show storm name with at least two regions and 10 cities affected.",
      "What are the names of storms that both affected two or more regions and affected a total of 10 or more cities?",
      "Show all storm names except for those with at least two affected regions.",
      "What are the names of storms that did not affect two or more regions?"
    ],
    "col_names": [
      "Storm_ID",
      "Name",
      "Dates_active",
      "Max_speed",
      "Damage_millions_USD",
      "Number_Deaths"
    ],
    "standard_answer": [
      "SELECT count(*) FROM storm WHERE Number_Deaths  >  0",
      "SELECT count(*) FROM storm WHERE Number_Deaths  >  0",
      "SELECT name ,  dates_active ,  number_deaths FROM storm WHERE number_deaths  >=  1",
      "SELECT name ,  dates_active ,  number_deaths FROM storm WHERE number_deaths  >=  1",
      "SELECT avg(damage_millions_USD) ,  max(damage_millions_USD) FROM storm WHERE max_speed  >  1000",
      "SELECT avg(damage_millions_USD) ,  max(damage_millions_USD) FROM storm WHERE max_speed  >  1000",
      "SELECT sum(number_deaths) ,  sum(damage_millions_USD) FROM storm WHERE max_speed  >  (SELECT avg(max_speed) FROM storm)",
      "SELECT sum(number_deaths) ,  sum(damage_millions_USD) FROM storm WHERE max_speed  >  (SELECT avg(max_speed) FROM storm)",
      "SELECT name ,  damage_millions_USD FROM storm ORDER BY max_speed DESC",
      "SELECT name ,  damage_millions_USD FROM storm ORDER BY max_speed DESC",
      "SELECT T1.name ,  count(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id",
      "SELECT T1.name ,  count(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id",
      "SELECT T1.name ,  T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.name ,  T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT name FROM storm WHERE storm_id NOT IN (SELECT storm_id FROM affected_region)",
      "SELECT name FROM storm WHERE storm_id NOT IN (SELECT storm_id FROM affected_region)",
      "SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING count(*)  >=  2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING sum(T2.number_city_affected)  >=  10",
      "SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING count(*)  >=  2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING sum(T2.number_city_affected)  >=  10",
      "SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING count(*)  >=  2",
      "SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id  =  T2.storm_id GROUP BY T1.storm_id HAVING count(*)  >=  2"
    ]
  },
  {
    "database": "storm_record",
    "table": "region",
    "questions": [
      "How many regions do we have?",
      "Count the number of regions.",
      "Show all region code and region name sorted by the codes.",
      "What are the codes and names for all regions, sorted by codes?",
      "List all region names in alphabetical order.",
      "What are the names of the regions in alphabetical order?",
      "Show names for all regions except for Denmark.",
      "Return the names of all regions other than Denmark.",
      "Show the name for regions not affected.",
      "What are the names of regions that were not affected?",
      "Show the name for regions and the number of storms for each region.",
      "How many storms occured in each region?",
      "Show the region name with at least two storms.",
      "What are the names of regions with two or more storms?"
    ],
    "col_names": [
      "Region_id",
      "Region_code",
      "Region_name"
    ],
    "standard_answer": [
      "SELECT count(*) FROM region",
      "SELECT count(*) FROM region",
      "SELECT region_code ,  region_name FROM region ORDER BY region_code",
      "SELECT region_code ,  region_name FROM region ORDER BY region_code",
      "SELECT region_name FROM region ORDER BY region_name",
      "SELECT region_name FROM region ORDER BY region_name",
      "SELECT region_name FROM region WHERE region_name != 'Denmark'",
      "SELECT region_name FROM region WHERE region_name != 'Denmark'",
      "SELECT region_name FROM region WHERE region_id NOT IN (SELECT region_id FROM affected_region)",
      "SELECT region_name FROM region WHERE region_id NOT IN (SELECT region_id FROM affected_region)",
      "SELECT T1.region_name ,  count(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id",
      "SELECT T1.region_name ,  count(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id",
      "SELECT T1.region_name FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id HAVING count(*)  >=  2",
      "SELECT T1.region_name FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id HAVING count(*)  >=  2"
    ]
  },
  {
    "database": "storm_record",
    "table": "affected_region",
    "questions": [
      "How many regions are affected?",
      "Count the number of different affected regions.",
      "What are the region names affected by the storm with a number of deaths of least 10?",
      "Return the names of the regions affected by storms that had a death count of at least 10.",
      "Show all storm names affecting region \"Denmark\".",
      "What are the names of the storms that affected Denmark?",
      "Find the names of the regions which were affected by the storm that killed the greatest number of people.",
      "What are the names of regions that were affected by the storm in which the most people died?",
      "Find the name of the storm that affected both Afghanistan and Albania regions.",
      "What are the names of the storms that affected both the regions of Afghanistan and Albania?"
    ],
    "col_names": [
      "Region_id",
      "Storm_ID",
      "Number_city_affected"
    ],
    "standard_answer": [
      "SELECT count(DISTINCT region_id) FROM affected_region",
      "SELECT count(DISTINCT region_id) FROM affected_region",
      "SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T3.number_deaths  >=  10",
      "SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T3.number_deaths  >=  10",
      "SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T2.region_name  =  'Denmark'",
      "SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T2.region_name  =  'Denmark'",
      "SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id ORDER BY T3.Number_Deaths DESC LIMIT 1",
      "SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id ORDER BY T3.Number_Deaths DESC LIMIT 1",
      "SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T2.Region_name  =  'Afghanistan' INTERSECT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T2.Region_name  =  'Albania'",
      "SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T2.Region_name  =  'Afghanistan' INTERSECT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T2.Region_name  =  'Albania'"
    ]
  },
  {
    "database": "pilot_record",
    "table": "aircraft",
    "questions": [],
    "col_names": [
      "Aircraft_ID",
      "Order_Year",
      "Manufacturer",
      "Model",
      "Fleet_Series",
      "Powertrain",
      "Fuel_Propulsion"
    ],
    "standard_answer": []
  },
  {
    "database": "pilot_record",
    "table": "pilot",
    "questions": [
      "How many pilots are there?",
      "List the names of pilots in ascending order of rank.",
      "What are the positions and teams of pilots?",
      "List the distinct positions of pilots older than 30.",
      "Show the names of pilots from team \"Bradley\" or \"Fordham\".",
      "What is the joined year of the pilot of the highest rank?",
      "What are the different nationalities of pilots? Show each nationality and the number of pilots of each nationality.",
      "Show the most common nationality of pilots.",
      "Show the pilot positions that have both pilots joining after year 2005 and pilots joining before 2000.",
      "List the names of pilots that do not have any record."
    ],
    "col_names": [
      "Pilot_ID",
      "Pilot_name",
      "Rank",
      "Age",
      "Nationality",
      "Position",
      "Join_Year",
      "Team"
    ],
    "standard_answer": [
      "SELECT count(*) FROM pilot",
      "SELECT Pilot_name FROM pilot ORDER BY Rank ASC",
      "SELECT POSITION ,  Team FROM pilot",
      "SELECT DISTINCT POSITION FROM pilot WHERE Age  >  30",
      "SELECT Pilot_name FROM pilot WHERE Team  =  \"Bradley\" OR Team  =  \"Fordham\"",
      "SELECT Join_Year FROM pilot ORDER BY Rank ASC LIMIT 1",
      "SELECT Nationality ,  COUNT(*) FROM pilot GROUP BY Nationality",
      "SELECT Nationality FROM pilot GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT POSITION FROM pilot WHERE Join_Year\t <  2000 INTERSECT SELECT POSITION FROM pilot WHERE Join_Year\t >  2005",
      "SELECT Pilot_name FROM pilot WHERE Pilot_ID NOT IN (SELECT Pilot_ID FROM pilot_record)"
    ]
  },
  {
    "database": "pilot_record",
    "table": "pilot_record",
    "questions": [
      "Show the names of pilots and models of aircrafts they have flied with.",
      "Show the names of pilots and fleet series of the aircrafts they have flied with in ascending order of the rank of the pilot.",
      "Show the fleet series of the aircrafts flied by pilots younger than 34",
      "Show the names of pilots and the number of records they have.",
      "Show names of pilots that have more than one record."
    ],
    "col_names": [
      "Record_ID",
      "Pilot_ID",
      "Aircraft_ID",
      "Date"
    ],
    "standard_answer": [
      "SELECT T3.Pilot_name ,  T2.Model FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID  =  T3.Pilot_ID",
      "SELECT T3.Pilot_name ,  T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID  =  T3.Pilot_ID ORDER BY T3.Rank",
      "SELECT T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID  =  T3.Pilot_ID WHERE T3.Age  <  34",
      "SELECT T2.Pilot_name ,  COUNT(*) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID  =  T2.pilot_ID GROUP BY T2.Pilot_name",
      "SELECT T2.Pilot_name ,  COUNT(*) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID  =  T2.pilot_ID GROUP BY T2.Pilot_name HAVING COUNT(*)  >  1"
    ]
  },
  {
    "database": "race_track",
    "table": "race",
    "questions": [
      "How many races are there?",
      "Count the number of races.",
      "What are the distinct classes that races can have?",
      "Return the different classes of races.",
      "Show name, class, and date for all races.",
      "What are the names, classes, and dates for all races?",
      "Show the race class and number of races in each class.",
      "What are the different classes of races, and how many races correspond to each?",
      "What is the race class with most number of races.",
      "Give the class of races that is most common.",
      "List the race class with at least two races.",
      "What are the classes of races that have two or more corresponding races?",
      "Show the name of track and the number of races in each track.",
      "What are the names of different tracks, and how many races has each had?",
      "Show the name of track with most number of races.",
      "What is the name of the track that has had the greatest number of races?",
      "Show the name and date for each race and its track name.",
      "What are the names and dates of races, and the names of the tracks where they are held?",
      "Show the name and location of track with 1 race.",
      "What are the names and locations of tracks that have had exactly 1 race?"
    ],
    "col_names": [
      "Race_ID",
      "Name",
      "Class",
      "Date",
      "Track_ID"
    ],
    "standard_answer": [
      "SELECT count(*) FROM race",
      "SELECT count(*) FROM race",
      "SELECT DISTINCT CLASS FROM race",
      "SELECT DISTINCT CLASS FROM race",
      "SELECT name ,  CLASS ,  date FROM race",
      "SELECT name ,  CLASS ,  date FROM race",
      "SELECT CLASS ,  count(*) FROM race GROUP BY CLASS",
      "SELECT CLASS ,  count(*) FROM race GROUP BY CLASS",
      "SELECT CLASS FROM race GROUP BY CLASS ORDER BY count(*) DESC LIMIT 1",
      "SELECT CLASS FROM race GROUP BY CLASS ORDER BY count(*) DESC LIMIT 1",
      "SELECT CLASS FROM race GROUP BY CLASS HAVING count(*)  >=  2",
      "SELECT CLASS FROM race GROUP BY CLASS HAVING count(*)  >=  2",
      "SELECT T2.name ,  count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id",
      "SELECT T2.name ,  count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id",
      "SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.name ,  T1.date ,  T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id",
      "SELECT T1.name ,  T1.date ,  T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id",
      "SELECT T2.name ,  T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id HAVING count(*)  =  1",
      "SELECT T2.name ,  T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id HAVING count(*)  =  1"
    ]
  },
  {
    "database": "race_track",
    "table": "track",
    "questions": [
      "How many tracks do we have?",
      "Count the number of tracks.",
      "Show the name and location for all tracks.",
      "What are the names and locations of all tracks?",
      "Show names and seatings, ordered by seating for all tracks opened after 2000.",
      "What are the names and seatings for all tracks opened after 2000, ordered by seating?",
      "What is the name, location and seating for the most recently opened track?",
      "Return the name, location, and seating of the track that was opened in the most recent year.",
      "What is the minimum, maximum, and average seating for all tracks.",
      "Return the minimum, maximum, and average seating across all tracks.",
      "Show the name, location, open year for all tracks with a seating higher than the average.",
      "What are the names, locations, and years of opening for tracks with seating higher than average?",
      "What are distinct locations where tracks are located?",
      "Give the different locations of tracks.",
      "What are the names for tracks without a race in class 'GT'.",
      "Give the names of tracks that do not have a race in the class 'GT'.",
      "Show all track names that have had no races.",
      "Return the names of tracks that have no had any races.",
      "Show year where a track with a seating at least 5000 opened and a track with seating no more than 4000 opened.",
      "What are the years of opening for tracks with seating between 4000 and 5000?",
      "Find the locations where have both tracks with more than 90000 seats and tracks with less than 70000 seats.",
      "What are the locations that have both tracks with more than 90000 seats, and tracks with fewer than 70000 seats?"
    ],
    "col_names": [
      "Track_ID",
      "Name",
      "Location",
      "Seating",
      "Year_Opened"
    ],
    "standard_answer": [
      "SELECT count(*) FROM track",
      "SELECT count(*) FROM track",
      "SELECT name ,  LOCATION FROM track",
      "SELECT name ,  LOCATION FROM track",
      "SELECT name ,  seating FROM track WHERE year_opened  >  2000 ORDER BY seating",
      "SELECT name ,  seating FROM track WHERE year_opened  >  2000 ORDER BY seating",
      "SELECT name ,  LOCATION ,  seating FROM track ORDER BY year_opened DESC LIMIT 1",
      "SELECT name ,  LOCATION ,  seating FROM track ORDER BY year_opened DESC LIMIT 1",
      "SELECT min(seating) ,  max(seating) ,  avg(seating) FROM track",
      "SELECT min(seating) ,  max(seating) ,  avg(seating) FROM track",
      "SELECT name ,  LOCATION ,  year_opened FROM track WHERE seating  >  (SELECT avg(seating) FROM track)",
      "SELECT name ,  LOCATION ,  year_opened FROM track WHERE seating  >  (SELECT avg(seating) FROM track)",
      "SELECT DISTINCT LOCATION FROM track",
      "SELECT DISTINCT LOCATION FROM track",
      "SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id WHERE T1.class  =  'GT'",
      "SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id WHERE T1.class  =  'GT'",
      "SELECT name FROM track WHERE track_id NOT IN (SELECT track_id FROM race)",
      "SELECT name FROM track WHERE track_id NOT IN (SELECT track_id FROM race)",
      "SELECT year_opened FROM track WHERE seating BETWEEN 4000 AND 5000",
      "SELECT year_opened FROM track WHERE seating BETWEEN 4000 AND 5000",
      "SELECT LOCATION FROM track WHERE seating  >  90000 INTERSECT SELECT LOCATION FROM track WHERE seating  <  70000",
      "SELECT LOCATION FROM track WHERE seating  >  90000 INTERSECT SELECT LOCATION FROM track WHERE seating  <  70000"
    ]
  },
  {
    "database": "academic",
    "table": "author",
    "questions": [],
    "col_names": [
      "aid",
      "homepage",
      "name",
      "oid"
    ],
    "standard_answer": []
  },
  {
    "database": "academic",
    "table": "conference",
    "questions": [],
    "col_names": [
      "cid",
      "homepage",
      "name"
    ],
    "standard_answer": []
  },
  {
    "database": "academic",
    "table": "domain",
    "questions": [],
    "col_names": [
      "did",
      "name"
    ],
    "standard_answer": []
  },
  {
    "database": "academic",
    "table": "domain_author",
    "questions": [],
    "col_names": [
      "aid",
      "did"
    ],
    "standard_answer": []
  },
  {
    "database": "academic",
    "table": "domain_conference",
    "questions": [],
    "col_names": [
      "cid",
      "did"
    ],
    "standard_answer": []
  },
  {
    "database": "academic",
    "table": "journal",
    "questions": [],
    "col_names": [
      "homepage",
      "jid",
      "name"
    ],
    "standard_answer": []
  },
  {
    "database": "academic",
    "table": "domain_journal",
    "questions": [],
    "col_names": [
      "did",
      "jid"
    ],
    "standard_answer": []
  },
  {
    "database": "academic",
    "table": "keyword",
    "questions": [],
    "col_names": [
      "keyword",
      "kid"
    ],
    "standard_answer": []
  },
  {
    "database": "academic",
    "table": "domain_keyword",
    "questions": [],
    "col_names": [
      "did",
      "kid"
    ],
    "standard_answer": []
  },
  {
    "database": "academic",
    "table": "publication",
    "questions": [],
    "col_names": [
      "abstract",
      "cid",
      "citation_num",
      "jid",
      "pid",
      "reference_num",
      "title",
      "year"
    ],
    "standard_answer": []
  },
  {
    "database": "academic",
    "table": "domain_publication",
    "questions": [],
    "col_names": [
      "did",
      "pid"
    ],
    "standard_answer": []
  },
  {
    "database": "academic",
    "table": "organization",
    "questions": [],
    "col_names": [
      "continent",
      "homepage",
      "name",
      "oid"
    ],
    "standard_answer": []
  },
  {
    "database": "academic",
    "table": "publication_keyword",
    "questions": [],
    "col_names": [
      "pid",
      "kid"
    ],
    "standard_answer": []
  },
  {
    "database": "academic",
    "table": "writes",
    "questions": [],
    "col_names": [
      "aid",
      "pid"
    ],
    "standard_answer": []
  },
  {
    "database": "academic",
    "table": "cite",
    "questions": [],
    "col_names": [
      "cited",
      "citing"
    ],
    "standard_answer": []
  },
  {
    "database": "department_store",
    "table": "Addresses",
    "questions": [],
    "col_names": [
      "address_id",
      "address_details"
    ],
    "standard_answer": []
  },
  {
    "database": "department_store",
    "table": "Staff",
    "questions": [],
    "col_names": [
      "staff_id",
      "staff_gender",
      "staff_name"
    ],
    "standard_answer": []
  },
  {
    "database": "department_store",
    "table": "Suppliers",
    "questions": [
      "List the name and phone number of all suppliers in the alphabetical order of their addresses.",
      "What are the names and phone numbers for all suppliers, sorted in alphabetical order of their addressed?"
    ],
    "col_names": [
      "supplier_id",
      "supplier_name",
      "supplier_phone"
    ],
    "standard_answer": [
      "SELECT T1.supplier_name ,  T1.supplier_phone FROM Suppliers AS T1 JOIN supplier_addresses AS T2 ON T1.supplier_id  =  T2.supplier_id JOIN addresses AS T3 ON T2.address_id  =  T3.address_id ORDER BY T3.address_details",
      "SELECT T1.supplier_name ,  T1.supplier_phone FROM Suppliers AS T1 JOIN supplier_addresses AS T2 ON T1.supplier_id  =  T2.supplier_id JOIN addresses AS T3 ON T2.address_id  =  T3.address_id ORDER BY T3.address_details"
    ]
  },
  {
    "database": "department_store",
    "table": "Department_Store_Chain",
    "questions": [],
    "col_names": [
      "dept_store_chain_id",
      "dept_store_chain_name"
    ],
    "standard_answer": []
  },
  {
    "database": "department_store",
    "table": "Customers",
    "questions": [
      "What is the largest and smallest customer codes?",
      "Return the maximum and minimum customer codes."
    ],
    "col_names": [
      "customer_id",
      "payment_method_code",
      "customer_code",
      "customer_name",
      "customer_address",
      "customer_phone",
      "customer_email"
    ],
    "standard_answer": [
      "SELECT max(customer_code) ,  min(customer_code) FROM Customers",
      "SELECT max(customer_code) ,  min(customer_code) FROM Customers"
    ]
  },
  {
    "database": "department_store",
    "table": "Products",
    "questions": [],
    "col_names": [
      "product_id",
      "product_type_code",
      "product_name",
      "product_price"
    ],
    "standard_answer": []
  },
  {
    "database": "department_store",
    "table": "Supplier_Addresses",
    "questions": [],
    "col_names": [
      "supplier_id",
      "address_id",
      "date_from",
      "date_to"
    ],
    "standard_answer": []
  },
  {
    "database": "department_store",
    "table": "Customer_Addresses",
    "questions": [],
    "col_names": [
      "customer_id",
      "address_id",
      "date_from",
      "date_to"
    ],
    "standard_answer": []
  },
  {
    "database": "department_store",
    "table": "Customer_Orders",
    "questions": [
      "Find the ids of all distinct customers who made order after some orders that were Cancelled.",
      "What are the distinct ids of customers who made an order after any order that was Cancelled?"
    ],
    "col_names": [
      "order_id",
      "customer_id",
      "order_status_code",
      "order_date"
    ],
    "standard_answer": [
      "SELECT DISTINCT customer_id FROM Customer_Orders WHERE order_date  >  (SELECT min(order_date) FROM Customer_Orders WHERE order_status_code  =  \"Cancelled\")",
      "SELECT DISTINCT customer_id FROM Customer_Orders WHERE order_date  >  (SELECT min(order_date) FROM Customer_Orders WHERE order_status_code  =  \"Cancelled\")"
    ]
  },
  {
    "database": "department_store",
    "table": "Department_Stores",
    "questions": [],
    "col_names": [
      "dept_store_id",
      "dept_store_chain_id",
      "store_name",
      "store_address",
      "store_phone",
      "store_email"
    ],
    "standard_answer": []
  },
  {
    "database": "department_store",
    "table": "Departments",
    "questions": [],
    "col_names": [
      "department_id",
      "dept_store_id",
      "department_name"
    ],
    "standard_answer": []
  },
  {
    "database": "department_store",
    "table": "Order_Items",
    "questions": [
      "Return the ids of all products that were ordered more than three times or supplied more than 80000.",
      "What are the ids of all products that were either ordered more than 3 times or have a cumulative amount purchased of above 80000?"
    ],
    "col_names": [
      "order_item_id",
      "order_id",
      "product_id"
    ],
    "standard_answer": [
      "SELECT product_id FROM Order_Items GROUP BY product_id HAVING count(*)  >  3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING sum(total_amount_purchased)  >  80000",
      "SELECT product_id FROM Order_Items GROUP BY product_id HAVING count(*)  >  3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING sum(total_amount_purchased)  >  80000"
    ]
  },
  {
    "database": "department_store",
    "table": "Product_Suppliers",
    "questions": [
      "Find the id of suppliers whose average amount purchased for each product is above 50000 or below 30000.",
      "What are the ids of suppliers which have an average amount purchased of above 50000 or below 30000?",
      "What are the average amount purchased and value purchased for the supplier who supplies the most products.",
      "Return the average total amount purchased and total value purchased for the supplier who supplies the greatest number of products."
    ],
    "col_names": [
      "product_id",
      "supplier_id",
      "date_supplied_from",
      "date_supplied_to",
      "total_amount_purchased",
      "total_value_purchased"
    ],
    "standard_answer": [
      "SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id HAVING avg(total_amount_purchased)  >  50000 OR avg(total_amount_purchased)  <  30000",
      "SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id HAVING avg(total_amount_purchased)  >  50000 OR avg(total_amount_purchased)  <  30000",
      "SELECT avg(total_amount_purchased) ,  avg(total_value_purchased) FROM Product_Suppliers WHERE supplier_id  =  (SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id ORDER BY count(*) DESC LIMIT 1)",
      "SELECT avg(total_amount_purchased) ,  avg(total_value_purchased) FROM Product_Suppliers WHERE supplier_id  =  (SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id ORDER BY count(*) DESC LIMIT 1)"
    ]
  },
  {
    "database": "department_store",
    "table": "Staff_Department_Assignments",
    "questions": [
      "What is id of the staff who had a Staff Department Assignment earlier than any Clerical Staff?",
      "Return the id of the staff whose Staff Department Assignment was earlier than that of any Clerical Staff."
    ],
    "col_names": [
      "staff_id",
      "department_id",
      "date_assigned_from",
      "job_title_code",
      "date_assigned_to"
    ],
    "standard_answer": [
      "SELECT staff_id FROM Staff_Department_Assignments WHERE date_assigned_to  <  (SELECT max(date_assigned_to) FROM Staff_Department_Assignments WHERE job_title_code  =  'Clerical Staff')",
      "SELECT staff_id FROM Staff_Department_Assignments WHERE date_assigned_to  <  (SELECT max(date_assigned_to) FROM Staff_Department_Assignments WHERE job_title_code  =  'Clerical Staff')"
    ]
  },
  {
    "database": "music_4",
    "table": "artist",
    "questions": [
      "How many artists are there?",
      "Count the number of artists.",
      "List the age of all music artists.",
      "What are the ages of all music artists?",
      "What is the average age of all artists?",
      "Return the average age across all artists.",
      "What are the famous titles of the artist \"Triumfall\"?",
      "Return the famous titles of the artist called \"Triumfall\".",
      "What are the distinct Famous release dates?",
      "Give the distinct famous release dates for all artists.",
      "What are the issue dates of volumes associated with the artist \"Gorgoroth\"?",
      "Return the issue dates of volumes that are by the artist named Gorgoroth.",
      "What are the songs in volumes associated with the artist aged 32 or older?",
      "Return names of songs in volumes that are by artists that are at least 32 years old.",
      "What is the average weeks on top of volumes associated with the artist aged 25 or younger?",
      "Return the average number of weeks on top for volumes by artists that are at most 25 years old.",
      "What are the famous title of the artists associated with volumes with more than 2 weeks on top?",
      "Return the famous titles for artists that have volumes that lasted more than 2 weeks on top.",
      "Please list the age and famous title of artists in descending order of age.",
      "What are the famous titles and ages of each artist, listed in descending order by age?",
      "What is the famous release date of the artist with the oldest age?",
      "Return the famous release date for the oldest artist.",
      "Find the famous titles of artists that do not have any volume.",
      "What are the famous titles of artists who do not have any volumes?",
      "Show the famous titles of the artists with both volumes that lasted more than 2 weeks on top and volumes that lasted less than 2 weeks on top.",
      "What are the famous titles of artists who have not only had volumes that spent more than 2 weeks on top but also volumes that spent less than 2 weeks on top?",
      "What are the issue dates of volumes associated with the artist aged 23 or younger?",
      "Return the issue dates of volumes by artists who are at most 23 years old?"
    ],
    "col_names": [
      "Artist_ID",
      "Artist",
      "Age",
      "Famous_Title",
      "Famous_Release_date"
    ],
    "standard_answer": [
      "SELECT count(*) FROM artist",
      "SELECT count(*) FROM artist",
      "SELECT Age FROM artist",
      "SELECT Age FROM artist",
      "SELECT avg(Age) FROM artist",
      "SELECT avg(Age) FROM artist",
      "SELECT Famous_Title FROM artist WHERE Artist  =  \"Triumfall\"",
      "SELECT Famous_Title FROM artist WHERE Artist  =  \"Triumfall\"",
      "SELECT distinct(Famous_Release_date) FROM artist",
      "SELECT distinct(Famous_Release_date) FROM artist",
      "SELECT T2.Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.Artist  =  \"Gorgoroth\"",
      "SELECT T2.Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.Artist  =  \"Gorgoroth\"",
      "SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.age  >=  32",
      "SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.age  >=  32",
      "SELECT avg(T2.Weeks_on_Top) FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.age  <=  25",
      "SELECT avg(T2.Weeks_on_Top) FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.age  <=  25",
      "SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  >  2",
      "SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  >  2",
      "SELECT Famous_Title ,  Age FROM artist ORDER BY Age DESC",
      "SELECT Famous_Title ,  Age FROM artist ORDER BY Age DESC",
      "SELECT Famous_Release_date FROM artist ORDER BY Age DESC LIMIT 1",
      "SELECT Famous_Release_date FROM artist ORDER BY Age DESC LIMIT 1",
      "SELECT Famous_Title FROM artist WHERE Artist_ID NOT IN(SELECT Artist_ID FROM volume)",
      "SELECT Famous_Title FROM artist WHERE Artist_ID NOT IN(SELECT Artist_ID FROM volume)",
      "SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  >  2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  <  2",
      "SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  >  2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  <  2",
      "SELECT Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.age  <=  23",
      "SELECT Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.age  <=  23"
    ]
  },
  {
    "database": "music_4",
    "table": "volume",
    "questions": [
      "What are the maximum and minimum week on top of all volumes?",
      "Give the maximum and minimum weeks on top across all volumes.",
      "What are the songs in volumes with more than 1 week on top?",
      "Give the songs included in volumes that have more than 1 week on top.",
      "Please list all songs in volumes in ascending alphabetical order.",
      "What are the the songs in volumes, listed in ascending order?",
      "How many distinct artists do the volumes associate to?",
      "Count the number of distinct artists who have volumes.",
      "What is the song in the volume with the maximum weeks on top?",
      "Return the song in the volume that has spent the most weeks on top?",
      "What is the issue date of the volume with the minimum weeks on top?",
      "Return the issue date of the volume that has spent the fewest weeks on top.",
      "How many distinct artists have volumes?",
      "Count the number of artists who have had volumes."
    ],
    "col_names": [
      "Volume_ID",
      "Volume_Issue",
      "Issue_Date",
      "Weeks_on_Top",
      "Song",
      "Artist_ID"
    ],
    "standard_answer": [
      "SELECT max(Weeks_on_Top) ,  min(Weeks_on_Top) FROM volume",
      "SELECT max(Weeks_on_Top) ,  min(Weeks_on_Top) FROM volume",
      "SELECT Song FROM volume WHERE Weeks_on_Top  >  1",
      "SELECT Song FROM volume WHERE Weeks_on_Top  >  1",
      "SELECT Song FROM volume ORDER BY Song",
      "SELECT Song FROM volume ORDER BY Song",
      "SELECT COUNT(DISTINCT Artist_ID) FROM volume",
      "SELECT COUNT(DISTINCT Artist_ID) FROM volume",
      "SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1",
      "SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1",
      "SELECT Issue_Date FROM volume ORDER BY Weeks_on_Top ASC LIMIT 1",
      "SELECT Issue_Date FROM volume ORDER BY Weeks_on_Top ASC LIMIT 1",
      "SELECT COUNT(DISTINCT Artist_ID) FROM volume",
      "SELECT COUNT(DISTINCT Artist_ID) FROM volume"
    ]
  },
  {
    "database": "music_4",
    "table": "music_festival",
    "questions": [
      "Return the dates of ceremony and the results of all music festivals",
      "What are the dates of ceremony and results for each music festival?",
      "What are the category of music festivals with result \"Awarded\"?",
      "Return the categories of music festivals that have the result \"Awarded\".",
      "Please show the date of ceremony of the volumes that last more than 2 weeks on top.",
      "What are the dates of ceremony at music festivals corresponding to volumes that lasted more than 2 weeks on top?",
      "Please show the songs that have result \"nominated\" at music festivals.",
      "What are the songs in volumes that have resulted in a nomination at music festivals?",
      "Please show the categories of the music festivals and the count.",
      "Return the number of music festivals of each category.",
      "What is the most common result of the music festival?",
      "Return the result that is most frequent at music festivals.",
      "Please show the categories of the music festivals with count more than 1.",
      "What are the categories of music festivals for which there have been more than 1 music festival?",
      "What are the date of ceremony of music festivals with category \"Best Song\" and result \"Awarded\"?",
      "Return the dates of ceremony corresponding to music festivals that had the category \"Best Song\" and result \"Awarded\".",
      "Please show the results of music festivals and the number of music festivals that have had each, ordered by this count.",
      "How many music festivals have had each kind of result, ordered descending by count?"
    ],
    "col_names": [
      "ID",
      "Music_Festival",
      "Date_of_ceremony",
      "Category",
      "Volume",
      "Result"
    ],
    "standard_answer": [
      "SELECT Date_of_ceremony ,  RESULT FROM music_festival",
      "SELECT Date_of_ceremony ,  RESULT FROM music_festival",
      "SELECT Category FROM music_festival WHERE RESULT  =  \"Awarded\"",
      "SELECT Category FROM music_festival WHERE RESULT  =  \"Awarded\"",
      "SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume  =  T2.Volume_ID WHERE T2.Weeks_on_Top  >  2",
      "SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume  =  T2.Volume_ID WHERE T2.Weeks_on_Top  >  2",
      "SELECT T2.Song FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume  =  T2.Volume_ID WHERE T1.Result  =  \"Nominated\"",
      "SELECT T2.Song FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume  =  T2.Volume_ID WHERE T1.Result  =  \"Nominated\"",
      "SELECT Category ,  COUNT(*) FROM music_festival GROUP BY Category",
      "SELECT Category ,  COUNT(*) FROM music_festival GROUP BY Category",
      "SELECT RESULT FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT RESULT FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*)  >  1",
      "SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*)  >  1",
      "SELECT Date_of_ceremony FROM music_festival WHERE Category  =  \"Best Song\" AND RESULT  =  \"Awarded\"",
      "SELECT Date_of_ceremony FROM music_festival WHERE Category  =  \"Best Song\" AND RESULT  =  \"Awarded\"",
      "SELECT RESULT ,  COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC",
      "SELECT RESULT ,  COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC"
    ]
  },
  {
    "database": "insurance_fnol",
    "table": "Customers",
    "questions": [],
    "col_names": [
      "Customer_ID",
      "Customer_name"
    ],
    "standard_answer": []
  },
  {
    "database": "insurance_fnol",
    "table": "Services",
    "questions": [],
    "col_names": [
      "Service_ID",
      "Service_name"
    ],
    "standard_answer": []
  },
  {
    "database": "insurance_fnol",
    "table": "Available_Policies",
    "questions": [],
    "col_names": [
      "Policy_ID",
      "policy_type_code",
      "Customer_Phone"
    ],
    "standard_answer": []
  },
  {
    "database": "insurance_fnol",
    "table": "Customers_Policies",
    "questions": [],
    "col_names": [
      "Customer_ID",
      "Policy_ID",
      "Date_Opened",
      "Date_Closed"
    ],
    "standard_answer": []
  },
  {
    "database": "insurance_fnol",
    "table": "First_Notification_of_Loss",
    "questions": [],
    "col_names": [
      "FNOL_ID",
      "Customer_ID",
      "Policy_ID",
      "Service_ID"
    ],
    "standard_answer": []
  },
  {
    "database": "insurance_fnol",
    "table": "Claims",
    "questions": [],
    "col_names": [
      "Claim_ID",
      "FNOL_ID",
      "Effective_Date"
    ],
    "standard_answer": []
  },
  {
    "database": "insurance_fnol",
    "table": "Settlements",
    "questions": [],
    "col_names": [
      "Settlement_ID",
      "Claim_ID",
      "Effective_Date",
      "Settlement_Amount"
    ],
    "standard_answer": []
  },
  {
    "database": "cinema",
    "table": "film",
    "questions": [
      "Show the title and director for all films.",
      "What are the title and director of each film?",
      "Show all directors.",
      "Who are all the directors?",
      "List all directors along with the number of films directed by each director.",
      "What are the title and director of the films without any schedule?",
      "How many films have the word 'Dummy' in their titles?",
      "Count the number of films whose title contains the word 'Dummy'."
    ],
    "col_names": [
      "Film_ID",
      "Rank_in_series",
      "Number_in_season",
      "Title",
      "Directed_by",
      "Original_air_date",
      "Production_code"
    ],
    "standard_answer": [
      "SELECT title ,  directed_by FROM film",
      "SELECT title ,  directed_by FROM film",
      "SELECT DISTINCT directed_by FROM film",
      "SELECT DISTINCT directed_by FROM film",
      "SELECT directed_by ,  count(*) FROM film GROUP BY directed_by",
      "SELECT title ,  directed_by FROM film WHERE film_id NOT IN (SELECT film_id FROM schedule)",
      "SELECT count(*) FROM film WHERE title LIKE \"%Dummy%\"",
      "SELECT count(*) FROM film WHERE title LIKE \"%Dummy%\""
    ]
  },
  {
    "database": "cinema",
    "table": "cinema",
    "questions": [
      "Show all the locations where no cinema has capacity over 800.",
      "Show all the locations where some cinemas were opened in both year 2010 and year 2011.",
      "How many cinema do we have?",
      "Count the number of cinemas.",
      "Show name, opening year, and capacity for each cinema.",
      "Show the cinema name and location for cinemas with capacity above average.",
      "What are all the locations with a cinema?",
      "Find the distinct locations that has a cinema.",
      "Show all the cinema names and opening years in descending order of opening year.",
      "What are the name and location of the cinema with the largest capacity?",
      "Show the average, minimum, and maximum capacity for all the cinemas opened in year 2011 or later.",
      "Show each location and the number of cinemas there.",
      "What is the location with the most cinemas opened in year 2010 or later?",
      "Show all the locations with at least two cinemas with capacity above 300.",
      "Which locations have 2 or more cinemas with capacity over 300?",
      "Find the locations that have more than one movie theater with capacity above 300.",
      "In which locations are there more than one movie theater with capacity above 300?"
    ],
    "col_names": [
      "Cinema_ID",
      "Name",
      "Openning_year",
      "Capacity",
      "Location"
    ],
    "standard_answer": [
      "SELECT LOCATION FROM cinema EXCEPT SELECT LOCATION FROM cinema WHERE capacity  >  800",
      "SELECT LOCATION FROM cinema WHERE openning_year  =  2010 INTERSECT SELECT LOCATION FROM cinema WHERE openning_year  =  2011",
      "SELECT count(*) FROM cinema",
      "SELECT count(*) FROM cinema",
      "SELECT name ,  openning_year ,  capacity FROM cinema",
      "SELECT name ,  LOCATION FROM cinema WHERE capacity  >  (SELECT avg(capacity) FROM cinema)",
      "SELECT DISTINCT LOCATION FROM cinema",
      "SELECT DISTINCT LOCATION FROM cinema",
      "SELECT name ,  openning_year FROM cinema ORDER BY openning_year DESC",
      "SELECT name ,  LOCATION FROM cinema ORDER BY capacity DESC LIMIT 1",
      "SELECT avg(capacity) ,  min(capacity) ,  max(capacity) FROM cinema WHERE openning_year  >=  2011",
      "SELECT LOCATION ,  count(*) FROM cinema GROUP BY LOCATION",
      "SELECT LOCATION FROM cinema WHERE openning_year  >=  2010 GROUP BY LOCATION ORDER BY count(*) DESC LIMIT 1",
      "SELECT LOCATION FROM cinema WHERE capacity  >  300 GROUP BY LOCATION HAVING count(*)  >=  2",
      "SELECT LOCATION FROM cinema WHERE capacity  >  300 GROUP BY LOCATION HAVING count(*)  >=  2",
      "SELECT LOCATION FROM cinema WHERE capacity  >  300 GROUP BY LOCATION HAVING count(*)  >  1",
      "SELECT LOCATION FROM cinema WHERE capacity  >  300 GROUP BY LOCATION HAVING count(*)  >  1"
    ]
  },
  {
    "database": "cinema",
    "table": "schedule",
    "questions": [
      "What is total number of show times per dat for each cinema?",
      "What are the title and maximum price of each film?",
      "Give me the title and highest price for each film.",
      "Show cinema name, film title, date, and price for each record in schedule.",
      "Show director with the largest number of show times in total."
    ],
    "col_names": [
      "Cinema_ID",
      "Film_ID",
      "Date",
      "Show_times_per_day",
      "Price"
    ],
    "standard_answer": [
      "SELECT T2.name ,  sum(T1.show_times_per_day) FROM schedule AS T1 JOIN cinema AS T2 ON T1.cinema_id  =  T2.cinema_id GROUP BY T1.cinema_id",
      "SELECT T2.title ,  max(T1.price) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id GROUP BY T1.film_id",
      "SELECT T2.title ,  max(T1.price) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id GROUP BY T1.film_id",
      "SELECT T3.name ,  T2.title ,  T1.date ,  T1.price FROM schedule AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id JOIN cinema AS T3 ON T1.cinema_id  =  T3.cinema_id",
      "SELECT T2.directed_by FROM schedule AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id GROUP BY T2.directed_by ORDER BY sum(T1.show_times_per_day) DESC LIMIT 1"
    ]
  },
  {
    "database": "decoration_competition",
    "table": "college",
    "questions": [
      "Show the leader names and locations of colleges.",
      "Show the names of members and names of colleges they go to.",
      "Show the names of members and the locations of colleges they go to in ascending alphabetical order of member names.",
      "Show the distinct leader names of colleges associated with members from country \"Canada\"."
    ],
    "col_names": [
      "College_ID",
      "Name",
      "Leader_Name",
      "College_Location"
    ],
    "standard_answer": [
      "SELECT Leader_Name ,  College_Location FROM college",
      "SELECT T2.Name ,  T1.Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID  =  T2.College_ID",
      "SELECT T2.Name ,  T1.College_Location FROM college AS T1 JOIN member AS T2 ON T1.College_ID  =  T2.College_ID ORDER BY T2.Name ASC",
      "SELECT DISTINCT T1.Leader_Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID  =  T2.College_ID WHERE T2.Country  =  \"Canada\""
    ]
  },
  {
    "database": "decoration_competition",
    "table": "member",
    "questions": [
      "How many members are there?",
      "List the names of members in ascending alphabetical order.",
      "What are the names and countries of members?",
      "Show the names of members whose country is \"United States\" or \"Canada\".",
      "Show the different countries and the number of members from each.",
      "Show the most common country across members.",
      "Which countries have more than two members?",
      "Show the names of members and the decoration themes they have.",
      "Show the names of members that have a rank in round higher than 3.",
      "Show the names of members in ascending order of their rank in rounds.",
      "List the names of members who did not participate in any round."
    ],
    "col_names": [
      "Member_ID",
      "Name",
      "Country",
      "College_ID"
    ],
    "standard_answer": [
      "SELECT count(*) FROM member",
      "SELECT Name FROM member ORDER BY Name ASC",
      "SELECT Name ,  Country FROM member",
      "SELECT Name FROM member WHERE Country  =  \"United States\" OR Country  =  \"Canada\"",
      "SELECT Country ,  COUNT(*) FROM member GROUP BY Country",
      "SELECT Country FROM member GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Country FROM member GROUP BY Country HAVING COUNT(*)  >  2",
      "SELECT T1.Name ,  T2.Decoration_Theme FROM member AS T1 JOIN round AS T2 ON T1.Member_ID  =  T2.Member_ID",
      "SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID  =  T2.Member_ID WHERE T2.Rank_in_Round  >  3",
      "SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID  =  T2.Member_ID ORDER BY Rank_in_Round ASC",
      "SELECT Name FROM member WHERE Member_ID NOT IN (SELECT Member_ID FROM round)"
    ]
  },
  {
    "database": "decoration_competition",
    "table": "round",
    "questions": [],
    "col_names": [
      "Round_ID",
      "Member_ID",
      "Decoration_Theme",
      "Rank_in_Round"
    ],
    "standard_answer": []
  },
  {
    "database": "phone_market",
    "table": "phone",
    "questions": [
      "How many phones are there?",
      "List the names of phones in ascending order of price.",
      "What are the memories and carriers of phones?",
      "List the distinct carriers of phones with memories bigger than 32.",
      "Show the names of phones with carrier either \"Sprint\" or \"TMobile\".",
      "What is the carrier of the most expensive phone?",
      "Show different carriers of phones together with the number of phones with each carrier.",
      "Show the most frequently used carrier of the phones.",
      "Show the carriers that have both phones with memory smaller than 32 and phones with memory bigger than 64.",
      "List the names of phones that are not on any market."
    ],
    "col_names": [
      "Name",
      "Phone_ID",
      "Memory_in_G",
      "Carrier",
      "Price"
    ],
    "standard_answer": [
      "SELECT count(*) FROM phone",
      "SELECT Name FROM phone ORDER BY Price ASC",
      "SELECT Memory_in_G ,  Carrier FROM phone",
      "SELECT DISTINCT Carrier FROM phone WHERE Memory_in_G  >  32",
      "SELECT Name FROM phone WHERE Carrier  =  \"Sprint\" OR Carrier  =  \"TMobile\"",
      "SELECT Carrier FROM phone ORDER BY Price DESC LIMIT 1",
      "SELECT Carrier ,  COUNT(*) FROM phone GROUP BY Carrier",
      "SELECT Carrier FROM phone GROUP BY Carrier ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Carrier FROM phone WHERE Memory_in_G  <  32 INTERSECT SELECT Carrier FROM phone WHERE Memory_in_G  >  64",
      "SELECT Name FROM phone WHERE Phone_id NOT IN (SELECT Phone_ID FROM phone_market)"
    ]
  },
  {
    "database": "phone_market",
    "table": "market",
    "questions": [],
    "col_names": [
      "Market_ID",
      "District",
      "Num_of_employees",
      "Num_of_shops",
      "Ranking"
    ],
    "standard_answer": []
  },
  {
    "database": "phone_market",
    "table": "phone_market",
    "questions": [
      "Show the names of phones and the districts of markets they are on.",
      "Show the names of phones and the districts of markets they are on, in ascending order of the ranking of the market.",
      "Show the names of phones that are on market with number of shops greater than 50.",
      "For each phone, show its names and total number of stocks.",
      "Show the names of phones that have total number of stocks bigger than 2000, in descending order of the total number of stocks."
    ],
    "col_names": [
      "Market_ID",
      "Phone_ID",
      "Num_of_stock"
    ],
    "standard_answer": [
      "SELECT T3.Name ,  T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID  =  T3.Phone_ID",
      "SELECT T3.Name ,  T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID  =  T3.Phone_ID ORDER BY T2.Ranking",
      "SELECT T3.Name FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID  =  T3.Phone_ID WHERE T2.Num_of_shops  >  50",
      "SELECT T2.Name ,  sum(T1.Num_of_stock) FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID  =  T2.Phone_ID GROUP BY T2.Name",
      "SELECT T2.Name FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID  =  T2.Phone_ID GROUP BY T2.Name HAVING sum(T1.Num_of_stock)  >=  2000 ORDER BY sum(T1.Num_of_stock) DESC"
    ]
  },
  {
    "database": "store_product",
    "table": "product",
    "questions": [
      "Find the list of page size which have more than 3 product listed",
      "What is the maximum page size for everything that has more than 3 products listed?",
      "What is the average pages per minute color?",
      "What is the average number of pages per minute color?",
      "What products are available at store named \"Miramichi\"?",
      "What products are sold at the store named Miramichi?",
      "Find products with max page size as \"A4\" and pages per minute color smaller than 5.",
      "What are the products with the maximum page size A4 that also have a pages per minute color smaller than 5?",
      "Find products with max page size as \"A4\" or pages per minute color smaller than 5.",
      "What are the products with the maximum page size eqal to A4 or a pages per minute color less than 5?",
      "Find all the product whose name contains the word \"Scanner\".",
      "What are all of the products whose name includes the substring \"Scanner\"?",
      "Find the most prominent max page size among all the products.",
      "What is the most common maximum page size?",
      "Find the name of the products that are not using the most frequently-used max page size.",
      "What are the names of all products that are not the most frequently-used maximum page size?"
    ],
    "col_names": [
      "product_id",
      "product",
      "dimensions",
      "dpi",
      "pages_per_minute_color",
      "max_page_size",
      "interface"
    ],
    "standard_answer": [
      "SELECT max_page_size FROM product GROUP BY max_page_size HAVING count(*)  >  3",
      "SELECT max_page_size FROM product GROUP BY max_page_size HAVING count(*)  >  3",
      "SELECT avg(pages_per_minute_color) FROM product",
      "SELECT avg(pages_per_minute_color) FROM product",
      "SELECT t1.product FROM product AS t1 JOIN store_product AS t2 ON t1.product_id  =  t2.product_id JOIN store AS t3 ON t2.store_id  =  t3.store_id WHERE t3.store_name  =  \"Miramichi\"",
      "SELECT t1.product FROM product AS t1 JOIN store_product AS t2 ON t1.product_id  =  t2.product_id JOIN store AS t3 ON t2.store_id  =  t3.store_id WHERE t3.store_name  =  \"Miramichi\"",
      "SELECT product FROM product WHERE max_page_size  =  \"A4\" AND pages_per_minute_color  <  5",
      "SELECT product FROM product WHERE max_page_size  =  \"A4\" AND pages_per_minute_color  <  5",
      "SELECT product FROM product WHERE max_page_size  =  \"A4\" OR pages_per_minute_color  <  5",
      "SELECT product FROM product WHERE max_page_size  =  \"A4\" OR pages_per_minute_color  <  5",
      "SELECT product FROM product WHERE product LIKE \"%Scanner%\"",
      "SELECT product FROM product WHERE product LIKE \"%Scanner%\"",
      "SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1",
      "SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1",
      "SELECT product FROM product WHERE product != (SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1)",
      "SELECT product FROM product WHERE product != (SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1)"
    ]
  },
  {
    "database": "store_product",
    "table": "store",
    "questions": [
      "Find all types of store and number of them.",
      "For each type of store, how many of them are there?",
      "Find the names of all stores in Khanewal District.",
      "What are the names of all the stores located in Khanewal District?",
      "Find all the stores in the district with the most population.",
      "What are the names of all the stores in the largest district by population?",
      "Which city is the headquarter of the store named \"Blackville\" in?",
      "What city is the headquarter of the store Blackville?",
      "Find the number of stores in each city.",
      "How many stores are headquarted in each city?",
      "Find the city with the most number of stores.",
      "What is the city with the most number of flagship stores?",
      "Find the names of districts where have both city mall and village store type stores.",
      "What are the names of the districts that have both mall and village store style shops?"
    ],
    "col_names": [
      "Store_ID",
      "Store_Name",
      "Type",
      "Area_size",
      "Number_of_product_category",
      "Ranking"
    ],
    "standard_answer": [
      "SELECT TYPE ,  count(*) FROM store GROUP BY TYPE",
      "SELECT TYPE ,  count(*) FROM store GROUP BY TYPE",
      "SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id WHERE t3.district_name  =  \"Khanewal District\"",
      "SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id WHERE t3.district_name  =  \"Khanewal District\"",
      "SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id WHERE district_id  =  (SELECT district_id FROM district ORDER BY city_population DESC LIMIT 1)",
      "SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id WHERE district_id  =  (SELECT district_id FROM district ORDER BY city_population DESC LIMIT 1)",
      "SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id WHERE t1.store_name  =  \"Blackville\"",
      "SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id WHERE t1.store_name  =  \"Blackville\"",
      "SELECT t3.headquartered_city ,  count(*) FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id GROUP BY t3.headquartered_city",
      "SELECT t3.headquartered_city ,  count(*) FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id GROUP BY t3.headquartered_city",
      "SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id GROUP BY t3.headquartered_city ORDER BY count(*) DESC LIMIT 1",
      "SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id GROUP BY t3.headquartered_city ORDER BY count(*) DESC LIMIT 1",
      "SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id WHERE t1.Type  =  \"City Mall\" INTERSECT SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id WHERE t1.Type  =  \"Village Store\"",
      "SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id WHERE t1.Type  =  \"City Mall\" INTERSECT SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id WHERE t1.Type  =  \"Village Store\""
    ]
  },
  {
    "database": "store_product",
    "table": "district",
    "questions": [
      "Find all the distinct district names ordered by city area in descending.",
      "What are the different district names in order of descending city area?",
      "Find the name and population of district with population between 200000 and 2000000",
      "What are the district names and city populations for all districts that between 200,000 and 2,000,000 residents?",
      "Find the name all districts with city area greater than 10 or population larger than 100000",
      "What are the names of all districts with a city area greater than 10 or have more than 100000 people living there?",
      "Which district has the largest population?",
      "What is the name of the district with the most residents?",
      "Which district has the least area?",
      "What is the name of the district with the smallest area?",
      "Find the total population of the top 3 districts with the largest area.",
      "What is the total number of residents for the districts with the 3 largest areas?",
      "Find the total population of the districts where the area is bigger than the average city area.",
      "What is the total population for all the districts that have an area larger tahn the average city area?"
    ],
    "col_names": [
      "District_ID",
      "District_name",
      "Headquartered_City",
      "City_Population",
      "City_Area"
    ],
    "standard_answer": [
      "SELECT DISTINCT District_name FROM district ORDER BY city_area DESC",
      "SELECT DISTINCT District_name FROM district ORDER BY city_area DESC",
      "SELECT District_name ,  City_Population FROM district WHERE City_Population BETWEEN 200000 AND 2000000",
      "SELECT District_name ,  City_Population FROM district WHERE City_Population BETWEEN 200000 AND 2000000",
      "SELECT district_name FROM district WHERE city_area  >  10 OR City_Population  >  100000",
      "SELECT district_name FROM district WHERE city_area  >  10 OR City_Population  >  100000",
      "SELECT district_name FROM district ORDER BY city_population DESC LIMIT 1",
      "SELECT district_name FROM district ORDER BY city_population DESC LIMIT 1",
      "SELECT district_name FROM district ORDER BY city_area ASC LIMIT 1",
      "SELECT district_name FROM district ORDER BY city_area ASC LIMIT 1",
      "SELECT sum(city_population) FROM district ORDER BY city_area DESC LIMIT 3",
      "SELECT sum(city_population) FROM district ORDER BY city_area DESC LIMIT 3",
      "SELECT sum(city_population) FROM district WHERE city_area  >  (SELECT avg(city_area) FROM district)",
      "SELECT sum(city_population) FROM district WHERE city_area  >  (SELECT avg(city_area) FROM district)"
    ]
  },
  {
    "database": "store_product",
    "table": "store_product",
    "questions": [],
    "col_names": [
      "Store_ID",
      "Product_ID"
    ],
    "standard_answer": []
  },
  {
    "database": "store_product",
    "table": "store_district",
    "questions": [],
    "col_names": [
      "Store_ID",
      "District_ID"
    ],
    "standard_answer": []
  },
  {
    "database": "assets_maintenance",
    "table": "Third_Party_Companies",
    "questions": [
      "How many assets does each third party company supply? List the count and the company id.",
      "Which third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id and name.",
      "Which company started the earliest the maintenance contract? Show the company name.",
      "What is the description of the type of the company who concluded its contracts most recently?"
    ],
    "col_names": [
      "company_id",
      "company_type",
      "company_name",
      "company_address",
      "other_company_details"
    ],
    "standard_answer": [
      "SELECT count(*) ,  T1.company_id FROM Third_Party_Companies AS T1 JOIN Assets AS T2 ON T1.company_id  =  T2.supplier_company_id GROUP BY T1.company_id",
      "SELECT T1.company_id ,  T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Engineers AS T2 ON T1.company_id  =  T2.company_id GROUP BY T1.company_id HAVING count(*)  >=  2 UNION SELECT T3.company_id ,  T3.company_name FROM Third_Party_Companies AS T3 JOIN Maintenance_Contracts AS T4 ON T3.company_id  =  T4.maintenance_contract_company_id GROUP BY T3.company_id HAVING count(*)  >=  2",
      "SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id  =  T2.maintenance_contract_company_id ORDER BY T2.contract_start_date ASC LIMIT 1",
      "SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id  =  T2.maintenance_contract_company_id JOIN Ref_Company_Types AS T3 ON T1.company_type_code  =  T3.company_type_code ORDER BY T2.contract_end_date DESC LIMIT 1"
    ]
  },
  {
    "database": "assets_maintenance",
    "table": "Maintenance_Contracts",
    "questions": [
      "How many assets does each maintenance contract contain? List the number and the contract id."
    ],
    "col_names": [
      "maintenance_contract_id",
      "maintenance_contract_company_id",
      "contract_start_date",
      "contract_end_date",
      "other_contract_details"
    ],
    "standard_answer": [
      "SELECT count(*) ,  T1.maintenance_contract_id FROM Maintenance_Contracts AS T1 JOIN Assets AS T2 ON T1.maintenance_contract_id  =  T2.maintenance_contract_id GROUP BY T1.maintenance_contract_id"
    ]
  },
  {
    "database": "assets_maintenance",
    "table": "Parts",
    "questions": [
      "Which parts have more than 2 faults? Show the part name and id.",
      "How many assets can each parts be used in? List the part name and the number.",
      "Which part fault requires the most number of skills to fix? List part id and name.",
      "Which kind of part has the least number of faults? List the part name.",
      "Which part has the least chargeable amount? List the part id and amount."
    ],
    "col_names": [
      "part_id",
      "part_name",
      "chargeable_yn",
      "chargeable_amount",
      "other_part_details"
    ],
    "standard_answer": [
      "SELECT T1.part_name ,  T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id  =  T2.part_id GROUP BY T1.part_id HAVING count(*)  >  2",
      "SELECT T1.part_name ,  count(*) FROM Parts AS T1 JOIN Asset_Parts AS T2 ON T1.part_id  =  T2.part_id GROUP BY T1.part_name",
      "SELECT T1.part_id ,  T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id  =  T2.part_id JOIN Skills_Required_To_Fix AS T3 ON T2.part_fault_id  =  T3.part_fault_id GROUP BY T1.part_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id  =  T2.part_id GROUP BY T1.part_name ORDER BY count(*) ASC LIMIT 1",
      "SELECT part_id ,  chargeable_amount FROM Parts ORDER BY chargeable_amount ASC LIMIT 1"
    ]
  },
  {
    "database": "assets_maintenance",
    "table": "Skills",
    "questions": [
      "Which skill is used in fixing the most number of faults? List the skill id and description."
    ],
    "col_names": [
      "skill_id",
      "skill_code",
      "skill_description"
    ],
    "standard_answer": [
      "SELECT T1.skill_id ,  T1.skill_description FROM Skills AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.skill_id  =  T2.skill_id GROUP BY T1.skill_id ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "assets_maintenance",
    "table": "Staff",
    "questions": [
      "What is the name and id of the staff who recorded the fault log but has not contacted any visiting engineers?",
      "Which staff have contacted which engineers? List the staff name and the engineer first name and last name.",
      "How many engineers did each staff contact? List both the contact staff name and number of engineers contacted."
    ],
    "col_names": [
      "staff_id",
      "staff_name",
      "gender",
      "other_staff_details"
    ],
    "standard_answer": [
      "SELECT T1.staff_name ,  T1.staff_id FROM Staff AS T1 JOIN Fault_Log AS T2 ON T1.staff_id  =  T2.recorded_by_staff_id EXCEPT SELECT T3.staff_name ,  T3.staff_id FROM Staff AS T3 JOIN Engineer_Visits AS T4 ON T3.staff_id  =  T4.contact_staff_id",
      "SELECT T1.staff_name ,  T3.first_name ,  T3.last_name FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id  =  T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id  =  T3.engineer_id",
      "SELECT T1.staff_name ,  count(*) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id  =  T2.contact_staff_id GROUP BY T1.staff_name"
    ]
  },
  {
    "database": "assets_maintenance",
    "table": "Assets",
    "questions": [
      "Which assets have 2 parts and have less than 2 fault logs? List the asset id and detail.",
      "List the asset id, details, make and model for every asset.",
      "When was the first asset acquired?",
      "What are all the distinct asset models?",
      "List the all the assets make, model, details by the disposed date ascendingly.",
      "Which assets did not incur any fault log? List the asset model."
    ],
    "col_names": [
      "asset_id",
      "maintenance_contract_id",
      "supplier_company_id",
      "asset_details",
      "asset_make",
      "asset_model",
      "asset_acquired_date",
      "asset_disposed_date",
      "other_asset_details"
    ],
    "standard_answer": [
      "SELECT T1.asset_id ,  T1.asset_details FROM Assets AS T1 JOIN Asset_Parts AS T2 ON T1.asset_id  =  T2.asset_id GROUP BY T1.asset_id HAVING count(*)  =  2 INTERSECT SELECT T1.asset_id ,  T1.asset_details FROM Assets AS T1 JOIN Fault_Log AS T2 ON T1.asset_id  =  T2.asset_id GROUP BY T1.asset_id HAVING count(*)  <  2",
      "SELECT asset_id ,  asset_details ,  asset_make ,  asset_model FROM Assets",
      "SELECT asset_acquired_date FROM Assets ORDER BY asset_acquired_date ASC LIMIT 1",
      "SELECT DISTINCT asset_model FROM Assets",
      "SELECT asset_make ,  asset_model ,  asset_details FROM Assets ORDER BY asset_disposed_date ASC",
      "SELECT asset_model FROM Assets WHERE asset_id NOT IN (SELECT asset_id FROM Fault_Log)"
    ]
  },
  {
    "database": "assets_maintenance",
    "table": "Asset_Parts",
    "questions": [],
    "col_names": [
      "asset_id",
      "part_id"
    ],
    "standard_answer": []
  },
  {
    "database": "assets_maintenance",
    "table": "Maintenance_Engineers",
    "questions": [
      "Which engineer has visited the most times? Show the engineer id, first name and last name.",
      "List all every engineer's first name, last name, details and coresponding skill description.",
      "What are all the distinct last names of all the engineers?",
      "Which engineers have never visited to maintain the assets? List the engineer first name and last name.",
      "Among those engineers who have visited, which engineer makes the least number of visits? List the engineer id, first name and last name."
    ],
    "col_names": [
      "engineer_id",
      "company_id",
      "first_name",
      "last_name",
      "other_details"
    ],
    "standard_answer": [
      "SELECT T1.engineer_id ,  T1.first_name ,  T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 GROUP BY T1.engineer_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.first_name ,  T1.last_name ,  T1.other_details ,  T3.skill_description FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id  =  T2.engineer_id JOIN Skills AS T3 ON T2.skill_id  =  T3.skill_id",
      "SELECT DISTINCT last_name FROM Maintenance_Engineers",
      "SELECT first_name ,  last_name FROM Maintenance_Engineers WHERE engineer_id NOT IN (SELECT engineer_id FROM Engineer_Visits)",
      "SELECT T1.engineer_id ,  T1.first_name ,  T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 ON T1.engineer_id  =  T2.engineer_id GROUP BY T1.engineer_id ORDER BY count(*) ASC LIMIT 1"
    ]
  },
  {
    "database": "assets_maintenance",
    "table": "Engineer_Skills",
    "questions": [],
    "col_names": [
      "engineer_id",
      "skill_id"
    ],
    "standard_answer": []
  },
  {
    "database": "assets_maintenance",
    "table": "Fault_Log",
    "questions": [
      "What are all the fault descriptions and the fault status of all the faults recoreded in the logs?",
      "How many engineer visits are required at most for a single fault log? List the number and the log entry id.",
      "Which fault log included the most number of faulty parts? List the fault log id, description and record time."
    ],
    "col_names": [
      "fault_log_entry_id",
      "asset_id",
      "recorded_by_staff_id",
      "fault_log_entry_datetime",
      "fault_description",
      "other_fault_details"
    ],
    "standard_answer": [
      "SELECT T1.fault_description ,  T2.fault_status FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id  =  T2.fault_log_entry_id",
      "SELECT count(*) ,  T1.fault_log_entry_id FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id  =  T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.fault_log_entry_id ,  T1.fault_description ,  T1.fault_log_entry_datetime FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id  =  T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "assets_maintenance",
    "table": "Engineer_Visits",
    "questions": [],
    "col_names": [
      "engineer_visit_id",
      "contact_staff_id",
      "engineer_id",
      "fault_log_entry_id",
      "fault_status",
      "visit_start_datetime",
      "visit_end_datetime",
      "other_visit_details"
    ],
    "standard_answer": []
  },
  {
    "database": "assets_maintenance",
    "table": "Part_Faults",
    "questions": [
      "For all the faults of different parts, what are all the decriptions of the skills required to fix them? List the name of the faults and the skill description."
    ],
    "col_names": [
      "part_fault_id",
      "part_id",
      "fault_short_name",
      "fault_description",
      "other_fault_details"
    ],
    "standard_answer": [
      "SELECT T1.fault_short_name ,  T3.skill_description FROM Part_Faults AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.part_fault_id  =  T2.part_fault_id JOIN Skills AS T3 ON T2.skill_id  =  T3.skill_id"
    ]
  },
  {
    "database": "assets_maintenance",
    "table": "Fault_Log_Parts",
    "questions": [
      "How many fault status codes are recorded in the fault log parts table?"
    ],
    "col_names": [
      "fault_log_entry_id",
      "part_fault_id",
      "fault_status"
    ],
    "standard_answer": [
      "SELECT DISTINCT fault_status FROM Fault_Log_Parts"
    ]
  },
  {
    "database": "assets_maintenance",
    "table": "Skills_Required_To_Fix",
    "questions": [],
    "col_names": [
      "part_fault_id",
      "skill_id"
    ],
    "standard_answer": []
  },
  {
    "database": "student_assessment",
    "table": "Addresses",
    "questions": [],
    "col_names": [
      "address_id",
      "line_1",
      "line_2",
      "city",
      "zip_postcode",
      "state_province_county",
      "country"
    ],
    "standard_answer": []
  },
  {
    "database": "student_assessment",
    "table": "People",
    "questions": [],
    "col_names": [
      "person_id",
      "first_name",
      "middle_name",
      "last_name",
      "cell_mobile_number",
      "email_address",
      "login_name",
      "password"
    ],
    "standard_answer": []
  },
  {
    "database": "student_assessment",
    "table": "Students",
    "questions": [],
    "col_names": [
      "student_id",
      "student_details"
    ],
    "standard_answer": []
  },
  {
    "database": "student_assessment",
    "table": "Courses",
    "questions": [],
    "col_names": [
      "course_id",
      "course_name",
      "course_description",
      "other_details"
    ],
    "standard_answer": []
  },
  {
    "database": "student_assessment",
    "table": "People_Addresses",
    "questions": [],
    "col_names": [
      "person_address_id",
      "person_id",
      "address_id",
      "date_from",
      "date_to"
    ],
    "standard_answer": []
  },
  {
    "database": "student_assessment",
    "table": "Student_Course_Registrations",
    "questions": [],
    "col_names": [
      "student_id",
      "course_id",
      "registration_date"
    ],
    "standard_answer": []
  },
  {
    "database": "student_assessment",
    "table": "Student_Course_Attendance",
    "questions": [],
    "col_names": [
      "student_id",
      "course_id",
      "date_of_attendance"
    ],
    "standard_answer": []
  },
  {
    "database": "student_assessment",
    "table": "Candidates",
    "questions": [],
    "col_names": [
      "candidate_id",
      "candidate_details"
    ],
    "standard_answer": []
  },
  {
    "database": "student_assessment",
    "table": "Candidate_Assessments",
    "questions": [],
    "col_names": [
      "candidate_id",
      "qualification",
      "assessment_date",
      "asessment_outcome_code"
    ],
    "standard_answer": []
  },
  {
    "database": "dog_kennels",
    "table": "Breeds",
    "questions": [],
    "col_names": [
      "breed_code",
      "breed_name"
    ],
    "standard_answer": []
  },
  {
    "database": "dog_kennels",
    "table": "Charges",
    "questions": [],
    "col_names": [
      "charge_id",
      "charge_type",
      "charge_amount"
    ],
    "standard_answer": []
  },
  {
    "database": "dog_kennels",
    "table": "Sizes",
    "questions": [],
    "col_names": [
      "size_code",
      "size_description"
    ],
    "standard_answer": []
  },
  {
    "database": "dog_kennels",
    "table": "Treatment_Types",
    "questions": [],
    "col_names": [
      "treatment_type_code",
      "treatment_type_description"
    ],
    "standard_answer": []
  },
  {
    "database": "dog_kennels",
    "table": "Owners",
    "questions": [],
    "col_names": [
      "owner_id",
      "first_name",
      "last_name",
      "street",
      "city",
      "state",
      "zip_code",
      "email_address",
      "home_phone",
      "cell_number"
    ],
    "standard_answer": []
  },
  {
    "database": "dog_kennels",
    "table": "Dogs",
    "questions": [],
    "col_names": [
      "dog_id",
      "owner_id",
      "abandoned_yn",
      "breed_code",
      "size_code",
      "name",
      "age",
      "date_of_birth",
      "gender",
      "weight",
      "date_arrived",
      "date_adopted",
      "date_departed"
    ],
    "standard_answer": []
  },
  {
    "database": "dog_kennels",
    "table": "Professionals",
    "questions": [],
    "col_names": [
      "professional_id",
      "role_code",
      "first_name",
      "street",
      "city",
      "state",
      "zip_code",
      "last_name",
      "email_address",
      "home_phone",
      "cell_number"
    ],
    "standard_answer": []
  },
  {
    "database": "dog_kennels",
    "table": "Treatments",
    "questions": [],
    "col_names": [
      "treatment_id",
      "dog_id",
      "professional_id",
      "treatment_type_code",
      "date_of_treatment",
      "cost_of_treatment"
    ],
    "standard_answer": []
  },
  {
    "database": "music_1",
    "table": "genre",
    "questions": [
      "List the names of all genres in alphabetical oder, together with its ratings.",
      "What are the names of all genres in alphabetical order, combined with its ratings?"
    ],
    "col_names": [
      "g_name",
      "rating",
      "most_popular_in"
    ],
    "standard_answer": [
      "SELECT g_name ,  rating FROM genre ORDER BY g_name",
      "SELECT g_name ,  rating FROM genre ORDER BY g_name"
    ]
  },
  {
    "database": "music_1",
    "table": "artist",
    "questions": [
      "List the name and country of origin for all singers who have produced songs with rating above 9.",
      "What are the different names and countries of origins for all artists whose song ratings are above 9?",
      "What are the names and countries of origin for the artists who produced the top three highly rated songs.",
      "What are the names of the singers who sang the top 3 most highly rated songs and what countries do they hail from?",
      "How many artists are from Bangladesh?",
      "How many Bangladeshi artists are listed?",
      "What is the average rating of songs produced by female artists?",
      "How many songs, on average, are sung by a female artist?",
      "Find the names of the artists who are from UK and have produced English songs.",
      "What are the names of the artists that are from the UK and sang songs in English?",
      "What is the country of origin of the artist who is female and produced a song in Bangla?",
      "What countries are the female artists who sung in the language Bangla from?",
      "What is the number of artists for each gender?",
      "How many artists are male and how many are female?",
      "Return the gender and name of artist who produced the song with the lowest resolution.",
      "What is the gender and name of the artist who sang the song with the smallest resolution?",
      "What is the name and country of origin of the artist who released a song that has \"love\" in its title?",
      "What are the names of the artists who released a song that has the word love in its title, and where are the artists from?",
      "List the name and gender for all artists who released songs in March.",
      "What are the names and genders of all artists who released songs in the month of March?",
      "What are the names of artists who are Male and are from UK?",
      "What are the names of all male British artists?",
      "Return the names of singers who are from UK and released an English song.",
      "What are the names of all singers that are from the UK and released a song in English?",
      "Find the names and number of works of all artists who have at least one English songs.",
      "What are the names and number of works for all artists who have sung at least one song in English?",
      "Find the name and country of origin for all artists who have release at least one song of resolution above 900.",
      "What is the name and country of origin for each artist who has released a song with a resolution higher than 900?",
      "Find the names and number of works of the three artists who have produced the most songs.",
      "What are the names of the three artists who have produced the most songs, and how many works did they produce?",
      "Find the country of origin for the artist who made the least number of songs?",
      "What country is the artist who made the fewest songs from?",
      "Find the top 3 artists who have the largest number of songs works whose language is Bangla.",
      "What are the top 3 artists with the largest number of songs in the language Bangla?",
      "Find the names of the artists who are from Bangladesh and have never received rating higher than 7.",
      "What are the names of the different artists from Bangladesh who never received a rating higher than a 7?"
    ],
    "col_names": [
      "artist_name",
      "country",
      "gender",
      "preferred_genre"
    ],
    "standard_answer": [
      "SELECT DISTINCT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.rating  >  9",
      "SELECT DISTINCT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.rating  >  9",
      "SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name ORDER BY T2.rating DESC LIMIT 3",
      "SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name ORDER BY T2.rating DESC LIMIT 3",
      "SELECT count(*) FROM artist WHERE country  =  \"Bangladesh\"",
      "SELECT count(*) FROM artist WHERE country  =  \"Bangladesh\"",
      "SELECT avg(T2.rating) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T1.gender  =  \"Female\"",
      "SELECT avg(T2.rating) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T1.gender  =  \"Female\"",
      "SELECT artist_name FROM artist WHERE country  =  \"UK\" INTERSECT SELECT artist_name FROM song WHERE languages  =  \"english\"",
      "SELECT artist_name FROM artist WHERE country  =  \"UK\" INTERSECT SELECT artist_name FROM song WHERE languages  =  \"english\"",
      "SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T1.gender  =  \"Female\" AND T2.languages  =  \"bangla\"",
      "SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T1.gender  =  \"Female\" AND T2.languages  =  \"bangla\"",
      "SELECT count(*) ,  gender FROM artist GROUP BY gender",
      "SELECT count(*) ,  gender FROM artist GROUP BY gender",
      "SELECT T1.gender ,  T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name ORDER BY T2.resolution LIMIT 1",
      "SELECT T1.gender ,  T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name ORDER BY T2.resolution LIMIT 1",
      "SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.song_name LIKE \"%love%\"",
      "SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.song_name LIKE \"%love%\"",
      "SELECT T1.artist_name ,  T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.releasedate LIKE \"%Mar%\"",
      "SELECT T1.artist_name ,  T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.releasedate LIKE \"%Mar%\"",
      "SELECT artist_name FROM artist WHERE country  =  \"UK\" AND gender  =  \"Male\"",
      "SELECT artist_name FROM artist WHERE country  =  \"UK\" AND gender  =  \"Male\"",
      "SELECT artist_name FROM artist WHERE country  =  \"UK\" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  \"english\"",
      "SELECT artist_name FROM artist WHERE country  =  \"UK\" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  \"english\"",
      "SELECT T1.artist_name ,  count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  \"english\" GROUP BY T2.artist_name HAVING count(*)  >=  1",
      "SELECT T1.artist_name ,  count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  \"english\" GROUP BY T2.artist_name HAVING count(*)  >=  1",
      "SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.resolution  >  900 GROUP BY T2.artist_name HAVING count(*)  >=  1",
      "SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.resolution  >  900 GROUP BY T2.artist_name HAVING count(*)  >=  1",
      "SELECT T1.artist_name ,  count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3",
      "SELECT T1.artist_name ,  count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3",
      "SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) LIMIT 1",
      "SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) LIMIT 1",
      "SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  \"bangla\" GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3",
      "SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  \"bangla\" GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3",
      "SELECT DISTINCT artist_name FROM artist WHERE country  =  \"Bangladesh\" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating  >  7",
      "SELECT DISTINCT artist_name FROM artist WHERE country  =  \"Bangladesh\" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating  >  7"
    ]
  },
  {
    "database": "music_1",
    "table": "files",
    "questions": [
      "What is the id of the longest song?",
      "Find the id of the song that lasts the longest.",
      "What are the id of songs whose format is mp3.",
      "What are the id of all the files in mp3 format?",
      "List the file size and format for all songs that have resolution lower than 800.",
      "What are the file sizes and formats for all songs with a resolution lower than 800?",
      "How many songs have 4 minute duration?",
      "What is the count of the songs that last approximately 4 minutes?",
      "What is the most popular file format?",
      "Find the file format that is used by the most files.",
      "Find the id of songs that are available in mp4 format and have resolution lower than 1000.",
      "What is the id of the files that are available in the format of mp4 and a resolution smaller than 1000?",
      "What is the average duration of songs that have mp3 format and resolution below 800?",
      "What is the average song duration for the songs that are in mp3 format and whose resolution below 800?",
      "For each file format, return the number of artists who released songs in that format.",
      "How many songs were released for each format?",
      "What are the ids of songs that are available in either mp4 format or have resolution above 720?",
      "What are the ids of all songs that are available on mp4 or have a higher resolution than 720?",
      "List the names of all songs that have 4 minute duration or are in English.",
      "What are the names of all songs that are approximately 4 minutes long or are in English?",
      "Return the names of songs for which format is mp3 and resolution is below 1000.",
      "What are the names of all songs that are in mp3 format and have a resolution lower than 1000?",
      "What are the maximum and minimum resolution of songs whose duration is 3 minutes?",
      "What is the maximum and minimum resolution of all songs that are approximately 3 minutes long?",
      "What are the maximum duration and resolution of songs grouped and ordered by languages?",
      "What are the maximum duration and resolution of all songs, for each language, ordered alphabetically by language?",
      "What are the shortest duration and lowest rating of songs grouped by genre and ordered by genre?",
      "What is the shortest and most poorly rated song for each genre, ordered alphabetically by genre?",
      "List the duration, file size and format of songs whose genre is pop, ordered by title?",
      "What is the duration, file size, and song format for every pop song, ordered by title alphabetically?"
    ],
    "col_names": [
      "f_id",
      "artist_name",
      "file_size",
      "duration",
      "formats"
    ],
    "standard_answer": [
      "SELECT f_id FROM files ORDER BY duration DESC LIMIT 1",
      "SELECT f_id FROM files ORDER BY duration DESC LIMIT 1",
      "SELECT f_id FROM files WHERE formats  =  \"mp3\"",
      "SELECT f_id FROM files WHERE formats  =  \"mp3\"",
      "SELECT DISTINCT T1.file_size ,  T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T2.resolution  <  800",
      "SELECT DISTINCT T1.file_size ,  T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T2.resolution  <  800",
      "SELECT count(*) FROM files WHERE duration LIKE \"4:%\"",
      "SELECT count(*) FROM files WHERE duration LIKE \"4:%\"",
      "SELECT formats FROM files GROUP BY formats ORDER BY COUNT (*) DESC LIMIT 1",
      "SELECT formats FROM files GROUP BY formats ORDER BY COUNT (*) DESC LIMIT 1",
      "SELECT f_id FROM files WHERE formats  =  \"mp4\" INTERSECT SELECT f_id FROM song WHERE resolution  <  1000",
      "SELECT f_id FROM files WHERE formats  =  \"mp4\" INTERSECT SELECT f_id FROM song WHERE resolution  <  1000",
      "SELECT avg(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.formats  =  \"mp3\" AND T2.resolution   <  800",
      "SELECT avg(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.formats  =  \"mp3\" AND T2.resolution   <  800",
      "SELECT count(*) ,  formats FROM files GROUP BY formats",
      "SELECT count(*) ,  formats FROM files GROUP BY formats",
      "SELECT f_id FROM files WHERE formats  =  \"mp4\" UNION SELECT f_id FROM song WHERE resolution  >  720",
      "SELECT f_id FROM files WHERE formats  =  \"mp4\" UNION SELECT f_id FROM song WHERE resolution  >  720",
      "SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.duration LIKE \"4:%\" UNION SELECT song_name FROM song WHERE languages  =  \"english\"",
      "SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.duration LIKE \"4:%\" UNION SELECT song_name FROM song WHERE languages  =  \"english\"",
      "SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.formats  =  \"mp3\" INTERSECT SELECT song_name FROM song WHERE resolution  <  1000",
      "SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.formats  =  \"mp3\" INTERSECT SELECT song_name FROM song WHERE resolution  <  1000",
      "SELECT max(T2.resolution) ,  min(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.duration LIKE \"3:%\"",
      "SELECT max(T2.resolution) ,  min(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.duration LIKE \"3:%\"",
      "SELECT max(T1.duration) ,  max(T2.resolution) ,  T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id GROUP BY T2.languages ORDER BY T2.languages",
      "SELECT max(T1.duration) ,  max(T2.resolution) ,  T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id GROUP BY T2.languages ORDER BY T2.languages",
      "SELECT min(T1.duration) ,  min(T2.rating) ,  T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is",
      "SELECT min(T1.duration) ,  min(T2.rating) ,  T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is",
      "SELECT T1.duration ,  T1.file_size ,  T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T2.genre_is  =  \"pop\" ORDER BY T2.song_name",
      "SELECT T1.duration ,  T1.file_size ,  T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T2.genre_is  =  \"pop\" ORDER BY T2.song_name"
    ]
  },
  {
    "database": "music_1",
    "table": "song",
    "questions": [
      "What is the name of the song that was released in the most recent year?",
      "What is the name of the song that was released most recently?",
      "Find the names of all English songs.",
      "What are the names of all songs in English?",
      "What is the name of the artist who produced the shortest song?",
      "What are the names of the artists who sang the shortest song?",
      "What is the average rating of songs for each language?",
      "What is the average song rating for each language?",
      "Find the distinct names of all songs that have a higher resolution than some songs in English.",
      "What are the different names for all songs that have a higher resolution than English songs?",
      "What are the names of all songs that have a lower rating than some song of blues genre?",
      "What are the names of the songs that have a lower rating than at least one blues song?",
      "Give me a list of the names of all songs ordered by their resolution.",
      "What are the names of all songs that are ordered by their resolution numbers?",
      "What is the language used most often in the songs?",
      "What are the languages that are used most often in songs?",
      "What is the language that was used most often in songs with resolution above 500?",
      "What is the name of the artist, for each language, that has the most songs with a higher resolution than 500?",
      "Find the names of songs whose genre is modern or language is English.",
      "What are the names of the songs that are modern or sung in English?",
      "What are the average rating and resolution of songs that are in Bangla?",
      "What is the average rating and resolution of all bangla songs?",
      "What are the names of the songs whose rating is below the rating of all songs in English?",
      "What are the song names for every song whose rating is less than the minimum rating for English songs?",
      "What is ids of the songs whose resolution is higher than the resolution of any songs with rating lower than 8?",
      "What is the id of every song that has a resolution higher than that of a song with a rating below 8?",
      "What is ids of the songs whose resolution is higher than the average resolution of songs in modern genre?",
      "What are the ids of all songs that have higher resolution of the average resolution in the modern genre?",
      "List the id, genre and artist name of English songs ordered by rating.",
      "What is the id, genre, and name of the artist for every English song ordered by ascending rating?",
      "Find the names of the artists who have produced English songs but have never received rating higher than 8.",
      "What are the names of the different artists that have produced a song in English but have never receieved a rating higher than 8?"
    ],
    "col_names": [
      "song_name",
      "artist_name",
      "country",
      "f_id",
      "genre_is",
      "rating",
      "languages",
      "releasedate",
      "resolution"
    ],
    "standard_answer": [
      "SELECT song_name ,  releasedate FROM song ORDER BY releasedate DESC LIMIT 1",
      "SELECT song_name ,  releasedate FROM song ORDER BY releasedate DESC LIMIT 1",
      "SELECT song_name FROM song WHERE languages  =  \"english\"",
      "SELECT song_name FROM song WHERE languages  =  \"english\"",
      "SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id  =  T2.f_id ORDER BY T2.duration LIMIT 1",
      "SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id  =  T2.f_id ORDER BY T2.duration LIMIT 1",
      "SELECT avg(rating) ,  languages FROM song GROUP BY languages",
      "SELECT avg(rating) ,  languages FROM song GROUP BY languages",
      "SELECT DISTINCT song_name FROM song WHERE resolution  >  (SELECT min(resolution) FROM song WHERE languages  =  \"english\")",
      "SELECT DISTINCT song_name FROM song WHERE resolution  >  (SELECT min(resolution) FROM song WHERE languages  =  \"english\")",
      "SELECT song_name FROM song WHERE rating  <  (SELECT max(rating) FROM song WHERE genre_is  =  \"blues\")",
      "SELECT song_name FROM song WHERE rating  <  (SELECT max(rating) FROM song WHERE genre_is  =  \"blues\")",
      "SELECT song_name FROM song ORDER BY resolution",
      "SELECT song_name FROM song ORDER BY resolution",
      "SELECT languages FROM song GROUP BY languages ORDER BY count(*) DESC LIMIT 1",
      "SELECT languages FROM song GROUP BY languages ORDER BY count(*) DESC LIMIT 1",
      "SELECT artist_name FROM song WHERE resolution  >  500 GROUP BY languages ORDER BY count(*) DESC LIMIT 1",
      "SELECT artist_name FROM song WHERE resolution  >  500 GROUP BY languages ORDER BY count(*) DESC LIMIT 1",
      "SELECT song_name FROM song WHERE genre_is  =  \"modern\" OR languages  =  \"english\"",
      "SELECT song_name FROM song WHERE genre_is  =  \"modern\" OR languages  =  \"english\"",
      "SELECT avg(rating) ,  avg(resolution) FROM song WHERE languages  =  \"bangla\"",
      "SELECT avg(rating) ,  avg(resolution) FROM song WHERE languages  =  \"bangla\"",
      "SELECT song_name FROM song WHERE rating  <   (SELECT min(rating) FROM song WHERE languages  =  'english')",
      "SELECT song_name FROM song WHERE rating  <   (SELECT min(rating) FROM song WHERE languages  =  'english')",
      "SELECT f_id FROM song WHERE resolution  >  (SELECT max(resolution) FROM song WHERE rating  <  8)",
      "SELECT f_id FROM song WHERE resolution  >  (SELECT max(resolution) FROM song WHERE rating  <  8)",
      "SELECT f_id FROM song WHERE resolution  >  (SELECT avg(resolution) FROM song WHERE genre_is  =  \"modern\")",
      "SELECT f_id FROM song WHERE resolution  >  (SELECT avg(resolution) FROM song WHERE genre_is  =  \"modern\")",
      "SELECT f_id ,  genre_is ,  artist_name FROM song WHERE languages  =   \"english\" ORDER BY rating",
      "SELECT f_id ,  genre_is ,  artist_name FROM song WHERE languages  =   \"english\" ORDER BY rating",
      "SELECT DISTINCT artist_name FROM song WHERE languages  =  \"english\" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating  >  8",
      "SELECT DISTINCT artist_name FROM song WHERE languages  =  \"english\" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating  >  8"
    ]
  },
  {
    "database": "company_employee",
    "table": "people",
    "questions": [
      "List the names of people that are not employed by any company"
    ],
    "col_names": [
      "People_ID",
      "Age",
      "Name",
      "Nationality",
      "Graduation_College"
    ],
    "standard_answer": [
      "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM employment)"
    ]
  },
  {
    "database": "company_employee",
    "table": "company",
    "questions": [
      "How many companies are headquartered in the US?",
      "List the names of companies by ascending number of sales.",
      "What are the headquarters and industries of all companies?",
      "Show the names of companies in the banking or retailing industry?",
      "What is the maximum and minimum market value of companies?",
      "What is the headquarter of the company with the largest sales?",
      "Show the different headquarters and number of companies at each headquarter.",
      "Show the most common headquarter for companies.",
      "Show the headquarters that have at least two companies.",
      "Show the headquarters that have both companies in banking industry and companies in oil and gas industry.",
      "list the names of the companies with more than 200 sales in the descending order of sales and profits."
    ],
    "col_names": [
      "Company_ID",
      "Name",
      "Headquarters",
      "Industry",
      "Sales_in_Billion",
      "Profits_in_Billion",
      "Assets_in_Billion",
      "Market_Value_in_Billion"
    ],
    "standard_answer": [
      "SELECT count(*) FROM company WHERE Headquarters  =  'USA'",
      "SELECT Name FROM company ORDER BY Sales_in_Billion ASC",
      "SELECT Headquarters ,  Industry FROM company",
      "SELECT Name FROM company WHERE Industry  =  \"Banking\" OR Industry  =  \"Retailing\"",
      "SELECT max(Market_Value_in_Billion) ,  min(Market_Value_in_Billion) FROM company",
      "SELECT Headquarters FROM company ORDER BY Sales_in_Billion DESC LIMIT 1",
      "SELECT Headquarters ,  COUNT(*) FROM company GROUP BY Headquarters",
      "SELECT Headquarters FROM company GROUP BY Headquarters ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Headquarters FROM company GROUP BY Headquarters HAVING COUNT(*)  >=  2",
      "SELECT Headquarters FROM company WHERE Industry  =  \"Banking\" INTERSECT SELECT Headquarters FROM company WHERE Industry  =  \"Oil and gas\"",
      "SELECT name FROM company WHERE Sales_in_Billion  >  200 ORDER BY Sales_in_Billion ,  Profits_in_Billion DESC"
    ]
  },
  {
    "database": "company_employee",
    "table": "employment",
    "questions": [
      "Show the names of companies and of employees.",
      "Show names of companies and that of employees in descending order of number of years working for that employee.",
      "Show the names of employees that work for companies with sales bigger than 200.",
      "Show the names of companies and the number of employees they have"
    ],
    "col_names": [
      "Company_ID",
      "People_ID",
      "Year_working"
    ],
    "standard_answer": [
      "SELECT T3.Name ,  T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID",
      "SELECT T3.Name ,  T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID ORDER BY T1.Year_working",
      "SELECT T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID WHERE T3.Sales_in_Billion  >  200",
      "SELECT T3.Name ,  COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID GROUP BY T3.Name"
    ]
  },
  {
    "database": "farm",
    "table": "city",
    "questions": [
      "How many different statuses do cities have?",
      "Count the number of different statuses.",
      "List official names of cities in descending order of population.",
      "What are the official names of cities, ordered descending by population?",
      "List the official name and status of the city with the largest population.",
      "What is the official name and status of the city with the most residents?",
      "Show the years and the official names of the host cities of competitions.",
      "Give the years and official names of the cities of each competition.",
      "Show the official names of the cities that have hosted more than one competition.",
      "What are the official names of cities that have hosted more than one competition?",
      "Show the status of the city that has hosted the greatest number of competitions.",
      "What is the status of the city that has hosted the most competitions?",
      "Please show the themes of competitions with host cities having populations larger than 1000.",
      "What are the themes of competitions that have corresponding host cities with more than 1000 residents?",
      "Please show the different statuses of cities and the average population of cities with each status.",
      "What are the statuses and average populations of each city?",
      "Please show the different statuses, ordered by the number of cities that have each.",
      "Return the different statuses of cities, ascending by frequency.",
      "List the most common type of Status across cities.",
      "What is the most common status across all cities?",
      "List the official names of cities that have not held any competition.",
      "What are the official names of cities that have not hosted a farm competition?",
      "Show the status shared by cities with population bigger than 1500 and smaller than 500.",
      "Which statuses correspond to both cities that have a population over 1500 and cities that have a population lower than 500?",
      "Find the official names of cities with population bigger than 1500 or smaller than 500.",
      "What are the official names of cities that have population over 1500 or less than 500?",
      "Show the census ranking of cities whose status are not \"Village\".",
      "What are the census rankings of cities that do not have the status \"Village\"?"
    ],
    "col_names": [
      "City_ID",
      "Official_Name",
      "Status",
      "Area_km_2",
      "Population",
      "Census_Ranking"
    ],
    "standard_answer": [
      "SELECT count(DISTINCT Status) FROM city",
      "SELECT count(DISTINCT Status) FROM city",
      "SELECT Official_Name FROM city ORDER BY Population DESC",
      "SELECT Official_Name FROM city ORDER BY Population DESC",
      "SELECT Official_Name ,  Status FROM city ORDER BY Population DESC LIMIT 1",
      "SELECT Official_Name ,  Status FROM city ORDER BY Population DESC LIMIT 1",
      "SELECT T2.Year ,  T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID",
      "SELECT T2.Year ,  T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID",
      "SELECT T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT(*)  >  1",
      "SELECT T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT(*)  >  1",
      "SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID GROUP BY T2.Host_city_ID ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID GROUP BY T2.Host_city_ID ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T2.Theme FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID WHERE T1.Population  >  1000",
      "SELECT T2.Theme FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID WHERE T1.Population  >  1000",
      "SELECT Status ,  avg(Population) FROM city GROUP BY Status",
      "SELECT Status ,  avg(Population) FROM city GROUP BY Status",
      "SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) ASC",
      "SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) ASC",
      "SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Official_Name FROM city WHERE City_ID NOT IN (SELECT Host_city_ID FROM farm_competition)",
      "SELECT Official_Name FROM city WHERE City_ID NOT IN (SELECT Host_city_ID FROM farm_competition)",
      "SELECT Status FROM city WHERE Population  >  1500 INTERSECT SELECT Status FROM city WHERE Population  <  500",
      "SELECT Status FROM city WHERE Population  >  1500 INTERSECT SELECT Status FROM city WHERE Population  <  500",
      "SELECT Official_Name FROM city WHERE Population  >  1500 OR Population  <  500",
      "SELECT Official_Name FROM city WHERE Population  >  1500 OR Population  <  500",
      "SELECT Census_Ranking FROM city WHERE Status !=  \"Village\"",
      "SELECT Census_Ranking FROM city WHERE Status !=  \"Village\""
    ]
  },
  {
    "database": "farm",
    "table": "farm",
    "questions": [
      "How many farms are there?",
      "Count the number of farms.",
      "List the total number of horses on farms in ascending order.",
      "What is the total horses record for each farm, sorted ascending?",
      "What is the average number of working horses of farms with more than 5000 total number of horses?",
      "Give the average number of working horses on farms with more than 5000 total horses.",
      "What are the maximum and minimum number of cows across all farms.",
      "Return the maximum and minimum number of cows across all farms."
    ],
    "col_names": [
      "Farm_ID",
      "Year",
      "Total_Horses",
      "Working_Horses",
      "Total_Cattle",
      "Oxen",
      "Bulls",
      "Cows",
      "Pigs",
      "Sheep_and_Goats"
    ],
    "standard_answer": [
      "SELECT count(*) FROM farm",
      "SELECT count(*) FROM farm",
      "SELECT Total_Horses FROM farm ORDER BY Total_Horses ASC",
      "SELECT Total_Horses FROM farm ORDER BY Total_Horses ASC",
      "SELECT avg(Working_Horses) FROM farm WHERE Total_Horses  >  5000",
      "SELECT avg(Working_Horses) FROM farm WHERE Total_Horses  >  5000",
      "SELECT max(Cows) ,  min(Cows) FROM farm",
      "SELECT max(Cows) ,  min(Cows) FROM farm"
    ]
  },
  {
    "database": "farm",
    "table": "farm_competition",
    "questions": [
      "What are the hosts of competitions whose theme is not \"Aliens\"?",
      "Return the hosts of competitions for which the theme is not Aliens?",
      "What are the themes of farm competitions sorted by year in ascending order?",
      "Return the themes of farm competitions, sorted by year ascending."
    ],
    "col_names": [
      "Competition_ID",
      "Year",
      "Theme",
      "Host_city_ID",
      "Hosts"
    ],
    "standard_answer": [
      "SELECT Hosts FROM farm_competition WHERE Theme !=  'Aliens'",
      "SELECT Hosts FROM farm_competition WHERE Theme !=  'Aliens'",
      "SELECT Theme FROM farm_competition ORDER BY YEAR ASC",
      "SELECT Theme FROM farm_competition ORDER BY YEAR ASC"
    ]
  },
  {
    "database": "farm",
    "table": "competition_record",
    "questions": [],
    "col_names": [
      "Competition_ID",
      "Farm_ID",
      "Rank"
    ],
    "standard_answer": []
  },
  {
    "database": "solvency_ii",
    "table": "Addresses",
    "questions": [],
    "col_names": [
      "Address_ID",
      "address_details"
    ],
    "standard_answer": []
  },
  {
    "database": "solvency_ii",
    "table": "Locations",
    "questions": [],
    "col_names": [
      "Location_ID",
      "Other_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "solvency_ii",
    "table": "Products",
    "questions": [
      "How many products are there?",
      "List the name of products in ascending order of price.",
      "What are the names and type codes of products?",
      "Show the prices of the products named \"Dining\" or \"Trading Policy\".",
      "What is the average price for products?",
      "What is the name of the product with the highest price?",
      "Show different type codes of products and the number of products with each type code.",
      "Show the most common type code across products.",
      "Show the product type codes that have at least two products.",
      "Show the product type codes that have both products with price higher than 4500 and products with price lower than 3000.",
      "Show the names of products and the number of events they are in.",
      "Show the names of products and the number of events they are in, sorted by the number of events in descending order.",
      "Show the names of products that are in at least two events.",
      "Show the names of products that are in at least two events in ascending alphabetical order of product name.",
      "List the names of products that are not in any event."
    ],
    "col_names": [
      "Product_ID",
      "Product_Type_Code",
      "Product_Name",
      "Product_Price"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Products",
      "SELECT Product_Name FROM Products ORDER BY Product_Price ASC",
      "SELECT Product_Name ,  Product_Type_Code FROM Products",
      "SELECT Product_Price FROM Products WHERE Product_Name  =  \"Dining\" OR Product_Name  =  \"Trading Policy\"",
      "SELECT avg(Product_Price) FROM Products",
      "SELECT Product_Name FROM Products ORDER BY Product_Price DESC LIMIT 1",
      "SELECT Product_Type_Code ,  COUNT(*) FROM Products GROUP BY Product_Type_Code",
      "SELECT Product_Type_Code FROM Products GROUP BY Product_Type_Code ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Product_Type_Code FROM Products GROUP BY Product_Type_Code HAVING COUNT(*)  >=  2",
      "SELECT Product_Type_Code FROM Products WHERE Product_Price  >  4500 INTERSECT SELECT Product_Type_Code FROM Products WHERE Product_Price  <  3000",
      "SELECT T1.Product_Name ,  COUNT(*) FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID  =  T2.Product_ID GROUP BY T1.Product_Name",
      "SELECT T1.Product_Name ,  COUNT(*) FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID  =  T2.Product_ID GROUP BY T1.Product_Name ORDER BY COUNT(*) DESC",
      "SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID  =  T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*)  >=  2",
      "SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID  =  T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*)  >=  2 ORDER BY T1.Product_Name",
      "SELECT Product_Name FROM Products WHERE Product_ID NOT IN (SELECT Product_ID FROM Products_in_Events)"
    ]
  },
  {
    "database": "solvency_ii",
    "table": "Parties",
    "questions": [],
    "col_names": [
      "Party_ID",
      "Party_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "solvency_ii",
    "table": "Assets",
    "questions": [],
    "col_names": [
      "Asset_ID",
      "Other_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "solvency_ii",
    "table": "Channels",
    "questions": [],
    "col_names": [
      "Channel_ID",
      "Other_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "solvency_ii",
    "table": "Finances",
    "questions": [],
    "col_names": [
      "Finance_ID",
      "Other_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "solvency_ii",
    "table": "Events",
    "questions": [],
    "col_names": [
      "Event_ID",
      "Address_ID",
      "Channel_ID",
      "Event_Type_Code",
      "Finance_ID",
      "Location_ID"
    ],
    "standard_answer": []
  },
  {
    "database": "solvency_ii",
    "table": "Products_in_Events",
    "questions": [],
    "col_names": [
      "Product_in_Event_ID",
      "Event_ID",
      "Product_ID"
    ],
    "standard_answer": []
  },
  {
    "database": "solvency_ii",
    "table": "Parties_in_Events",
    "questions": [],
    "col_names": [
      "Party_ID",
      "Event_ID",
      "Role_Code"
    ],
    "standard_answer": []
  },
  {
    "database": "solvency_ii",
    "table": "Agreements",
    "questions": [],
    "col_names": [
      "Document_ID",
      "Event_ID"
    ],
    "standard_answer": []
  },
  {
    "database": "solvency_ii",
    "table": "Assets_in_Events",
    "questions": [],
    "col_names": [
      "Asset_ID",
      "Event_ID"
    ],
    "standard_answer": []
  },
  {
    "database": "city_record",
    "table": "city",
    "questions": [
      "Find the cities which were once a host city after 2010?",
      "Which cities served as a host city after 2010?",
      "Which city has hosted the most events?",
      "Find the city that hosted the most events.",
      "What is the venue of the competition \"1994 FIFA World Cup qualification\" hosted by \"Nanjing ( Jiangsu )\"?",
      "Find the venue of the competition \"1994 FIFA World Cup qualification\" which was hosted by \"Nanjing ( Jiangsu )\".",
      "Give me the temperature of Shanghai in January.",
      "What is the temperature of \"Shanghai\" city in January?",
      "What is the host year of city \"Taizhou ( Zhejiang )\"?",
      "IN which year did city \"Taizhou ( Zhejiang )\" serve as a host city?",
      "Which three cities have the largest regional population?",
      "What are the three largest cities in terms of regional population?",
      "Which city has the lowest GDP? Please list the city name and its GDP.",
      "What is the city with the smallest GDP? Return the city and its GDP.",
      "Which city has the highest temperature in February?",
      "In February, which city marks the highest temperature?",
      "Give me a list of cities whose temperature in March is lower than that in July or higher than that in Oct?",
      "Which cities' temperature in March is lower than that in July or higher than that in Oct?",
      "Give me a list of cities whose temperature in Mar is lower than that in July and which have also served as host cities?",
      "Which cities have lower temperature in March than in July and have been once host cities?",
      "Give me a list of cities whose temperature in Mar is lower than that in Dec and which have never been host cities.",
      "Which cities have lower temperature in March than in Dec and have never served as host cities?",
      "Give me a list of cities whose temperature in Feb is higher than that in Jun or cities that were once host cities?",
      "Which cities have higher temperature in Feb than in Jun or have once served as host cities?",
      "Please give me a list of cities whose regional population is over 10000000.",
      "Which cities have regional population above 10000000?",
      "Please give me a list of cities whose regional population is over 8000000 or under 5000000.",
      "Which cities have regional population above 8000000 or below 5000000?",
      "what is the GDP of the city with the largest population.",
      "Find the GDP of the city with the largest regional population.",
      "What are the GDP and population of the city that already served as a host more than once?",
      "Which cities have served as host cities more than once? Return me their GDP and population."
    ],
    "col_names": [
      "City_ID",
      "City",
      "Hanzi",
      "Hanyu_Pinyin",
      "Regional_Population",
      "GDP"
    ],
    "standard_answer": [
      "SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year  >  2010",
      "SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year  >  2010",
      "SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city GROUP BY T2.host_city ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city GROUP BY T2.host_city ORDER BY count(*) DESC LIMIT 1",
      "SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = \"Nanjing ( Jiangsu )\" AND T3.competition = \"1994 FIFA World Cup qualification\"",
      "SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = \"Nanjing ( Jiangsu )\" AND T3.competition = \"1994 FIFA World Cup qualification\"",
      "SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = \"Shanghai\"",
      "SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = \"Shanghai\"",
      "SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city WHERE T1.city  =  \"Taizhou ( Zhejiang )\"",
      "SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city WHERE T1.city  =  \"Taizhou ( Zhejiang )\"",
      "SELECT city FROM city ORDER BY regional_population DESC LIMIT 3",
      "SELECT city FROM city ORDER BY regional_population DESC LIMIT 3",
      "SELECT city ,  GDP FROM city ORDER BY GDP LIMIT 1",
      "SELECT city ,  GDP FROM city ORDER BY GDP LIMIT 1",
      "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id ORDER BY T2.Feb DESC LIMIT 1",
      "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id ORDER BY T2.Feb DESC LIMIT 1",
      "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Jul OR T2.Mar  >  T2.Oct",
      "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Jul OR T2.Mar  >  T2.Oct",
      "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city",
      "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city",
      "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city",
      "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city",
      "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Feb  >  T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city",
      "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Feb  >  T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city",
      "SELECT city FROM city WHERE regional_population  >  10000000",
      "SELECT city FROM city WHERE regional_population  >  10000000",
      "SELECT city FROM city WHERE regional_population  >  10000000 UNION SELECT city FROM city WHERE regional_population  <  5000000",
      "SELECT city FROM city WHERE regional_population  >  10000000 UNION SELECT city FROM city WHERE regional_population  <  5000000",
      "SELECT gdp FROM city ORDER BY Regional_Population DESC LIMIT 1",
      "SELECT gdp FROM city ORDER BY Regional_Population DESC LIMIT 1",
      "SELECT t1.gdp ,  t1.Regional_Population FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city GROUP BY t2.Host_City HAVING count(*)  >  1",
      "SELECT t1.gdp ,  t1.Regional_Population FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city GROUP BY t2.Host_City HAVING count(*)  >  1"
    ]
  },
  {
    "database": "city_record",
    "table": "match",
    "questions": [],
    "col_names": [
      "Match_ID",
      "Date",
      "Venue",
      "Score",
      "Result",
      "Competition"
    ],
    "standard_answer": []
  },
  {
    "database": "city_record",
    "table": "temperature",
    "questions": [],
    "col_names": [
      "City_ID",
      "Jan",
      "Feb",
      "Mar",
      "Apr",
      "Jun",
      "Jul",
      "Aug",
      "Sep",
      "Oct",
      "Nov",
      "Dec"
    ],
    "standard_answer": []
  },
  {
    "database": "city_record",
    "table": "hosting_city",
    "questions": [
      "What is id of the city that hosted events in the most recent year?",
      "Find the city that hosted some events in the most recent year. What is the id of this city?"
    ],
    "col_names": [
      "Year",
      "Match_ID",
      "Host_City"
    ],
    "standard_answer": [
      "SELECT host_city FROM hosting_city ORDER BY YEAR DESC LIMIT 1",
      "SELECT host_city FROM hosting_city ORDER BY YEAR DESC LIMIT 1"
    ]
  },
  {
    "database": "swimming",
    "table": "swimmer",
    "questions": [
      "Find the names of all swimmers, sorted by their 100 meter scores in ascending order.",
      "How many different countries are all the swimmers from?",
      "List countries that have more than one swimmer.",
      "Find all 200 meter and 300 meter results of swimmers with nationality \"Australia\".",
      "Find the names of swimmers who has a result of \"win\".",
      "Find the name of the swimmer who has the most records.",
      "Find the name of the swimmer who has at least 2 records.",
      "Find the name and nationality of the swimmer who has won (i.e., has a result of \"win\") more than 1 time.",
      "Find the names of the swimmers who have no record.",
      "Find the names of the swimmers who have both \"win\" and \"loss\" results in the record.",
      "Find the names of stadiums that some Australian swimmers have been to.",
      "Find all details for each swimmer."
    ],
    "col_names": [
      "ID",
      "name",
      "Nationality",
      "meter_100",
      "meter_200",
      "meter_300",
      "meter_400",
      "meter_500",
      "meter_600",
      "meter_700",
      "Time"
    ],
    "standard_answer": [
      "SELECT name FROM swimmer ORDER BY meter_100",
      "SELECT count(DISTINCT nationality) FROM swimmer",
      "SELECT nationality ,  count(*) FROM swimmer GROUP BY nationality HAVING count(*)  >  1",
      "SELECT meter_200 ,  meter_300 FROM swimmer WHERE nationality  =  'Australia'",
      "SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id  =  t2.swimmer_id WHERE RESULT  =  'Win'",
      "SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id  =  t2.swimmer_id GROUP BY t2.swimmer_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id  =  t2.swimmer_id GROUP BY t2.swimmer_id HAVING count(*)  >=  2",
      "SELECT t1.name ,  t1.nationality FROM swimmer AS t1 JOIN record AS t2 ON t1.id  =  t2.swimmer_id WHERE RESULT  =  'Win' GROUP BY t2.swimmer_id HAVING count(*)  >  1",
      "SELECT name FROM swimmer WHERE id NOT IN (SELECT swimmer_id FROM record)",
      "SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id  =  t2.swimmer_id WHERE RESULT  =  'Win' INTERSECT SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id  =  t2.swimmer_id WHERE RESULT  =  'Loss'",
      "SELECT t4.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id  =  t2.swimmer_id JOIN event AS t3 ON t2.event_id  =  t3.id JOIN stadium AS t4 ON t4.id  =  t3.stadium_id WHERE t1.nationality  =  'Australia'",
      "SELECT * FROM swimmer"
    ]
  },
  {
    "database": "swimming",
    "table": "stadium",
    "questions": [
      "How many stadiums are there?",
      "Find the name of the stadium that has the maximum capacity.",
      "Find the names of stadiums whose capacity is smaller than the average capacity.",
      "Find the country that has the most stadiums.",
      "Which country has at most 3 stadiums listed?",
      "Which country has both stadiums with capacity greater than 60000 and stadiums with capacity less than 50000?",
      "How many cities have a stadium that was opened before the year of 2006?",
      "How many stadiums does each country have?",
      "Which countries do not have a stadium that was opened after 2006?",
      "How many stadiums are not in country \"Russia\"?",
      "What is the name of the stadium which held the most events?",
      "Find the name and capacity of the stadium where the event named \"World Junior\" happened.",
      "Find the names of stadiums which have never had any event.",
      "What is the average capacity of the stadiums that were opened in year 2005?"
    ],
    "col_names": [
      "ID",
      "name",
      "Capacity",
      "City",
      "Country",
      "Opening_year"
    ],
    "standard_answer": [
      "SELECT count(*) FROM stadium",
      "SELECT name FROM stadium ORDER BY capacity DESC LIMIT 1",
      "SELECT name FROM stadium WHERE capacity  <  (SELECT avg(capacity) FROM stadium)",
      "SELECT country FROM stadium GROUP BY country ORDER BY count(*) DESC LIMIT 1",
      "SELECT country FROM stadium GROUP BY country HAVING count(*)  <=  3",
      "SELECT country FROM stadium WHERE capacity  >  60000 INTERSECT SELECT country FROM stadium WHERE capacity  <  50000",
      "SELECT count(DISTINCT city) FROM stadium WHERE opening_year  <  2006",
      "SELECT country ,  count(*) FROM stadium GROUP BY country",
      "SELECT country FROM stadium EXCEPT SELECT country FROM stadium WHERE opening_year  >  2006",
      "SELECT count(*) FROM stadium WHERE country != 'Russia'",
      "SELECT t1.name FROM stadium AS t1 JOIN event AS t2 ON t1.id  =  t2.stadium_id GROUP BY t2.stadium_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT t1.name ,  t1.capacity FROM stadium AS t1 JOIN event AS t2 ON t1.id  =  t2.stadium_id WHERE t2.name  =  'World Junior'",
      "SELECT name FROM stadium WHERE id NOT IN (SELECT stadium_id FROM event)",
      "SELECT avg(capacity) FROM stadium WHERE opening_year  =  2005"
    ]
  },
  {
    "database": "swimming",
    "table": "event",
    "questions": [
      "How many events are there?",
      "List all the event names by year from the most recent to the oldest.",
      "What is the name of the event that happened in the most recent year?"
    ],
    "col_names": [
      "ID",
      "Name",
      "Stadium_ID",
      "Year"
    ],
    "standard_answer": [
      "SELECT count(*) FROM event",
      "SELECT name FROM event ORDER BY YEAR DESC",
      "SELECT name FROM event ORDER BY YEAR DESC LIMIT 1"
    ]
  },
  {
    "database": "swimming",
    "table": "record",
    "questions": [
      "Find the names of stadiums that the most swimmers have been to."
    ],
    "col_names": [
      "ID",
      "Result",
      "Swimmer_ID",
      "Event_ID"
    ],
    "standard_answer": [
      "SELECT t3.name FROM record AS t1 JOIN event AS t2 ON t1.event_id  =  t2.id JOIN stadium AS t3 ON t3.id  =  t2.stadium_id GROUP BY t2.stadium_id ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "flight_2",
    "table": "airlines",
    "questions": [],
    "col_names": [
      "uid",
      "Airline",
      "Abbreviation",
      "Country"
    ],
    "standard_answer": []
  },
  {
    "database": "flight_2",
    "table": "airports",
    "questions": [],
    "col_names": [
      "City",
      "AirportCode",
      "AirportName",
      "Country",
      "CountryAbbrev"
    ],
    "standard_answer": []
  },
  {
    "database": "flight_2",
    "table": "flights",
    "questions": [],
    "col_names": [
      "Airline",
      "FlightNo",
      "SourceAirport",
      "DestAirport"
    ],
    "standard_answer": []
  },
  {
    "database": "election",
    "table": "county",
    "questions": [
      "How many counties are there in total?",
      "Count the total number of counties.",
      "Show the county name and population of all counties.",
      "What are the name and population of each county?",
      "Show the average population of all counties.",
      "On average how large is the population of the counties?",
      "Return the maximum and minimum population among all counties.",
      "What are the maximum and minimum population of the counties?",
      "Show the zip code of the county with name \"Howard\".",
      "What is the zip code the county named \"Howard\" is located in?",
      "Show the delegates and the names of county they belong to.",
      "What are the delegate and name of the county they belong to, for each county?",
      "Which delegates are from counties with population smaller than 100000?",
      "Find the delegates who are from counties with population below 100000.",
      "How many distinct delegates are from counties with population larger than 50000?",
      "Count the number of distinct delegates who are from counties with population above 50000.",
      "What are the names of the county that the delegates on \"Appropriations\" committee belong to?",
      "Which county do the delegates on \"Appropriations\" committee belong to? Give me the county names.",
      "Show the name of each county along with the corresponding number of delegates from that county.",
      "For each county, find the name of the county and the number of delegates from that county.",
      "Return the names of all counties sorted by population in ascending order.",
      "Sort the names of all counties in ascending order of population.",
      "Return the names of all counties sorted by county name in descending alphabetical order.",
      "Sort the names of all counties in descending alphabetical order.",
      "Show the name of the county with the biggest population.",
      "Which county has the largest population? Give me the name of the county.",
      "Show the 3 counties with the smallest population.",
      "What are the 3 counties that have the smallest population? Give me the county names.",
      "Show the names of counties that have at least two delegates.",
      "Which counties have two or more delegates? Give me the county names."
    ],
    "col_names": [
      "County_Id",
      "County_name",
      "Population",
      "Zip_code"
    ],
    "standard_answer": [
      "SELECT count(*) FROM county",
      "SELECT count(*) FROM county",
      "SELECT County_name ,  Population FROM county",
      "SELECT County_name ,  Population FROM county",
      "SELECT avg(Population) FROM county",
      "SELECT avg(Population) FROM county",
      "SELECT max(Population) ,  min(Population) FROM county",
      "SELECT max(Population) ,  min(Population) FROM county",
      "SELECT Zip_code FROM county WHERE County_name  =  \"Howard\"",
      "SELECT Zip_code FROM county WHERE County_name  =  \"Howard\"",
      "SELECT T2.Delegate ,  T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District",
      "SELECT T2.Delegate ,  T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District",
      "SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T1.Population  <  100000",
      "SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T1.Population  <  100000",
      "SELECT count(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T1.Population  >  50000",
      "SELECT count(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T1.Population  >  50000",
      "SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T2.Committee  =  \"Appropriations\"",
      "SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District WHERE T2.Committee  =  \"Appropriations\"",
      "SELECT T1.County_name ,  COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District GROUP BY T1.County_id",
      "SELECT T1.County_name ,  COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District GROUP BY T1.County_id",
      "SELECT County_name FROM county ORDER BY Population ASC",
      "SELECT County_name FROM county ORDER BY Population ASC",
      "SELECT County_name FROM county ORDER BY County_name DESC",
      "SELECT County_name FROM county ORDER BY County_name DESC",
      "SELECT County_name FROM county ORDER BY Population DESC LIMIT 1",
      "SELECT County_name FROM county ORDER BY Population DESC LIMIT 1",
      "SELECT County_name FROM county ORDER BY Population ASC LIMIT 3",
      "SELECT County_name FROM county ORDER BY Population ASC LIMIT 3",
      "SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District GROUP BY T1.County_id HAVING COUNT(*)  >=  2",
      "SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id  =  T2.District GROUP BY T1.County_id HAVING COUNT(*)  >=  2"
    ]
  },
  {
    "database": "election",
    "table": "party",
    "questions": [
      "How many distinct governors are there?",
      "Count the number of distinct governors.",
      "Show the lieutenant governor and comptroller from the democratic party.",
      "Who are the lieutenant governor and comptroller from the democratic party?",
      "In which distinct years was the governor \"Eliot Spitzer\"?",
      "Find the distinct years when the governor was named \"Eliot Spitzer\".",
      "Show the name of the party that has at least two records.",
      "Which party has two or more records?",
      "Show the people that have been governor the most times.",
      "Which people severed as governor most frequently?",
      "Show the people that have been comptroller the most times and the corresponding number of times.",
      "Which people severed as comptroller most frequently? Give me the name of the person and the frequency count.",
      "What are the names of parties that do not have delegates in election?",
      "Which parties did not have any delegates in elections?"
    ],
    "col_names": [
      "Party_ID",
      "Year",
      "Party",
      "Governor",
      "Lieutenant_Governor",
      "Comptroller",
      "Attorney_General",
      "US_Senate"
    ],
    "standard_answer": [
      "SELECT count(DISTINCT Governor) FROM party",
      "SELECT count(DISTINCT Governor) FROM party",
      "SELECT Lieutenant_Governor ,  Comptroller FROM party WHERE Party  =  \"Democratic\"",
      "SELECT Lieutenant_Governor ,  Comptroller FROM party WHERE Party  =  \"Democratic\"",
      "SELECT DISTINCT YEAR FROM party WHERE Governor  =  \"Eliot Spitzer\"",
      "SELECT DISTINCT YEAR FROM party WHERE Governor  =  \"Eliot Spitzer\"",
      "SELECT Party FROM party GROUP BY Party HAVING COUNT(*)  >=  2",
      "SELECT Party FROM party GROUP BY Party HAVING COUNT(*)  >=  2",
      "SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Comptroller ,  COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Comptroller ,  COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Party FROM party WHERE Party_ID NOT IN (SELECT Party FROM election)",
      "SELECT Party FROM party WHERE Party_ID NOT IN (SELECT Party FROM election)"
    ]
  },
  {
    "database": "election",
    "table": "election",
    "questions": [
      "Show all the distinct districts for elections.",
      "What are the distinct districts for elections?",
      "Show the delegate from district 1 in election.",
      "Who is the delegate of district 1 in the elections?",
      "Show the delegate and committee information of elections.",
      "What are the delegate and committee information for each election record?",
      "Show all the information about election.",
      "Return all the information for each election record.",
      "Show the delegates and the names of the party they belong to.",
      "For each delegate, find the names of the party they are part of.",
      "Who were the governors of the parties associated with delegates from district 1?",
      "Find the parties associated with the delegates from district 1. Who served as governors of the parties?",
      "Who were the comptrollers of the parties associated with the delegates from district 1 or district 2?",
      "Find the parties associated with the delegates from district 1 or 2. Who served as comptrollers of the parties?",
      "Return all the committees that have delegates from Democratic party.",
      "Which committees have delegates from the Democratic party?",
      "Show the name of each party and the corresponding number of delegates from that party.",
      "For each party, return the name of the party and the number of delegates from that party.",
      "Show the name of the party that has the most delegates.",
      "Which party has the largest number of delegates?",
      "What are the names of parties that have both delegates on \"Appropriations\" committee and",
      "Which parties have delegates in both the \"Appropriations\" committee and the \"Economic Matters\" committee?",
      "Which committees have delegates from both democratic party and liberal party?",
      "Find the committees that have delegates both from from the democratic party and the liberal party."
    ],
    "col_names": [
      "Election_ID",
      "Counties_Represented",
      "District",
      "Delegate",
      "Party",
      "First_Elected",
      "Committee"
    ],
    "standard_answer": [
      "SELECT DISTINCT District FROM election",
      "SELECT DISTINCT District FROM election",
      "SELECT Delegate FROM election WHERE District  =  1",
      "SELECT Delegate FROM election WHERE District  =  1",
      "SELECT Delegate ,  Committee FROM election",
      "SELECT Delegate ,  Committee FROM election",
      "SELECT * FROM election",
      "SELECT * FROM election",
      "SELECT T1.Delegate ,  T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID",
      "SELECT T1.Delegate ,  T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID",
      "SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.District  =  1",
      "SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.District  =  1",
      "SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.District  =  1 OR T1.District  =  2",
      "SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.District  =  1 OR T1.District  =  2",
      "SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T2.Party  =  \"Democratic\"",
      "SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T2.Party  =  \"Democratic\"",
      "SELECT T2.Party ,  COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID GROUP BY T1.Party",
      "SELECT T2.Party ,  COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID GROUP BY T1.Party",
      "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.Committee  =  \"Appropriations\" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.Committee  =  \"Economic Matters\"",
      "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.Committee  =  \"Appropriations\" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.Committee  =  \"Economic Matters\"",
      "SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T2.Party  =  \"Democratic\" INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T2.Party  =  \"Liberal\"",
      "SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T2.Party  =  \"Democratic\" INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T2.Party  =  \"Liberal\""
    ]
  },
  {
    "database": "manufactory_1",
    "table": "Manufacturers",
    "questions": [],
    "col_names": [
      "Code",
      "Name",
      "Headquarter",
      "Founder",
      "Revenue"
    ],
    "standard_answer": []
  },
  {
    "database": "manufactory_1",
    "table": "Products",
    "questions": [
      "Select the names of all the products in the store.",
      "What are the names of all products?",
      "Select the average price of each manufacturer's products, showing only the manufacturer's code.",
      "What are the average prices of products, grouped by manufacturer code?",
      "Select the name and price of the cheapest product.",
      "What is the name and price of the cheapest product?"
    ],
    "col_names": [
      "Code",
      "Name",
      "Price",
      "Manufacturer"
    ],
    "standard_answer": [
      "SELECT Name FROM Products",
      "SELECT Name FROM Products",
      "SELECT AVG(Price) ,  Manufacturer FROM Products GROUP BY Manufacturer",
      "SELECT AVG(Price) ,  Manufacturer FROM Products GROUP BY Manufacturer",
      "SELECT name ,  price FROM Products ORDER BY price ASC LIMIT 1",
      "SELECT name ,  price FROM Products ORDER BY price ASC LIMIT 1"
    ]
  },
  {
    "database": "debate",
    "table": "people",
    "questions": [
      "What is the party of the youngest people?",
      "Show different parties of people along with the number of people in each party.",
      "Show the party that has the most people.",
      "List the names of people that have not been on the affirmative side of debates."
    ],
    "col_names": [
      "People_ID",
      "District",
      "Name",
      "Party",
      "Age"
    ],
    "standard_answer": [
      "SELECT Party FROM people ORDER BY Age ASC LIMIT 1",
      "SELECT Party ,  COUNT(*) FROM people GROUP BY Party",
      "SELECT Party FROM people GROUP BY Party ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Name FROM people WHERE People_id NOT IN (SELECT Affirmative FROM debate_people)"
    ]
  },
  {
    "database": "debate",
    "table": "debate",
    "questions": [
      "How many debates are there?",
      "List the venues of debates in ascending order of the number of audience.",
      "What are the date and venue of each debate?",
      "List the dates of debates with number of audience bigger than 150",
      "Show the distinct venues of debates"
    ],
    "col_names": [
      "Debate_ID",
      "Date",
      "Venue",
      "Num_of_Audience"
    ],
    "standard_answer": [
      "SELECT count(*) FROM debate",
      "SELECT Venue FROM debate ORDER BY Num_of_Audience ASC",
      "SELECT Date ,  Venue FROM debate",
      "SELECT Date FROM debate WHERE Num_of_Audience  >  150",
      "SELECT DISTINCT Venue FROM debate"
    ]
  },
  {
    "database": "debate",
    "table": "debate_people",
    "questions": [
      "Show the names of people, and dates and venues of debates they are on the affirmative side.",
      "Show the names of people, and dates and venues of debates they are on the negative side, ordered in ascending alphabetical order of name.",
      "Show the names of people that are on affirmative side of debates with number of audience bigger than 200.",
      "Show the names of people and the number of times they have been on the affirmative side of debates.",
      "Show the names of people who have been on the negative side of debates at least twice."
    ],
    "col_names": [
      "Debate_ID",
      "Affirmative",
      "Negative",
      "If_Affirmative_Win"
    ],
    "standard_answer": [
      "SELECT T3.Name ,  T2.Date ,  T2.Venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID  =  T2.Debate_ID JOIN people AS T3 ON T1.Affirmative  =  T3.People_ID",
      "SELECT T3.Name ,  T2.Date ,  T2.Venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID  =  T2.Debate_ID JOIN people AS T3 ON T1.Negative  =  T3.People_ID ORDER BY T3.Name ASC",
      "SELECT T3.Name FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID  =  T2.Debate_ID JOIN people AS T3 ON T1.Affirmative  =  T3.People_ID WHERE T2.Num_of_Audience  >  200",
      "SELECT T2.Name ,  COUNT(*) FROM debate_people AS T1 JOIN people AS T2 ON T1.Affirmative  =  T2.People_ID GROUP BY T2.Name",
      "SELECT T2.Name FROM debate_people AS T1 JOIN people AS T2 ON T1.Negative  =  T2.People_ID GROUP BY T2.Name HAVING COUNT(*)  >=  2"
    ]
  },
  {
    "database": "network_2",
    "table": "Person",
    "questions": [
      "How many friends does Dan have?",
      "How many friends does Dan have?",
      "How many females does this network has?",
      "How many females are in the network?",
      "What is the average age for all person?",
      "What is the average age for all people in the table?",
      "How many different cities are they from?",
      "How many different cities do people originate from?",
      "How many type of jobs do they have?",
      "How many different jobs are listed?",
      "Who is the oldest person?",
      "What is the name of the person who is the oldest?",
      "Who is the oldest person whose job is student?",
      "What is the name of the oldest student?",
      "Who is the youngest male?",
      "What is the name of the youngest male?",
      "How old is the doctor named Zach?",
      "What is the age of the doctor named Zach?",
      "Who is the person whose age is below 30?",
      "What is the name of the person whose age is below 30?",
      "How many people whose age is greater 30 and job is engineer?",
      "HOw many engineers are older than 30?",
      "What is the average age for each gender?",
      "How old is each gender, on average?",
      "What is average age for different job title?",
      "How old is the average person for each job?",
      "What is average age of male for different job title?",
      "What is the average age for a male in each job?",
      "What is minimum age for different job title?",
      "How old is the youngest person for each job?",
      "Find the number of people who is under 40 for each gender.",
      "How many people are under 40 for each gender?",
      "Find the name of people whose age is greater than any engineer sorted by their age.",
      "What is the name of all the people who are older than at least one engineer? Order them by age.",
      "Find the number of people whose age is greater than all engineers.",
      "How many people are older than every engineer?",
      "list the name, job title of all people ordered by their names.",
      "What are the names and job titles of every person ordered alphabetically by name?",
      "Find the names of all person sorted in the descending order using age.",
      "What are the names of everybody sorted by age in descending order?",
      "Find the name and age of all males in order of their age.",
      "What is the name and age of every male? Order the results by age.",
      "Find the name and age of the person who is a friend of both Dan and Alice.",
      "What are the names and ages of every person who is a friend of both Dan and Alice?",
      "Find the name and age of the person who is a friend of Dan or Alice.",
      "What are the different names and ages of every friend of either Dan or alice?",
      "Find the name of the person who has friends with age above 40 and under age 30?",
      "What are the names of every person who has a friend over 40 and under 30?",
      "Find the name of the person who has friends with age above 40 but not under age 30?",
      "What are the names of the people who are older 40 but no friends under age 30?",
      "Who are the friends of Bob?",
      "Who are Bob's friends?",
      "Find the name of persons who are friends with Bob.",
      "What are the names of all of Bob's friends?",
      "Find the names of females who are friends with Zach",
      "What are the names of all females who are friends with Zach?",
      "Find the female friends of Alice.",
      "What are all the friends of Alice who are female?",
      "Find the male friend of Alice whose job is a doctor?",
      "Who are the friends of Alice that are doctors?",
      "Who has a friend that is from new york city?",
      "What are the names of all friends who are from New York?",
      "Who has friends that are younger than the average age?",
      "What are the different names of friends who are younger than the average age for a friend?",
      "Who has friends that are older than the average age? Print their friends and their ages as well",
      "Whare the names, friends, and ages of all people who are older than the average age of a person?",
      "What is the age of the friend of Zach with longest year relationship?",
      "What are the ages of all of Zach's friends who are in the longest relationship?",
      "Find the name, age, and job title of persons who are friends with Alice for the longest years.",
      "What are the names, ages, and jobs of all people who are friends with Alice for the longest amount of time?",
      "Which person whose friends have the oldest average age?",
      "What is the name of the person who has the oldest average age for their friends, and what is that average age?"
    ],
    "col_names": [
      "name",
      "age",
      "city",
      "gender",
      "job"
    ],
    "standard_answer": [
      "SELECT count(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T1.name  =  'Dan'",
      "SELECT count(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T1.name  =  'Dan'",
      "SELECT count(*) FROM Person WHERE gender  =  'female'",
      "SELECT count(*) FROM Person WHERE gender  =  'female'",
      "SELECT avg(age) FROM Person",
      "SELECT avg(age) FROM Person",
      "SELECT count(DISTINCT city) FROM Person",
      "SELECT count(DISTINCT city) FROM Person",
      "SELECT count(DISTINCT job) FROM Person",
      "SELECT count(DISTINCT job) FROM Person",
      "SELECT name FROM Person WHERE age  =  (SELECT max(age) FROM person)",
      "SELECT name FROM Person WHERE age  =  (SELECT max(age) FROM person)",
      "SELECT name FROM Person WHERE job  =  'student' AND age  =  (SELECT max(age) FROM person WHERE job  =  'student' )",
      "SELECT name FROM Person WHERE job  =  'student' AND age  =  (SELECT max(age) FROM person WHERE job  =  'student' )",
      "SELECT name FROM Person WHERE gender  =  'male' AND age  =  (SELECT min(age) FROM person WHERE gender  =  'male' )",
      "SELECT name FROM Person WHERE gender  =  'male' AND age  =  (SELECT min(age) FROM person WHERE gender  =  'male' )",
      "SELECT age FROM Person WHERE job  =  'doctor' AND name  =  'Zach'",
      "SELECT age FROM Person WHERE job  =  'doctor' AND name  =  'Zach'",
      "SELECT name FROM Person WHERE age  <  30",
      "SELECT name FROM Person WHERE age  <  30",
      "SELECT count(*) FROM Person WHERE age  >  30 AND job  =  'engineer'",
      "SELECT count(*) FROM Person WHERE age  >  30 AND job  =  'engineer'",
      "SELECT avg(age) ,  gender FROM Person GROUP BY gender",
      "SELECT avg(age) ,  gender FROM Person GROUP BY gender",
      "SELECT avg(age) ,  job FROM Person GROUP BY job",
      "SELECT avg(age) ,  job FROM Person GROUP BY job",
      "SELECT avg(age) ,  job FROM Person WHERE gender  =  'male' GROUP BY job",
      "SELECT avg(age) ,  job FROM Person WHERE gender  =  'male' GROUP BY job",
      "SELECT min(age) ,  job FROM Person GROUP BY job",
      "SELECT min(age) ,  job FROM Person GROUP BY job",
      "SELECT count(*) ,  gender FROM Person WHERE age  <  40 GROUP BY gender",
      "SELECT count(*) ,  gender FROM Person WHERE age  <  40 GROUP BY gender",
      "SELECT name FROM Person WHERE age  >  (SELECT min(age) FROM person WHERE job  =  'engineer') ORDER BY age",
      "SELECT name FROM Person WHERE age  >  (SELECT min(age) FROM person WHERE job  =  'engineer') ORDER BY age",
      "SELECT count(*) FROM Person WHERE age  >  (SELECT max(age) FROM person WHERE job  =  'engineer')",
      "SELECT count(*) FROM Person WHERE age  >  (SELECT max(age) FROM person WHERE job  =  'engineer')",
      "SELECT name ,  job FROM Person ORDER BY name",
      "SELECT name ,  job FROM Person ORDER BY name",
      "SELECT name FROM Person ORDER BY age DESC",
      "SELECT name FROM Person ORDER BY age DESC",
      "SELECT name FROM Person WHERE gender  =  'male' ORDER BY age",
      "SELECT name FROM Person WHERE gender  =  'male' ORDER BY age",
      "SELECT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Dan' INTERSECT SELECT T1.name ,   T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Alice'",
      "SELECT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Dan' INTERSECT SELECT T1.name ,   T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Alice'",
      "SELECT DISTINCT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Dan' OR T2.friend  =  'Alice'",
      "SELECT DISTINCT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Dan' OR T2.friend  =  'Alice'",
      "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  >  40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  <  30)",
      "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  >  40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  <  30)",
      "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  >  40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  <  30)",
      "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  >  40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  <  30)",
      "SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T1.name  =  'Bob'",
      "SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T1.name  =  'Bob'",
      "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Bob'",
      "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Bob'",
      "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Zach' AND T1.gender  =  'female'",
      "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Zach' AND T1.gender  =  'female'",
      "SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name  =  'Alice' AND T1.gender  =  'female'",
      "SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name  =  'Alice' AND T1.gender  =  'female'",
      "SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name  =  'Alice' AND T1.gender  =  'male' AND T1.job  =  'doctor'",
      "SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name  =  'Alice' AND T1.gender  =  'male' AND T1.job  =  'doctor'",
      "SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.city  =  'new york city'",
      "SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.city  =  'new york city'",
      "SELECT DISTINCT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.age  <  (SELECT avg(age) FROM person)",
      "SELECT DISTINCT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.age  <  (SELECT avg(age) FROM person)",
      "SELECT DISTINCT T2.name ,  T2.friend ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.age  >  (SELECT avg(age) FROM person)",
      "SELECT DISTINCT T2.name ,  T2.friend ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.age  >  (SELECT avg(age) FROM person)",
      "SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name =  'Zach' AND T2.year  =  (SELECT max(YEAR) FROM PersonFriend WHERE name =  'Zach')",
      "SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name =  'Zach' AND T2.year  =  (SELECT max(YEAR) FROM PersonFriend WHERE name =  'Zach')",
      "SELECT T1.name ,  T1.age ,  T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend =  'Alice' AND T2.year  =  (SELECT max(YEAR) FROM PersonFriend WHERE friend =  'Alice')",
      "SELECT T1.name ,  T1.age ,  T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend =  'Alice' AND T2.year  =  (SELECT max(YEAR) FROM PersonFriend WHERE friend =  'Alice')",
      "SELECT T2.name ,  avg(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend GROUP BY T2.name ORDER BY avg(T1.age) DESC LIMIT 1",
      "SELECT T2.name ,  avg(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend GROUP BY T2.name ORDER BY avg(T1.age) DESC LIMIT 1"
    ]
  },
  {
    "database": "network_2",
    "table": "PersonFriend",
    "questions": [
      "Find the person who has exactly one friend.",
      "What are the names of everybody who has exactly one friend?",
      "Who is the friend of Zach with longest year relationship?",
      "Which friend of Zach has the longest-lasting friendship?",
      "Find the name of persons who are friends with Alice for the shortest years.",
      "What are the names of all people who are friends with Alice for the shortest amount of time?",
      "What is the total number of people who has no friend living in the city of Austin.",
      "What is the total number of people who have no friends living in Austin?",
      "Find Alice's friends of friends.",
      "What are the names of all of Alice's friends of friends?"
    ],
    "col_names": [
      "name",
      "friend",
      "year"
    ],
    "standard_answer": [
      "SELECT name FROM PersonFriend GROUP BY name HAVING count(*)  =  1",
      "SELECT name FROM PersonFriend GROUP BY name HAVING count(*)  =  1",
      "SELECT friend FROM PersonFriend WHERE name =  'Zach' AND YEAR  =  (SELECT max(YEAR) FROM PersonFriend WHERE name =  'Zach')",
      "SELECT friend FROM PersonFriend WHERE name =  'Zach' AND YEAR  =  (SELECT max(YEAR) FROM PersonFriend WHERE name =  'Zach')",
      "SELECT name FROM PersonFriend WHERE friend =  'Alice' AND YEAR  =  (SELECT min(YEAR) FROM PersonFriend WHERE friend =  'Alice')",
      "SELECT name FROM PersonFriend WHERE friend =  'Alice' AND YEAR  =  (SELECT min(YEAR) FROM PersonFriend WHERE friend =  'Alice')",
      "SELECT count(DISTINCT name) FROM PersonFriend WHERE friend NOT IN (SELECT name FROM person WHERE city  =  'Austin')",
      "SELECT count(DISTINCT name) FROM PersonFriend WHERE friend NOT IN (SELECT name FROM person WHERE city  =  'Austin')",
      "SELECT DISTINCT T4.name FROM PersonFriend AS T1 JOIN Person AS T2 ON T1.name  =  T2.name JOIN PersonFriend AS T3 ON T1.friend  =  T3.name JOIN PersonFriend AS T4 ON T3.friend  =  T4.name WHERE T2.name  =  'Alice' AND T4.name != 'Alice'",
      "SELECT DISTINCT T4.name FROM PersonFriend AS T1 JOIN Person AS T2 ON T1.name  =  T2.name JOIN PersonFriend AS T3 ON T1.friend  =  T3.name JOIN PersonFriend AS T4 ON T3.friend  =  T4.name WHERE T2.name  =  'Alice' AND T4.name != 'Alice'"
    ]
  },
  {
    "database": "local_govt_in_alabama",
    "table": "Services",
    "questions": [],
    "col_names": [
      "Service_ID",
      "Service_Type_Code"
    ],
    "standard_answer": []
  },
  {
    "database": "local_govt_in_alabama",
    "table": "Participants",
    "questions": [
      "How many events have each participants attended? List the participant id, type and the number."
    ],
    "col_names": [
      "Participant_ID",
      "Participant_Type_Code",
      "Participant_Details"
    ],
    "standard_answer": [
      "SELECT T1.Participant_ID ,  T1.Participant_Type_Code ,  count(*) FROM Participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID  =  T2.Participant_ID GROUP BY T1.Participant_ID"
    ]
  },
  {
    "database": "local_govt_in_alabama",
    "table": "Events",
    "questions": [],
    "col_names": [
      "Event_ID",
      "Service_ID",
      "Event_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "local_govt_in_alabama",
    "table": "Participants_in_Events",
    "questions": [
      "What is the id of the event with the most participants?"
    ],
    "col_names": [
      "Event_ID",
      "Participant_ID"
    ],
    "standard_answer": [
      "SELECT Event_ID FROM Participants_in_Events GROUP BY Event_ID ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "climbing",
    "table": "mountain",
    "questions": [
      "What are the names of mountains in ascending alphabetical order?",
      "Give the names of mountains in alphabetical order.",
      "What are the countries of mountains with height bigger than 5000?",
      "Return the countries of the mountains that have a height larger than 5000.",
      "What is the name of the highest mountain?",
      "Return the name of the mountain with the greatest height.",
      "List the distinct ranges of the mountains with the top 3 prominence.",
      "What are the different ranges of the 3 mountains with the highest prominence?",
      "List the countries that have more than one mountain.",
      "Which countries have more than one mountain?",
      "List the names of mountains that do not have any climber.",
      "What are the names of countains that no climber has climbed?",
      "Show the countries that have mountains with height more than 5600 stories and mountains with height less than 5200.",
      "What are the countries that have both mountains that are higher than 5600 and lower than 5200?",
      "Show the range that has the most number of mountains.",
      "Which range contains the most mountains?",
      "Show the names of mountains with height more than 5000 or prominence more than 1000.",
      "What are the names of mountains that have a height of over 5000 or a prominence of over 1000?"
    ],
    "col_names": [
      "Mountain_ID",
      "Name",
      "Height",
      "Prominence",
      "Range",
      "Country"
    ],
    "standard_answer": [
      "SELECT Name FROM mountain ORDER BY Name ASC",
      "SELECT Name FROM mountain ORDER BY Name ASC",
      "SELECT Country FROM mountain WHERE Height  >  5000",
      "SELECT Country FROM mountain WHERE Height  >  5000",
      "SELECT Name FROM mountain ORDER BY Height DESC LIMIT 1",
      "SELECT Name FROM mountain ORDER BY Height DESC LIMIT 1",
      "SELECT DISTINCT Range FROM mountain ORDER BY Prominence DESC LIMIT 3",
      "SELECT DISTINCT Range FROM mountain ORDER BY Prominence DESC LIMIT 3",
      "SELECT Country FROM mountain GROUP BY Country HAVING COUNT(*)  >  1",
      "SELECT Country FROM mountain GROUP BY Country HAVING COUNT(*)  >  1",
      "SELECT Name FROM mountain WHERE Mountain_ID NOT IN (SELECT Mountain_ID FROM climber)",
      "SELECT Name FROM mountain WHERE Mountain_ID NOT IN (SELECT Mountain_ID FROM climber)",
      "SELECT Country FROM mountain WHERE Height  >  5600 INTERSECT SELECT Country FROM mountain WHERE Height  <  5200",
      "SELECT Country FROM mountain WHERE Height  >  5600 INTERSECT SELECT Country FROM mountain WHERE Height  <  5200",
      "SELECT Range FROM mountain GROUP BY Range ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Range FROM mountain GROUP BY Range ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Name FROM mountain WHERE Height  >  5000 OR Prominence  >  1000",
      "SELECT Name FROM mountain WHERE Height  >  5000 OR Prominence  >  1000"
    ]
  },
  {
    "database": "climbing",
    "table": "climber",
    "questions": [
      "How many climbers are there?",
      "Count the number of climbers.",
      "List the names of climbers in descending order of points.",
      "What are the names of the climbers, ordered by points descending?",
      "List the names of climbers whose country is not Switzerland.",
      "What are the names of climbers who are not from the country of Switzerland?",
      "What is the maximum point for climbers whose country is United Kingdom?",
      "Return the maximum number of points for climbers from the United Kingdom.",
      "How many distinct countries are the climbers from?",
      "Count the number of different countries that climbers are from.",
      "Show names of climbers and the names of mountains they climb.",
      "What are the names of climbers and the corresponding names of mountains that they climb?",
      "Show the names of climbers and the heights of mountains they climb.",
      "What are the names of climbers and the corresponding heights of the mountains that they climb?",
      "Show the height of the mountain climbed by the climber with the maximum points.",
      "What is the height of the mountain climbined by the climbing who had the most points?",
      "Show the distinct names of mountains climbed by climbers from country \"West Germany\".",
      "What are the different names of mountains ascended by climbers from the country of West Germany?",
      "Show the times used by climbers to climb mountains in Country Uganda.",
      "What are the times used by climbers who climbed mountains in the country of Uganda?",
      "Please show the countries and the number of climbers from each country.",
      "How many climbers are from each country?"
    ],
    "col_names": [
      "Climber_ID",
      "Name",
      "Country",
      "Time",
      "Points",
      "Mountain_ID"
    ],
    "standard_answer": [
      "SELECT count(*) FROM climber",
      "SELECT count(*) FROM climber",
      "SELECT Name FROM climber ORDER BY Points DESC",
      "SELECT Name FROM climber ORDER BY Points DESC",
      "SELECT Name FROM climber WHERE Country != \"Switzerland\"",
      "SELECT Name FROM climber WHERE Country != \"Switzerland\"",
      "SELECT max(Points) FROM climber WHERE Country  =  \"United Kingdom\"",
      "SELECT max(Points) FROM climber WHERE Country  =  \"United Kingdom\"",
      "SELECT COUNT(DISTINCT Country) FROM climber",
      "SELECT COUNT(DISTINCT Country) FROM climber",
      "SELECT T1.Name ,  T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID  =  T2.Mountain_ID",
      "SELECT T1.Name ,  T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID  =  T2.Mountain_ID",
      "SELECT T1.Name ,  T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID  =  T2.Mountain_ID",
      "SELECT T1.Name ,  T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID  =  T2.Mountain_ID",
      "SELECT T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID  =  T2.Mountain_ID ORDER BY T1.Points DESC LIMIT 1",
      "SELECT T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID  =  T2.Mountain_ID ORDER BY T1.Points DESC LIMIT 1",
      "SELECT DISTINCT T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID  =  T2.Mountain_ID WHERE T1.Country  =  \"West Germany\"",
      "SELECT DISTINCT T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID  =  T2.Mountain_ID WHERE T1.Country  =  \"West Germany\"",
      "SELECT T1.Time FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID  =  T2.Mountain_ID WHERE T2.Country  =  \"Uganda\"",
      "SELECT T1.Time FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID  =  T2.Mountain_ID WHERE T2.Country  =  \"Uganda\"",
      "SELECT Country ,  COUNT(*) FROM climber GROUP BY Country",
      "SELECT Country ,  COUNT(*) FROM climber GROUP BY Country"
    ]
  },
  {
    "database": "e_learning",
    "table": "Course_Authors_and_Tutors",
    "questions": [
      "What are the addresses of the course authors or tutors with personal name \"Cathrine\"",
      "Return the addresses of the course authors or tutors whose personal name is \"Cathrine\".",
      "List the addresses of all the course authors or tutors.",
      "What is the address of each course author or tutor?",
      "List all the login names and family names of course author and tutors.",
      "What are the login names and family names of course author and tutors?",
      "List all the information about course authors and tutors in alphabetical order of the personal name.",
      "Sort the information about course authors and tutors in alphabetical order of the personal name.",
      "Find the login name of the course author that teaches the course with name \"advanced database\".",
      "Which course author teaches the \"advanced database\" course? Give me his or her login name.",
      "Find the addresses of the course authors who teach the course with name \"operating system\" or \"data structure\".",
      "What are the addresses of the course authors who teach either \"operating system\" or \"data structure\" course.",
      "Find the personal name, family name, and author ID of the course author that teaches the most courses.",
      "What are the personal name, family name, and author ID of the course author who teaches the most courses?",
      "Find the addresses and author IDs of the course authors that teach at least two courses.",
      "Which course authors teach two or more courses? Give me their addresses and author IDs.",
      "Find the names of courses taught by the tutor who has personal name \"Julio\".",
      "What are the names of the courses taught by the tutor whose personal name is \"Julio\"?",
      "Find the common login name of course authors and students.",
      "What are the login names used both by some course authors and some students?",
      "Find the common personal name of course authors and students.",
      "What are the personal names used both by some course authors and some students?"
    ],
    "col_names": [
      "author_id",
      "author_tutor_ATB",
      "login_name",
      "password",
      "personal_name",
      "middle_name",
      "family_name",
      "gender_mf",
      "address_line_1"
    ],
    "standard_answer": [
      "SELECT address_line_1 FROM Course_Authors_and_Tutors WHERE personal_name\t =  \"Cathrine\"",
      "SELECT address_line_1 FROM Course_Authors_and_Tutors WHERE personal_name\t =  \"Cathrine\"",
      "SELECT address_line_1 FROM Course_Authors_and_Tutors",
      "SELECT address_line_1 FROM Course_Authors_and_Tutors",
      "SELECT login_name ,  family_name FROM Course_Authors_and_Tutors",
      "SELECT login_name ,  family_name FROM Course_Authors_and_Tutors",
      "SELECT * FROM Course_Authors_and_Tutors ORDER BY personal_name",
      "SELECT * FROM Course_Authors_and_Tutors ORDER BY personal_name",
      "SELECT T1.login_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T2.course_name  =  \"advanced database\"",
      "SELECT T1.login_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T2.course_name  =  \"advanced database\"",
      "SELECT T1.address_line_1 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T2.course_name  =  \"operating system\" OR T2.course_name  =  \"data structure\"",
      "SELECT T1.address_line_1 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T2.course_name  =  \"operating system\" OR T2.course_name  =  \"data structure\"",
      "SELECT T1.personal_name ,  T1.family_name ,  T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id GROUP BY T2.author_id ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T1.personal_name ,  T1.family_name ,  T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id GROUP BY T2.author_id ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T1.address_line_1 ,  T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id GROUP BY T2.author_id HAVING Count(*)  >=  2",
      "SELECT T1.address_line_1 ,  T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id GROUP BY T2.author_id HAVING Count(*)  >=  2",
      "SELECT T2.course_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T1.personal_name  =  \"Julio\"",
      "SELECT T2.course_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T1.personal_name  =  \"Julio\"",
      "SELECT login_name FROM Course_Authors_and_Tutors INTERSECT SELECT login_name FROM Students",
      "SELECT login_name FROM Course_Authors_and_Tutors INTERSECT SELECT login_name FROM Students",
      "SELECT personal_name FROM Course_Authors_and_Tutors INTERSECT SELECT personal_name FROM Students",
      "SELECT personal_name FROM Course_Authors_and_Tutors INTERSECT SELECT personal_name FROM Students"
    ]
  },
  {
    "database": "e_learning",
    "table": "Students",
    "questions": [
      "What are the login names of the students with family name \"Ward\"?",
      "Return the login names of the students whose family name is \"Ward\".",
      "What are the dates of the latest logon of the students with family name \"Jaskolski\" or \"Langosh\"?",
      "Find the latest logon date of the students whose family name is \"Jaskolski\" or \"Langosh\".",
      "How many students have personal names that contain the word \"son\"?",
      "Find the number of students who have the word \"son\" in their personal names.",
      "List the personal names and family names of all the students in alphabetical order of family name.",
      "What are the personal names and family names of the students? Sort the result in alphabetical order of the family name.",
      "Find the personal names of students not enrolled in any course.",
      "Which students not enrolled in any course? Find their personal names.",
      "How many students did not have any course enrollment?",
      "Count the number of students who did not enroll in any course."
    ],
    "col_names": [
      "student_id",
      "date_of_registration",
      "date_of_latest_logon",
      "login_name",
      "password",
      "personal_name",
      "middle_name",
      "family_name"
    ],
    "standard_answer": [
      "SELECT login_name FROM Students WHERE family_name  =  \"Ward\"",
      "SELECT login_name FROM Students WHERE family_name  =  \"Ward\"",
      "SELECT date_of_latest_logon FROM Students WHERE family_name  =  \"Jaskolski\" OR family_name  =  \"Langosh\"",
      "SELECT date_of_latest_logon FROM Students WHERE family_name  =  \"Jaskolski\" OR family_name  =  \"Langosh\"",
      "SELECT COUNT(*) FROM Students WHERE personal_name LIKE \"%son%\"",
      "SELECT COUNT(*) FROM Students WHERE personal_name LIKE \"%son%\"",
      "SELECT personal_name ,  family_name FROM Students ORDER BY family_name",
      "SELECT personal_name ,  family_name FROM Students ORDER BY family_name",
      "SELECT personal_name FROM Students EXCEPT SELECT T1.personal_name FROM Students AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.student_id  =  T2.student_id",
      "SELECT personal_name FROM Students EXCEPT SELECT T1.personal_name FROM Students AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.student_id  =  T2.student_id",
      "SELECT count(*) FROM Students WHERE student_id NOT IN (SELECT student_id FROM Student_Course_Enrolment)",
      "SELECT count(*) FROM Students WHERE student_id NOT IN (SELECT student_id FROM Student_Course_Enrolment)"
    ]
  },
  {
    "database": "e_learning",
    "table": "Subjects",
    "questions": [],
    "col_names": [
      "subject_id",
      "subject_name"
    ],
    "standard_answer": []
  },
  {
    "database": "e_learning",
    "table": "Courses",
    "questions": [
      "Find the names and descriptions of courses that belong to the subject named \"Computer Science\".",
      "What are the names and descriptions of the all courses under the \"Computer Science\" subject?",
      "Find the subject ID, subject name, and the corresponding number of available courses for each subject.",
      "What are the subject ID, subject name, and the number of available courses for each subject?",
      "Find the subject ID, name of subject and the corresponding number of courses for each subject, and sort by the course count in ascending order.",
      "List the subject ID, name of subject and the number of courses available for each subject in ascending order of the course counts.",
      "What is the date of enrollment of the course named \"Spanish\"?",
      "Find the the date of enrollment of the \"Spanish\" course.",
      "What is the name of the course that has the most student enrollment?",
      "Which course is enrolled in by the most students? Give me the course name.",
      "What are the names of the courses that have exactly 1 student enrollment?",
      "Find the names of the courses that have just one student enrollment.",
      "What are the descriptions and names of the courses that have student enrollment bigger than 2?",
      "Return the descriptions and names of the courses that have more than two students enrolled in.",
      "What is the name of each course and the corresponding number of student enrollment?",
      "List the name and the number of enrolled student for each course."
    ],
    "col_names": [
      "course_id",
      "author_id",
      "subject_id",
      "course_name",
      "course_description"
    ],
    "standard_answer": [
      "SELECT T1.course_name ,  T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id WHERE T2.subject_name  =  \"Computer Science\"",
      "SELECT T1.course_name ,  T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id WHERE T2.subject_name  =  \"Computer Science\"",
      "SELECT T1.subject_id ,  T2.subject_name ,  COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id GROUP BY T1.subject_id",
      "SELECT T1.subject_id ,  T2.subject_name ,  COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id GROUP BY T1.subject_id",
      "SELECT T1.subject_id ,  T2.subject_name ,  COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT(*) ASC",
      "SELECT T1.subject_id ,  T2.subject_name ,  COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id  =  T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT(*) ASC",
      "SELECT T2.date_of_enrolment FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id WHERE T1.course_name  =  \"Spanish\"",
      "SELECT T2.date_of_enrolment FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id WHERE T1.course_name  =  \"Spanish\"",
      "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name HAVING COUNT(*)  =  1",
      "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name HAVING COUNT(*)  =  1",
      "SELECT T1.course_description ,  T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name HAVING COUNT(*)  >  2",
      "SELECT T1.course_description ,  T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name HAVING COUNT(*)  >  2",
      "SELECT T1.course_name ,  COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name",
      "SELECT T1.course_name ,  COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name"
    ]
  },
  {
    "database": "e_learning",
    "table": "Student_Course_Enrolment",
    "questions": [
      "List all the dates of enrollment and completion of students.",
      "What are all the dates of enrollment and completion in record?",
      "How many distinct students are enrolled in courses?",
      "Find the number of distinct students enrolled in courses.",
      "How many distinct courses are enrolled in by students?",
      "Find the number of distinct courses that have enrolled students.",
      "What are the enrollment dates of all the tests that have result \"Pass\"?",
      "Find the enrollment date for all the tests that have \"Pass\" result.",
      "What are the completion dates of all the tests that have result \"Fail\"?",
      "Return the completion date for all the tests that have \"Fail\" result.",
      "List the dates of enrollment and completion of the student with personal name \"Karson\".",
      "On what dates did the student whose personal name is \"Karson\" enroll in and complete the courses?",
      "List the dates of enrollment and completion of the student with family name \"Zieme\" and personal name \"Bernie\".",
      "On what dates did the student with family name \"Zieme\" and personal name \"Bernie\" enroll in and complete the courses?",
      "Find the student ID and login name of the student with the most course enrollments",
      "What are the student ID and login name of the student who are enrolled in the most courses?",
      "Find the student ID and personal name of the student with at least two enrollments.",
      "Which student are enrolled in at least two courses? Give me the student ID and personal name.",
      "Find the student ID and middle name for all the students with at most two enrollments.",
      "What are the student IDs and middle names of the students enrolled in at most two courses?"
    ],
    "col_names": [
      "registration_id",
      "student_id",
      "course_id",
      "date_of_enrolment",
      "date_of_completion"
    ],
    "standard_answer": [
      "SELECT date_of_enrolment ,  date_of_completion FROM Student_Course_Enrolment",
      "SELECT date_of_enrolment ,  date_of_completion FROM Student_Course_Enrolment",
      "SELECT count(DISTINCT student_id) FROM Student_Course_Enrolment",
      "SELECT count(DISTINCT student_id) FROM Student_Course_Enrolment",
      "SELECT count(course_id) FROM Student_Course_Enrolment",
      "SELECT count(course_id) FROM Student_Course_Enrolment",
      "SELECT T1.date_of_enrolment FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id  =  T2.registration_id WHERE T2.test_result  =  \"Pass\"",
      "SELECT T1.date_of_enrolment FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id  =  T2.registration_id WHERE T2.test_result  =  \"Pass\"",
      "SELECT T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id  =  T2.registration_id WHERE T2.test_result  =  \"Fail\"",
      "SELECT T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id  =  T2.registration_id WHERE T2.test_result  =  \"Fail\"",
      "SELECT T1.date_of_enrolment ,  T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.personal_name  =  \"Karson\"",
      "SELECT T1.date_of_enrolment ,  T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.personal_name  =  \"Karson\"",
      "SELECT T1.date_of_enrolment ,  T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.family_name  =  \"Zieme\" AND T2.personal_name  =  \"Bernie\"",
      "SELECT T1.date_of_enrolment ,  T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.family_name  =  \"Zieme\" AND T2.personal_name  =  \"Bernie\"",
      "SELECT T1.student_id ,  T2.login_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T1.student_id ,  T2.login_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T1.student_id ,  T2.personal_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING COUNT(*)  >=  2",
      "SELECT T1.student_id ,  T2.personal_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING COUNT(*)  >=  2",
      "SELECT T1.student_id ,  T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING COUNT(*)  <=  2",
      "SELECT T1.student_id ,  T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING COUNT(*)  <=  2"
    ]
  },
  {
    "database": "e_learning",
    "table": "Student_Tests_Taken",
    "questions": [
      "Find the dates of the tests taken with result \"Pass\".",
      "Which tests have \"Pass\" results? Return the dates when the tests were taken.",
      "How many tests have result \"Fail\"?",
      "Count the number of tests with \"Fail\" result.",
      "List each test result and its count in descending order of count.",
      "For each distinct test result, find the number of students who got the result."
    ],
    "col_names": [
      "registration_id",
      "date_test_taken",
      "test_result"
    ],
    "standard_answer": [
      "SELECT date_test_taken FROM Student_Tests_Taken WHERE test_result  =  \"Pass\"",
      "SELECT date_test_taken FROM Student_Tests_Taken WHERE test_result  =  \"Pass\"",
      "SELECT count(*) FROM Student_Tests_Taken WHERE test_result  =  \"Fail\"",
      "SELECT count(*) FROM Student_Tests_Taken WHERE test_result  =  \"Fail\"",
      "SELECT test_result ,  COUNT(*) FROM Student_Tests_Taken GROUP BY test_result ORDER BY COUNT(*) DESC",
      "SELECT test_result ,  COUNT(*) FROM Student_Tests_Taken GROUP BY test_result ORDER BY COUNT(*) DESC"
    ]
  },
  {
    "database": "scientist_1",
    "table": "Scientists",
    "questions": [
      "List all the scientists' names, their projects' names, and the hours worked by that scientist on each project, in alphabetical order of project name, and then scientist name.",
      "What are the names of each scientist, the names of the projects that they work on, and the hours for each of those projects, listed in alphabetical order by project name, then scientist name."
    ],
    "col_names": [
      "SSN",
      "Name"
    ],
    "standard_answer": [
      "SELECT T1.Name ,  T3.Name ,  T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name ,  T1.Name",
      "SELECT T1.Name ,  T3.Name ,  T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name ,  T1.Name"
    ]
  },
  {
    "database": "scientist_1",
    "table": "Projects",
    "questions": [
      "Select the project names which are not assigned yet.",
      "What are the names of projects that have not been assigned?"
    ],
    "col_names": [
      "Code",
      "Name",
      "Hours"
    ],
    "standard_answer": [
      "SELECT Name FROM Projects WHERE Code NOT IN (SELECT Project FROM AssignedTo)",
      "SELECT Name FROM Projects WHERE Code NOT IN (SELECT Project FROM AssignedTo)"
    ]
  },
  {
    "database": "scientist_1",
    "table": "AssignedTo",
    "questions": [],
    "col_names": [
      "Scientist",
      "Project"
    ],
    "standard_answer": []
  },
  {
    "database": "ship_1",
    "table": "captain",
    "questions": [
      "How many different captain ranks are there?",
      "Count the number of different ranks of captain.",
      "How many captains are in each rank?",
      "Count the number of captains that have each rank.",
      "How many captains with younger than 50 are in each rank?",
      "Count the number of captains younger than 50 of each rank.",
      "Sort all captain names by their ages from old to young.",
      "What are the names of captains, sorted by age descending?",
      "Find the name, class and rank of all captains.",
      "What are the names, classes, and ranks of all captains?",
      "Which rank is the most common among captains?",
      "Return the rank for which there are the fewest captains.",
      "Which classes have more than two captains?",
      "Give the classes that have more than two captains.",
      "Find the name of captains whose rank are either Midshipman or Lieutenant.",
      "What are the names of captains that have either the rank Midshipman or Lieutenant?",
      "What are the average and minimum age of captains in different class?",
      "Return the average and minimum age of captains in each class.",
      "Find the captain rank that has some captains in both Cutter and Armed schooner classes.",
      "What are the ranks of captains that are both in the Cutter and Armed schooner classes?",
      "Find the captain rank that has no captain in Third-rate ship of the line class.",
      "What are the ranks of captains that have no captain that are in the Third-rate ship of the line class?",
      "What is the name of the youngest captain?",
      "Return the name of the youngest captain."
    ],
    "col_names": [
      "Captain_ID",
      "Name",
      "Ship_ID",
      "age",
      "Class",
      "Rank"
    ],
    "standard_answer": [
      "SELECT count(DISTINCT rank) FROM captain",
      "SELECT count(DISTINCT rank) FROM captain",
      "SELECT count(*) ,  rank FROM captain GROUP BY rank",
      "SELECT count(*) ,  rank FROM captain GROUP BY rank",
      "SELECT count(*) ,  rank FROM captain WHERE age  <  50 GROUP BY rank",
      "SELECT count(*) ,  rank FROM captain WHERE age  <  50 GROUP BY rank",
      "SELECT name FROM captain ORDER BY age DESC",
      "SELECT name FROM captain ORDER BY age DESC",
      "SELECT name ,  CLASS ,  rank FROM captain",
      "SELECT name ,  CLASS ,  rank FROM captain",
      "SELECT rank FROM captain GROUP BY rank ORDER BY count(*) DESC LIMIT 1",
      "SELECT rank FROM captain GROUP BY rank ORDER BY count(*) DESC LIMIT 1",
      "SELECT CLASS FROM captain GROUP BY CLASS HAVING count(*)  >  2",
      "SELECT CLASS FROM captain GROUP BY CLASS HAVING count(*)  >  2",
      "SELECT name FROM captain WHERE rank  =  'Midshipman' OR rank  =  'Lieutenant'",
      "SELECT name FROM captain WHERE rank  =  'Midshipman' OR rank  =  'Lieutenant'",
      "SELECT avg(age) ,  min(age) ,  CLASS FROM captain GROUP BY CLASS",
      "SELECT avg(age) ,  min(age) ,  CLASS FROM captain GROUP BY CLASS",
      "SELECT rank FROM captain WHERE CLASS  =  'Cutter' INTERSECT SELECT rank FROM captain WHERE CLASS  =  'Armed schooner'",
      "SELECT rank FROM captain WHERE CLASS  =  'Cutter' INTERSECT SELECT rank FROM captain WHERE CLASS  =  'Armed schooner'",
      "SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE CLASS  =  'Third-rate ship of the line'",
      "SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE CLASS  =  'Third-rate ship of the line'",
      "SELECT name FROM captain ORDER BY age LIMIT 1",
      "SELECT name FROM captain ORDER BY age LIMIT 1"
    ]
  },
  {
    "database": "ship_1",
    "table": "Ship",
    "questions": [],
    "col_names": [
      "Ship_ID",
      "Name",
      "Type",
      "Built_Year",
      "Class",
      "Flag"
    ],
    "standard_answer": []
  },
  {
    "database": "entertainment_awards",
    "table": "festival_detail",
    "questions": [
      "What are the names and locations of festivals?",
      "What are the names of the chairs of festivals, sorted in ascending order of the year held?",
      "What is the location of the festival with the largest number of audience?",
      "What are the names of festivals held in year 2007?",
      "What is the average number of audience for festivals?",
      "Show the names of the three most recent festivals.",
      "List the year in which there are more than one festivals.",
      "Show the number of audience in year 2008 or 2010.",
      "What are the total number of the audiences who visited any of the festivals?",
      "In which year are there festivals both inside the 'United States' and outside the 'United States'?"
    ],
    "col_names": [
      "Festival_ID",
      "Festival_Name",
      "Chair_Name",
      "Location",
      "Year",
      "Num_of_Audience"
    ],
    "standard_answer": [
      "SELECT Festival_Name ,  LOCATION FROM festival_detail",
      "SELECT Chair_Name FROM festival_detail ORDER BY YEAR ASC",
      "SELECT LOCATION FROM festival_detail ORDER BY Num_of_Audience DESC LIMIT 1",
      "SELECT Festival_Name FROM festival_detail WHERE YEAR  =  2007",
      "SELECT avg(Num_of_Audience) FROM festival_detail",
      "SELECT Festival_Name FROM festival_detail ORDER BY YEAR DESC LIMIT 3",
      "SELECT YEAR FROM festival_detail GROUP BY YEAR HAVING COUNT(*)  >  1",
      "SELECT Num_of_Audience FROM festival_detail WHERE YEAR  =  2008 OR YEAR  =  2010",
      "SELECT sum(Num_of_Audience) FROM festival_detail",
      "SELECT YEAR FROM festival_detail WHERE LOCATION  =  'United States' INTERSECT SELECT YEAR FROM festival_detail WHERE LOCATION != 'United States'"
    ]
  },
  {
    "database": "entertainment_awards",
    "table": "artwork",
    "questions": [
      "How many artworks are there?",
      "List the name of artworks in ascending alphabetical order.",
      "List the name of artworks whose type is not \"Program Talent Show\".",
      "Please show different types of artworks with the corresponding number of artworks of each type.",
      "List the most common type of artworks."
    ],
    "col_names": [
      "Artwork_ID",
      "Type",
      "Name"
    ],
    "standard_answer": [
      "SELECT count(*) FROM artwork",
      "SELECT Name FROM artwork ORDER BY Name ASC",
      "SELECT Name FROM artwork WHERE TYPE != \"Program Talent Show\"",
      "SELECT TYPE ,  COUNT(*) FROM artwork GROUP BY TYPE",
      "SELECT TYPE FROM artwork GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "entertainment_awards",
    "table": "nomination",
    "questions": [
      "For each nomination, show the name of the artwork and name of the festival where it is nominated.",
      "Show distinct types of artworks that are nominated in festivals in 2007.",
      "Show the names of artworks in ascending order of the year they are nominated in.",
      "Show the names of festivals that have nominated artworks of type \"Program Talent Show\".",
      "Show the ids and names of festivals that have at least two nominations for artworks.",
      "Show the id, name of each festival and the number of artworks it has nominated."
    ],
    "col_names": [
      "Artwork_ID",
      "Festival_ID",
      "Result"
    ],
    "standard_answer": [
      "SELECT T2.Name ,  T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID",
      "SELECT DISTINCT T2.Type FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID WHERE T3.Year  =  2007",
      "SELECT T2.Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID ORDER BY T3.Year",
      "SELECT T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID WHERE T2.Type  =  \"Program Talent Show\"",
      "SELECT T1.Festival_ID ,  T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID GROUP BY T1.Festival_ID HAVING COUNT(*)  >=  2",
      "SELECT T1.Festival_ID ,  T3.Festival_Name ,  COUNT(*) FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID GROUP BY T1.Festival_ID"
    ]
  },
  {
    "database": "allergy_1",
    "table": "Allergy_Type",
    "questions": [],
    "col_names": [
      "Allergy",
      "AllergyType"
    ],
    "standard_answer": []
  },
  {
    "database": "allergy_1",
    "table": "Has_Allergy",
    "questions": [],
    "col_names": [
      "StuID",
      "Allergy"
    ],
    "standard_answer": []
  },
  {
    "database": "allergy_1",
    "table": "Student",
    "questions": [
      "How many students are there?",
      "What is the total number of students?",
      "Show first name and last name for all students.",
      "What are the full names of all students",
      "How many different advisors are listed?",
      "How many advisors are there?",
      "Show all majors.",
      "What are the different majors?",
      "Show all cities where students live.",
      "What cities do students live in?",
      "Show first name, last name, age for all female students. Their sex is F.",
      "What are the full names and ages for all female students whose sex is F?",
      "Show student ids for all male students.",
      "What are the student ids for all male students?",
      "How many students are age 18?",
      "How many students are 18 years old?",
      "Show all student ids who are older than 20.",
      "What are the student ids for students over 20 years old?",
      "Which city does the student whose last name is \"Kim\" live in?",
      "Give the city that the student whose family name is Kim lives in.",
      "Who is the advisor of student with ID 1004?",
      "Who advises student 1004?",
      "How many students live in HKG or CHI?",
      "Give the number of students living in either HKG or CHI.",
      "Show the minimum, average, and maximum age of all students.",
      "What is the minimum, mean, and maximum age across all students?",
      "What is the last name of the youngest student?",
      "Provide the last name of the youngest student.",
      "Show the student id of the oldest student.",
      "What student id corresponds to the oldest student?",
      "Show all majors and corresponding number of students.",
      "How many students are there for each major?",
      "Which major has most number of students?",
      "What is the largest major?",
      "Show all ages and corresponding number of students.",
      "How old is each student and how many students are each age?",
      "Show the average age for male and female students.",
      "What are the average ages for male and female students?",
      "Show all cities and corresponding number of students.",
      "How many students live in each city?",
      "Show all advisors and corresponding number of students.",
      "How many students does each advisor have?",
      "Which advisor has most number of students?",
      "Give the advisor with the most students.",
      "What are the student ids of students who don't have any allergies?",
      "Which students are unaffected by allergies?",
      "Find the last name and age of the student who has allergy to both milk and cat.",
      "What are the last names and ages of the students who are allergic to milk and cat?",
      "Find the first name and gender of the student who has allergy to milk but not cat.",
      "What are the first name and gender of the students who have allergy to milk but can put up with cats?",
      "Find the average age of the students who have allergies with food and animal types.",
      "How old are the students with allergies to food and animal types on average?",
      "List the first and last name of the students who do not have any food type allergy.",
      "What is the full name of each student who is not allergic to any type of food.",
      "Find the number of male (sex is 'M') students who have some food type allery.",
      "How many male students (sex is 'M') are allergic to any type of food?",
      "Find the different first names and cities of the students who have allergy to milk or cat.",
      "What are the distinct first names and cities of the students who have allergy either to milk or to cat?",
      "Find the number of students who are older than 18 and do not have allergy to either food or animal.",
      "How many students are over 18 and do not have allergy to food type or animal type?",
      "Find the first name and major of the students who are not allegry to soy.",
      "What are the first name and major of the students who are able to consume soy?"
    ],
    "col_names": [
      "StuID",
      "LName",
      "Fname",
      "Age",
      "Sex",
      "Major",
      "Advisor",
      "city_code"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Student",
      "SELECT count(*) FROM Student",
      "SELECT Fname ,  Lname FROM Student",
      "SELECT Fname ,  Lname FROM Student",
      "SELECT count(DISTINCT advisor) FROM Student",
      "SELECT count(DISTINCT advisor) FROM Student",
      "SELECT DISTINCT Major FROM Student",
      "SELECT DISTINCT Major FROM Student",
      "SELECT DISTINCT city_code FROM Student",
      "SELECT DISTINCT city_code FROM Student",
      "SELECT Fname ,  Lname ,  Age FROM Student WHERE Sex  =  'F'",
      "SELECT Fname ,  Lname ,  Age FROM Student WHERE Sex  =  'F'",
      "SELECT StuID FROM Student WHERE Sex  =  'M'",
      "SELECT StuID FROM Student WHERE Sex  =  'M'",
      "SELECT count(*) FROM Student WHERE age  =  18",
      "SELECT count(*) FROM Student WHERE age  =  18",
      "SELECT StuID FROM Student WHERE age  >  20",
      "SELECT StuID FROM Student WHERE age  >  20",
      "SELECT city_code FROM Student WHERE LName  =  \"Kim\"",
      "SELECT city_code FROM Student WHERE LName  =  \"Kim\"",
      "SELECT Advisor FROM Student WHERE StuID  =  1004",
      "SELECT Advisor FROM Student WHERE StuID  =  1004",
      "SELECT count(*) FROM Student WHERE city_code  =  \"HKG\" OR city_code  =  \"CHI\"",
      "SELECT count(*) FROM Student WHERE city_code  =  \"HKG\" OR city_code  =  \"CHI\"",
      "SELECT min(age) ,  avg(age) ,  max(age) FROM Student",
      "SELECT min(age) ,  avg(age) ,  max(age) FROM Student",
      "SELECT LName FROM Student WHERE age  =  (SELECT min(age) FROM Student)",
      "SELECT LName FROM Student WHERE age  =  (SELECT min(age) FROM Student)",
      "SELECT StuID FROM Student WHERE age  =  (SELECT max(age) FROM Student)",
      "SELECT StuID FROM Student WHERE age  =  (SELECT max(age) FROM Student)",
      "SELECT major ,  count(*) FROM Student GROUP BY major",
      "SELECT major ,  count(*) FROM Student GROUP BY major",
      "SELECT major FROM Student GROUP BY major ORDER BY count(*) DESC LIMIT 1",
      "SELECT major FROM Student GROUP BY major ORDER BY count(*) DESC LIMIT 1",
      "SELECT age ,  count(*) FROM Student GROUP BY age",
      "SELECT age ,  count(*) FROM Student GROUP BY age",
      "SELECT avg(age) ,  sex FROM Student GROUP BY sex",
      "SELECT avg(age) ,  sex FROM Student GROUP BY sex",
      "SELECT city_code ,  count(*) FROM Student GROUP BY city_code",
      "SELECT city_code ,  count(*) FROM Student GROUP BY city_code",
      "SELECT advisor ,  count(*) FROM Student GROUP BY advisor",
      "SELECT advisor ,  count(*) FROM Student GROUP BY advisor",
      "SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*) DESC LIMIT 1",
      "SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*) DESC LIMIT 1",
      "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy",
      "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy",
      "SELECT lname ,  age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Milk\" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Cat\")",
      "SELECT lname ,  age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Milk\" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Cat\")",
      "SELECT fname ,  sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Milk\" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Cat\")",
      "SELECT fname ,  sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Milk\" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Cat\")",
      "SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"food\" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"animal\")",
      "SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"food\" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"animal\")",
      "SELECT fname ,  lname FROM Student WHERE StuID NOT IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"food\")",
      "SELECT fname ,  lname FROM Student WHERE StuID NOT IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"food\")",
      "SELECT count(*) FROM Student WHERE sex  =  \"M\" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"food\")",
      "SELECT count(*) FROM Student WHERE sex  =  \"M\" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"food\")",
      "SELECT DISTINCT T1.fname ,  T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid  =  T2.stuid WHERE T2.Allergy  =  \"Milk\" OR T2.Allergy  =  \"Cat\"",
      "SELECT DISTINCT T1.fname ,  T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid  =  T2.stuid WHERE T2.Allergy  =  \"Milk\" OR T2.Allergy  =  \"Cat\"",
      "SELECT count(*) FROM Student WHERE age  >  18 AND StuID NOT IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"food\" OR T2.allergytype  =  \"animal\")",
      "SELECT count(*) FROM Student WHERE age  >  18 AND StuID NOT IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  \"food\" OR T2.allergytype  =  \"animal\")",
      "SELECT fname ,  major FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Soy\")",
      "SELECT fname ,  major FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_allergy WHERE Allergy  =  \"Soy\")"
    ]
  },
  {
    "database": "imdb",
    "table": "actor",
    "questions": [],
    "col_names": [
      "aid",
      "gender",
      "name",
      "nationality",
      "birth_city",
      "birth_year"
    ],
    "standard_answer": []
  },
  {
    "database": "imdb",
    "table": "copyright",
    "questions": [],
    "col_names": [
      "id",
      "msid",
      "cid"
    ],
    "standard_answer": []
  },
  {
    "database": "imdb",
    "table": "cast",
    "questions": [],
    "col_names": [
      "id",
      "msid",
      "aid",
      "role"
    ],
    "standard_answer": []
  },
  {
    "database": "imdb",
    "table": "genre",
    "questions": [],
    "col_names": [
      "gid",
      "genre"
    ],
    "standard_answer": []
  },
  {
    "database": "imdb",
    "table": "classification",
    "questions": [],
    "col_names": [
      "id",
      "msid",
      "gid"
    ],
    "standard_answer": []
  },
  {
    "database": "imdb",
    "table": "company",
    "questions": [],
    "col_names": [
      "id",
      "name",
      "country_code"
    ],
    "standard_answer": []
  },
  {
    "database": "imdb",
    "table": "director",
    "questions": [],
    "col_names": [
      "did",
      "gender",
      "name",
      "nationality",
      "birth_city",
      "birth_year"
    ],
    "standard_answer": []
  },
  {
    "database": "imdb",
    "table": "producer",
    "questions": [],
    "col_names": [
      "pid",
      "gender",
      "name",
      "nationality",
      "birth_city",
      "birth_year"
    ],
    "standard_answer": []
  },
  {
    "database": "imdb",
    "table": "directed_by",
    "questions": [],
    "col_names": [
      "id",
      "msid",
      "did"
    ],
    "standard_answer": []
  },
  {
    "database": "imdb",
    "table": "keyword",
    "questions": [],
    "col_names": [
      "id",
      "keyword"
    ],
    "standard_answer": []
  },
  {
    "database": "imdb",
    "table": "made_by",
    "questions": [],
    "col_names": [
      "id",
      "msid",
      "pid"
    ],
    "standard_answer": []
  },
  {
    "database": "imdb",
    "table": "movie",
    "questions": [],
    "col_names": [
      "mid",
      "title",
      "release_year",
      "title_aka",
      "budget"
    ],
    "standard_answer": []
  },
  {
    "database": "imdb",
    "table": "tags",
    "questions": [],
    "col_names": [
      "id",
      "msid",
      "kid"
    ],
    "standard_answer": []
  },
  {
    "database": "imdb",
    "table": "tv_series",
    "questions": [],
    "col_names": [
      "sid",
      "title",
      "release_year",
      "num_of_seasons",
      "num_of_episodes",
      "title_aka",
      "budget"
    ],
    "standard_answer": []
  },
  {
    "database": "imdb",
    "table": "writer",
    "questions": [],
    "col_names": [
      "wid",
      "gender",
      "name",
      "nationality",
      "num_of_episodes",
      "birth_city",
      "birth_year"
    ],
    "standard_answer": []
  },
  {
    "database": "imdb",
    "table": "written_by",
    "questions": [],
    "col_names": [
      "id",
      "msid",
      "wid"
    ],
    "standard_answer": []
  },
  {
    "database": "products_for_hire",
    "table": "Discount_Coupons",
    "questions": [
      "What are the coupon amount of the coupons owned by both good and bad customers?"
    ],
    "col_names": [
      "coupon_id",
      "date_issued",
      "coupon_amount"
    ],
    "standard_answer": [
      "SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id  =  T2.coupon_id WHERE T2.good_or_bad_customer  =  'good' INTERSECT SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id  =  T2.coupon_id WHERE T2.good_or_bad_customer  =  'bad'"
    ]
  },
  {
    "database": "products_for_hire",
    "table": "Customers",
    "questions": [
      "How many bookings did each customer make? List the customer id, first name, and the count."
    ],
    "col_names": [
      "customer_id",
      "coupon_id",
      "good_or_bad_customer",
      "first_name",
      "last_name",
      "gender_mf",
      "date_became_customer",
      "date_last_hire"
    ],
    "standard_answer": [
      "SELECT T1.customer_id ,  T1.first_name ,  count(*) FROM Customers AS T1 JOIN bookings AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id"
    ]
  },
  {
    "database": "products_for_hire",
    "table": "Bookings",
    "questions": [
      "What are the id and the amount of refund of the booking that incurred the most times of payments?"
    ],
    "col_names": [
      "booking_id",
      "customer_id",
      "booking_status_code",
      "returned_damaged_yn",
      "booking_start_date",
      "booking_end_date",
      "count_hired",
      "amount_payable",
      "amount_of_discount",
      "amount_outstanding",
      "amount_of_refund"
    ],
    "standard_answer": [
      "SELECT T1.booking_id ,  T1.amount_of_refund FROM Bookings AS T1 JOIN Payments AS T2 ON T1.booking_id  =  T2.booking_id GROUP BY T1.booking_id ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "products_for_hire",
    "table": "Products_for_Hire",
    "questions": [],
    "col_names": [
      "product_id",
      "product_type_code",
      "daily_hire_cost",
      "product_name",
      "product_description"
    ],
    "standard_answer": []
  },
  {
    "database": "products_for_hire",
    "table": "Payments",
    "questions": [
      "What is the maximum total amount paid by a customer? List the customer id and amount."
    ],
    "col_names": [
      "payment_id",
      "booking_id",
      "customer_id",
      "payment_type_code",
      "amount_paid_in_full_yn",
      "payment_date",
      "amount_due",
      "amount_paid"
    ],
    "standard_answer": [
      "SELECT customer_id ,  sum(amount_paid) FROM Payments GROUP BY customer_id ORDER BY sum(amount_paid) DESC LIMIT 1"
    ]
  },
  {
    "database": "products_for_hire",
    "table": "Products_Booked",
    "questions": [],
    "col_names": [
      "booking_id",
      "product_id",
      "returned_yn",
      "returned_late_yn",
      "booked_count",
      "booked_amount"
    ],
    "standard_answer": []
  },
  {
    "database": "products_for_hire",
    "table": "View_Product_Availability",
    "questions": [],
    "col_names": [
      "product_id",
      "booking_id",
      "status_date",
      "available_yn"
    ],
    "standard_answer": []
  },
  {
    "database": "candidate_poll",
    "table": "candidate",
    "questions": [
      "How many candidates are there?",
      "Count the number of candidates.",
      "Which poll resource provided the most number of candidate information?",
      "Return the poll resource associated with the most candidates.",
      "what are the top 3 highest support rates?",
      "Return the top 3 greatest support rates.",
      "Find the id of the candidate who got the lowest oppose rate.",
      "What is the id of the candidate with the lowest oppose rate?",
      "Please list support, consider, and oppose rates for each candidate in ascending order by unsure rate.",
      "What are the support, consider, and oppose rates of each candidate, ordered ascending by their unsure rate?",
      "which poll source does the highest oppose rate come from?",
      "Return the poll source corresponding to the candidate who has the oppose rate.",
      "find the highest support percentage, lowest consider rate and oppose rate of all candidates.",
      "Return the maximum support rate, minimum consider rate, and minimum oppose rate across all candidates?"
    ],
    "col_names": [
      "Candidate_ID",
      "People_ID",
      "Poll_Source",
      "Date",
      "Support_rate",
      "Consider_rate",
      "Oppose_rate",
      "Unsure_rate"
    ],
    "standard_answer": [
      "SELECT count(*) FROM candidate",
      "SELECT count(*) FROM candidate",
      "SELECT poll_source FROM candidate GROUP BY poll_source ORDER BY count(*) DESC LIMIT 1",
      "SELECT poll_source FROM candidate GROUP BY poll_source ORDER BY count(*) DESC LIMIT 1",
      "SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3",
      "SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3",
      "SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1",
      "SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1",
      "SELECT Support_rate ,  Consider_rate ,  Oppose_rate FROM candidate ORDER BY unsure_rate",
      "SELECT Support_rate ,  Consider_rate ,  Oppose_rate FROM candidate ORDER BY unsure_rate",
      "SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1",
      "SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1",
      "SELECT max(support_rate) ,  min(consider_rate) ,  min(oppose_rate) FROM candidate",
      "SELECT max(support_rate) ,  min(consider_rate) ,  min(oppose_rate) FROM candidate"
    ]
  },
  {
    "database": "candidate_poll",
    "table": "people",
    "questions": [
      "List all people names in the order of their date of birth from old to young.",
      "What are the names of all people, ordered by their date of birth?",
      "Find the average height and weight for all males (sex is M).",
      "What are the average height and weight across males (sex is M)?",
      "find the names of people who are taller than 200 or lower than 190.",
      "What are the names of people who have a height greater than 200 or less than 190?",
      "Find the average and minimum weight for each gender.",
      "What are the average and minimum weights for people of each sex?",
      "Find the name and gender of the candidate who got the highest support rate.",
      "What is the name and sex of the candidate with the highest support rate?",
      "Find the name of the candidates whose oppose percentage is the lowest for each sex.",
      "For each sex, what is the name and sex of the candidate with the oppose rate for their sex?",
      "which gender got the highest average uncertain ratio.",
      "What is the sex of the candidate who had the highest unsure rate?",
      "what are the names of people who did not participate in the candidate election.",
      "Give the names of people who did not participate in the candidate election.",
      "Find the names of the candidates whose support percentage is lower than their oppose rate.",
      "What are the names of candidates who have a lower support rate than oppose rate?",
      "how many people are there whose weight is higher than 85 for each gender?",
      "Count the number of people of each sex who have a weight higher than 85.",
      "list all female (sex is F) candidate names in the alphabetical order.",
      "What are the names of all female candidates in alphabetical order (sex is F)?",
      "find the name of people whose height is lower than the average.",
      "What are the names of people who are shorter than average?",
      "List all info about all people.",
      "What is all the information about all people?"
    ],
    "col_names": [
      "People_ID",
      "Sex",
      "Name",
      "Date_of_Birth",
      "Height",
      "Weight"
    ],
    "standard_answer": [
      "SELECT name FROM people ORDER BY date_of_birth",
      "SELECT name FROM people ORDER BY date_of_birth",
      "SELECT avg(height) ,  avg(weight) FROM people WHERE sex  =  'M'",
      "SELECT avg(height) ,  avg(weight) FROM people WHERE sex  =  'M'",
      "SELECT name FROM people WHERE height  >  200 OR height  <  190",
      "SELECT name FROM people WHERE height  >  200 OR height  <  190",
      "SELECT avg(weight) ,  min(weight) ,  sex FROM people GROUP BY sex",
      "SELECT avg(weight) ,  min(weight) ,  sex FROM people GROUP BY sex",
      "SELECT t1.name ,  t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id ORDER BY t2.support_rate DESC LIMIT 1",
      "SELECT t1.name ,  t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id ORDER BY t2.support_rate DESC LIMIT 1",
      "SELECT t1.name ,  t1.sex ,  min(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id GROUP BY t1.sex",
      "SELECT t1.name ,  t1.sex ,  min(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id GROUP BY t1.sex",
      "SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id GROUP BY t1.sex ORDER BY avg(t2.unsure_rate) DESC LIMIT 1",
      "SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id GROUP BY t1.sex ORDER BY avg(t2.unsure_rate) DESC LIMIT 1",
      "SELECT name FROM people WHERE people_id NOT IN (SELECT people_id FROM candidate)",
      "SELECT name FROM people WHERE people_id NOT IN (SELECT people_id FROM candidate)",
      "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id WHERE t2.support_rate  <  t2.oppose_rate",
      "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id WHERE t2.support_rate  <  t2.oppose_rate",
      "SELECT count(*) ,  sex FROM people WHERE weight  >  85 GROUP BY sex",
      "SELECT count(*) ,  sex FROM people WHERE weight  >  85 GROUP BY sex",
      "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id WHERE t1.sex  =  'F' ORDER BY t1.name",
      "SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id WHERE t1.sex  =  'F' ORDER BY t1.name",
      "SELECT name FROM people WHERE height  <  (SELECT avg(height) FROM people)",
      "SELECT name FROM people WHERE height  <  (SELECT avg(height) FROM people)",
      "SELECT * FROM people",
      "SELECT * FROM people"
    ]
  },
  {
    "database": "chinook_1",
    "table": "Album",
    "questions": [
      "What are the album titles for albums containing both 'Reggae' and 'Rock' genre tracks?",
      "Find the titles of albums that contain tracks of both the Reggae and Rock genres."
    ],
    "col_names": [
      "AlbumId",
      "Title",
      "ArtistId"
    ],
    "standard_answer": [
      "SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId  =  T2.AlbumId JOIN Genre AS T3 ON T2.GenreID  =  T3.GenreID WHERE T3.Name  =  'Reggae' INTERSECT SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId  =  T2.AlbumId JOIN Genre AS T3 ON T2.GenreID  =  T3.GenreID WHERE T3.Name  =  'Rock'",
      "SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId  =  T2.AlbumId JOIN Genre AS T3 ON T2.GenreID  =  T3.GenreID WHERE T3.Name  =  'Reggae' INTERSECT SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId  =  T2.AlbumId JOIN Genre AS T3 ON T2.GenreID  =  T3.GenreID WHERE T3.Name  =  'Rock'"
    ]
  },
  {
    "database": "chinook_1",
    "table": "Artist",
    "questions": [],
    "col_names": [
      "ArtistId",
      "Name"
    ],
    "standard_answer": []
  },
  {
    "database": "chinook_1",
    "table": "Customer",
    "questions": [],
    "col_names": [
      "CustomerId",
      "FirstName",
      "LastName",
      "Company",
      "Address",
      "City",
      "State",
      "Country",
      "PostalCode",
      "Phone",
      "Fax",
      "Email",
      "SupportRepId"
    ],
    "standard_answer": []
  },
  {
    "database": "chinook_1",
    "table": "Employee",
    "questions": [],
    "col_names": [
      "EmployeeId",
      "LastName",
      "FirstName",
      "Title",
      "ReportsTo",
      "BirthDate",
      "HireDate",
      "Address",
      "City",
      "State",
      "Country",
      "PostalCode",
      "Phone",
      "Fax",
      "Email"
    ],
    "standard_answer": []
  },
  {
    "database": "chinook_1",
    "table": "Genre",
    "questions": [],
    "col_names": [
      "GenreId",
      "Name"
    ],
    "standard_answer": []
  },
  {
    "database": "chinook_1",
    "table": "Invoice",
    "questions": [],
    "col_names": [
      "InvoiceId",
      "CustomerId",
      "InvoiceDate",
      "BillingAddress",
      "BillingCity",
      "BillingState",
      "BillingCountry",
      "BillingPostalCode",
      "Total"
    ],
    "standard_answer": []
  },
  {
    "database": "chinook_1",
    "table": "InvoiceLine",
    "questions": [],
    "col_names": [
      "InvoiceLineId",
      "InvoiceId",
      "TrackId",
      "UnitPrice",
      "Quantity"
    ],
    "standard_answer": []
  },
  {
    "database": "chinook_1",
    "table": "MediaType",
    "questions": [],
    "col_names": [
      "MediaTypeId",
      "Name"
    ],
    "standard_answer": []
  },
  {
    "database": "chinook_1",
    "table": "Playlist",
    "questions": [],
    "col_names": [
      "PlaylistId",
      "Name"
    ],
    "standard_answer": []
  },
  {
    "database": "chinook_1",
    "table": "PlaylistTrack",
    "questions": [],
    "col_names": [
      "PlaylistId",
      "TrackId"
    ],
    "standard_answer": []
  },
  {
    "database": "chinook_1",
    "table": "Track",
    "questions": [],
    "col_names": [
      "TrackId",
      "Name",
      "AlbumId",
      "MediaTypeId",
      "GenreId",
      "Composer",
      "Milliseconds",
      "Bytes",
      "UnitPrice"
    ],
    "standard_answer": []
  },
  {
    "database": "flight_4",
    "table": "routes",
    "questions": [
      "Find the number of routes with destination airports in Italy.",
      "What is the number of routes whose destinations are Italian airports?",
      "Return the number of routes with destination airport in Italy operated by the airline with name 'American Airlines'.",
      "What is the number of routes operated by the airline American Airlines whose destinations are in Italy?",
      "Find the number of routes from the United States to Canada.",
      "How many routes go from the United States to Canada?",
      "Find the id of routes whose source and destination airports are in the United States.",
      "What is the id of the routes whose source and destination airports are in the United States?"
    ],
    "col_names": [
      "rid",
      "dst_apid",
      "dst_ap",
      "src_apid",
      "src_ap",
      "alid",
      "airline",
      "codeshare"
    ],
    "standard_answer": [
      "SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid  =  T2.apid WHERE T2.country  =  'Italy'",
      "SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid  =  T2.apid WHERE T2.country  =  'Italy'",
      "SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid  =  T2.apid JOIN airlines AS T3 ON T1.alid  =  T3.alid WHERE T2.country  =  'Italy' AND T3.name  =  'American Airlines'",
      "SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid  =  T2.apid JOIN airlines AS T3 ON T1.alid  =  T3.alid WHERE T2.country  =  'Italy' AND T3.name  =  'American Airlines'",
      "SELECT count(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country  =  'Canada') AND src_apid IN (SELECT apid FROM airports WHERE country  =  'United States')",
      "SELECT count(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country  =  'Canada') AND src_apid IN (SELECT apid FROM airports WHERE country  =  'United States')",
      "SELECT rid FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country  =  'United States') AND src_apid IN (SELECT apid FROM airports WHERE country  =  'United States')",
      "SELECT rid FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country  =  'United States') AND src_apid IN (SELECT apid FROM airports WHERE country  =  'United States')"
    ]
  },
  {
    "database": "flight_4",
    "table": "airports",
    "questions": [
      "Find the name of the airport in the city of Goroka.",
      "What are the names of the airports in the city of Goroka?",
      "Find the name, city, country, and altitude (or elevation) of the airports in the city of New York.",
      "What is the name, city, country, and elevation for every airport in the city of New York?",
      "What is the maximum elevation of all airports in the country of Iceland?",
      "What is the highest elevation of an airport in the country of Iceland?",
      "Find the name of the airports located in Cuba or Argentina.",
      "What are the names of all airports in Cuba or Argentina?",
      "Find the name of airports whose altitude is between -50 and 50.",
      "What are the names of all airports whose elevation is between -50 and 50?",
      "Which country is the airport that has the highest altitude located in?",
      "What is the country of the airport with the highest elevation?",
      "Find the number of airports whose name contain the word 'International'.",
      "How many airports' names have the word Interanation in them?",
      "How many different cities do have some airport in the country of Greenland?",
      "In how many cities are there airports in the country of Greenland?",
      "Find the number of routes whose destination airports are in Canada.",
      "How many routes end in a Canadian airport?",
      "Find the name, city, and country of the airport that has the lowest altitude.",
      "What is the name, city, and country of the airport with the lowest altitude?",
      "Find the name, city, and country of the airport that has the highest latitude.",
      "What is the name, city, and country of the airport with the highest elevation?",
      "Find the name and city of the airport which is the destination of the most number of routes.",
      "What is the name and city of the airport that the most routes end at?",
      "Find the name and city of the airport which is the source for the most number of flight routes.",
      "What is the name and city of the airport from most of the routes start?",
      "How many airports are there per country? Order the countries by decreasing number of airports.",
      "What is the number of airports per country, ordered from most to least?",
      "How many airports are there per city in the United States? Order the cities by decreasing number of airports.",
      "How many airports are there per city in the US ordered from most to least?",
      "Return the cities with more than 3 airports in the United States.",
      "What is the number of cities in the United States with more than 3 airports?",
      "List the cities which have more than one airport and number of airports.",
      "What are the names of all cities with more than one airport and how many airports do they have?",
      "List the cities which have more than 2 airports sorted by the number of airports.",
      "What are the cities that have more than 2 airports sorted by number of airports?",
      "Find the number of routes for each source airport and the airport name.",
      "For each airport name, how many routes start at that airport?",
      "Find the number of routes and airport name for each source airport, order the results by decreasing number of routes.",
      "For each  airport name, how many routes start at that airport, ordered from most to least?",
      "Find the average elevation of all airports for each country.",
      "For each country, what is the average elevation of that country's airports?",
      "Find the cities which have exactly two airports.",
      "What are the cities with exactly two airports?",
      "Find the number of routes that have destination John F Kennedy International Airport.",
      "What is the number of routes that end at John F Kennedy International Airport?",
      "Find the busiest source airport that runs most number of routes in China.",
      "What is the name of the airport with the most number of routes that start in China?",
      "Find the busiest destination airport that runs most number of routes in China.",
      "What is the name of the airport that is the destination of the most number of routes that start in China?"
    ],
    "col_names": [
      "apid",
      "name",
      "city",
      "country",
      "x",
      "y",
      "elevation",
      "iata",
      "icao"
    ],
    "standard_answer": [
      "SELECT name FROM airports WHERE city  =  'Goroka'",
      "SELECT name FROM airports WHERE city  =  'Goroka'",
      "SELECT name ,  city ,  country ,  elevation FROM airports WHERE city  =  'New York'",
      "SELECT name ,  city ,  country ,  elevation FROM airports WHERE city  =  'New York'",
      "SELECT max(elevation) FROM airports WHERE country  =  'Iceland'",
      "SELECT max(elevation) FROM airports WHERE country  =  'Iceland'",
      "SELECT name FROM airports WHERE country  =  'Cuba' OR country  =  'Argentina'",
      "SELECT name FROM airports WHERE country  =  'Cuba' OR country  =  'Argentina'",
      "SELECT name FROM airports WHERE elevation BETWEEN -50 AND 50",
      "SELECT name FROM airports WHERE elevation BETWEEN -50 AND 50",
      "SELECT country FROM airports ORDER BY elevation DESC LIMIT 1",
      "SELECT country FROM airports ORDER BY elevation DESC LIMIT 1",
      "SELECT count(*) FROM airports WHERE name LIKE '%International%'",
      "SELECT count(*) FROM airports WHERE name LIKE '%International%'",
      "SELECT count(DISTINCT city) FROM airports WHERE country  =  'Greenland'",
      "SELECT count(DISTINCT city) FROM airports WHERE country  =  'Greenland'",
      "SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid WHERE country  =  'Canada'",
      "SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid WHERE country  =  'Canada'",
      "SELECT name ,  city ,  country FROM airports ORDER BY elevation LIMIT 1",
      "SELECT name ,  city ,  country FROM airports ORDER BY elevation LIMIT 1",
      "SELECT name ,  city ,  country FROM airports ORDER BY elevation DESC LIMIT 1",
      "SELECT name ,  city ,  country FROM airports ORDER BY elevation DESC LIMIT 1",
      "SELECT T1.name ,  T1.city ,  T2.dst_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid GROUP BY T2.dst_apid ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.name ,  T1.city ,  T2.dst_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid GROUP BY T2.dst_apid ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.name ,  T1.city ,  T2.src_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid GROUP BY T2.src_apid ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.name ,  T1.city ,  T2.src_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid GROUP BY T2.src_apid ORDER BY count(*) DESC LIMIT 1",
      "SELECT count(*) ,  country FROM airports GROUP BY country ORDER BY count(*) DESC",
      "SELECT count(*) ,  country FROM airports GROUP BY country ORDER BY count(*) DESC",
      "SELECT count(*) ,  city FROM airports WHERE country  =  'United States' GROUP BY city ORDER BY count(*) DESC",
      "SELECT count(*) ,  city FROM airports WHERE country  =  'United States' GROUP BY city ORDER BY count(*) DESC",
      "SELECT city FROM airports WHERE country  =  'United States' GROUP BY city HAVING count(*)  >  3",
      "SELECT city FROM airports WHERE country  =  'United States' GROUP BY city HAVING count(*)  >  3",
      "SELECT city ,  count(*) FROM airports GROUP BY city HAVING count(*)  >  1",
      "SELECT city ,  count(*) FROM airports GROUP BY city HAVING count(*)  >  1",
      "SELECT city FROM airports GROUP BY city HAVING count(*)  >  2 ORDER BY count(*)",
      "SELECT city FROM airports GROUP BY city HAVING count(*)  >  2 ORDER BY count(*)",
      "SELECT count(*) ,  T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid GROUP BY T1.name",
      "SELECT count(*) ,  T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid GROUP BY T1.name",
      "SELECT count(*) ,  T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid GROUP BY T1.name ORDER BY count(*) DESC",
      "SELECT count(*) ,  T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid GROUP BY T1.name ORDER BY count(*) DESC",
      "SELECT avg(elevation) ,  country FROM airports GROUP BY country",
      "SELECT avg(elevation) ,  country FROM airports GROUP BY country",
      "SELECT city FROM airports GROUP BY city HAVING count(*)  =  2",
      "SELECT city FROM airports GROUP BY city HAVING count(*)  =  2",
      "SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid WHERE T1.name  =  'John F Kennedy International Airport'",
      "SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid WHERE T1.name  =  'John F Kennedy International Airport'",
      "SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid WHERE T1.country  =  'China' GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid WHERE T1.country  =  'China' GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid WHERE T1.country  =  'China' GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid WHERE T1.country  =  'China' GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "flight_4",
    "table": "airlines",
    "questions": [
      "How many airlines are there?",
      "What is the total number of airlines?",
      "How many airlines does Russia has?",
      "What is the number of airlines based in Russia?",
      "Find the country of the airlines whose name starts with 'Orbit'.",
      "What are the countries of all airlines whose names start with Orbit?",
      "Find the number of routes operated by American Airlines.",
      "How many routes does American Airlines operate?",
      "Find the names of the top 10 airlines that operate the most number of routes.",
      "For the airline ids with the top 10 most routes operated, what are their names?",
      "Find the number of different airports which are the destinations of the American Airlines.",
      "What is the number of different different airports that are destinations for American Airlines?",
      "Which countries has the most number of airlines?",
      "What is the name of the country with the most number of home airlines?",
      "Which countries has the most number of airlines whose active status is 'Y'?",
      "What are the countries with the most airlines whose active status is Y?",
      "List all countries and their number of airlines in the descending order of number of airlines.",
      "How many airlines operate out of each country in descending order?",
      "For each country and airline name, how many routes are there?",
      "What is the total number of routes for each country and airline in that country?",
      "Find the name of airline which runs the most number of routes.",
      "What is the name of the airline with the most routes?"
    ],
    "col_names": [
      "alid",
      "name",
      "iata",
      "icao",
      "callsign",
      "country",
      "active"
    ],
    "standard_answer": [
      "SELECT count(*) FROM airlines",
      "SELECT count(*) FROM airlines",
      "SELECT count(*) FROM airlines WHERE country  =  'Russia'",
      "SELECT count(*) FROM airlines WHERE country  =  'Russia'",
      "SELECT country FROM airlines WHERE name LIKE 'Orbit%'",
      "SELECT country FROM airlines WHERE name LIKE 'Orbit%'",
      "SELECT count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid WHERE T1.name  =  'American Airlines'",
      "SELECT count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid WHERE T1.name  =  'American Airlines'",
      "SELECT T1.name ,  T2.alid FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid GROUP BY T2.alid ORDER BY count(*) DESC LIMIT 10",
      "SELECT T1.name ,  T2.alid FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid GROUP BY T2.alid ORDER BY count(*) DESC LIMIT 10",
      "SELECT count(DISTINCT dst_apid) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid WHERE T1.name  =  'American Airlines'",
      "SELECT count(DISTINCT dst_apid) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid WHERE T1.name  =  'American Airlines'",
      "SELECT country FROM airlines GROUP BY country ORDER BY count(*) DESC LIMIT 1",
      "SELECT country FROM airlines GROUP BY country ORDER BY count(*) DESC LIMIT 1",
      "SELECT country FROM airlines WHERE active  =  'Y' GROUP BY country ORDER BY count(*) DESC LIMIT 1",
      "SELECT country FROM airlines WHERE active  =  'Y' GROUP BY country ORDER BY count(*) DESC LIMIT 1",
      "SELECT country ,  count(*) FROM airlines GROUP BY country ORDER BY count(*) DESC",
      "SELECT country ,  count(*) FROM airlines GROUP BY country ORDER BY count(*) DESC",
      "SELECT T1.country ,  T1.name ,  count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid GROUP BY T1.country ,  T1.name",
      "SELECT T1.country ,  T1.name ,  count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid GROUP BY T1.country ,  T1.name",
      "SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "pets_1",
    "table": "Student",
    "questions": [],
    "col_names": [
      "StuID",
      "LName",
      "Fname",
      "Age",
      "Sex",
      "Major",
      "Advisor",
      "city_code"
    ],
    "standard_answer": []
  },
  {
    "database": "pets_1",
    "table": "Has_Pet",
    "questions": [],
    "col_names": [
      "StuID",
      "PetID"
    ],
    "standard_answer": []
  },
  {
    "database": "pets_1",
    "table": "Pets",
    "questions": [],
    "col_names": [
      "PetID",
      "PetType",
      "pet_age",
      "weight"
    ],
    "standard_answer": []
  },
  {
    "database": "dorm_1",
    "table": "Student",
    "questions": [],
    "col_names": [
      "StuID",
      "LName",
      "Fname",
      "Age",
      "Sex",
      "Major",
      "Advisor",
      "city_code"
    ],
    "standard_answer": []
  },
  {
    "database": "dorm_1",
    "table": "Dorm",
    "questions": [],
    "col_names": [
      "dormid",
      "dorm_name",
      "student_capacity",
      "gender"
    ],
    "standard_answer": []
  },
  {
    "database": "dorm_1",
    "table": "Dorm_amenity",
    "questions": [],
    "col_names": [
      "amenid",
      "amenity_name"
    ],
    "standard_answer": []
  },
  {
    "database": "dorm_1",
    "table": "Has_amenity",
    "questions": [],
    "col_names": [
      "dormid",
      "amenid"
    ],
    "standard_answer": []
  },
  {
    "database": "dorm_1",
    "table": "Lives_in",
    "questions": [],
    "col_names": [
      "stuid",
      "dormid",
      "room_number"
    ],
    "standard_answer": []
  },
  {
    "database": "journal_committee",
    "table": "journal",
    "questions": [
      "Show the distinct themes of journals.",
      "List the date, theme and sales of the journal which did not have any of the listed editors serving on committee.",
      "What is the average sales of the journals that have an editor whose work type is 'Photo'?"
    ],
    "col_names": [
      "Journal_ID",
      "Date",
      "Theme",
      "Sales"
    ],
    "standard_answer": [
      "SELECT DISTINCT Theme FROM journal",
      "SELECT date ,  theme ,  sales FROM journal EXCEPT SELECT T1.date ,  T1.theme ,  T1.sales FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID  =  T2.journal_ID",
      "SELECT avg(T1.sales) FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID  =  T2.journal_ID WHERE T2.work_type  =  'Photo'"
    ]
  },
  {
    "database": "journal_committee",
    "table": "editor",
    "questions": [
      "How many editors are there?",
      "List the names of editors in ascending order of age.",
      "What are the names and ages of editors?",
      "List the names of editors who are older than 25.",
      "Show the names of editors of age either 24 or 25.",
      "What is the name of the youngest editor?",
      "What are the different ages of editors? Show each age along with the number of editors of that age.",
      "Please show the most common age of editors.",
      "Show the id, name of each editor and the number of journal committees they are on.",
      "Show the names of editors that are on at least two journal committees.",
      "List the names of editors that are not on any journal committee."
    ],
    "col_names": [
      "Editor_ID",
      "Name",
      "Age"
    ],
    "standard_answer": [
      "SELECT count(*) FROM editor",
      "SELECT Name FROM editor ORDER BY Age ASC",
      "SELECT Name ,  Age FROM editor",
      "SELECT Name FROM editor WHERE Age  >  25",
      "SELECT Name FROM editor WHERE Age  =  24 OR Age  =  25",
      "SELECT Name FROM editor ORDER BY Age ASC LIMIT 1",
      "SELECT Age ,  COUNT(*) FROM editor GROUP BY Age",
      "SELECT Age FROM editor GROUP BY Age ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T1.editor_id ,  T1.Name ,  COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID  =  T2.Editor_ID GROUP BY T1.editor_id",
      "SELECT T1.Name FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID  =  T2.Editor_ID GROUP BY T1.Name HAVING COUNT(*)  >=  2",
      "SELECT Name FROM editor WHERE editor_id NOT IN (SELECT editor_id FROM journal_committee)"
    ]
  },
  {
    "database": "journal_committee",
    "table": "journal_committee",
    "questions": [
      "Show the names of editors and the theme of journals for which they serve on committees.",
      "For each journal_committee, find the editor name and the journal theme.",
      "Show the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme.",
      "Show the names of editors that are on the committee of journals with sales bigger than 3000."
    ],
    "col_names": [
      "Editor_ID",
      "Journal_ID",
      "Work_Type"
    ],
    "standard_answer": [
      "SELECT T2.Name ,  T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID",
      "SELECT T2.Name ,  T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID",
      "SELECT T2.Name ,  T2.age ,  T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID ORDER BY T3.Theme ASC",
      "SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T3.Sales  >  3000"
    ]
  },
  {
    "database": "flight_1",
    "table": "flight",
    "questions": [],
    "col_names": [
      "flno",
      "origin",
      "destination",
      "distance",
      "departure_date",
      "arrival_date",
      "price",
      "aid"
    ],
    "standard_answer": []
  },
  {
    "database": "flight_1",
    "table": "aircraft",
    "questions": [],
    "col_names": [
      "aid",
      "name",
      "distance"
    ],
    "standard_answer": []
  },
  {
    "database": "flight_1",
    "table": "employee",
    "questions": [],
    "col_names": [
      "eid",
      "name",
      "salary"
    ],
    "standard_answer": []
  },
  {
    "database": "flight_1",
    "table": "certificate",
    "questions": [],
    "col_names": [
      "eid",
      "aid"
    ],
    "standard_answer": []
  },
  {
    "database": "medicine_enzyme_interaction",
    "table": "medicine",
    "questions": [
      "What are the names and trade names of the medicines which has 'Yes' value in the FDA record?",
      "What are the names and trade names of the medcines that are FDA approved?",
      "What are the ids and names of the medicine that can interact with two or more enzymes?",
      "For every medicine id, what are the names of the medicines that can interact with more than one enzyme?",
      "What are the ids, names and FDA approval status of medicines in descending order of the number of enzymes that it can interact with.",
      "What are the ids, names, and FDA approval status for medicines ordered by descending number of possible enzyme interactions?",
      "How many medicines have the FDA approval status 'No' ?",
      "How many medicines were not approved by the FDA?",
      "What is the id and trade name of the medicines can interact with at least 3 enzymes?",
      "What are the ids and trade names of the medicine that can interact with at least 3 enzymes?",
      "List the medicine name and trade name which can both interact as 'inhibitor' and 'activitor' with enzymes.",
      "What are the medicine and trade names that can interact as an inhibitor and activitor with enzymes?",
      "Show the medicine names and trade names that cannot interact with the enzyme with product 'Heme'.",
      "What are the medicine and trade names that cannot interact with the enzyme with the product 'Heme'?",
      "How many distinct FDA approval statuses are there for the medicines?",
      "How many different FDA approval statuses exist for medicines?",
      "find the number of medicines offered by each trade.",
      "How many medicines are offered by each trade name?"
    ],
    "col_names": [
      "id",
      "name",
      "Trade_Name",
      "FDA_approved"
    ],
    "standard_answer": [
      "SELECT name ,  trade_name FROM medicine WHERE FDA_approved  =  'Yes'",
      "SELECT name ,  trade_name FROM medicine WHERE FDA_approved  =  'Yes'",
      "SELECT T1.id ,  T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id HAVING count(*)  >=  2",
      "SELECT T1.id ,  T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id HAVING count(*)  >=  2",
      "SELECT T1.id ,  T1.Name ,  T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id ORDER BY count(*) DESC",
      "SELECT T1.id ,  T1.Name ,  T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id ORDER BY count(*) DESC",
      "SELECT count(*) FROM medicine WHERE FDA_approved  =  'No'",
      "SELECT count(*) FROM medicine WHERE FDA_approved  =  'No'",
      "SELECT T1.id ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id HAVING COUNT(*)  >=  3",
      "SELECT T1.id ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id HAVING COUNT(*)  >=  3",
      "SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id WHERE interaction_type  =  'inhibitor' INTERSECT SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id WHERE interaction_type  =  'activitor'",
      "SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id WHERE interaction_type  =  'inhibitor' INTERSECT SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id WHERE interaction_type  =  'activitor'",
      "SELECT name ,  trade_name FROM medicine EXCEPT SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id JOIN enzyme AS T3 ON T3.id  =  T2.enzyme_id WHERE T3.product  =  'Protoporphyrinogen IX'",
      "SELECT name ,  trade_name FROM medicine EXCEPT SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id JOIN enzyme AS T3 ON T3.id  =  T2.enzyme_id WHERE T3.product  =  'Protoporphyrinogen IX'",
      "SELECT count(DISTINCT FDA_approved) FROM medicine",
      "SELECT count(DISTINCT FDA_approved) FROM medicine",
      "SELECT trade_name ,  count(*) FROM medicine GROUP BY trade_name",
      "SELECT trade_name ,  count(*) FROM medicine GROUP BY trade_name"
    ]
  },
  {
    "database": "medicine_enzyme_interaction",
    "table": "enzyme",
    "questions": [
      "How many kinds of enzymes are there?",
      "What is the total count of enzymes?",
      "List the name of enzymes in descending lexicographical order.",
      "What are the names of enzymes in descending order?",
      "List the names and the locations that the enzymes can make an effect.",
      "What are the names and locations of all enzymes listed?",
      "What is the maximum Online Mendelian Inheritance in Man (OMIM) value of the enzymes?",
      "What is the maximum OMIM value in the database?",
      "What is the product, chromosome and porphyria related to the enzymes which take effect at the location 'Cytosol'?",
      "What is the product, chromosome, and porphyria of the enzymes located at 'Cytosol'?",
      "What are the names of enzymes who does not produce 'Heme'?",
      "What are the names of enzymes whose product is not 'Heme'?",
      "What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'?",
      "What are the names of the enzymes used in the medicine  Amisulpride that acts as inhibitors?",
      "What is the id and name of the enzyme with most number of medicines that can interact as 'activator'?",
      "What is the id and name of the enzyme that can interact with the most medicines as an activator?",
      "How many enzymes do not have any interactions?",
      "What is the count of enzymes without any interactions?",
      "What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction?",
      "What are the different names, locations, and products of the enzymes that are capable inhibitor interactions?",
      "Which enzyme names have the substring \"ALA\"?",
      "What are the names of enzymes that include the string 'ALA'?"
    ],
    "col_names": [
      "id",
      "name",
      "Location",
      "Product",
      "Chromosome",
      "OMIM",
      "Porphyria"
    ],
    "standard_answer": [
      "SELECT count(*) FROM enzyme",
      "SELECT count(*) FROM enzyme",
      "SELECT name FROM enzyme ORDER BY name DESC",
      "SELECT name FROM enzyme ORDER BY name DESC",
      "SELECT name ,  LOCATION FROM enzyme",
      "SELECT name ,  LOCATION FROM enzyme",
      "SELECT max(OMIM) FROM enzyme",
      "SELECT max(OMIM) FROM enzyme",
      "SELECT product ,  chromosome ,  porphyria FROM enzyme WHERE LOCATION  =  'Cytosol'",
      "SELECT product ,  chromosome ,  porphyria FROM enzyme WHERE LOCATION  =  'Cytosol'",
      "SELECT name FROM enzyme WHERE product != 'Heme'",
      "SELECT name FROM enzyme WHERE product != 'Heme'",
      "SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id  =  T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id  =  T3.id WHERE T3.name  =  'Amisulpride' AND T2.interaction_type  =  'inhibitor'",
      "SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id  =  T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id  =  T3.id WHERE T3.name  =  'Amisulpride' AND T2.interaction_type  =  'inhibitor'",
      "SELECT T1.id ,  T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id  =  T2.enzyme_id WHERE T2.interaction_type  =  'activitor' GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.id ,  T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id  =  T2.enzyme_id WHERE T2.interaction_type  =  'activitor' GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1",
      "SELECT count(*) FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction );",
      "SELECT count(*) FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction );",
      "SELECT DISTINCT T1.name ,  T1.location ,  T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id  =  T1.id WHERE T2.interaction_type  =  'inhibitor'",
      "SELECT DISTINCT T1.name ,  T1.location ,  T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id  =  T1.id WHERE T2.interaction_type  =  'inhibitor'",
      "SELECT name FROM enzyme WHERE name LIKE \"%ALA%\"",
      "SELECT name FROM enzyme WHERE name LIKE \"%ALA%\""
    ]
  },
  {
    "database": "medicine_enzyme_interaction",
    "table": "medicine_enzyme_interaction",
    "questions": [
      "What is the interaction type of the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'?",
      "What is the type of interaction for the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'?",
      "What is the most common interaction type between enzymes and medicine? And how many are there?",
      "What are the most common types of interactions between enzymes and medicine, and how many types are there?"
    ],
    "col_names": [
      "enzyme_id",
      "medicine_id",
      "interaction_type"
    ],
    "standard_answer": [
      "SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id  =  T2.id JOIN enzyme AS T3 ON T1.enzyme_id  =  T3.id WHERE T3.name  =  'ALA synthase' AND T2.name  =  'Aripiprazole'",
      "SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id  =  T2.id JOIN enzyme AS T3 ON T1.enzyme_id  =  T3.id WHERE T3.name  =  'ALA synthase' AND T2.name  =  'Aripiprazole'",
      "SELECT interaction_type ,  count(*) FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY count(*) DESC LIMIT 1",
      "SELECT interaction_type ,  count(*) FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "local_govt_and_lot",
    "table": "Customers",
    "questions": [
      "What are the id and details of the customers who have at least 3 events?",
      "What is each customer's move in date, and the corresponding customer id and details?"
    ],
    "col_names": [
      "customer_id",
      "customer_details"
    ],
    "standard_answer": [
      "SELECT T1.customer_id ,  T1.customer_details FROM Customers AS T1 JOIN Customer_Events AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >=  3",
      "SELECT T2.date_moved_in ,  T1.customer_id ,  T1.customer_details FROM Customers AS T1 JOIN Customer_Events AS T2 ON T1.customer_id  =  T2.customer_id"
    ]
  },
  {
    "database": "local_govt_and_lot",
    "table": "Properties",
    "questions": [],
    "col_names": [
      "property_id",
      "property_type_code",
      "property_address",
      "other_details"
    ],
    "standard_answer": []
  },
  {
    "database": "local_govt_and_lot",
    "table": "Residents",
    "questions": [
      "How many services has each resident requested? List the resident id, details, and the count in descending order of the count.",
      "When is the last day any resident moved in?",
      "What are the resident details containing the substring 'Miss'?"
    ],
    "col_names": [
      "resident_id",
      "property_id",
      "date_moved_in",
      "date_moved_out",
      "other_details"
    ],
    "standard_answer": [
      "SELECT T1.resident_id ,  T1.other_details ,  count(*) FROM Residents AS T1 JOIN Residents_Services AS T2 ON T1.resident_id  =  T2.resident_id GROUP BY T1.resident_id ORDER BY count(*) DESC",
      "SELECT max(date_moved_in) FROM Residents",
      "SELECT other_details FROM Residents WHERE other_details LIKE '%Miss%'"
    ]
  },
  {
    "database": "local_govt_and_lot",
    "table": "Organizations",
    "questions": [],
    "col_names": [
      "organization_id",
      "parent_organization_id",
      "organization_details"
    ],
    "standard_answer": []
  },
  {
    "database": "local_govt_and_lot",
    "table": "Services",
    "questions": [
      "What is the maximum number that a certain service is provided? List the service id, details and number."
    ],
    "col_names": [
      "service_id",
      "organization_id",
      "service_type_code",
      "service_details"
    ],
    "standard_answer": [
      "SELECT T1.service_id ,  T1.service_details ,  count(*) FROM Services AS T1 JOIN Residents_Services AS T2 ON T1.service_id  =  T2.service_id GROUP BY T1.service_id ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "local_govt_and_lot",
    "table": "Residents_Services",
    "questions": [],
    "col_names": [
      "resident_id",
      "service_id",
      "date_moved_in",
      "property_id",
      "date_requested",
      "date_provided",
      "other_details"
    ],
    "standard_answer": []
  },
  {
    "database": "local_govt_and_lot",
    "table": "Things",
    "questions": [
      "List the id and type of each thing, and the details of the organization that owns it.",
      "How many distinct locations have the things with service detail 'Unsatisfied' been located in?"
    ],
    "col_names": [
      "thing_id",
      "organization_id",
      "Type_of_Thing_Code",
      "service_type_code",
      "service_details"
    ],
    "standard_answer": [
      "SELECT T1.thing_id ,  T1.type_of_Thing_Code ,  T2.organization_details FROM Things AS T1 JOIN Organizations AS T2 ON T1.organization_id  =  T2.organization_id",
      "SELECT count(DISTINCT T2.Location_Code) FROM Things AS T1 JOIN Timed_Locations_of_Things AS T2 ON T1.thing_id  =  T2.thing_id WHERE T1.service_details  =  'Unsatisfied'"
    ]
  },
  {
    "database": "local_govt_and_lot",
    "table": "Customer_Events",
    "questions": [
      "Which events have the number of notes between one and three? List the event id and the property id."
    ],
    "col_names": [
      "Customer_Event_ID",
      "customer_id",
      "date_moved_in",
      "property_id",
      "resident_id",
      "thing_id"
    ],
    "standard_answer": [
      "SELECT T1.Customer_Event_ID  ,  T1.property_id FROM Customer_Events AS T1 JOIN Customer_Event_Notes AS T2 ON T1.Customer_Event_ID  =  T2.Customer_Event_ID GROUP BY T1.customer_event_id HAVING count(*) BETWEEN 1 AND 3"
    ]
  },
  {
    "database": "local_govt_and_lot",
    "table": "Customer_Event_Notes",
    "questions": [],
    "col_names": [
      "Customer_Event_Note_ID",
      "Customer_Event_ID",
      "service_type_code",
      "resident_id",
      "property_id",
      "date_moved_in"
    ],
    "standard_answer": []
  },
  {
    "database": "local_govt_and_lot",
    "table": "Timed_Status_of_Things",
    "questions": [
      "What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21'",
      "How many different status codes of things are there?"
    ],
    "col_names": [
      "thing_id",
      "Date_and_Date",
      "Status_of_Thing_Code"
    ],
    "standard_answer": [
      "SELECT DISTINCT T2.thing_id ,  T2.Type_of_Thing_Code FROM Timed_Status_of_Things AS T1 JOIN Things AS T2 ON T1.thing_id  =  T2.thing_id WHERE T1.Status_of_Thing_Code  =  'Close' OR T1.Date_and_Date  <  '2017-06-19 02:59:21'",
      "SELECT count(DISTINCT Status_of_Thing_Code) FROM Timed_Status_of_Things"
    ]
  },
  {
    "database": "local_govt_and_lot",
    "table": "Timed_Locations_of_Things",
    "questions": [],
    "col_names": [
      "thing_id",
      "Date_and_Time",
      "Location_Code"
    ],
    "standard_answer": []
  },
  {
    "database": "station_weather",
    "table": "train",
    "questions": [
      "show all train numbers and names ordered by their time from early to late.",
      "Give me the times and numbers of all trains that go to Chennai, ordered by time.",
      "How many trains have 'Express' in their names?",
      "Find the number and time of the train that goes from Chennai to Guruvayur.",
      "Find the number of trains starting from each origin.",
      "Find the name of the train whose route runs through greatest number of stations.",
      "Find the origins from which more than 1 train starts."
    ],
    "col_names": [
      "id",
      "train_number",
      "name",
      "origin",
      "destination",
      "time",
      "interval"
    ],
    "standard_answer": [
      "SELECT train_number ,  name FROM train ORDER BY TIME",
      "SELECT TIME ,  train_number FROM train WHERE destination  =  'Chennai' ORDER BY TIME",
      "SELECT count(*) FROM train WHERE name LIKE \"%Express%\"",
      "SELECT train_number ,  TIME FROM train WHERE origin  =  'Chennai' AND destination  =  'Guruvayur'",
      "SELECT origin ,  count(*) FROM train GROUP BY origin",
      "SELECT t1.name FROM train AS t1 JOIN route AS t2 ON t1.id  =  t2.train_id GROUP BY t2.train_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT origin FROM train GROUP BY origin HAVING count(*)  >  1"
    ]
  },
  {
    "database": "station_weather",
    "table": "station",
    "questions": [
      "list the local authorities and services provided by all stations.",
      "Find the number of trains for each station, as well as the station network name and services.",
      "Find names and times of trains that run through stations for the local authority Chiltern.",
      "How many different services are provided by all stations?"
    ],
    "col_names": [
      "id",
      "network_name",
      "services",
      "local_authority"
    ],
    "standard_answer": [
      "SELECT local_authority ,  services FROM station",
      "SELECT count(*) ,  t1.network_name ,  t1.services FROM station AS t1 JOIN route AS t2 ON t1.id  =  t2.station_id GROUP BY t2.station_id",
      "SELECT t3.name ,  t3.time FROM station AS t1 JOIN route AS t2 ON t1.id  =  t2.station_id JOIN train AS t3 ON t2.train_id  =  t3.id WHERE t1.local_authority  =  \"Chiltern\"",
      "SELECT count(DISTINCT services) FROM station"
    ]
  },
  {
    "database": "station_weather",
    "table": "route",
    "questions": [],
    "col_names": [
      "train_id",
      "station_id"
    ],
    "standard_answer": []
  },
  {
    "database": "station_weather",
    "table": "weekly_weather",
    "questions": [
      "What is the average high temperature for each day of week?",
      "Give me the maximum low temperature and average precipitation at the Amersham station.",
      "Find the id and local authority of the station with has the highest average high temperature.",
      "Find the id and local authority of the station whose maximum precipitation is higher than 50.",
      "show the lowest low temperature and highest wind speed in miles per hour."
    ],
    "col_names": [
      "station_id",
      "day_of_week",
      "high_temperature",
      "low_temperature",
      "precipitation",
      "wind_speed_mph"
    ],
    "standard_answer": [
      "SELECT avg(high_temperature) ,  day_of_week FROM weekly_weather GROUP BY day_of_week",
      "SELECT max(t1.low_temperature) ,  avg(t1.precipitation) FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id  =  t2.id WHERE t2.network_name  =  \"Amersham\"",
      "SELECT t2.id ,  t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id  =  t2.id GROUP BY t1.station_id ORDER BY avg(high_temperature) DESC LIMIT 1",
      "SELECT t2.id ,  t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id  =  t2.id GROUP BY t1.station_id HAVING max(t1.precipitation)  >  50",
      "SELECT min(low_temperature) ,  max(wind_speed_mph) FROM weekly_weather"
    ]
  },
  {
    "database": "shop_membership",
    "table": "member",
    "questions": [
      "How many different levels do members have?",
      "What are the different membership levels?",
      "Show card number, name, and hometown for all members in a descending order of level.",
      "What are the card numbers, names, and hometowns of every member ordered by descending level?",
      "Show the membership level with most number of members.",
      "What is the membership level with the most people?",
      "Show member names without any registered branch.",
      "What are the names of the members that have never registered at any branch?",
      "list the card number of all members whose hometown address includes word \"Kentucky\".",
      "What are the card numbers of members from Kentucky?"
    ],
    "col_names": [
      "Member_ID",
      "Card_Number",
      "Name",
      "Hometown",
      "Level"
    ],
    "standard_answer": [
      "SELECT count(DISTINCT LEVEL) FROM member",
      "SELECT count(DISTINCT LEVEL) FROM member",
      "SELECT card_number ,  name ,  hometown FROM member ORDER BY LEVEL DESC",
      "SELECT card_number ,  name ,  hometown FROM member ORDER BY LEVEL DESC",
      "SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY count(*) DESC LIMIT 1",
      "SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY count(*) DESC LIMIT 1",
      "SELECT name FROM member WHERE member_id NOT IN (SELECT member_id FROM membership_register_branch)",
      "SELECT name FROM member WHERE member_id NOT IN (SELECT member_id FROM membership_register_branch)",
      "SELECT card_number FROM member WHERE Hometown LIKE \"%Kentucky%\"",
      "SELECT card_number FROM member WHERE Hometown LIKE \"%Kentucky%\""
    ]
  },
  {
    "database": "shop_membership",
    "table": "branch",
    "questions": [
      "How many branches where have more than average number of memberships are there?",
      "What is the number of branches that have more than the average number of memberships?",
      "Show name, address road, and city for all branches sorted by open year.",
      "What are the names, address roads, and cities of the branches ordered by opening year?",
      "What are names for top three branches with most number of membership?",
      "What are the names for the 3 branches that have the most memberships?",
      "Show all distinct city where branches with at least 100 memberships are located.",
      "What are the different cities that have more than 100 memberships?",
      "List all open years when at least two shops are opened.",
      "What are the opening years in which at least two shops opened?",
      "Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.",
      "What are the minimum and maximum membership amounts for all branches that either opened in 2011 or are located in London?",
      "Show the city and the number of branches opened before 2010 for each city.",
      "For each city, how many branches opened before 2010?",
      "List the branch name and city without any registered members.",
      "What are the names and cities of the branches that do not have any registered members?",
      "Show all city with a branch opened in 2001 and a branch with more than 100 membership.",
      "What are the cities that have a branch that opened in 2001 and a branch with more than 100 members?",
      "Show all cities without a branch having more than 100 memberships.",
      "What are the cities that do not have any branches with more than 100 members?"
    ],
    "col_names": [
      "Branch_ID",
      "Name",
      "Open_year",
      "Address_road",
      "City",
      "membership_amount"
    ],
    "standard_answer": [
      "SELECT count(*) FROM branch WHERE membership_amount  >  (SELECT avg(membership_amount) FROM branch)",
      "SELECT count(*) FROM branch WHERE membership_amount  >  (SELECT avg(membership_amount) FROM branch)",
      "SELECT name ,  address_road ,  city FROM branch ORDER BY open_year",
      "SELECT name ,  address_road ,  city FROM branch ORDER BY open_year",
      "SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3",
      "SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3",
      "SELECT DISTINCT city FROM branch WHERE membership_amount  >=  100",
      "SELECT DISTINCT city FROM branch WHERE membership_amount  >=  100",
      "SELECT open_year FROM branch GROUP BY open_year HAVING count(*)  >=  2",
      "SELECT open_year FROM branch GROUP BY open_year HAVING count(*)  >=  2",
      "SELECT min(membership_amount) ,  max(membership_amount) FROM branch WHERE open_year  =  2011 OR city  =  'London'",
      "SELECT min(membership_amount) ,  max(membership_amount) FROM branch WHERE open_year  =  2011 OR city  =  'London'",
      "SELECT city ,  count(*) FROM branch WHERE open_year  <  2010 GROUP BY city",
      "SELECT city ,  count(*) FROM branch WHERE open_year  <  2010 GROUP BY city",
      "SELECT name ,  city FROM branch WHERE branch_id NOT IN (SELECT branch_id FROM membership_register_branch)",
      "SELECT name ,  city FROM branch WHERE branch_id NOT IN (SELECT branch_id FROM membership_register_branch)",
      "SELECT city FROM branch WHERE open_year  =  2001 AND membership_amount  >  100",
      "SELECT city FROM branch WHERE open_year  =  2001 AND membership_amount  >  100",
      "SELECT city FROM branch EXCEPT SELECT city FROM branch WHERE membership_amount  >  100",
      "SELECT city FROM branch EXCEPT SELECT city FROM branch WHERE membership_amount  >  100"
    ]
  },
  {
    "database": "shop_membership",
    "table": "membership_register_branch",
    "questions": [
      "Show all member names and registered branch names sorted by register year.",
      "What are the names of the members and branches at which they are registered sorted by year of registration?",
      "Show all branch names with the number of members in each branch registered after 2015.",
      "For each branch id, what are the names of the branches that were registered after 2015?",
      "What is the name and open year for the branch with most number of memberships registered in 2016?",
      "What is the name and opening year for the branch that registered the most members in 2016?",
      "Show the member name and hometown who registered a branch in 2016.",
      "What are the member names and hometowns of those who registered at a branch in 2016?",
      "Find the name of branches where have some members whose hometown is in Louisville, Kentucky and some in Hiram, Georgia.",
      "What are the names of the branches that have some members with a hometown in Louisville, Kentucky and also those from Hiram, Goergia?"
    ],
    "col_names": [
      "Member_ID",
      "Branch_ID",
      "Register_Year"
    ],
    "standard_answer": [
      "SELECT T3.name ,  T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id JOIN member AS T3 ON T1.member_id  =  T3.member_id ORDER BY T1.register_year",
      "SELECT T3.name ,  T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id JOIN member AS T3 ON T1.member_id  =  T3.member_id ORDER BY T1.register_year",
      "SELECT T2.name ,  count(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id WHERE T1.register_year  >  2015 GROUP BY T2.branch_id",
      "SELECT T2.name ,  count(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id WHERE T1.register_year  >  2015 GROUP BY T2.branch_id",
      "SELECT T2.name ,  T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id WHERE T1.register_year  =  2016 GROUP BY T2.branch_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T2.name ,  T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id WHERE T1.register_year  =  2016 GROUP BY T2.branch_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T2.name ,  T2.hometown FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id  =  T2.member_id WHERE T1.register_year  =  2016",
      "SELECT T2.name ,  T2.hometown FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id  =  T2.member_id WHERE T1.register_year  =  2016",
      "SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id JOIN member AS T3 ON T1.member_id  =  T3.member_id WHERE T3.Hometown  =  'Louisville ,  Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id JOIN member AS T3 ON T1.member_id  =  T3.member_id WHERE T3.Hometown  =  'Hiram ,  Georgia'",
      "SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id JOIN member AS T3 ON T1.member_id  =  T3.member_id WHERE T3.Hometown  =  'Louisville ,  Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id JOIN member AS T3 ON T1.member_id  =  T3.member_id WHERE T3.Hometown  =  'Hiram ,  Georgia'"
    ]
  },
  {
    "database": "shop_membership",
    "table": "purchase",
    "questions": [
      "What is the sum of total pounds of purchase in year 2018 for all branches in London?",
      "How many total pounds were purchased in the year 2018 at all London branches?",
      "What is the total number of purchases for members with level 6?",
      "What are the total purchases for members rated at level 6?"
    ],
    "col_names": [
      "Member_ID",
      "Branch_ID",
      "Year",
      "Total_pounds"
    ],
    "standard_answer": [
      "SELECT sum(total_pounds) FROM purchase AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id WHERE T2.city  =  'London' AND T1.year  =  2018",
      "SELECT sum(total_pounds) FROM purchase AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id WHERE T2.city  =  'London' AND T1.year  =  2018",
      "SELECT count(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id  =  T2.member_id WHERE T2.level  =  6",
      "SELECT count(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id  =  T2.member_id WHERE T2.level  =  6"
    ]
  },
  {
    "database": "driving_school",
    "table": "Addresses",
    "questions": [
      "Which city does staff with first name as Janessa and last name as Sawayn live?",
      "In what city does Janessa Sawayn live?",
      "Which country and state does staff with first name as Janessa and last name as Sawayn lived?",
      "In which country and state does Janessa Sawayn live?",
      "What is the zip code of staff with first name as Janessa and last name as Sawayn lived?",
      "What is the zip code of the hosue of the employee named Janessa Sawayn?",
      "How many staff live in state Georgia?",
      "How many employees live in Georgia?",
      "Find out the first name and last name of staff lived in city Damianfort.",
      "What is the first and last name of all employees who live in the city Damianfort?",
      "Which city lives most of staffs? List the city name and number of staffs.",
      "In which city do the most employees live and how many of them live there?",
      "List the states which have between 2 to 4 staffs living there.",
      "What are the names of the states that have 2 to 4 employees living there?"
    ],
    "col_names": [
      "address_id",
      "line_1_number_building",
      "city",
      "zip_postcode",
      "state_province_county",
      "country"
    ],
    "standard_answer": [
      "SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";",
      "SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";",
      "SELECT T1.country ,  T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";",
      "SELECT T1.country ,  T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";",
      "SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";",
      "SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";",
      "SELECT count(*) FROM Addresses WHERE state_province_county = \"Georgia\";",
      "SELECT count(*) FROM Addresses WHERE state_province_county = \"Georgia\";",
      "SELECT T2.first_name ,  T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = \"Damianfort\";",
      "SELECT T2.first_name ,  T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = \"Damianfort\";",
      "SELECT T1.city ,  count(*) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.city ORDER BY count(*) DESC LIMIT 1;",
      "SELECT T1.city ,  count(*) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.city ORDER BY count(*) DESC LIMIT 1;",
      "SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING count(*) BETWEEN 2 AND 4;",
      "SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING count(*) BETWEEN 2 AND 4;"
    ]
  },
  {
    "database": "driving_school",
    "table": "Staff",
    "questions": [
      "What is the birthday of the staff member with first name as Janessa and last name as Sawayn?",
      "What is the date of birth for the staff member named Janessa Sawayn?",
      "When did the staff member with first name as Janessa and last name as Sawayn join the company?",
      "When did the staff member named Janessa Sawayn join the company?",
      "When did the staff member with first name as Janessa and last name as Sawayn leave the company?",
      "When did the staff member Janessa Sawayn leave the company?",
      "How many staff have the first name Ludie?",
      "How many employees have a first name of Ludie?",
      "What is the nickname of staff with first name as Janessa and last name as Sawayn?",
      "What is the nickname of the employee named Janessa Sawayn?",
      "What is the first name of the staff who did not give any lesson?",
      "What is the first name of all employees who do not give any lessons?"
    ],
    "col_names": [
      "staff_id",
      "staff_address_id",
      "nickname",
      "first_name",
      "middle_name",
      "last_name",
      "date_of_birth",
      "date_joined_staff",
      "date_left_staff"
    ],
    "standard_answer": [
      "SELECT date_of_birth FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";",
      "SELECT date_of_birth FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";",
      "SELECT date_joined_staff FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";",
      "SELECT date_joined_staff FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";",
      "SELECT date_left_staff FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";",
      "SELECT date_left_staff FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";",
      "SELECT count(*) FROM Staff WHERE first_name = \"Ludie\";",
      "SELECT count(*) FROM Staff WHERE first_name = \"Ludie\";",
      "SELECT nickname FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";",
      "SELECT nickname FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\";",
      "SELECT first_name FROM Staff EXCEPT SELECT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id  =  T2.staff_id",
      "SELECT first_name FROM Staff EXCEPT SELECT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id  =  T2.staff_id"
    ]
  },
  {
    "database": "driving_school",
    "table": "Vehicles",
    "questions": [
      "Show the detail of vehicle with id 1.",
      "What are the details of the car with id 1?",
      "What is the id and detail of the vehicle used in lessons for most of the times?"
    ],
    "col_names": [
      "vehicle_id",
      "vehicle_details"
    ],
    "standard_answer": [
      "SELECT vehicle_details FROM Vehicles WHERE vehicle_id = 1;",
      "SELECT vehicle_details FROM Vehicles WHERE vehicle_id = 1;",
      "SELECT T1.vehicle_id ,  T1.vehicle_details FROM Vehicles AS T1 JOIN Lessons AS T2 ON T1.vehicle_id  =  T2.vehicle_id GROUP BY T1.vehicle_id ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "driving_school",
    "table": "Customers",
    "questions": [
      "List email address and birthday of customer whose first name as Carole.",
      "What are the email addresses and date of births for all customers who have a first name of Carole?",
      "List phone number and email address of customer with more than 2000 outstanding balance.",
      "What are the phone numbers and email addresses of all customers who have an outstanding balance of more than 2000?",
      "What is the status code, mobile phone number and email address of customer with last name as Kohler or first name as Marina?",
      "What is the status code, phone number, and email address of the customer whose last name is Kohler or whose first name is Marina?",
      "When are the birthdays of customer who are classified as 'Good Customer' status?",
      "What is the date of birth of every customer whose status code is 'Good Customer'?",
      "When did customer with first name as Carole and last name as Bernhard became a customer?",
      "When did Carole Bernhard first become a customer?",
      "List all customer status codes and the number of customers having each status code.",
      "For each customer status code, how many customers are classified that way?",
      "Which customer status code has least number of customers?",
      "What is the status code with the least number of customers?",
      "List the first name and last name of customers have the amount of outstanding between 1000 and 3000.",
      "What are the first and last names of all customers with between 1000 and 3000 dollars outstanding?",
      "List first name and last name of customers lived in city Lockmanfurt.",
      "What are the first and last names of all customers who lived in Lockmanfurt?",
      "Which country does customer with first name as Carole and last name as Bernhard lived in?",
      "What is the country in which the customer Carole Bernhard lived?",
      "What is zip code of customer with first name as Carole and last name as Bernhard?",
      "What is the zip code of the customer Carole Bernhard?",
      "Which city does has most number of customers?",
      "What is the city with the most customers?",
      "List the number of customers that did not have any payment history.",
      "How many customers have no payment histories?",
      "Which last names are both used by customers and by staff?",
      "What are the last names that are used by customers and staff?"
    ],
    "col_names": [
      "customer_id",
      "customer_address_id",
      "customer_status_code",
      "date_became_customer",
      "date_of_birth",
      "first_name",
      "last_name",
      "amount_outstanding",
      "email_address",
      "phone_number",
      "cell_mobile_phone_number"
    ],
    "standard_answer": [
      "SELECT email_address ,  date_of_birth FROM Customers WHERE first_name = \"Carole\"",
      "SELECT email_address ,  date_of_birth FROM Customers WHERE first_name = \"Carole\"",
      "SELECT phone_number ,  email_address FROM Customers WHERE amount_outstanding  >  2000;",
      "SELECT phone_number ,  email_address FROM Customers WHERE amount_outstanding  >  2000;",
      "SELECT customer_status_code ,  cell_mobile_phone_number ,  email_address FROM Customers WHERE first_name = \"Marina\" OR last_name  =  \"Kohler\"",
      "SELECT customer_status_code ,  cell_mobile_phone_number ,  email_address FROM Customers WHERE first_name = \"Marina\" OR last_name  =  \"Kohler\"",
      "SELECT date_of_birth FROM Customers WHERE customer_status_code  =  'Good Customer'",
      "SELECT date_of_birth FROM Customers WHERE customer_status_code  =  'Good Customer'",
      "SELECT date_became_customer FROM Customers WHERE first_name = \"Carole\" AND last_name = \"Bernhard\";",
      "SELECT date_became_customer FROM Customers WHERE first_name = \"Carole\" AND last_name = \"Bernhard\";",
      "SELECT customer_status_code , count(*) FROM Customers GROUP BY customer_status_code;",
      "SELECT customer_status_code , count(*) FROM Customers GROUP BY customer_status_code;",
      "SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY count(*) ASC LIMIT 1;",
      "SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY count(*) ASC LIMIT 1;",
      "SELECT first_name ,  last_name FROM Customers WHERE amount_outstanding BETWEEN 1000 AND 3000;",
      "SELECT first_name ,  last_name FROM Customers WHERE amount_outstanding BETWEEN 1000 AND 3000;",
      "SELECT T1.first_name ,  T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = \"Lockmanfurt\";",
      "SELECT T1.first_name ,  T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = \"Lockmanfurt\";",
      "SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = \"Carole\" AND T1.last_name = \"Bernhard\"",
      "SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = \"Carole\" AND T1.last_name = \"Bernhard\"",
      "SELECT T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = \"Carole\" AND T1.last_name = \"Bernhard\"",
      "SELECT T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = \"Carole\" AND T1.last_name = \"Bernhard\"",
      "SELECT T2.city FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city ORDER BY count(*) DESC LIMIT 1;",
      "SELECT T2.city FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city ORDER BY count(*) DESC LIMIT 1;",
      "SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payments );",
      "SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payments );",
      "SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff",
      "SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff"
    ]
  },
  {
    "database": "driving_school",
    "table": "Customer_Payments",
    "questions": [
      "How much in total does customer with first name as Carole and last name as Bernhard paid?",
      "What is the total amount of moeny paid by the customer Carole Bernhard?",
      "List first name and last name of customers that have more than 2 payments.",
      "What are the first and last names of all customers with more than 2 payments?",
      "List all payment methods and number of payments using each payment methods.",
      "For each payment method, how many payments were made?"
    ],
    "col_names": [
      "customer_id",
      "datetime_payment",
      "payment_method_code",
      "amount_payment"
    ],
    "standard_answer": [
      "SELECT sum(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = \"Carole\" AND T2.last_name = \"Bernhard\"",
      "SELECT sum(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = \"Carole\" AND T2.last_name = \"Bernhard\"",
      "SELECT T2.first_name ,  T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >  2;",
      "SELECT T2.first_name ,  T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >  2;",
      "SELECT payment_method_code ,  count(*) FROM Customer_Payments GROUP BY payment_method_code;",
      "SELECT payment_method_code ,  count(*) FROM Customer_Payments GROUP BY payment_method_code;"
    ]
  },
  {
    "database": "driving_school",
    "table": "Lessons",
    "questions": [
      "How long is the total lesson time took by customer with first name as Rylan and last name as Goodwin?",
      "How long is the total lesson time took by the customer named Rylan Goodwin?",
      "How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed?",
      "How many lessons did the customer Ryan Goodwin complete?",
      "How many lessons were in cancelled state?",
      "How many lessons have been cancelled?",
      "List lesson id of all lessons taught by staff with first name as Janessa, last name as Sawayn and nickname containing letter 's'.",
      "What are the the lesson ids of all staff taught by Janessa Sawayn whose nickname has the letter s?",
      "How many lessons taught by staff whose first name has letter 'a' in it?",
      "How many lessons were taught by a staff member whose first name has the letter 'a' in it?",
      "How long is the total lesson time taught by staff with first name as Janessa and last name as Sawayn?",
      "What is the total time for all lessons taught by Janessa Sawayn?",
      "What is average lesson price taught by staff with first name as Janessa and last name as Sawayn?",
      "What is the average price for a lesson taught by Janessa Sawayn?",
      "How many lesson does customer with first name Ray took?",
      "How many lessons did the customer with the first name Ray take?"
    ],
    "col_names": [
      "lesson_id",
      "customer_id",
      "lesson_status_code",
      "staff_id",
      "vehicle_id",
      "lesson_date",
      "lesson_time",
      "price"
    ],
    "standard_answer": [
      "SELECT sum(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = \"Rylan\" AND T2.last_name = \"Goodwin\";",
      "SELECT sum(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = \"Rylan\" AND T2.last_name = \"Goodwin\";",
      "SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = \"Rylan\" AND T2.last_name = \"Goodwin\" AND T1.lesson_status_code = \"Completed\";",
      "SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = \"Rylan\" AND T2.last_name = \"Goodwin\" AND T1.lesson_status_code = \"Completed\";",
      "SELECT count(*) FROM Lessons WHERE lesson_status_code = \"Cancelled\";",
      "SELECT count(*) FROM Lessons WHERE lesson_status_code = \"Cancelled\";",
      "SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\" AND nickname LIKE \"%s%\";",
      "SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\" AND nickname LIKE \"%s%\";",
      "SELECT count(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE \"%a%\"",
      "SELECT count(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE \"%a%\"",
      "SELECT sum(lesson_time) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";",
      "SELECT sum(lesson_time) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";",
      "SELECT avg(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";",
      "SELECT avg(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\";",
      "SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = \"Ray\"",
      "SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = \"Ray\""
    ]
  },
  {
    "database": "concert_singer",
    "table": "stadium",
    "questions": [],
    "col_names": [
      "Stadium_ID",
      "Location",
      "Name",
      "Capacity",
      "Highest",
      "Lowest",
      "Average"
    ],
    "standard_answer": []
  },
  {
    "database": "concert_singer",
    "table": "singer",
    "questions": [],
    "col_names": [
      "Singer_ID",
      "Name",
      "Country",
      "Song_Name",
      "Song_release_year",
      "Age",
      "Is_male"
    ],
    "standard_answer": []
  },
  {
    "database": "concert_singer",
    "table": "concert",
    "questions": [],
    "col_names": [
      "concert_ID",
      "concert_Name",
      "Theme",
      "Stadium_ID",
      "Year"
    ],
    "standard_answer": []
  },
  {
    "database": "concert_singer",
    "table": "singer_in_concert",
    "questions": [],
    "col_names": [
      "concert_ID",
      "Singer_ID"
    ],
    "standard_answer": []
  },
  {
    "database": "music_2",
    "table": "Songs",
    "questions": [
      "How many songs are there?",
      "Count the number of songs."
    ],
    "col_names": [
      "SongId",
      "Title"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Songs",
      "SELECT count(*) FROM Songs"
    ]
  },
  {
    "database": "music_2",
    "table": "Albums",
    "questions": [
      "What are all the labels?",
      "What are the different album labels listed?",
      "Find all the albums in 2012.",
      "return all columns of the albums created in the year of 2012.",
      "What are the albums produced in year 2010?",
      "What information is there on albums from 2010?"
    ],
    "col_names": [
      "AId",
      "Title",
      "Year",
      "Label",
      "Type"
    ],
    "standard_answer": [
      "SELECT DISTINCT label FROM Albums",
      "SELECT DISTINCT label FROM Albums",
      "SELECT * FROM Albums WHERE YEAR  =  2012",
      "SELECT * FROM Albums WHERE YEAR  =  2012",
      "SELECT * FROM Albums WHERE YEAR  =  2010",
      "SELECT * FROM Albums WHERE YEAR  =  2010"
    ]
  },
  {
    "database": "music_2",
    "table": "Band",
    "questions": [
      "How many bands are there?",
      "Find the number of bands."
    ],
    "col_names": [
      "Id",
      "Firstname",
      "Lastname"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Band",
      "SELECT count(*) FROM Band"
    ]
  },
  {
    "database": "music_2",
    "table": "Instruments",
    "questions": [
      "What are all the instruments used?",
      "What are the different instruments listed in the database?"
    ],
    "col_names": [
      "SongId",
      "BandmateId",
      "Instrument"
    ],
    "standard_answer": [
      "SELECT DISTINCT instrument FROM Instruments",
      "SELECT DISTINCT instrument FROM Instruments"
    ]
  },
  {
    "database": "music_2",
    "table": "Performance",
    "questions": [
      "Find all the stage positions of the musicians with first name \"Solveig\"",
      "What are the different stage positions for all musicians whose first name is \"Solveig\"?",
      "Find all the songs performed by artist with last name \"Heilo\"",
      "What are the names of the songs by the artist whose last name is \"Heilo\"?",
      "Find all the songs produced by artists with first name \"Marianne\".",
      "What are the names of all songs produced by the artist with the first name \"Marianne\"?",
      "Who performed the song named \"Badlands\"? Show the first name and the last name.",
      "What are the first and last names of the artist who perfomed the song \"Badlands\"?",
      "Who is performing in the back stage position for the song \"Badlands\"? Show the first name and the last name.",
      "What are the first and last names of the performer who was in the back stage position for the song \"Badlands\"?",
      "What is the last name of the musician that have produced the most number of songs?",
      "What is the last name of the musician who was in the most songs?",
      "What is the last name of the musician that has been at the back position the most?",
      "What is the last name of the musicians who has played back position the most?",
      "What instrument did the musician with last name \"Heilo\" use in the song \"Le Pop\"?",
      "What instruments did the musician with the last name \"Heilo\" play in the song \"Le Pop\"?",
      "Who performed the song named \"Le Pop\"?",
      "What is the first and last name of artist who performed \"Le Pop\"?",
      "What is the last name of the musician that have produced the most songs?",
      "What is the last name of the artist who sang the most songs?",
      "What instrument did the musician with last name \"Heilo\" use in the song \"Badlands\"?",
      "What instruments did the musician with the last name \"Heilo\" play in \"Badlands\"?",
      "Find the first name of the band mate that has performed in most songs.",
      "What is the first name of the band mate who perfomed in the most songs?",
      "Who is performing in the back stage position for the song \"Der Kapitan\"? Show the first name and last name.",
      "What is the first and last name of the artist who performed back stage for the song \"Der Kapitan\"?"
    ],
    "col_names": [
      "SongId",
      "Bandmate",
      "StagePosition"
    ],
    "standard_answer": [
      "SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id WHERE Firstname  =  \"Solveig\"",
      "SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id WHERE Firstname  =  \"Solveig\"",
      "SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T2.Lastname  =  \"Heilo\"",
      "SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T2.Lastname  =  \"Heilo\"",
      "SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T2.firstname  =  \"Marianne\"",
      "SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T2.firstname  =  \"Marianne\"",
      "SELECT T2.firstname ,  T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T3.Title  =  \"Badlands\"",
      "SELECT T2.firstname ,  T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T3.Title  =  \"Badlands\"",
      "SELECT T2.firstname ,  T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T3.Title  =  \"Badlands\" AND T1.StagePosition  =  \"back\"",
      "SELECT T2.firstname ,  T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T3.Title  =  \"Badlands\" AND T1.StagePosition  =  \"back\"",
      "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1",
      "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1",
      "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id WHERE stageposition  =  \"back\" GROUP BY lastname ORDER BY count(*) DESC LIMIT 1",
      "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id WHERE stageposition  =  \"back\" GROUP BY lastname ORDER BY count(*) DESC LIMIT 1",
      "SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId JOIN Instruments AS T4 ON T4.songid  =  T3.songid AND T4.bandmateid  =  T2.id WHERE T2.lastname  =  \"Heilo\" AND T3.title  =  \"Le Pop\"",
      "SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId JOIN Instruments AS T4 ON T4.songid  =  T3.songid AND T4.bandmateid  =  T2.id WHERE T2.lastname  =  \"Heilo\" AND T3.title  =  \"Le Pop\"",
      "SELECT T2.firstname ,  T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T3.Title  =  \"Le Pop\"",
      "SELECT T2.firstname ,  T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T3.Title  =  \"Le Pop\"",
      "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1",
      "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1",
      "SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId JOIN Instruments AS T4 ON T4.songid  =  T3.songid AND T4.bandmateid  =  T2.id WHERE T2.lastname  =  \"Heilo\" AND T3.title  =  \"Badlands\"",
      "SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId JOIN Instruments AS T4 ON T4.songid  =  T3.songid AND T4.bandmateid  =  T2.id WHERE T2.lastname  =  \"Heilo\" AND T3.title  =  \"Badlands\"",
      "SELECT t2.firstname FROM Performance AS t1 JOIN Band AS t2 ON t1.bandmate  =  t2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId GROUP BY firstname ORDER BY count(*) DESC LIMIT 1",
      "SELECT t2.firstname FROM Performance AS t1 JOIN Band AS t2 ON t1.bandmate  =  t2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId GROUP BY firstname ORDER BY count(*) DESC LIMIT 1",
      "SELECT T2.firstname ,  T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T3.Title  =  \"Der Kapitan\" AND T1.StagePosition  =  \"back\"",
      "SELECT T2.firstname ,  T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T3.Title  =  \"Der Kapitan\" AND T1.StagePosition  =  \"back\""
    ]
  },
  {
    "database": "music_2",
    "table": "Tracklists",
    "questions": [],
    "col_names": [
      "AlbumId",
      "Position",
      "SongId"
    ],
    "standard_answer": []
  },
  {
    "database": "music_2",
    "table": "Vocals",
    "questions": [],
    "col_names": [
      "SongId",
      "Bandmate",
      "Type"
    ],
    "standard_answer": []
  },
  {
    "database": "sports_competition",
    "table": "club",
    "questions": [
      "How many clubs are there?",
      "What is the total number of clubs?",
      "List the distinct region of clubs in ascending alphabetical order.",
      "What are the different regions of clubs in ascending alphabetical order?",
      "List all club names in ascending order of start year.",
      "What are the names of all the clubs starting with the oldest?",
      "List all club names in descending alphabetical order.",
      "What are the names of all the clubs ordered in descending alphabetical order?",
      "Please show the names and the players of clubs.",
      "What are the names and players of all the clubs?",
      "Show the names of clubs that have players with position \"Right Wing\".",
      "What are the names of the clubs that have players in the position of \"Right Wing\"?",
      "What is the average points of players from club with name \"AIB\".",
      "What is the average number of points for players from the \"AIB\" club?"
    ],
    "col_names": [
      "Club_ID",
      "name",
      "Region",
      "Start_year"
    ],
    "standard_answer": [
      "SELECT count(*) FROM club",
      "SELECT count(*) FROM club",
      "SELECT DISTINCT Region FROM club ORDER BY Region ASC",
      "SELECT DISTINCT Region FROM club ORDER BY Region ASC",
      "SELECT name FROM club ORDER BY Start_year ASC",
      "SELECT name FROM club ORDER BY Start_year ASC",
      "SELECT name FROM club ORDER BY name DESC",
      "SELECT name FROM club ORDER BY name DESC",
      "SELECT T1.name ,  T2.Player_id FROM club AS T1 JOIN player AS T2 ON T1.Club_ID  =  T2.Club_ID",
      "SELECT T1.name ,  T2.Player_id FROM club AS T1 JOIN player AS T2 ON T1.Club_ID  =  T2.Club_ID",
      "SELECT T1.name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID  =  T2.Club_ID WHERE T2.Position  =  \"Right Wing\"",
      "SELECT T1.name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID  =  T2.Club_ID WHERE T2.Position  =  \"Right Wing\"",
      "SELECT avg(T2.Points) FROM club AS T1 JOIN player AS T2 ON T1.Club_ID  =  T2.Club_ID WHERE T1.name  =  \"AIB\"",
      "SELECT avg(T2.Points) FROM club AS T1 JOIN player AS T2 ON T1.Club_ID  =  T2.Club_ID WHERE T1.name  =  \"AIB\""
    ]
  },
  {
    "database": "sports_competition",
    "table": "club_rank",
    "questions": [
      "What is the average number of gold medals for clubs?",
      "What is the average number of gold medals for a club?",
      "What are the maximum and minimum number of silver medals for clubs.",
      "What are the maximum and minimum number of silver medals for all the clubs?",
      "How many clubs have total medals less than 10?",
      "What is the total number of clubs that have less than 10 medals in total?"
    ],
    "col_names": [
      "Rank",
      "Club_ID",
      "Gold",
      "Silver",
      "Bronze",
      "Total"
    ],
    "standard_answer": [
      "SELECT avg(Gold) FROM club_rank",
      "SELECT avg(Gold) FROM club_rank",
      "SELECT max(Silver) ,  min(Silver) FROM club_rank",
      "SELECT max(Silver) ,  min(Silver) FROM club_rank",
      "SELECT count(*) FROM club_rank WHERE Total  <  10",
      "SELECT count(*) FROM club_rank WHERE Total  <  10"
    ]
  },
  {
    "database": "sports_competition",
    "table": "player",
    "questions": [
      "List the position of players and the average number of points of players of each position.",
      "For each position, what is the average number of points for players in that position?",
      "List the position of players with average number of points scored by players of that position bigger than 20.",
      "What are the positions of players whose average number of points scored by that position is larger than 20?",
      "What are the positions with both players having more than 20 points and less than 10 points.",
      "What are the positions of both players that have more than 20 20 points and less than 10 points?",
      "Show total points of all players.",
      "What is the total number of points for all players?",
      "how many different positions are there?",
      "How many different position for players are listed?",
      "what are the name of players who get more than the average points.",
      "What are the names of all players that got more than the average number of points?",
      "find the number of players whose points are lower than 30 in each position.",
      "What is the number of players who have points less than 30 for each position?"
    ],
    "col_names": [
      "Player_ID",
      "name",
      "Position",
      "Club_ID",
      "Apps",
      "Tries",
      "Goals",
      "Points"
    ],
    "standard_answer": [
      "SELECT POSITION ,  avg(Points) FROM player GROUP BY POSITION",
      "SELECT POSITION ,  avg(Points) FROM player GROUP BY POSITION",
      "SELECT POSITION FROM player GROUP BY name HAVING avg(Points)  >=  20",
      "SELECT POSITION FROM player GROUP BY name HAVING avg(Points)  >=  20",
      "SELECT POSITION FROM player WHERE Points  >  20 INTERSECT SELECT POSITION FROM player WHERE Points  <  10",
      "SELECT POSITION FROM player WHERE Points  >  20 INTERSECT SELECT POSITION FROM player WHERE Points  <  10",
      "SELECT sum(Points) FROM player",
      "SELECT sum(Points) FROM player",
      "SELECT count(DISTINCT POSITION) FROM player",
      "SELECT count(DISTINCT POSITION) FROM player",
      "SELECT name FROM player WHERE points  >  (SELECT avg(points) FROM player)",
      "SELECT name FROM player WHERE points  >  (SELECT avg(points) FROM player)",
      "SELECT count(*) ,  POSITION FROM player WHERE points  <  30 GROUP BY POSITION",
      "SELECT count(*) ,  POSITION FROM player WHERE points  <  30 GROUP BY POSITION"
    ]
  },
  {
    "database": "sports_competition",
    "table": "competition",
    "questions": [
      "What are the types and countries of competitions?",
      "What are the types of every competition and in which countries are they located?",
      "What are the distinct years in which the competitions type is not \"Tournament\"?",
      "What are the different years for all competitions that are not of type equal to tournament?",
      "List the types of competition and the number of competitions of each type.",
      "What are the types of competition and number of competitions for that type?",
      "List the most common type of competition.",
      "What is the most common competition type?",
      "List the types of competition that have at most five competitions of that type.",
      "What are the types of competition that have most 5 competitions for that type?",
      "which country did participated in the most number of Tournament competitions?",
      "what is the name of the country that participated in the most tournament competitions?",
      "which countries did participated in both Friendly and Tournament type competitions.",
      "What are the countries that participated in both friendly and tournament type competitions?",
      "Find the countries that have never participated in any competition with Friendly type.",
      "What are the countries that have never participated in any friendly-type competitions?"
    ],
    "col_names": [
      "Competition_ID",
      "Year",
      "Competition_type",
      "Country"
    ],
    "standard_answer": [
      "SELECT Competition_type ,  Country FROM competition",
      "SELECT Competition_type ,  Country FROM competition",
      "SELECT DISTINCT YEAR FROM competition WHERE Competition_type != \"Tournament\"",
      "SELECT DISTINCT YEAR FROM competition WHERE Competition_type != \"Tournament\"",
      "SELECT Competition_type ,  COUNT(*) FROM competition GROUP BY Competition_type",
      "SELECT Competition_type ,  COUNT(*) FROM competition GROUP BY Competition_type",
      "SELECT Competition_type FROM competition GROUP BY Competition_type ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Competition_type FROM competition GROUP BY Competition_type ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Competition_type FROM competition GROUP BY Competition_type HAVING COUNT(*)  <=  5",
      "SELECT Competition_type FROM competition GROUP BY Competition_type HAVING COUNT(*)  <=  5",
      "SELECT country FROM competition WHERE competition_type  =  'Tournament' GROUP BY country ORDER BY count(*) DESC LIMIT 1",
      "SELECT country FROM competition WHERE competition_type  =  'Tournament' GROUP BY country ORDER BY count(*) DESC LIMIT 1",
      "SELECT country FROM competition WHERE competition_type  =  'Friendly' INTERSECT SELECT country FROM competition WHERE competition_type  =  'Tournament'",
      "SELECT country FROM competition WHERE competition_type  =  'Friendly' INTERSECT SELECT country FROM competition WHERE competition_type  =  'Tournament'",
      "SELECT country FROM competition EXCEPT SELECT country FROM competition WHERE competition_type  =  'Friendly'",
      "SELECT country FROM competition EXCEPT SELECT country FROM competition WHERE competition_type  =  'Friendly'"
    ]
  },
  {
    "database": "sports_competition",
    "table": "competition_result",
    "questions": [],
    "col_names": [
      "Competition_ID",
      "Club_ID_1",
      "Club_ID_2",
      "Score"
    ],
    "standard_answer": []
  },
  {
    "database": "railway",
    "table": "railway",
    "questions": [
      "How many railways are there?",
      "List the builders of railways in ascending alphabetical order.",
      "List the wheels and locations of the railways.",
      "Show the names of trains and locations of railways they are in.",
      "Show the builder of railways associated with the trains named \"Andaman Exp\".",
      "Show id and location of railways that are associated with more than one train.",
      "Show the id and builder of the railway that are associated with the most trains.",
      "Show different builders of railways, along with the corresponding number of railways using each builder.",
      "Show the most common builder of railways.",
      "Show different locations of railways along with the corresponding number of railways at each location.",
      "Show the locations that have more than one railways.",
      "List the object number of railways that do not have any trains."
    ],
    "col_names": [
      "Railway_ID",
      "Railway",
      "Builder",
      "Built",
      "Wheels",
      "Location",
      "ObjectNumber"
    ],
    "standard_answer": [
      "SELECT count(*) FROM railway",
      "SELECT Builder FROM railway ORDER BY Builder ASC",
      "SELECT Wheels ,  LOCATION FROM railway",
      "SELECT T2.Name ,  T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID  =  T2.Railway_ID",
      "SELECT T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID  =  T2.Railway_ID WHERE T2.Name  =  \"Andaman Exp\"",
      "SELECT T2.Railway_ID ,  T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID  =  T2.Railway_ID GROUP BY T2.Railway_ID HAVING COUNT(*)  >  1",
      "SELECT T2.Railway_ID ,  T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID  =  T2.Railway_ID GROUP BY T2.Railway_ID ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Builder ,  COUNT(*) FROM railway GROUP BY Builder",
      "SELECT Builder FROM railway GROUP BY Builder ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT LOCATION ,  COUNT(*) FROM railway GROUP BY LOCATION",
      "SELECT LOCATION FROM railway GROUP BY LOCATION HAVING COUNT(*)  >  1",
      "SELECT ObjectNumber FROM railway WHERE Railway_ID NOT IN (SELECT Railway_ID FROM train)"
    ]
  },
  {
    "database": "railway",
    "table": "train",
    "questions": [
      "What are the names and arrival times of trains?"
    ],
    "col_names": [
      "Train_ID",
      "Train_Num",
      "Name",
      "From",
      "Arrival",
      "Railway_ID"
    ],
    "standard_answer": [
      "SELECT Name ,  Arrival FROM train"
    ]
  },
  {
    "database": "railway",
    "table": "manager",
    "questions": [
      "What is the maximum level of managers in countries that are not \"Australia\"?",
      "What is the average age for all managers?",
      "What are the names of managers in ascending order of level?",
      "What is the name of the oldest manager?",
      "Show the countries that have both managers of age above 50 and managers of age below 46.",
      "Show the distinct countries of managers.",
      "Show the working years of managers in descending order of their level.",
      "Show the countries that have managers of age above 50 or below 46."
    ],
    "col_names": [
      "Manager_ID",
      "Name",
      "Country",
      "Working_year_starts",
      "Age",
      "Level"
    ],
    "standard_answer": [
      "SELECT max(LEVEL) FROM manager WHERE Country != \"Australia\t\"",
      "SELECT avg(Age) FROM manager",
      "SELECT Name FROM manager ORDER BY LEVEL ASC",
      "SELECT Name FROM manager ORDER BY Age DESC LIMIT 1",
      "SELECT Country FROM manager WHERE Age  >  50 INTERSECT SELECT Country FROM manager WHERE Age  <  46",
      "SELECT DISTINCT Country FROM manager",
      "SELECT Working_year_starts FROM manager ORDER BY LEVEL DESC",
      "SELECT Country FROM manager WHERE Age  >  50 OR Age  <  46"
    ]
  },
  {
    "database": "railway",
    "table": "railway_manage",
    "questions": [],
    "col_names": [
      "Railway_ID",
      "Manager_ID",
      "From_Year"
    ],
    "standard_answer": []
  },
  {
    "database": "inn_1",
    "table": "Rooms",
    "questions": [
      "Find the names of all modern rooms with a base price below $160 and two beds.",
      "What are the names of modern rooms that have a base price lower than $160 and two beds.",
      "Find all the rooms that have a price higher than 160 and can accommodate more than 2 people. Report room names and ids.",
      "What are the room names and ids of all the rooms that cost more than 160 and can accommodate more than two people.",
      "How many king beds are there?",
      "Find the total number of king beds available.",
      "List the names and decor of rooms that have a king bed. Sort the list by their price.",
      "What are the names and decor of rooms with a king bed? Sort them by their price",
      "Which room has cheapest base price? List the room's name and the base price.",
      "What are the room name and base price of the room with the lowest base price?",
      "What is the decor of room Recluse and defiance?",
      "Return the decor of the room named \"Recluse and defiance\".",
      "What is the average base price of different bed type? List bed type and average base price.",
      "For each bed type, find the average base price of different bed type.",
      "What is the total number of people who could stay in the modern rooms in this inn?",
      "How many people in total can stay in the modern rooms of this inn?",
      "Find the number of rooms with a king bed.",
      "How many rooms have a king bed?",
      "Find the number of rooms for each bed type.",
      "What are the number of rooms for each bed type?",
      "Find the name of the room with the maximum occupancy.",
      "What is the name of the room that can accommodate the most people?",
      "Find the id and name of the most expensive base price room.",
      "Which room has the highest base price?",
      "List the type of bed and name of all traditional rooms.",
      "What are the bed type and name of all the rooms with traditional decor?",
      "Find the number of rooms with king bed for each decor type.",
      "How many rooms have king beds? Report the number for each decor type.",
      "Find the average and minimum price of the rooms in different decor.",
      "What is the average minimum and price of the rooms for each different decor.",
      "List the name of all rooms sorted by their prices.",
      "Sort all the rooms according to the price. Just report the room names.",
      "Find the number of rooms with price higher than 120 for different decor.",
      "How many rooms cost more than 120, for each different decor?",
      "For each bed type, find the average room price.",
      "What is the average base price of rooms, for each bed type?",
      "List the name of rooms with king or queen bed.",
      "What are the names of rooms that have either king or queen bed?",
      "Find the name and id of the top 3 expensive rooms.",
      "What are the name and id of the three highest priced rooms?",
      "Find the name of rooms whose price is higher than the average price.",
      "What are the name of rooms that cost more than the average."
    ],
    "col_names": [
      "RoomId",
      "roomName",
      "beds",
      "bedType",
      "maxOccupancy",
      "basePrice",
      "decor"
    ],
    "standard_answer": [
      "SELECT roomName FROM Rooms WHERE basePrice  <  160 AND beds =  2 AND decor  =  'modern';",
      "SELECT roomName FROM Rooms WHERE basePrice  <  160 AND beds =  2 AND decor  =  'modern';",
      "SELECT roomName ,  RoomId FROM Rooms WHERE basePrice  >  160 AND maxOccupancy  >  2;",
      "SELECT roomName ,  RoomId FROM Rooms WHERE basePrice  >  160 AND maxOccupancy  >  2;",
      "SELECT sum(beds) FROM Rooms WHERE bedtype  =  'King';",
      "SELECT sum(beds) FROM Rooms WHERE bedtype  =  'King';",
      "SELECT roomName ,  decor FROM Rooms WHERE bedtype  =  'King' ORDER BY basePrice;",
      "SELECT roomName ,  decor FROM Rooms WHERE bedtype  =  'King' ORDER BY basePrice;",
      "SELECT roomName ,  basePrice FROM Rooms ORDER BY basePrice ASC LIMIT 1;",
      "SELECT roomName ,  basePrice FROM Rooms ORDER BY basePrice ASC LIMIT 1;",
      "SELECT decor FROM Rooms WHERE roomName  =  \"Recluse and defiance\";",
      "SELECT decor FROM Rooms WHERE roomName  =  \"Recluse and defiance\";",
      "SELECT bedType ,  avg(basePrice) FROM Rooms GROUP BY bedType;",
      "SELECT bedType ,  avg(basePrice) FROM Rooms GROUP BY bedType;",
      "SELECT sum(maxOccupancy) FROM Rooms WHERE decor  =  'modern';",
      "SELECT sum(maxOccupancy) FROM Rooms WHERE decor  =  'modern';",
      "SELECT count(*) FROM Rooms WHERE bedType  =  \"King\";",
      "SELECT count(*) FROM Rooms WHERE bedType  =  \"King\";",
      "SELECT bedType ,  count(*) FROM Rooms GROUP BY bedType;",
      "SELECT bedType ,  count(*) FROM Rooms GROUP BY bedType;",
      "SELECT roomName FROM Rooms ORDER BY maxOccupancy DESC LIMIT 1;",
      "SELECT roomName FROM Rooms ORDER BY maxOccupancy DESC LIMIT 1;",
      "SELECT RoomId ,  roomName FROM Rooms ORDER BY basePrice DESC LIMIT 1;",
      "SELECT RoomId ,  roomName FROM Rooms ORDER BY basePrice DESC LIMIT 1;",
      "SELECT roomName ,  bedType FROM Rooms WHERE decor = \"traditional\";",
      "SELECT roomName ,  bedType FROM Rooms WHERE decor = \"traditional\";",
      "SELECT decor ,  count(*) FROM Rooms WHERE bedType = \"King\" GROUP BY decor;",
      "SELECT decor ,  count(*) FROM Rooms WHERE bedType = \"King\" GROUP BY decor;",
      "SELECT decor , avg(basePrice) ,  min(basePrice) FROM Rooms GROUP BY decor;",
      "SELECT decor , avg(basePrice) ,  min(basePrice) FROM Rooms GROUP BY decor;",
      "SELECT roomName FROM Rooms ORDER BY basePrice;",
      "SELECT roomName FROM Rooms ORDER BY basePrice;",
      "SELECT decor , count(*) FROM Rooms WHERE basePrice  >  120 GROUP BY decor;",
      "SELECT decor , count(*) FROM Rooms WHERE basePrice  >  120 GROUP BY decor;",
      "SELECT bedType ,  avg(basePrice) FROM Rooms GROUP BY bedType;",
      "SELECT bedType ,  avg(basePrice) FROM Rooms GROUP BY bedType;",
      "SELECT roomName FROM Rooms WHERE bedType  =  \"King\" OR bedType  =  \"Queen\";",
      "SELECT roomName FROM Rooms WHERE bedType  =  \"King\" OR bedType  =  \"Queen\";",
      "SELECT RoomId ,  roomName FROM Rooms ORDER BY basePrice DESC LIMIT 3;",
      "SELECT RoomId ,  roomName FROM Rooms ORDER BY basePrice DESC LIMIT 3;",
      "SELECT roomName FROM Rooms WHERE basePrice  >  ( SELECT avg(basePrice) FROM Rooms );",
      "SELECT roomName FROM Rooms WHERE basePrice  >  ( SELECT avg(basePrice) FROM Rooms );"
    ]
  },
  {
    "database": "inn_1",
    "table": "Reservations",
    "questions": [
      "Find the most popular room in the hotel. The most popular room is the room that had seen the largest number of reservations.",
      "Which room has the largest number of reservations?",
      "How many kids stay in the rooms reserved by ROY SWEAZY?",
      "Find the number of kids staying in the rooms reserved by a person called ROY SWEAZ.",
      "How many times does ROY SWEAZY has reserved a room.",
      "Find the number of times ROY SWEAZY has reserved a room.",
      "Which room has the highest rate? List the room's full name, rate, check in and check out date.",
      "Return the name, rate, check in and check out date for the room with the highest rate.",
      "How many adults stay in the room CONRAD SELBIG checked in on Oct 23, 2010?",
      "Find the number of adults for the room reserved and checked in by CONRAD SELBIG on Oct 23, 2010.",
      "How many kids stay in the room DAMIEN TRACHSEL checked in on Sep 21, 2010?",
      "Return the number of kids for the room reserved and checked in by DAMIEN TRACHSEL on  Sep 21, 2010.",
      "What kind of decor has the least number of reservations?",
      "What is the least popular kind of decor?",
      "List how many times the number of people in the room reached the maximum occupancy of the room. The number of people include adults and kids.",
      "How many times the number of adults and kids staying in a room reached the maximum capacity of the room?",
      "Find the first and last names of people who payed more than the rooms' base prices.",
      "What are the first and last names of people who payed more than the rooms' base prices?",
      "Return the name and number of reservations made for each of the rooms.",
      "For each room, find its name and the number of times reservations were made for it.",
      "Find the names of rooms that have been reserved for more than 60 times.",
      "What are the names of rooms whose reservation frequency exceeds 60 times?",
      "Find the name of rooms booked by some customers whose first name contains ROY.",
      "What are the name of rooms booked by customers whose first name has \"ROY\" in part?"
    ],
    "col_names": [
      "Code",
      "Room",
      "CheckIn",
      "CheckOut",
      "Rate",
      "LastName",
      "FirstName",
      "Adults",
      "Kids"
    ],
    "standard_answer": [
      "SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room ORDER BY count(*) DESC LIMIT 1;",
      "SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room ORDER BY count(*) DESC LIMIT 1;",
      "SELECT kids FROM Reservations WHERE FirstName = \"ROY\" AND LastName  =  \"SWEAZY\";",
      "SELECT kids FROM Reservations WHERE FirstName = \"ROY\" AND LastName  =  \"SWEAZY\";",
      "SELECT count(*) FROM Reservations WHERE FirstName = \"ROY\" AND LastName  =  \"SWEAZY\";",
      "SELECT count(*) FROM Reservations WHERE FirstName = \"ROY\" AND LastName  =  \"SWEAZY\";",
      "SELECT T2.roomName ,  T1.Rate ,  T1.CheckIn ,  T1.CheckOut FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room ORDER BY T1.Rate DESC LIMIT 1;",
      "SELECT T2.roomName ,  T1.Rate ,  T1.CheckIn ,  T1.CheckOut FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room ORDER BY T1.Rate DESC LIMIT 1;",
      "SELECT Adults FROM Reservations WHERE CheckIn  =  \"2010-10-23\" AND FirstName  =  \"CONRAD\" AND LastName  =  \"SELBIG\";",
      "SELECT Adults FROM Reservations WHERE CheckIn  =  \"2010-10-23\" AND FirstName  =  \"CONRAD\" AND LastName  =  \"SELBIG\";",
      "SELECT Kids FROM Reservations WHERE CheckIn  =  \"2010-09-21\" AND FirstName  =  \"DAMIEN\" AND LastName  =  \"TRACHSEL\";",
      "SELECT Kids FROM Reservations WHERE CheckIn  =  \"2010-09-21\" AND FirstName  =  \"DAMIEN\" AND LastName  =  \"TRACHSEL\";",
      "SELECT T2.decor FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T2.decor ORDER BY count(T2.decor) ASC LIMIT 1;",
      "SELECT T2.decor FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T2.decor ORDER BY count(T2.decor) ASC LIMIT 1;",
      "SELECT count(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId WHERE T2.maxOccupancy  =  T1.Adults + T1.Kids;",
      "SELECT count(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId WHERE T2.maxOccupancy  =  T1.Adults + T1.Kids;",
      "SELECT T1.firstname ,  T1.lastname FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId WHERE T1.Rate - T2.basePrice  >  0",
      "SELECT T1.firstname ,  T1.lastname FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId WHERE T1.Rate - T2.basePrice  >  0",
      "SELECT T2.roomName ,  count(*) ,  T1.Room FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room",
      "SELECT T2.roomName ,  count(*) ,  T1.Room FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room",
      "SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room HAVING count(*)  >  60",
      "SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room HAVING count(*)  >  60",
      "SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId WHERE firstname LIKE '%ROY%'",
      "SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId WHERE firstname LIKE '%ROY%'"
    ]
  },
  {
    "database": "museum_visit",
    "table": "museum",
    "questions": [],
    "col_names": [
      "Museum_ID",
      "Name",
      "Num_of_Staff",
      "Open_Year"
    ],
    "standard_answer": []
  },
  {
    "database": "museum_visit",
    "table": "visitor",
    "questions": [],
    "col_names": [
      "ID",
      "Name",
      "Level_of_membership",
      "Age"
    ],
    "standard_answer": []
  },
  {
    "database": "museum_visit",
    "table": "visit",
    "questions": [],
    "col_names": [
      "Museum_ID",
      "visitor_ID",
      "Num_of_Ticket",
      "Total_spent"
    ],
    "standard_answer": []
  },
  {
    "database": "browser_web",
    "table": "Web_client_accelerator",
    "questions": [],
    "col_names": [
      "id",
      "name",
      "Operating_system",
      "Client",
      "Connection"
    ],
    "standard_answer": []
  },
  {
    "database": "browser_web",
    "table": "browser",
    "questions": [
      "How many main stream browsers whose market share is at least 5 exist?",
      "List the name of browsers in descending order by market share.",
      "List the ids, names and market shares of all browsers.",
      "What is the maximum, minimum and average market share of the listed browsers?",
      "What is the id and market share of the browser Safari?",
      "What is the name of the browser that became compatible with the accelerator 'CProxy' after year 1998 ?",
      "What is the id and name of the browser that is compatible with the most web accelerators?"
    ],
    "col_names": [
      "id",
      "name",
      "market_share"
    ],
    "standard_answer": [
      "SELECT count(*) FROM browser WHERE market_share  >=  5",
      "SELECT name FROM browser ORDER BY market_share DESC",
      "SELECT id ,  name ,  market_share FROM browser",
      "SELECT max(market_share) ,  min(market_share) ,  avg(market_share) FROM browser",
      "SELECT id ,  market_share FROM browser WHERE name  =  'Safari'",
      "SELECT T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id  =  T2.browser_id JOIN web_client_accelerator AS T3 ON T2.accelerator_id  =  T3.id WHERE T3.name  =  'CProxy' AND T2.compatible_since_year  >  1998",
      "SELECT T1.id ,  T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id  =  T2.browser_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "browser_web",
    "table": "accelerator_compatible_browser",
    "questions": [
      "When did the web accelerator 'CACHEbox' and browser 'Internet Explorer' become compatible?",
      "give me names of all compatible browsers and accelerators in the descending order of compatible year"
    ],
    "col_names": [
      "accelerator_id",
      "browser_id",
      "compatible_since_year"
    ],
    "standard_answer": [
      "SELECT T1.compatible_since_year FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id  =  T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id  =  T3.id WHERE T3.name  =  'CACHEbox' AND T2.name  =  'Internet Explorer'",
      "SELECT T2.name ,  T3.name FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id  =  T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id  =  T3.id ORDER BY T1.compatible_since_year DESC"
    ]
  },
  {
    "database": "baseball_1",
    "table": "all_star",
    "questions": [],
    "col_names": [
      "player_id",
      "year",
      "game_num",
      "game_id",
      "team_id",
      "league_id",
      "gp",
      "starting_pos"
    ],
    "standard_answer": []
  },
  {
    "database": "baseball_1",
    "table": "appearances",
    "questions": [],
    "col_names": [
      "year",
      "team_id",
      "league_id",
      "player_id",
      "g_all",
      "gs",
      "g_batting",
      "g_defense",
      "g_p",
      "g_c",
      "g_1b",
      "g_2b",
      "g_3b",
      "g_ss",
      "g_lf",
      "g_cf",
      "g_rf",
      "g_of",
      "g_dh",
      "g_ph",
      "g_pr"
    ],
    "standard_answer": []
  },
  {
    "database": "baseball_1",
    "table": "manager_award",
    "questions": [],
    "col_names": [
      "player_id",
      "award_id",
      "year",
      "league_id",
      "tie",
      "notes"
    ],
    "standard_answer": []
  },
  {
    "database": "baseball_1",
    "table": "player_award",
    "questions": [],
    "col_names": [
      "player_id",
      "award_id",
      "year",
      "league_id",
      "tie",
      "notes"
    ],
    "standard_answer": []
  },
  {
    "database": "baseball_1",
    "table": "manager_award_vote",
    "questions": [],
    "col_names": [
      "award_id",
      "year",
      "league_id",
      "player_id",
      "points_won",
      "points_max",
      "votes_first"
    ],
    "standard_answer": []
  },
  {
    "database": "baseball_1",
    "table": "player_award_vote",
    "questions": [],
    "col_names": [
      "award_id",
      "year",
      "league_id",
      "player_id",
      "points_won",
      "points_max",
      "votes_first"
    ],
    "standard_answer": []
  },
  {
    "database": "baseball_1",
    "table": "batting",
    "questions": [],
    "col_names": [
      "player_id",
      "year",
      "stint",
      "team_id",
      "league_id",
      "g",
      "ab",
      "r",
      "h",
      "double",
      "triple",
      "hr",
      "rbi",
      "sb",
      "cs",
      "bb",
      "so",
      "ibb",
      "hbp",
      "sh",
      "sf",
      "g_idp"
    ],
    "standard_answer": []
  },
  {
    "database": "baseball_1",
    "table": "batting_postseason",
    "questions": [],
    "col_names": [
      "year",
      "round",
      "player_id",
      "team_id",
      "league_id",
      "g",
      "ab",
      "r",
      "h",
      "double",
      "triple",
      "hr",
      "rbi",
      "sb",
      "cs",
      "bb",
      "so",
      "ibb",
      "hbp",
      "sh",
      "sf",
      "g_idp"
    ],
    "standard_answer": []
  },
  {
    "database": "baseball_1",
    "table": "player_college",
    "questions": [],
    "col_names": [
      "player_id",
      "college_id",
      "year"
    ],
    "standard_answer": []
  },
  {
    "database": "baseball_1",
    "table": "fielding",
    "questions": [],
    "col_names": [
      "player_id",
      "year",
      "stint",
      "team_id",
      "league_id",
      "pos",
      "g",
      "gs",
      "inn_outs",
      "po",
      "a",
      "e",
      "dp",
      "pb",
      "wp",
      "sb",
      "cs",
      "zr"
    ],
    "standard_answer": []
  },
  {
    "database": "baseball_1",
    "table": "fielding_outfield",
    "questions": [],
    "col_names": [
      "player_id",
      "year",
      "stint",
      "glf",
      "gcf",
      "grf"
    ],
    "standard_answer": []
  },
  {
    "database": "baseball_1",
    "table": "fielding_postseason",
    "questions": [],
    "col_names": [
      "player_id",
      "year",
      "team_id",
      "league_id",
      "round",
      "pos",
      "g",
      "gs",
      "inn_outs",
      "po",
      "a",
      "e",
      "dp",
      "tp",
      "pb",
      "sb",
      "cs"
    ],
    "standard_answer": []
  },
  {
    "database": "baseball_1",
    "table": "hall_of_fame",
    "questions": [
      "How many players enter hall of fame each year?",
      "Count the number of players who enter hall of fame for each year.",
      "In which year did the least people enter hall of fame?",
      "Find the year in which the least people enter hall of fame."
    ],
    "col_names": [
      "player_id",
      "yearid",
      "votedby",
      "ballots",
      "needed",
      "votes",
      "inducted",
      "category",
      "needed_note"
    ],
    "standard_answer": [
      "SELECT yearid ,  count(*) FROM hall_of_fame GROUP BY yearid;",
      "SELECT yearid ,  count(*) FROM hall_of_fame GROUP BY yearid;",
      "SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1;",
      "SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1;"
    ]
  },
  {
    "database": "baseball_1",
    "table": "home_game",
    "questions": [
      "What is the average number of attendance at home games for each year?",
      "For each year, return the year and the average number of attendance at home games.",
      "In 2014, what are the id and rank of the team that has the largest average number of attendance?",
      "Find the id and rank of the team that has the highest average attendance rate in 2014.",
      "How many games were played in park \"Columbia Park\" in 1907?",
      "Count the number of games taken place in park \"Columbia Park\" in 1907.",
      "How many games were played in city Atlanta in 2000?",
      "Find the number of games taken place in city Atlanta in 2000.",
      "What is the total home game attendance of team Boston Red Stockings from 2000 to 2010?",
      "How many games in total did team Boston Red Stockings attend from 2000 to 2010?",
      "How many home games did the team Boston Red Stockings play from 1990 to 2000 in total?",
      "Count the total number of games the team Boston Red Stockings attended from 1990 to 2000.",
      "Which team had the least number of attendances in home games in 1980?",
      "Find the team that attended the least number of home games in 1980.",
      "Which park had most attendances in 2008?",
      "Which park did the most people attend in 2008?"
    ],
    "col_names": [
      "year",
      "league_id",
      "team_id",
      "park_id",
      "span_first",
      "span_last",
      "games",
      "openings",
      "attendance"
    ],
    "standard_answer": [
      "SELECT YEAR ,  avg(attendance) FROM home_game GROUP BY YEAR;",
      "SELECT YEAR ,  avg(attendance) FROM home_game GROUP BY YEAR;",
      "SELECT T2.team_id ,  T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id WHERE T1.year  =  2014 GROUP BY T1.team_id ORDER BY avg(T1.attendance) DESC LIMIT 1;",
      "SELECT T2.team_id ,  T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id WHERE T1.year  =  2014 GROUP BY T1.team_id ORDER BY avg(T1.attendance) DESC LIMIT 1;",
      "SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year = 1907 AND T2.park_name = 'Columbia Park';",
      "SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year = 1907 AND T2.park_name = 'Columbia Park';",
      "SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year  =  2000 AND T2.city  =  'Atlanta';",
      "SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year  =  2000 AND T2.city  =  'Atlanta';",
      "SELECT sum(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' AND T1.year BETWEEN 2000 AND 2010;",
      "SELECT sum(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' AND T1.year BETWEEN 2000 AND 2010;",
      "SELECT sum(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000;",
      "SELECT sum(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000;",
      "SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1;",
      "SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1;",
      "SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1;",
      "SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1;"
    ]
  },
  {
    "database": "baseball_1",
    "table": "manager",
    "questions": [],
    "col_names": [
      "player_id",
      "year",
      "team_id",
      "league_id",
      "inseason",
      "g",
      "w",
      "l",
      "rank",
      "plyr_mgr"
    ],
    "standard_answer": []
  },
  {
    "database": "baseball_1",
    "table": "manager_half",
    "questions": [],
    "col_names": [
      "player_id",
      "year",
      "team_id",
      "league_id",
      "inseason",
      "half",
      "g",
      "w",
      "l",
      "rank"
    ],
    "standard_answer": []
  },
  {
    "database": "baseball_1",
    "table": "player",
    "questions": [
      "What are first and last names of players participating in all star game in 1998?",
      "List the first and last name for players who participated in all star game in 1998.",
      "What are the first name, last name and id of the player with the most all star game experiences? Also list the count.",
      "Which player has the most all star game experiences? Give me the first name, last name and id of the player, as well as the number of times the player participated in all star game.",
      "What are the manager's first name, last name and id who won the most manager award?",
      "Which manager won the most manager award? Give me the manager's first name, last name and id.",
      "Which 3 players won the most player awards? List their full name and id.",
      "Find the first name, last name and id for the top three players won the most player awards.",
      "List three countries which are the origins of the least players.",
      "What are the three countries that the least players are from?",
      "Find all the players' first name and last name who have empty death record.",
      "What are the first name and last name of the players whose death record is empty?",
      "How many players born in USA are right-handed batters? That is, have the batter value 'R'.",
      "Count the number of players who were born in USA and have bats information 'R'.",
      "What is the average height of the players from the college named 'Yale University'?",
      "Find the average height of the players who belong to the college called 'Yale University'.",
      "Find the players' first name and last name who won award both in 1960 and in 1961.",
      "Which players won awards in both 1960 and 1961? Return their first names and last names.",
      "List players' first name and last name who have weight greater than 220 or height shorter than 75.",
      "What are the first name and last name of the players who have weight above 220 or height below 75?"
    ],
    "col_names": [
      "player_id",
      "birth_year",
      "birth_month",
      "birth_day",
      "birth_country",
      "birth_state",
      "birth_city",
      "death_year",
      "death_month",
      "death_day",
      "death_country",
      "death_state",
      "death_city",
      "name_first",
      "name_last",
      "name_given",
      "weight",
      "height",
      "bats",
      "throws",
      "debut",
      "final_game",
      "retro_id",
      "bbref_id"
    ],
    "standard_answer": [
      "SELECT name_first ,  name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id WHERE YEAR  =  1998",
      "SELECT name_first ,  name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id WHERE YEAR  =  1998",
      "SELECT T1.name_first , T1.name_last ,  T1.player_id ,   count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 1;",
      "SELECT T1.name_first , T1.name_last ,  T1.player_id ,   count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 1;",
      "SELECT T1.name_first ,  T1.name_last ,  T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T2.player_id ORDER BY count(*) DESC LIMIT 1;",
      "SELECT T1.name_first ,  T1.name_last ,  T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T2.player_id ORDER BY count(*) DESC LIMIT 1;",
      "SELECT T1.name_first ,  T1.name_last ,  T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 3;",
      "SELECT T1.name_first ,  T1.name_last ,  T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 3;",
      "SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) ASC LIMIT 3;",
      "SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) ASC LIMIT 3;",
      "SELECT name_first ,  name_last FROM player WHERE death_year = '';",
      "SELECT name_first ,  name_last FROM player WHERE death_year = '';",
      "SELECT count(*) FROM player WHERE birth_country = 'USA' AND bats  =  'R';",
      "SELECT count(*) FROM player WHERE birth_country = 'USA' AND bats  =  'R';",
      "SELECT avg(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id  =  T2.player_id JOIN college AS T3 ON T3.college_id  =  T2.college_id WHERE T3.name_full  =  'Yale University';",
      "SELECT avg(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id  =  T2.player_id JOIN college AS T3 ON T3.college_id  =  T2.college_id WHERE T3.name_full  =  'Yale University';",
      "SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year  =  1960 INTERSECT SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year  =  1961",
      "SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year  =  1960 INTERSECT SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year  =  1961",
      "SELECT name_first ,  name_last FROM player WHERE weight  >  220 OR height  <  75",
      "SELECT name_first ,  name_last FROM player WHERE weight  >  220 OR height  <  75"
    ]
  },
  {
    "database": "baseball_1",
    "table": "park",
    "questions": [
      "How many parks are there in the state of NY?",
      "Show me the number of parks the state of NY has.",
      "How many parks are there in Atlanta city?",
      "How many parks does Atlanta city have?",
      "List the names of states that have more than 2 parks.",
      "Which states have more than 2 parks?",
      "Which cities have 2 to 4 parks?",
      "Find all the cities that have 2 to 4 parks."
    ],
    "col_names": [
      "park_id",
      "park_name",
      "park_alias",
      "city",
      "state",
      "country"
    ],
    "standard_answer": [
      "SELECT count(*) FROM park WHERE state  =  'NY';",
      "SELECT count(*) FROM park WHERE state  =  'NY';",
      "SELECT count(*) FROM park WHERE city = 'Atlanta';",
      "SELECT count(*) FROM park WHERE city = 'Atlanta';",
      "SELECT state FROM park GROUP BY state HAVING count(*)  >  2;",
      "SELECT state FROM park GROUP BY state HAVING count(*)  >  2;",
      "SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4;",
      "SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4;"
    ]
  },
  {
    "database": "baseball_1",
    "table": "pitching",
    "questions": [],
    "col_names": [
      "player_id",
      "year",
      "stint",
      "team_id",
      "league_id",
      "w",
      "l",
      "g",
      "gs",
      "cg",
      "sho",
      "sv",
      "ipouts",
      "h",
      "er",
      "hr",
      "bb",
      "so",
      "baopp",
      "era",
      "ibb",
      "wp",
      "hbp",
      "bk",
      "bfp",
      "gf",
      "r",
      "sh",
      "sf",
      "g_idp"
    ],
    "standard_answer": []
  },
  {
    "database": "baseball_1",
    "table": "pitching_postseason",
    "questions": [],
    "col_names": [
      "player_id",
      "year",
      "round",
      "team_id",
      "league_id",
      "w",
      "l",
      "g",
      "gs",
      "cg",
      "sho",
      "sv",
      "ipouts",
      "h",
      "er",
      "hr",
      "bb",
      "so",
      "baopp",
      "era",
      "ibb",
      "wp",
      "hbp",
      "bk",
      "bfp",
      "gf",
      "r",
      "sh",
      "sf",
      "g_idp"
    ],
    "standard_answer": []
  },
  {
    "database": "baseball_1",
    "table": "salary",
    "questions": [
      "What is average salary of the players in the team named 'Boston Red Stockings' ?",
      "Compute the average salary of the players in the team called 'Boston Red Stockings'.",
      "What is the total salary paid by team Boston Red Stockings in 2010?",
      "What is the total salary expenses of team Boston Red Stockings in 2010?",
      "How many players were in the team Boston Red Stockings in 2000?",
      "How many players did Boston Red Stockings have in 2000?",
      "List the 3 highest salaries of the players in 2001?",
      "How much salary did the top 3 well-paid players get in 2001?",
      "What were all the salary values of players in 2010 and 2001?",
      "List all the salary values players received in 2010 and 2001.",
      "How much did the the player with first name Len and last name Barker earn between 1985 to 1990 in total?",
      "Compute the total salary that the player with first name Len and last name Barker received between 1985 to 1990.",
      "List players' first name and last name who received salary from team Washington Nationals in both 2005 and 2007.",
      "What are the first name and last name of the players who were paid salary by team Washington Nationals in both 2005 and 2007?"
    ],
    "col_names": [
      "year",
      "team_id",
      "league_id",
      "player_id",
      "salary"
    ],
    "standard_answer": [
      "SELECT avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings'",
      "SELECT avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings'",
      "SELECT sum(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings' AND T1.year  =  2010",
      "SELECT sum(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings' AND T1.year  =  2010",
      "SELECT count(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings' AND T1.year  =  2000",
      "SELECT count(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings' AND T1.year  =  2000",
      "SELECT salary FROM salary WHERE YEAR  =  2001 ORDER BY salary DESC LIMIT 3;",
      "SELECT salary FROM salary WHERE YEAR  =  2001 ORDER BY salary DESC LIMIT 3;",
      "SELECT salary FROM salary WHERE YEAR  =  2010 UNION SELECT salary FROM salary WHERE YEAR  =  2001",
      "SELECT salary FROM salary WHERE YEAR  =  2010 UNION SELECT salary FROM salary WHERE YEAR  =  2001",
      "SELECT sum(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first  =  'Len' AND T2.name_last = 'Barker' AND T1.year BETWEEN 1985 AND 1990;",
      "SELECT sum(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first  =  'Len' AND T2.name_last = 'Barker' AND T1.year BETWEEN 1985 AND 1990;",
      "SELECT T2.name_first ,  T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = 'Washington Nationals' INTERSECT SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = 'Washington Nationals'",
      "SELECT T2.name_first ,  T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = 'Washington Nationals' INTERSECT SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = 'Washington Nationals'"
    ]
  },
  {
    "database": "baseball_1",
    "table": "college",
    "questions": [
      "what is the full name and id of the college with the largest number of baseball players?",
      "Find the full name and id of the college that has the most baseball players."
    ],
    "col_names": [
      "college_id",
      "name_full",
      "city",
      "state",
      "country"
    ],
    "standard_answer": [
      "SELECT T1.name_full ,  T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id  =  T2.college_id GROUP BY T1.college_id ORDER BY count(*) DESC LIMIT 1;",
      "SELECT T1.name_full ,  T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id  =  T2.college_id GROUP BY T1.college_id ORDER BY count(*) DESC LIMIT 1;"
    ]
  },
  {
    "database": "baseball_1",
    "table": "postseason",
    "questions": [
      "List the maximum scores of the team Boston Red Stockings when the team won in postseason?",
      "What are the maximum scores the team Boston Red Stockings got when the team won in postseason?",
      "How many times did Boston Red Stockings lose in 2009 postseason?",
      "Count the number of times the team \"Boston Red Stockings\" lost in 2009 postseason.",
      "What are the name and id of the team with the most victories in 2008 postseason?",
      "Find the name and id of the team that won the most times in 2008 postseason.",
      "What is the number of wins the team Boston Red Stockings got in the postseasons each year in history?",
      "For each year, return the year and the number of times the team Boston Red Stockings won in the postseasons.",
      "How many games in 1885 postseason resulted in ties (that is, the value of \"ties\" is '1')?",
      "Find the number of tied games (the value of \"ties\" is '1') in 1885 postseason."
    ],
    "col_names": [
      "year",
      "round",
      "team_id_winner",
      "league_id_winner",
      "team_id_loser",
      "league_id_loser",
      "wins",
      "losses",
      "ties"
    ],
    "standard_answer": [
      "SELECT max(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings';",
      "SELECT max(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings';",
      "SELECT count(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' AND T1.year = 2009;",
      "SELECT count(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' AND T1.year = 2009;",
      "SELECT T2.name ,  T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T1.year  =  2008 GROUP BY T1.team_id_winner ORDER BY count(*) DESC LIMIT 1;",
      "SELECT T2.name ,  T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T1.year  =  2008 GROUP BY T1.team_id_winner ORDER BY count(*) DESC LIMIT 1;",
      "SELECT count(*) ,  T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' GROUP BY T1.year",
      "SELECT count(*) ,  T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' GROUP BY T1.year",
      "SELECT count(*) FROM postseason WHERE YEAR  =  1885 AND ties  =  1;",
      "SELECT count(*) FROM postseason WHERE YEAR  =  1885 AND ties  =  1;"
    ]
  },
  {
    "database": "baseball_1",
    "table": "team",
    "questions": [
      "What is the highest salary among each team? List the team name, id and maximum salary.",
      "For each team, return the team name, id and the maximum salary among the team.",
      "What are the name and id of the team offering the lowest average salary?",
      "Which team offers the lowest average salary? Give me the name and id of the team."
    ],
    "col_names": [
      "year",
      "league_id",
      "team_id",
      "franchise_id",
      "div_id",
      "rank",
      "g",
      "ghome",
      "w",
      "l",
      "div_win",
      "wc_win",
      "lg_win",
      "ws_win",
      "r",
      "ab",
      "h",
      "double",
      "triple",
      "hr",
      "bb",
      "so",
      "sb",
      "cs",
      "hbp",
      "sf",
      "ra",
      "er",
      "era",
      "cg",
      "sho",
      "sv",
      "ipouts",
      "ha",
      "hra",
      "bba",
      "soa",
      "e",
      "dp",
      "fp",
      "name",
      "park",
      "attendance",
      "bpf",
      "ppf",
      "team_id_br",
      "team_id_lahman45",
      "team_id_retro"
    ],
    "standard_answer": [
      "SELECT T1.name ,  T1.team_id ,  max(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id  =  T2.team_id GROUP BY T1.team_id;",
      "SELECT T1.name ,  T1.team_id ,  max(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id  =  T2.team_id GROUP BY T1.team_id;",
      "SELECT T1.name ,  T1.team_id FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg(T2.salary) ASC LIMIT 1;",
      "SELECT T1.name ,  T1.team_id FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg(T2.salary) ASC LIMIT 1;"
    ]
  },
  {
    "database": "baseball_1",
    "table": "team_franchise",
    "questions": [
      "How many team franchises are active, with active value 'Y'?",
      "Find the number of team franchises that are active (have 'Y' as \"active\" information)."
    ],
    "col_names": [
      "franchise_id",
      "franchise_name",
      "active",
      "na_assoc"
    ],
    "standard_answer": [
      "SELECT count(*) FROM team_franchise WHERE active = 'Y';",
      "SELECT count(*) FROM team_franchise WHERE active = 'Y';"
    ]
  },
  {
    "database": "baseball_1",
    "table": "team_half",
    "questions": [],
    "col_names": [
      "year",
      "league_id",
      "team_id",
      "half",
      "div_id",
      "div_win",
      "rank",
      "g",
      "w",
      "l"
    ],
    "standard_answer": []
  },
  {
    "database": "architecture",
    "table": "architect",
    "questions": [
      "How many architects are female?",
      "List the name, nationality and id of all male architects ordered by their names lexicographically.",
      "What are the distinct names and nationalities of the architects who have ever built a mill?",
      "What are the ids and names of the architects who built at least 3 bridges ?",
      "What is the id, name and nationality of the architect who built most mills?",
      "What are the ids, names and genders of the architects who built two bridges or one mill?",
      "How many architects haven't built a mill before year 1850?"
    ],
    "col_names": [
      "id",
      "name",
      "nationality",
      "gender"
    ],
    "standard_answer": [
      "SELECT count(*) FROM architect WHERE gender  =  'female'",
      "SELECT name ,  nationality ,  id FROM architect WHERE gender  =  'male' ORDER BY name",
      "SELECT DISTINCT T1.name ,  T1.nationality FROM architect AS T1 JOIN mill AS t2 ON T1.id  =  T2.architect_id",
      "SELECT T1.id ,  T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  >=  3",
      "SELECT T1.id ,  T1.name ,  T1.nationality FROM architect AS T1 JOIN mill AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.id ,  T1.name ,  T1.gender FROM architect AS T1 JOIN bridge AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  =  2 UNION SELECT T1.id ,  T1.name ,  T1.gender FROM architect AS T1 JOIN mill AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  =  1",
      "SELECT count(*) FROM architect WHERE id NOT IN ( SELECT architect_id FROM mill WHERE built_year  <  1850 );"
    ]
  },
  {
    "database": "architecture",
    "table": "bridge",
    "questions": [
      "What is the maximum length in meters for the bridges and what are the architects' names?",
      "What is the average length in feet of the bridges?",
      "What is the location of the bridge named 'Kolob Arch' or 'Rainbow Bridge'?",
      "show the name of all bridges that was designed by american archtect, and sort the result by the bridge feet length."
    ],
    "col_names": [
      "architect_id",
      "id",
      "name",
      "location",
      "length_meters",
      "length_feet"
    ],
    "standard_answer": [
      "SELECT max(T1.length_meters) ,  T2.name FROM bridge AS T1 JOIN architect AS T2 ON T1.architect_id  =  T2.id",
      "SELECT avg(length_feet) FROM bridge",
      "SELECT LOCATION FROM bridge WHERE name  =  'Kolob Arch' OR name  =  'Rainbow Bridge'",
      "SELECT t1.name FROM bridge AS t1 JOIN architect AS t2 ON t1.architect_id  =  t2.id WHERE t2.nationality  =  'American' ORDER BY t1.length_feet"
    ]
  },
  {
    "database": "architecture",
    "table": "mill",
    "questions": [
      "What are the names and year of construction for the mills of 'Grondzeiler' type?",
      "What are the names of the mills which are not located in 'Donceel'?",
      "What are the distinct types of mills that are built by American or Canadian architects?",
      "Which of the mill names contains the french word 'Moulin'?",
      "What are the distinct name of the mills built by the architects who have also built a bridge longer than 80 meters?",
      "What is the most common mill type, and how many are there?"
    ],
    "col_names": [
      "architect_id",
      "id",
      "location",
      "name",
      "type",
      "built_year",
      "notes"
    ],
    "standard_answer": [
      "SELECT name ,  built_year FROM mill WHERE TYPE  =  'Grondzeiler'",
      "SELECT name FROM mill WHERE LOCATION != 'Donceel'",
      "SELECT DISTINCT T1.type FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id  =  T2.id WHERE T2.nationality  =  'American' OR T2.nationality  =  'Canadian'",
      "SELECT name FROM mill WHERE name LIKE '%Moulin%'",
      "SELECT DISTINCT T1.name FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id  =  T2.id JOIN bridge AS T3 ON T3.architect_id  =  T2.id WHERE T3.length_meters  >  80",
      "SELECT TYPE ,  count(*) FROM mill GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "csu_1",
    "table": "Campuses",
    "questions": [],
    "col_names": [
      "Id",
      "Campus",
      "Location",
      "County",
      "Year"
    ],
    "standard_answer": []
  },
  {
    "database": "csu_1",
    "table": "csu_fees",
    "questions": [
      "Find the count of universities whose campus fee is greater than the average campus fee.",
      "How many universities have a campus fee higher than average?",
      "Find the count of universities whose campus fee is greater than the average campus fee.",
      "How many universities have a campus fee greater than the average?",
      "Find the average fee on a CSU campus in 1996",
      "What is the average fee for a CSU campus in the year of 1996?",
      "What is the average fee on a CSU campus in 2005?",
      "What is the average fee for a CSU campus in the year of 2005?",
      "What is the campus fee of \"San Francisco State University\" in year 2000?",
      "In the year 2000, what is the campus fee for San Francisco State University?",
      "Find the campus fee of \"San Jose State University\" in year 2000.",
      "What is the campus fee in the year 2000 for San Jose State University?"
    ],
    "col_names": [
      "Campus",
      "Year",
      "CampusFee"
    ],
    "standard_answer": [
      "SELECT count(*) FROM csu_fees WHERE campusfee  >  (SELECT avg(campusfee) FROM csu_fees)",
      "SELECT count(*) FROM csu_fees WHERE campusfee  >  (SELECT avg(campusfee) FROM csu_fees)",
      "SELECT count(*) FROM csu_fees WHERE campusfee  >  (SELECT avg(campusfee) FROM csu_fees)",
      "SELECT count(*) FROM csu_fees WHERE campusfee  >  (SELECT avg(campusfee) FROM csu_fees)",
      "SELECT avg(campusfee) FROM csu_fees WHERE YEAR  =  1996",
      "SELECT avg(campusfee) FROM csu_fees WHERE YEAR  =  1996",
      "SELECT avg(campusfee) FROM csu_fees WHERE YEAR  =  2005",
      "SELECT avg(campusfee) FROM csu_fees WHERE YEAR  =  2005",
      "SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t2.campus  =  \"San Francisco State University\" AND t1.year  =  2000",
      "SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t2.campus  =  \"San Francisco State University\" AND t1.year  =  2000",
      "SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t2.campus  =  \"San Jose State University\" AND t1.year  =  2000",
      "SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t2.campus  =  \"San Jose State University\" AND t1.year  =  2000"
    ]
  },
  {
    "database": "csu_1",
    "table": "degrees",
    "questions": [
      "Which year has the most degrees conferred?",
      "In what year was the most degrees conferred?",
      "Which campus has the most degrees conferred in all times?",
      "What campus has the most degrees  conferrred over its entire existence?"
    ],
    "col_names": [
      "Year",
      "Campus",
      "Degrees"
    ],
    "standard_answer": [
      "SELECT YEAR FROM degrees GROUP BY YEAR ORDER BY sum(degrees) DESC LIMIT 1",
      "SELECT YEAR FROM degrees GROUP BY YEAR ORDER BY sum(degrees) DESC LIMIT 1",
      "SELECT campus FROM degrees GROUP BY campus ORDER BY sum(degrees) DESC LIMIT 1",
      "SELECT campus FROM degrees GROUP BY campus ORDER BY sum(degrees) DESC LIMIT 1"
    ]
  },
  {
    "database": "csu_1",
    "table": "discipline_enrollments",
    "questions": [
      "How many undergraduates are there in \"San Jose State University\" in year 2004?",
      "How many undergraduates are there at San Jose State",
      "What is the number of graduates in \"San Francisco State University\" in year 2004?",
      "How many people graduated from San Francisco State University in 2004?"
    ],
    "col_names": [
      "Campus",
      "Discipline",
      "Year",
      "Undergraduate",
      "Graduate"
    ],
    "standard_answer": [
      "SELECT sum(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t1.year  =  2004 AND t2.campus  =  \"San Jose State University\"",
      "SELECT sum(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t1.year  =  2004 AND t2.campus  =  \"San Jose State University\"",
      "SELECT sum(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t1.year  =  2004 AND t2.campus  =  \"San Francisco State University\"",
      "SELECT sum(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t1.year  =  2004 AND t2.campus  =  \"San Francisco State University\""
    ]
  },
  {
    "database": "csu_1",
    "table": "enrollments",
    "questions": [],
    "col_names": [
      "Campus",
      "Year",
      "TotalEnrollment_AY",
      "FTE_AY"
    ],
    "standard_answer": []
  },
  {
    "database": "csu_1",
    "table": "faculty",
    "questions": [
      "How many faculty is there in total in the year of 2002?",
      "How many faculty, in total, are there in the year 2002?",
      "What is the number of faculty lines in campus \"Long Beach State University\" in 2002?",
      "What is the number of faculty at Long Beach State University in 2002?",
      "How many faculty lines are there in \"San Francisco State University\" in year 2004?",
      "How many faculty lines are there at San Francisco State University in 2004?"
    ],
    "col_names": [
      "Campus",
      "Year",
      "Faculty"
    ],
    "standard_answer": [
      "SELECT sum(faculty) FROM faculty WHERE YEAR  =  2002",
      "SELECT sum(faculty) FROM faculty WHERE YEAR  =  2002",
      "SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus  =  T2.id WHERE T1.year  =  2002 AND T2.campus  =  \"Long Beach State University\"",
      "SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus  =  T2.id WHERE T1.year  =  2002 AND T2.campus  =  \"Long Beach State University\"",
      "SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus  =  T2.id WHERE T1.year  =  2004 AND T2.campus  =  \"San Francisco State University\"",
      "SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus  =  T2.id WHERE T1.year  =  2004 AND T2.campus  =  \"San Francisco State University\""
    ]
  },
  {
    "database": "tracking_orders",
    "table": "Customers",
    "questions": [],
    "col_names": [
      "customer_id",
      "customer_name",
      "customer_details"
    ],
    "standard_answer": []
  },
  {
    "database": "tracking_orders",
    "table": "Invoices",
    "questions": [],
    "col_names": [
      "invoice_number",
      "invoice_date",
      "invoice_details"
    ],
    "standard_answer": []
  },
  {
    "database": "tracking_orders",
    "table": "Orders",
    "questions": [],
    "col_names": [
      "order_id",
      "customer_id",
      "order_status",
      "date_order_placed",
      "order_details"
    ],
    "standard_answer": []
  },
  {
    "database": "tracking_orders",
    "table": "Products",
    "questions": [],
    "col_names": [
      "product_id",
      "product_name",
      "product_details"
    ],
    "standard_answer": []
  },
  {
    "database": "tracking_orders",
    "table": "Order_Items",
    "questions": [],
    "col_names": [
      "order_item_id",
      "product_id",
      "order_id",
      "order_item_status",
      "order_item_details"
    ],
    "standard_answer": []
  },
  {
    "database": "tracking_orders",
    "table": "Shipments",
    "questions": [],
    "col_names": [
      "shipment_id",
      "order_id",
      "invoice_number",
      "shipment_tracking_number",
      "shipment_date",
      "other_shipment_details"
    ],
    "standard_answer": []
  },
  {
    "database": "tracking_orders",
    "table": "Shipment_Items",
    "questions": [],
    "col_names": [
      "shipment_id",
      "order_item_id"
    ],
    "standard_answer": []
  },
  {
    "database": "insurance_policies",
    "table": "Customers",
    "questions": [
      "Which customer had at least 2 policies but did not file any claims? List the customer details and id.",
      "Give me the the customer details and id for the customers who had two or more policies but did not file any claims.",
      "Who are the customers that had more than 1 policy? List the customer details and id.",
      "Find the the customer details and id for the customers who had more than one policy.",
      "What are all the distinct details of the customers?",
      "Return the distinct customer details.",
      "List the details of the customers who do not have any policies.",
      "Which customers do not have any policies? Find the details of these customers."
    ],
    "col_names": [
      "Customer_ID",
      "Customer_Details"
    ],
    "standard_answer": [
      "SELECT T1.customer_details ,  T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >=  2 EXCEPT SELECT T1.customer_details ,  T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.customer_id JOIN Claims AS T3 ON T2.policy_id  =  T3.policy_id",
      "SELECT T1.customer_details ,  T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >=  2 EXCEPT SELECT T1.customer_details ,  T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.customer_id JOIN Claims AS T3 ON T2.policy_id  =  T3.policy_id",
      "SELECT T1.customer_details ,  T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.Customer_id GROUP BY T1.customer_id HAVING count(*)  >  1",
      "SELECT T1.customer_details ,  T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.Customer_id GROUP BY T1.customer_id HAVING count(*)  >  1",
      "SELECT DISTINCT customer_details FROM Customers",
      "SELECT DISTINCT customer_details FROM Customers",
      "SELECT customer_details FROM Customers EXCEPT SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.customer_id  =  T2.customer_id",
      "SELECT customer_details FROM Customers EXCEPT SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.customer_id  =  T2.customer_id"
    ]
  },
  {
    "database": "insurance_policies",
    "table": "Customer_Policies",
    "questions": [
      "Which kind of policy type was chosen by the most customers?",
      "Find the policy type the most customers choose."
    ],
    "col_names": [
      "Policy_ID",
      "Customer_ID",
      "Policy_Type_Code",
      "Start_Date",
      "End_Date"
    ],
    "standard_answer": [
      "SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY count(*) DESC LIMIT 1",
      "SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "insurance_policies",
    "table": "Claims",
    "questions": [
      "Which claims caused more than 2 settlements or have the maximum claim value? List the date the claim was made and the claim id.",
      "Find the claims that led to more than two settlements or have the maximum claim value. For each of them, return the date the claim was made and the id of the claim.",
      "Among all the claims, what is the settlement amount of the claim with the largest claim amount? List both the settlement amount and claim amount.",
      "Find the settlement amount of the claim with the largest claim amount. Show both the settlement amount and claim amount.",
      "Among all the claims, what is the amount claimed in the claim with the least amount settled? List both the settlement amount and claim amount.",
      "Find the claimed amount in the claim with the least amount settled. Show both the settlement amount and claim amount.",
      "Among all the claims, which claims have a claimed amount larger than the average? List the date the claim was made and the date it was settled.",
      "Give me the claim date, settlement date for all the claims whose claimed amount is larger than the average.",
      "Among all the claims, which settlements have a claimed amount that is no more than the average? List the claim start date.",
      "Return the claim start date for the claims whose claimed amount is no more than the average",
      "How many settlements does each claim correspond to? List the claim id and the number of settlements.",
      "Find the number of settlements each claim corresponds to. Show the number together with the claim id.",
      "Which claim incurred the most number of settlements? List the claim id, the date the claim was made, and the number.",
      "Find the claim id and claim date of the claim that incurred the most settlement count. Also tell me the count.",
      "How many settlements were made on the claim with the most recent claim settlement date? List the number and the claim id.",
      "Find the claim id and the number of settlements made for the claim with the most recent settlement date.",
      "Of all the claims, what was the earliest date when any claim was made?",
      "Tell me the the date when the first claim was made.",
      "List the date the claim was made, the date it was settled and the amount settled for all the claims which had exactly one settlement.",
      "Which claims had exactly one settlement? For each, tell me the the date the claim was made, the date it was settled and the amount settled.",
      "Find the total claimed amount of all the claims.",
      "What is total amount claimed summed across all the claims?"
    ],
    "col_names": [
      "Claim_ID",
      "Policy_ID",
      "Date_Claim_Made",
      "Date_Claim_Settled",
      "Amount_Claimed",
      "Amount_Settled"
    ],
    "standard_answer": [
      "SELECT T1.Date_Claim_Made ,  T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id  =  T2.Claim_id GROUP BY T1.Claim_id HAVING count(*)  >  2 UNION SELECT T1.Date_Claim_Made ,  T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id  =  T2.Claim_id WHERE T1.Amount_Claimed  =  ( SELECT max(Amount_Claimed) FROM Claims )",
      "SELECT T1.Date_Claim_Made ,  T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id  =  T2.Claim_id GROUP BY T1.Claim_id HAVING count(*)  >  2 UNION SELECT T1.Date_Claim_Made ,  T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id  =  T2.Claim_id WHERE T1.Amount_Claimed  =  ( SELECT max(Amount_Claimed) FROM Claims )",
      "SELECT Amount_Settled ,  Amount_Claimed FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1",
      "SELECT Amount_Settled ,  Amount_Claimed FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1",
      "SELECT Amount_Settled ,  Amount_Claimed FROM Claims ORDER BY Amount_Settled ASC LIMIT 1",
      "SELECT Amount_Settled ,  Amount_Claimed FROM Claims ORDER BY Amount_Settled ASC LIMIT 1",
      "SELECT Date_Claim_Made ,  Date_Claim_Settled FROM Claims WHERE Amount_Claimed  >  ( SELECT avg(Amount_Claimed) FROM Claims )",
      "SELECT Date_Claim_Made ,  Date_Claim_Settled FROM Claims WHERE Amount_Claimed  >  ( SELECT avg(Amount_Claimed) FROM Claims )",
      "SELECT Date_Claim_Made FROM Claims WHERE Amount_Settled  <=  ( SELECT avg(Amount_Settled) FROM Claims )",
      "SELECT Date_Claim_Made FROM Claims WHERE Amount_Settled  <=  ( SELECT avg(Amount_Settled) FROM Claims )",
      "SELECT T1.Claim_id ,  count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id  =  T2.claim_id GROUP BY T1.claim_id",
      "SELECT T1.Claim_id ,  count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id  =  T2.claim_id GROUP BY T1.claim_id",
      "SELECT T1.claim_id ,  T1.date_claim_made ,  count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id  =  T2.claim_id GROUP BY T1.claim_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.claim_id ,  T1.date_claim_made ,  count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id  =  T2.claim_id GROUP BY T1.claim_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT count(*) ,  T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id  =  T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1",
      "SELECT count(*) ,  T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id  =  T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1",
      "SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made ASC LIMIT 1",
      "SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made ASC LIMIT 1",
      "SELECT T1.claim_id ,  T1.date_claim_made ,  T1.Date_Claim_Settled FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id  =  T2.Claim_id GROUP BY T1.claim_id HAVING count(*)  =  1",
      "SELECT T1.claim_id ,  T1.date_claim_made ,  T1.Date_Claim_Settled FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id  =  T2.Claim_id GROUP BY T1.claim_id HAVING count(*)  =  1",
      "SELECT sum(Amount_Claimed) FROM Claims",
      "SELECT sum(Amount_Claimed) FROM Claims"
    ]
  },
  {
    "database": "insurance_policies",
    "table": "Settlements",
    "questions": [
      "What is the total amount of settlement made for all the settlements?",
      "Compute the total amount of settlement across all the settlements.",
      "What are the claim dates and settlement dates of all the settlements?",
      "Tell me the the claim date and settlement date for each settlement case.",
      "How many settlements are there in total?",
      "Count the total number of settlements made."
    ],
    "col_names": [
      "Settlement_ID",
      "Claim_ID",
      "Date_Claim_Made",
      "Date_Claim_Settled",
      "Amount_Claimed",
      "Amount_Settled",
      "Customer_Policy_ID"
    ],
    "standard_answer": [
      "SELECT sum(Amount_Settled) FROM Settlements",
      "SELECT sum(Amount_Settled) FROM Settlements",
      "SELECT Date_Claim_Made ,  Date_Claim_Settled FROM Settlements",
      "SELECT Date_Claim_Made ,  Date_Claim_Settled FROM Settlements",
      "SELECT count(*) FROM Settlements",
      "SELECT count(*) FROM Settlements"
    ]
  },
  {
    "database": "insurance_policies",
    "table": "Payments",
    "questions": [
      "List the method, date and amount of all the payments, in ascending order of date.",
      "What are the method, date and amount of each payment? Sort the list in ascending order of date.",
      "What is the most popular payment method?",
      "Which payment method is used the most often?",
      "With which kind of payment method were the least number of payments processed?",
      "What is the payment method that were used the least often?",
      "What is the total amount of payment?",
      "Compute the total amount of payment processed.",
      "Which Payments were processed with Visa? List the payment Id, the date and the amount.",
      "Give me the payment Id, the date and the amount for all the payments processed with Visa."
    ],
    "col_names": [
      "Payment_ID",
      "Settlement_ID",
      "Payment_Method_Code",
      "Date_Payment_Made",
      "Amount_Payment"
    ],
    "standard_answer": [
      "SELECT Payment_Method_Code ,  Date_Payment_Made ,  Amount_Payment FROM Payments ORDER BY Date_Payment_Made ASC",
      "SELECT Payment_Method_Code ,  Date_Payment_Made ,  Amount_Payment FROM Payments ORDER BY Date_Payment_Made ASC",
      "SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) DESC LIMIT 1",
      "SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) DESC LIMIT 1",
      "SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) ASC LIMIT 1",
      "SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) ASC LIMIT 1",
      "SELECT sum(Amount_Payment) FROM Payments",
      "SELECT sum(Amount_Payment) FROM Payments",
      "SELECT Payment_ID ,  Date_Payment_Made ,  Amount_Payment FROM Payments WHERE Payment_Method_Code  =  'Visa'",
      "SELECT Payment_ID ,  Date_Payment_Made ,  Amount_Payment FROM Payments WHERE Payment_Method_Code  =  'Visa'"
    ]
  },
  {
    "database": "gas_company",
    "table": "company",
    "questions": [
      "How many gas companies are there?",
      "What is the total number of companies?",
      "List the company name and rank for all companies in the decreasing order of their sales.",
      "What is the name and rank of every company ordered by descending number of sales?",
      "Show the company name and the main industry for all companies whose headquarters are not from USA.",
      "What are the companies and main industries of all companies that are not headquartered in the United States?",
      "Show all company names and headquarters in the descending order of market value.",
      "What are the names and headquarters of all companies ordered by descending market value?",
      "Show minimum, maximum, and average market value for all companies.",
      "What is the minimum, maximum, and average market value for every company?",
      "Show all main industry for all companies.",
      "What are the different main industries for all companies?",
      "List all headquarters and the number of companies in each headquarter.",
      "For each headquarter, what are the headquarter and how many companies are centered there?",
      "Show all main industry and total market value in each industry.",
      "What are the main indstries and total market value for each industry?",
      "List the main industry with highest total market value and its number of companies.",
      "For each main industry, what is the total number of companies for the industry with the highest total market value?",
      "Show headquarters with at least two companies in the banking industry.",
      "What are the headquarters with at least two companies in the banking industry?",
      "Show all headquarters with both a company in banking industry and a company in Oil and gas.",
      "What are the headquarters that have both a company in the banking and 'oil and gas' industries?",
      "Show all headquarters without a company in banking industry.",
      "What are the headquarters without companies that are in the banking industry?",
      "Show company name and main industry without a gas station.",
      "What are the main industries of the companies without gas stations and what are the companies?",
      "find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion.",
      "What is the rank, company, and market value of every comapny in the banking industry ordered by sales and profits?"
    ],
    "col_names": [
      "Company_ID",
      "Rank",
      "Company",
      "Headquarters",
      "Main_Industry",
      "Sales_billion",
      "Profits_billion",
      "Assets_billion",
      "Market_Value"
    ],
    "standard_answer": [
      "SELECT count(*) FROM company",
      "SELECT count(*) FROM company",
      "SELECT company ,  rank FROM company ORDER BY Sales_billion DESC",
      "SELECT company ,  rank FROM company ORDER BY Sales_billion DESC",
      "SELECT company ,  main_industry FROM company WHERE headquarters != 'USA'",
      "SELECT company ,  main_industry FROM company WHERE headquarters != 'USA'",
      "SELECT company ,  headquarters FROM company ORDER BY market_value DESC",
      "SELECT company ,  headquarters FROM company ORDER BY market_value DESC",
      "SELECT min(market_value) ,  max(market_value) ,  avg(market_value) FROM company",
      "SELECT min(market_value) ,  max(market_value) ,  avg(market_value) FROM company",
      "SELECT DISTINCT main_industry FROM company",
      "SELECT DISTINCT main_industry FROM company",
      "SELECT headquarters ,  count(*) FROM company GROUP BY headquarters",
      "SELECT headquarters ,  count(*) FROM company GROUP BY headquarters",
      "SELECT main_industry ,  sum(market_value) FROM company GROUP BY main_industry",
      "SELECT main_industry ,  sum(market_value) FROM company GROUP BY main_industry",
      "SELECT main_industry ,  count(*) FROM company GROUP BY main_industry ORDER BY sum(market_value) DESC LIMIT 1",
      "SELECT main_industry ,  count(*) FROM company GROUP BY main_industry ORDER BY sum(market_value) DESC LIMIT 1",
      "SELECT headquarters FROM company WHERE main_industry  =  'Banking' GROUP BY headquarters HAVING count(*)  >=  2",
      "SELECT headquarters FROM company WHERE main_industry  =  'Banking' GROUP BY headquarters HAVING count(*)  >=  2",
      "SELECT headquarters FROM company WHERE main_industry  =  'Banking' INTERSECT SELECT headquarters FROM company WHERE main_industry  =  'Oil and gas'",
      "SELECT headquarters FROM company WHERE main_industry  =  'Banking' INTERSECT SELECT headquarters FROM company WHERE main_industry  =  'Oil and gas'",
      "SELECT headquarters FROM company EXCEPT SELECT headquarters FROM company WHERE main_industry  =  'Banking'",
      "SELECT headquarters FROM company EXCEPT SELECT headquarters FROM company WHERE main_industry  =  'Banking'",
      "SELECT company ,  main_industry FROM company WHERE company_id NOT IN (SELECT company_id FROM station_company)",
      "SELECT company ,  main_industry FROM company WHERE company_id NOT IN (SELECT company_id FROM station_company)",
      "SELECT rank ,  company ,  market_value FROM company WHERE main_industry  =  'Banking' ORDER BY sales_billion ,  profits_billion",
      "SELECT rank ,  company ,  market_value FROM company WHERE main_industry  =  'Banking' ORDER BY sales_billion ,  profits_billion"
    ]
  },
  {
    "database": "gas_company",
    "table": "gas_station",
    "questions": [
      "Show gas station id, location, and manager_name for all gas stations ordered by open year.",
      "What are the gas station ids, locations, and manager names for the gas stations ordered by opening year?",
      "How many gas station are opened between 2000 and 2005?",
      "What is the total number of gas stations that opened between 2000 and 2005?",
      "Show all locations and the number of gas stations in each location ordered by the count.",
      "For each location, how many gas stations are there in order?",
      "Show the manager name with most number of gas stations opened after 2000.",
      "What is the name of the manager with the most gas stations that opened after 2000?",
      "order all gas station locations by the opening year.",
      "What are the locations of all the gas stations ordered by opening year?"
    ],
    "col_names": [
      "Station_ID",
      "Open_Year",
      "Location",
      "Manager_Name",
      "Vice_Manager_Name",
      "Representative_Name"
    ],
    "standard_answer": [
      "SELECT station_id ,  LOCATION ,  manager_name FROM gas_station ORDER BY open_year",
      "SELECT station_id ,  LOCATION ,  manager_name FROM gas_station ORDER BY open_year",
      "SELECT count(*) FROM gas_station WHERE open_year BETWEEN 2000 AND 2005",
      "SELECT count(*) FROM gas_station WHERE open_year BETWEEN 2000 AND 2005",
      "SELECT LOCATION ,  count(*) FROM gas_station GROUP BY LOCATION ORDER BY count(*)",
      "SELECT LOCATION ,  count(*) FROM gas_station GROUP BY LOCATION ORDER BY count(*)",
      "SELECT manager_name FROM gas_station WHERE open_year  >  2000 GROUP BY manager_name ORDER BY count(*) DESC LIMIT 1",
      "SELECT manager_name FROM gas_station WHERE open_year  >  2000 GROUP BY manager_name ORDER BY count(*) DESC LIMIT 1",
      "SELECT LOCATION FROM gas_station ORDER BY open_year",
      "SELECT LOCATION FROM gas_station ORDER BY open_year"
    ]
  },
  {
    "database": "gas_company",
    "table": "station_company",
    "questions": [
      "Show the company name with the number of gas station.",
      "For each company id, what are the companies and how many gas stations does each one operate?",
      "Show the manager name for gas stations belonging to the ExxonMobil company.",
      "What are the names of the managers for gas stations that are operated by the ExxonMobil company?",
      "Show all locations where a gas station for company with market value greater than 100 is located.",
      "What are the locations that have gas stations owned by a company with a market value greater than 100?",
      "find the location and Representative name of the gas stations owned by the companies with top 3 Asset amounts.",
      "What are the locations and representatives' names of the gas stations owned by the companies with the 3 largest amounts of assets?"
    ],
    "col_names": [
      "Station_ID",
      "Company_ID",
      "Rank_of_the_Year"
    ],
    "standard_answer": [
      "SELECT T2.company ,  count(*) FROM station_company AS T1 JOIN company AS T2 ON T1.company_id  =  T2.company_id GROUP BY T1.company_id",
      "SELECT T2.company ,  count(*) FROM station_company AS T1 JOIN company AS T2 ON T1.company_id  =  T2.company_id GROUP BY T1.company_id",
      "SELECT T3.manager_name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id  =  T2.company_id JOIN gas_station AS T3 ON T1.station_id  =  T3.station_id WHERE T2.company  =  'ExxonMobil'",
      "SELECT T3.manager_name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id  =  T2.company_id JOIN gas_station AS T3 ON T1.station_id  =  T3.station_id WHERE T2.company  =  'ExxonMobil'",
      "SELECT T3.location FROM station_company AS T1 JOIN company AS T2 ON T1.company_id  =  T2.company_id JOIN gas_station AS T3 ON T1.station_id  =  T3.station_id WHERE T2.market_value  >  100",
      "SELECT T3.location FROM station_company AS T1 JOIN company AS T2 ON T1.company_id  =  T2.company_id JOIN gas_station AS T3 ON T1.station_id  =  T3.station_id WHERE T2.market_value  >  100",
      "SELECT T3.location ,  T3.Representative_Name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id  =  T2.company_id JOIN gas_station AS T3 ON T1.station_id  =  T3.station_id ORDER BY T2.Assets_billion DESC LIMIT 3",
      "SELECT T3.location ,  T3.Representative_Name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id  =  T2.company_id JOIN gas_station AS T3 ON T1.station_id  =  T3.station_id ORDER BY T2.Assets_billion DESC LIMIT 3"
    ]
  },
  {
    "database": "e_government",
    "table": "Addresses",
    "questions": [],
    "col_names": [
      "address_id",
      "line_1_number_building",
      "town_city",
      "zip_postcode",
      "state_province_county",
      "country"
    ],
    "standard_answer": []
  },
  {
    "database": "e_government",
    "table": "Services",
    "questions": [],
    "col_names": [
      "service_id",
      "service_type_code",
      "service_name",
      "service_descriptio"
    ],
    "standard_answer": []
  },
  {
    "database": "e_government",
    "table": "Forms",
    "questions": [],
    "col_names": [
      "form_id",
      "form_type_code",
      "service_id",
      "form_number",
      "form_name",
      "form_description"
    ],
    "standard_answer": []
  },
  {
    "database": "e_government",
    "table": "Individuals",
    "questions": [],
    "col_names": [
      "individual_id",
      "individual_first_name",
      "individual_middle_name",
      "inidividual_phone",
      "individual_email",
      "individual_address",
      "individual_last_name"
    ],
    "standard_answer": []
  },
  {
    "database": "e_government",
    "table": "Organizations",
    "questions": [],
    "col_names": [
      "organization_id",
      "date_formed",
      "organization_name",
      "uk_vat_number"
    ],
    "standard_answer": []
  },
  {
    "database": "e_government",
    "table": "Parties",
    "questions": [],
    "col_names": [
      "party_id",
      "payment_method_code",
      "party_phone",
      "party_email"
    ],
    "standard_answer": []
  },
  {
    "database": "e_government",
    "table": "Organization_Contact_Individuals",
    "questions": [],
    "col_names": [
      "individual_id",
      "organization_id",
      "date_contact_from",
      "date_contact_to"
    ],
    "standard_answer": []
  },
  {
    "database": "e_government",
    "table": "Party_Addresses",
    "questions": [],
    "col_names": [
      "party_id",
      "address_id",
      "date_address_from",
      "address_type_code",
      "date_address_to"
    ],
    "standard_answer": []
  },
  {
    "database": "e_government",
    "table": "Party_Forms",
    "questions": [],
    "col_names": [
      "party_id",
      "form_id",
      "date_completion_started",
      "form_status_code",
      "date_fully_completed"
    ],
    "standard_answer": []
  },
  {
    "database": "e_government",
    "table": "Party_Services",
    "questions": [],
    "col_names": [
      "booking_id",
      "customer_id",
      "service_id",
      "service_datetime",
      "booking_made_date"
    ],
    "standard_answer": []
  },
  {
    "database": "school_bus",
    "table": "driver",
    "questions": [
      "How many drivers are there?",
      "Show the name, home city, and age for all drivers.",
      "Show the party and the number of drivers in each party.",
      "Show the name of drivers in descending order of age.",
      "Show all different home cities.",
      "Show the home city with the most number of drivers.",
      "Show the party with drivers from Hartford and drivers older than 40.",
      "Show home city where at least two drivers older than 40 are from.",
      "Show all home cities except for those having a driver older than 40.",
      "Show the names of the drivers without a school bus.",
      "How many drivers are from Hartford city or younger than 40?",
      "List names for drivers from Hartford city and younger than 40.",
      "find the name of driver who is driving the school bus with the longest working history."
    ],
    "col_names": [
      "Driver_ID",
      "Name",
      "Party",
      "Home_city",
      "Age"
    ],
    "standard_answer": [
      "SELECT count(*) FROM driver",
      "SELECT name ,  home_city ,  age FROM driver",
      "SELECT party ,  count(*) FROM driver GROUP BY party",
      "SELECT name FROM driver ORDER BY age DESC",
      "SELECT DISTINCT home_city FROM driver",
      "SELECT home_city FROM driver GROUP BY home_city ORDER BY count(*) DESC LIMIT 1",
      "SELECT party FROM driver WHERE home_city  =  'Hartford' AND age  >  40",
      "SELECT home_city FROM driver WHERE age  >  40 GROUP BY home_city HAVING count(*)  >=  2",
      "SELECT home_city FROM driver EXCEPT SELECT home_city FROM driver WHERE age  >  40",
      "SELECT name FROM driver WHERE driver_id NOT IN (SELECT driver_id FROM school_bus)",
      "SELECT count(*) FROM driver WHERE home_city  =  'Hartford' OR age  <  40",
      "SELECT name FROM driver WHERE home_city  =  'Hartford' AND age  <  40",
      "SELECT t1.name FROM driver AS t1 JOIN school_bus AS t2 ON t1.driver_id  =  t2.driver_id ORDER BY years_working DESC LIMIT 1"
    ]
  },
  {
    "database": "school_bus",
    "table": "school",
    "questions": [
      "Show the types of schools that have two schools.",
      "Show the school name and type for schools without a school bus."
    ],
    "col_names": [
      "School_ID",
      "Grade",
      "School",
      "Location",
      "Type"
    ],
    "standard_answer": [
      "SELECT TYPE FROM school GROUP BY TYPE HAVING count(*)  =  2",
      "SELECT school ,  TYPE FROM school WHERE school_id NOT IN (SELECT school_id FROM school_bus)"
    ]
  },
  {
    "database": "school_bus",
    "table": "school_bus",
    "questions": [
      "Show the school name and driver name for all school buses.",
      "What is the maximum, minimum and average years spent working on a school bus?",
      "Show the type of school and the number of buses for each type."
    ],
    "col_names": [
      "School_ID",
      "Driver_ID",
      "Years_Working",
      "If_full_time"
    ],
    "standard_answer": [
      "SELECT T2.school ,  T3.name FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id JOIN driver AS T3 ON T1.driver_id  =  T3.driver_id",
      "SELECT max(years_working) ,  min(years_working) ,  avg(years_working) FROM school_bus",
      "SELECT T2.type ,  count(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id GROUP BY T2.type"
    ]
  },
  {
    "database": "machine_repair",
    "table": "repair",
    "questions": [],
    "col_names": [
      "repair_ID",
      "name",
      "Launch_Date",
      "Notes"
    ],
    "standard_answer": []
  },
  {
    "database": "machine_repair",
    "table": "machine",
    "questions": [],
    "col_names": [
      "Machine_ID",
      "Making_Year",
      "Class",
      "Team",
      "Machine_series",
      "value_points",
      "quality_rank"
    ],
    "standard_answer": []
  },
  {
    "database": "machine_repair",
    "table": "technician",
    "questions": [
      "How many technicians are there?",
      "What is the number of technicians?",
      "List the names of technicians in ascending order of age.",
      "What are the names of the technicians by ascending order of age?",
      "What are the team and starting year of technicians?",
      "What is the team and starting year for each technician?",
      "List the name of technicians whose team is not \"NYY\".",
      "What is the name of the technician whose team is not 'NYY'?",
      "Show the name of technicians aged either 36 or 37",
      "What are the names of the technicians aged either 36 or 37?",
      "What is the starting year of the oldest technicians?",
      "What is the starting year for the oldest technician?",
      "Show different teams of technicians and the number of technicians in each team.",
      "For each team, how many technicians are there?",
      "Please show the team that has the most number of technicians.",
      "What are the teams with the most technicians?",
      "Show the team that have at least two technicians.",
      "What is the team with at least 2 technicians?",
      "List the names of technicians who have not been assigned to repair machines.",
      "What are the names of the technicians that have not been assigned to repair machines?",
      "Show the starting years shared by technicians from team \"CLE\" and \"CWS\".",
      "What are the starting years shared by the technicians from the team \"CLE\" or \"CWS\"?"
    ],
    "col_names": [
      "technician_id",
      "Name",
      "Team",
      "Starting_Year",
      "Age"
    ],
    "standard_answer": [
      "SELECT count(*) FROM technician",
      "SELECT count(*) FROM technician",
      "SELECT Name FROM technician ORDER BY Age ASC",
      "SELECT Name FROM technician ORDER BY Age ASC",
      "SELECT Team ,  Starting_Year FROM technician",
      "SELECT Team ,  Starting_Year FROM technician",
      "SELECT Name FROM technician WHERE Team != \"NYY\"",
      "SELECT Name FROM technician WHERE Team != \"NYY\"",
      "SELECT Name FROM technician WHERE Age  =  36 OR Age  =  37",
      "SELECT Name FROM technician WHERE Age  =  36 OR Age  =  37",
      "SELECT Starting_Year FROM technician ORDER BY Age DESC LIMIT 1",
      "SELECT Starting_Year FROM technician ORDER BY Age DESC LIMIT 1",
      "SELECT Team ,  COUNT(*) FROM technician GROUP BY Team",
      "SELECT Team ,  COUNT(*) FROM technician GROUP BY Team",
      "SELECT Team FROM technician GROUP BY Team ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Team FROM technician GROUP BY Team ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Team FROM technician GROUP BY Team HAVING COUNT(*)  >=  2",
      "SELECT Team FROM technician GROUP BY Team HAVING COUNT(*)  >=  2",
      "SELECT Name FROM technician WHERE technician_id NOT IN (SELECT technician_id FROM repair_assignment)",
      "SELECT Name FROM technician WHERE technician_id NOT IN (SELECT technician_id FROM repair_assignment)",
      "SELECT Starting_Year FROM technician WHERE Team  =  \"CLE\" INTERSECT SELECT Starting_Year FROM technician WHERE Team  =  \"CWS\"",
      "SELECT Starting_Year FROM technician WHERE Team  =  \"CLE\" INTERSECT SELECT Starting_Year FROM technician WHERE Team  =  \"CWS\""
    ]
  },
  {
    "database": "machine_repair",
    "table": "repair_assignment",
    "questions": [
      "Show names of technicians and series of machines they are assigned to repair.",
      "What are the names of technicians and the machine series that they repair?",
      "Show names of technicians in ascending order of quality rank of the machine they are assigned.",
      "What are the names of the technicians by ascending order of quality rank for the machine they are assigned?",
      "Show names of technicians who are assigned to repair machines with value point more than 70.",
      "What are the names of the technicians that are assigned to repair machines with more point values than 70?",
      "Show names of technicians and the number of machines they are assigned to repair.",
      "What are the names of the technicians  and how many machines are they assigned to repair?"
    ],
    "col_names": [
      "technician_id",
      "repair_ID",
      "Machine_ID"
    ],
    "standard_answer": [
      "SELECT T3.Name ,  T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id  =  T2.machine_id JOIN technician AS T3 ON T1.technician_ID  =  T3.technician_ID",
      "SELECT T3.Name ,  T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id  =  T2.machine_id JOIN technician AS T3 ON T1.technician_ID  =  T3.technician_ID",
      "SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id  =  T2.machine_id JOIN technician AS T3 ON T1.technician_ID  =  T3.technician_ID ORDER BY T2.quality_rank",
      "SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id  =  T2.machine_id JOIN technician AS T3 ON T1.technician_ID  =  T3.technician_ID ORDER BY T2.quality_rank",
      "SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id  =  T2.machine_id JOIN technician AS T3 ON T1.technician_ID  =  T3.technician_ID WHERE T2.value_points  >  70",
      "SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id  =  T2.machine_id JOIN technician AS T3 ON T1.technician_ID  =  T3.technician_ID WHERE T2.value_points  >  70",
      "SELECT T2.Name ,  COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID  =  T2.technician_ID GROUP BY T2.Name",
      "SELECT T2.Name ,  COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID  =  T2.technician_ID GROUP BY T2.Name"
    ]
  },
  {
    "database": "theme_gallery",
    "table": "artist",
    "questions": [
      "How many artists do we have?",
      "Count the number of artists.",
      "Show all artist name, age, and country ordered by the yeared they joined.",
      "What are the names, ages, and countries of artists, sorted by the year they joined?",
      "What are all distinct country for artists?",
      "Return the different countries for artists.",
      "Show all artist names and the year joined who are not from United States.",
      "What are the names and year of joining for artists that do not have the country \"United States\"?",
      "How many artists are above age 46 and joined after 1990?",
      "Count the number of artists who are older than 46 and joined after 1990.",
      "What is the average and minimum age of all artists from United States.",
      "Return the average and minimum ages across artists from the United States.",
      "What is the name of the artist who joined latest?",
      "Return the name of the artist who has the latest join year.",
      "Show names for artists without any exhibition.",
      "What are the names of artists that have not had any exhibitions?",
      "Show all artist names who didn't have an exhibition in 2004.",
      "What are the names of artists who did not have an exhibition in 2004?"
    ],
    "col_names": [
      "Artist_ID",
      "Name",
      "Country",
      "Year_Join",
      "Age"
    ],
    "standard_answer": [
      "SELECT count(*) FROM artist",
      "SELECT count(*) FROM artist",
      "SELECT name ,  age ,  country FROM artist ORDER BY Year_Join",
      "SELECT name ,  age ,  country FROM artist ORDER BY Year_Join",
      "SELECT DISTINCT country FROM artist",
      "SELECT DISTINCT country FROM artist",
      "SELECT name ,  year_join FROM artist WHERE country != 'United States'",
      "SELECT name ,  year_join FROM artist WHERE country != 'United States'",
      "SELECT count(*) FROM artist WHERE age  >  46 AND year_join  >  1990",
      "SELECT count(*) FROM artist WHERE age  >  46 AND year_join  >  1990",
      "SELECT avg(age) ,  min(age) FROM artist WHERE country  =  'United States'",
      "SELECT avg(age) ,  min(age) FROM artist WHERE country  =  'United States'",
      "SELECT name FROM artist ORDER BY year_join DESC LIMIT 1",
      "SELECT name FROM artist ORDER BY year_join DESC LIMIT 1",
      "SELECT name FROM artist WHERE artist_id NOT IN (SELECT artist_id FROM exhibition)",
      "SELECT name FROM artist WHERE artist_id NOT IN (SELECT artist_id FROM exhibition)",
      "SELECT name FROM artist EXCEPT SELECT T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id WHERE T1.year  =  2004",
      "SELECT name FROM artist EXCEPT SELECT T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id WHERE T1.year  =  2004"
    ]
  },
  {
    "database": "theme_gallery",
    "table": "exhibition",
    "questions": [
      "How many exhibition are there in year 2005 or after?",
      "Count the number of exhibitions that happened in or after 2005.",
      "Show theme and year for all exhibitions with ticket prices lower than 15.",
      "What are the theme and year for all exhibitions that have a ticket price under 15?",
      "Show all artist names and the number of exhibitions for each artist.",
      "How many exhibitions has each artist had?",
      "What is the name and country for the artist with most number of exhibitions?",
      "Return the name and country corresponding to the artist who has had the most exhibitions.",
      "What is the theme and artist name for the exhibition with a ticket price higher than the average?",
      "Return the names of artists and the themes of their exhibitions that had a ticket price higher than average.",
      "Show the average, minimum, and maximum ticket prices for exhibitions for all years before 2009.",
      "What are the average, minimum, and maximum ticket prices for exhibitions that happened prior to 2009?",
      "Show theme and year for all exhibitions in an descending order of ticket price.",
      "What are the themes and years for exhibitions, sorted by ticket price descending?"
    ],
    "col_names": [
      "Exhibition_ID",
      "Year",
      "Theme",
      "Artist_ID",
      "Ticket_Price"
    ],
    "standard_answer": [
      "SELECT count(*) FROM exhibition WHERE YEAR  >=  2005",
      "SELECT count(*) FROM exhibition WHERE YEAR  >=  2005",
      "SELECT theme ,  YEAR FROM exhibition WHERE ticket_price  <  15",
      "SELECT theme ,  YEAR FROM exhibition WHERE ticket_price  <  15",
      "SELECT T2.name ,  count(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id GROUP BY T1.artist_id",
      "SELECT T2.name ,  count(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id GROUP BY T1.artist_id",
      "SELECT T2.name , T2.country FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id GROUP BY T1.artist_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T2.name , T2.country FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id GROUP BY T1.artist_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.theme ,  T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id WHERE T1.ticket_price  >  (SELECT avg(ticket_price) FROM exhibition)",
      "SELECT T1.theme ,  T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id WHERE T1.ticket_price  >  (SELECT avg(ticket_price) FROM exhibition)",
      "SELECT avg(ticket_price) ,  min(ticket_price) ,  max(ticket_price) FROM exhibition WHERE YEAR  <  2009",
      "SELECT avg(ticket_price) ,  min(ticket_price) ,  max(ticket_price) FROM exhibition WHERE YEAR  <  2009",
      "SELECT theme ,  YEAR FROM exhibition ORDER BY ticket_price DESC",
      "SELECT theme ,  YEAR FROM exhibition ORDER BY ticket_price DESC"
    ]
  },
  {
    "database": "theme_gallery",
    "table": "exhibition_record",
    "questions": [
      "What is the theme, date, and attendance for the exhibition in year 2004?",
      "Return the themes, dates, and attendance for exhibitions that happened in 2004.",
      "Show the theme for exhibitions with both records of an attendance below 100 and above 500.",
      "Which themes have had corresponding exhibitions that have had attendance both below 100 and above 500?",
      "How many exhibitions have a attendance more than 100 or have a ticket price below 10?",
      "Count the number of exhibitions that have had an attendnance of over 100 or a ticket prices under 10.",
      "Show all artist names with an average exhibition attendance over 200.",
      "What are the names of artist whose exhibitions draw over 200 attendees on average?"
    ],
    "col_names": [
      "Exhibition_ID",
      "Date",
      "Attendance"
    ],
    "standard_answer": [
      "SELECT T2.theme ,  T1.date ,  T1.attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T2.year  =  2004",
      "SELECT T2.theme ,  T1.date ,  T1.attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T2.year  =  2004",
      "SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  <  100 INTERSECT SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  >  500",
      "SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  <  100 INTERSECT SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  >  500",
      "SELECT count(*) FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  >  100 OR T2.ticket_price  <  10",
      "SELECT count(*) FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  >  100 OR T2.ticket_price  <  10",
      "SELECT T3.name FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id JOIN artist AS T3 ON T3.artist_id  =  T2.artist_id GROUP BY T3.artist_id HAVING avg(T1.attendance)  >  200",
      "SELECT T3.name FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id JOIN artist AS T3 ON T3.artist_id  =  T2.artist_id GROUP BY T3.artist_id HAVING avg(T1.attendance)  >  200"
    ]
  },
  {
    "database": "film_rank",
    "table": "film",
    "questions": [
      "How many film are there?",
      "Count the number of films.",
      "List the distinct director of all films.",
      "What are the different film Directors?",
      "What is the average ticket sales gross in dollars of films?",
      "Return the average gross sales in dollars across all films.",
      "Please show the titles of films and the types of market estimations.",
      "What are the titles of films and corresponding types of market estimations?",
      "Show the distinct director of films with market estimation in the year of 1995.",
      "Who are the different directors of films which had market estimation in 1995?",
      "List the studios of each film and the number of films produced by that studio.",
      "How films are produced by each studio?",
      "List the name of film studio that have the most number of films.",
      "What is the name of teh studio that created the most films?",
      "List the names of studios that have at least two films.",
      "What are the names of studios that have made two or more films?",
      "List the title of films that do not have any market estimation.",
      "What are the titles of films that do not have a film market estimation?",
      "Show the studios that have produced films with director \"Nicholas Meyer\" and \"Walter Hill\".",
      "What are the names of studios that have produced films with both Nicholas Meyer and Walter Hill?",
      "Find the titles and studios of the films that are produced by some film studios that contained the word \"Universal\".",
      "What are the titles and studios of films that have been produced by a studio whose name contains \"Universal\"?",
      "Show the studios that have not produced films with director \"Walter Hill\".",
      "Which studios have never worked with the director Walter Hill?",
      "List the studios which average gross is above 4500000.",
      "Which studios have an average gross of over 4500000?",
      "What is the title of the film that has the highest high market estimation.",
      "Return the title of the film with the highest high estimate?",
      "What are the titles and directors of the films were never presented in China?",
      "Return the titles and directors of films that were never in the market of China."
    ],
    "col_names": [
      "Film_ID",
      "Title",
      "Studio",
      "Director",
      "Gross_in_dollar"
    ],
    "standard_answer": [
      "SELECT count(*) FROM film",
      "SELECT count(*) FROM film",
      "SELECT DISTINCT Director FROM film",
      "SELECT DISTINCT Director FROM film",
      "SELECT avg(Gross_in_dollar) FROM film",
      "SELECT avg(Gross_in_dollar) FROM film",
      "SELECT T1.Title ,  T2.Type FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID  =  T2.Film_ID",
      "SELECT T1.Title ,  T2.Type FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID  =  T2.Film_ID",
      "SELECT DISTINCT T1.Director FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID  =  T2.Film_ID WHERE T2.Year  =  1995",
      "SELECT DISTINCT T1.Director FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID  =  T2.Film_ID WHERE T2.Year  =  1995",
      "SELECT Studio ,  COUNT(*) FROM film GROUP BY Studio",
      "SELECT Studio ,  COUNT(*) FROM film GROUP BY Studio",
      "SELECT Studio FROM film GROUP BY Studio ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Studio FROM film GROUP BY Studio ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Studio FROM film GROUP BY Studio HAVING COUNT(*)  >=  2",
      "SELECT Studio FROM film GROUP BY Studio HAVING COUNT(*)  >=  2",
      "SELECT Title FROM film WHERE Film_ID NOT IN (SELECT Film_ID FROM film_market_estimation)",
      "SELECT Title FROM film WHERE Film_ID NOT IN (SELECT Film_ID FROM film_market_estimation)",
      "SELECT Studio FROM film WHERE Director  =  \"Nicholas Meyer\" INTERSECT SELECT Studio FROM film WHERE Director  =  \"Walter Hill\"",
      "SELECT Studio FROM film WHERE Director  =  \"Nicholas Meyer\" INTERSECT SELECT Studio FROM film WHERE Director  =  \"Walter Hill\"",
      "SELECT title ,  Studio FROM film WHERE Studio LIKE \"%Universal%\"",
      "SELECT title ,  Studio FROM film WHERE Studio LIKE \"%Universal%\"",
      "SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director  =  \"Walter Hill\"",
      "SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director  =  \"Walter Hill\"",
      "SELECT Studio FROM film GROUP BY Studio HAVING avg(Gross_in_dollar)  >=  4500000",
      "SELECT Studio FROM film GROUP BY Studio HAVING avg(Gross_in_dollar)  >=  4500000",
      "SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2  ON T1.Film_ID  =  T2.Film_ID ORDER BY high_estimate DESC LIMIT 1",
      "SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2  ON T1.Film_ID  =  T2.Film_ID ORDER BY high_estimate DESC LIMIT 1",
      "SELECT title ,  director FROM film WHERE film_id NOT IN (SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id  =  T2.Market_ID WHERE country  =  'China')",
      "SELECT title ,  director FROM film WHERE film_id NOT IN (SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id  =  T2.Market_ID WHERE country  =  'China')"
    ]
  },
  {
    "database": "film_rank",
    "table": "market",
    "questions": [
      "What are the maximum and minimum number of cities in all markets.",
      "Return the maximum and minimum number of cities across all markets.",
      "How many markets have number of cities smaller than 300?",
      "Count the number of markets that have a number of cities lower than 300.",
      "List all countries of markets in ascending alphabetical order.",
      "What are the countries for each market, ordered alphabetically?",
      "List all countries of markets in descending order of number of cities.",
      "What are the countries for each market ordered by decreasing number of cities?"
    ],
    "col_names": [
      "Market_ID",
      "Country",
      "Number_cities"
    ],
    "standard_answer": [
      "SELECT max(Number_cities) ,  min(Number_cities) FROM market",
      "SELECT max(Number_cities) ,  min(Number_cities) FROM market",
      "SELECT count(*) FROM market WHERE Number_cities  <  300",
      "SELECT count(*) FROM market WHERE Number_cities  <  300",
      "SELECT Country FROM market ORDER BY Country ASC",
      "SELECT Country FROM market ORDER BY Country ASC",
      "SELECT Country FROM market ORDER BY Number_cities DESC",
      "SELECT Country FROM market ORDER BY Number_cities DESC"
    ]
  },
  {
    "database": "film_rank",
    "table": "film_market_estimation",
    "questions": [
      "What are the low and high estimates of film markets?",
      "Return the low and high estimates for all film markets.",
      "What are the types of film market estimations in year 1995?",
      "Return the types of film market estimations in 1995.",
      "What is the average number of cities of markets with low film market estimate bigger than 10000?",
      "Give the average number of cities within markets that had a low market estimation larger than 10000?",
      "Please list the countries and years of film market estimations.",
      "What are the countries of markets and their corresponding years of market estimation?",
      "Please list the years of film market estimations when the market is in country \"Japan\" in descending order.",
      "What are the years of film market estimation for the market of Japan, ordered by year descending?"
    ],
    "col_names": [
      "Estimation_ID",
      "Low_Estimate",
      "High_Estimate",
      "Film_ID",
      "Type",
      "Market_ID",
      "Year"
    ],
    "standard_answer": [
      "SELECT Low_Estimate ,  High_Estimate FROM film_market_estimation",
      "SELECT Low_Estimate ,  High_Estimate FROM film_market_estimation",
      "SELECT TYPE FROM film_market_estimation WHERE YEAR  =  1995",
      "SELECT TYPE FROM film_market_estimation WHERE YEAR  =  1995",
      "SELECT avg(T2.Number_cities) FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID WHERE T1.Low_Estimate  >  10000",
      "SELECT avg(T2.Number_cities) FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID WHERE T1.Low_Estimate  >  10000",
      "SELECT T2.Country ,  T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID",
      "SELECT T2.Country ,  T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID",
      "SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID WHERE T2.Country  =  \"Japan\" ORDER BY T1.Year DESC",
      "SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID WHERE T2.Country  =  \"Japan\" ORDER BY T1.Year DESC"
    ]
  },
  {
    "database": "party_people",
    "table": "region",
    "questions": [
      "How many regions do we have?",
      "Count the number of regions.",
      "Show all distinct region names ordered by their labels.",
      "What are the different region names, ordered by labels?",
      "How many Annual Meeting events happened in the United Kingdom region?",
      "Count the number of Annual Meeting events that took place in the region of the United Kingdom."
    ],
    "col_names": [
      "Region_ID",
      "Region_name",
      "Date",
      "Label",
      "Format",
      "Catalogue"
    ],
    "standard_answer": [
      "SELECT count(*) FROM region",
      "SELECT count(*) FROM region",
      "SELECT DISTINCT region_name FROM region ORDER BY Label",
      "SELECT DISTINCT region_name FROM region ORDER BY Label",
      "SELECT count(*) FROM region AS t1 JOIN party AS t2 ON t1.region_id  =  t2.region_id JOIN party_events AS t3 ON t2.party_id  =  t3.party_id WHERE t1.region_name  =  \"United Kingdom\" AND t3.Event_Name  =  \"Annaual Meeting\"",
      "SELECT count(*) FROM region AS t1 JOIN party AS t2 ON t1.region_id  =  t2.region_id JOIN party_events AS t3 ON t2.party_id  =  t3.party_id WHERE t1.region_name  =  \"United Kingdom\" AND t3.Event_Name  =  \"Annaual Meeting\""
    ]
  },
  {
    "database": "party_people",
    "table": "party",
    "questions": [
      "How many parties do we have?",
      "Count the number of different parties.",
      "Show the ministers and the time they took and left office, listed by the time they left office.",
      "Who are the ministers, when did they take office, and when did they leave office, ordered by when they left office?",
      "Show the minister who took office after 1961 or before 1959.",
      "Who are the ministers who took office after 1961 or before 1959?",
      "Show all ministers who do not belong to Progress Party.",
      "Which ministers are not a part of the Progress Party?",
      "Show all ministers and parties they belong to in descending order of the time they took office.",
      "Who are the ministers and what parties do they belong to, listed descending by the times they took office?",
      "Return the minister who left office at the latest time.",
      "Which minister left office the latest?",
      "Show all party names and their region names.",
      "What are the names of parties and their respective regions?",
      "Show names of parties that does not have any members.",
      "What are the names of parties that have no members?"
    ],
    "col_names": [
      "Party_ID",
      "Minister",
      "Took_office",
      "Left_office",
      "Region_ID",
      "Party_name"
    ],
    "standard_answer": [
      "SELECT count(DISTINCT party_name) FROM party",
      "SELECT count(DISTINCT party_name) FROM party",
      "SELECT minister ,  took_office ,  left_office FROM party ORDER BY left_office",
      "SELECT minister ,  took_office ,  left_office FROM party ORDER BY left_office",
      "SELECT minister FROM party WHERE took_office  >  1961 OR took_office  <  1959",
      "SELECT minister FROM party WHERE took_office  >  1961 OR took_office  <  1959",
      "SELECT minister FROM party WHERE party_name != 'Progress Party'",
      "SELECT minister FROM party WHERE party_name != 'Progress Party'",
      "SELECT minister ,  party_name FROM party ORDER BY took_office DESC",
      "SELECT minister ,  party_name FROM party ORDER BY took_office DESC",
      "SELECT minister FROM party ORDER BY left_office DESC LIMIT 1",
      "SELECT minister FROM party ORDER BY left_office DESC LIMIT 1",
      "SELECT T1.party_name ,  T2.region_name FROM party AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id",
      "SELECT T1.party_name ,  T2.region_name FROM party AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id",
      "SELECT party_name FROM party WHERE party_id NOT IN (SELECT party_id FROM Member)",
      "SELECT party_name FROM party WHERE party_id NOT IN (SELECT party_id FROM Member)"
    ]
  },
  {
    "database": "party_people",
    "table": "member",
    "questions": [
      "Show the member names which are in both the party with id 3 and the party with id 1.",
      "Which member names are shared among members in the party with the id 3 and the party with the id 1?",
      "Show all member names who are not in charge of any event.",
      "What are the names of members who are not in charge of any events?",
      "What is the name of member in charge of greatest number of events?",
      "Return the name of the member who is in charge of the most events."
    ],
    "col_names": [
      "Member_ID",
      "Member_Name",
      "Party_ID",
      "In_office"
    ],
    "standard_answer": [
      "SELECT member_name FROM member WHERE party_id  =  3 INTERSECT SELECT member_name FROM member WHERE party_id  =  1",
      "SELECT member_name FROM member WHERE party_id  =  3 INTERSECT SELECT member_name FROM member WHERE party_id  =  1",
      "SELECT member_name FROM member EXCEPT SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id  =  T2.member_in_charge_id",
      "SELECT member_name FROM member EXCEPT SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id  =  T2.member_in_charge_id",
      "SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id  =  T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id  =  T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "party_people",
    "table": "party_events",
    "questions": [
      "How many party events do we have?",
      "Count the number of party events.",
      "Show party names and the number of events for each party.",
      "How many events are there for each party?",
      "What are the names of parties with at least 2 events?",
      "Return the names of parties that have two or more events.",
      "find the event names that have more than 2 records.",
      "Which event names were used more than twice for party events?"
    ],
    "col_names": [
      "Event_ID",
      "Event_Name",
      "Party_ID",
      "Member_in_charge_ID"
    ],
    "standard_answer": [
      "SELECT count(*) FROM party_events",
      "SELECT count(*) FROM party_events",
      "SELECT T2.party_name ,  count(*) FROM party_events AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id",
      "SELECT T2.party_name ,  count(*) FROM party_events AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id",
      "SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id HAVING count(*)  >=  2",
      "SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id HAVING count(*)  >=  2",
      "SELECT event_name FROM party_events GROUP BY event_name HAVING count(*)  >  2",
      "SELECT event_name FROM party_events GROUP BY event_name HAVING count(*)  >  2"
    ]
  },
  {
    "database": "hospital_1",
    "table": "Physician",
    "questions": [],
    "col_names": [
      "EmployeeID",
      "Name",
      "Position",
      "SSN"
    ],
    "standard_answer": []
  },
  {
    "database": "hospital_1",
    "table": "Department",
    "questions": [],
    "col_names": [
      "DepartmentID",
      "Name",
      "Head"
    ],
    "standard_answer": []
  },
  {
    "database": "hospital_1",
    "table": "Affiliated_With",
    "questions": [],
    "col_names": [
      "Physician",
      "Department",
      "PrimaryAffiliation"
    ],
    "standard_answer": []
  },
  {
    "database": "hospital_1",
    "table": "Procedures",
    "questions": [],
    "col_names": [
      "Code",
      "Name",
      "Cost"
    ],
    "standard_answer": []
  },
  {
    "database": "hospital_1",
    "table": "Trained_In",
    "questions": [],
    "col_names": [
      "Physician",
      "Treatment",
      "CertificationDate",
      "CertificationExpires"
    ],
    "standard_answer": []
  },
  {
    "database": "hospital_1",
    "table": "Patient",
    "questions": [],
    "col_names": [
      "SSN",
      "Name",
      "Address",
      "Phone",
      "InsuranceID",
      "PCP"
    ],
    "standard_answer": []
  },
  {
    "database": "hospital_1",
    "table": "Nurse",
    "questions": [],
    "col_names": [
      "EmployeeID",
      "Name",
      "Position",
      "Registered",
      "SSN"
    ],
    "standard_answer": []
  },
  {
    "database": "hospital_1",
    "table": "Appointment",
    "questions": [],
    "col_names": [
      "AppointmentID",
      "Patient",
      "PrepNurse",
      "Physician",
      "Start",
      "End",
      "ExaminationRoom"
    ],
    "standard_answer": []
  },
  {
    "database": "hospital_1",
    "table": "Medication",
    "questions": [],
    "col_names": [
      "Code",
      "Name",
      "Brand",
      "Description"
    ],
    "standard_answer": []
  },
  {
    "database": "hospital_1",
    "table": "Prescribes",
    "questions": [],
    "col_names": [
      "Physician",
      "Patient",
      "Medication",
      "Date",
      "Appointment",
      "Dose"
    ],
    "standard_answer": []
  },
  {
    "database": "hospital_1",
    "table": "Block",
    "questions": [],
    "col_names": [
      "BlockFloor",
      "BlockCode"
    ],
    "standard_answer": []
  },
  {
    "database": "hospital_1",
    "table": "Room",
    "questions": [],
    "col_names": [
      "RoomNumber",
      "RoomType",
      "BlockFloor",
      "BlockCode",
      "Unavailable"
    ],
    "standard_answer": []
  },
  {
    "database": "hospital_1",
    "table": "On_Call",
    "questions": [],
    "col_names": [
      "Nurse",
      "BlockFloor",
      "BlockCode",
      "OnCallStart",
      "OnCallEnd"
    ],
    "standard_answer": []
  },
  {
    "database": "hospital_1",
    "table": "Stay",
    "questions": [],
    "col_names": [
      "StayID",
      "Patient",
      "Room",
      "StayStart",
      "StayEnd"
    ],
    "standard_answer": []
  },
  {
    "database": "hospital_1",
    "table": "Undergoes",
    "questions": [],
    "col_names": [
      "Patient",
      "Procedures",
      "Stay",
      "DateUndergoes",
      "Physician",
      "AssistingNurse"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_campaigns_ecommerce",
    "table": "Premises",
    "questions": [],
    "col_names": [
      "premise_id",
      "premises_type",
      "premise_details"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_campaigns_ecommerce",
    "table": "Products",
    "questions": [],
    "col_names": [
      "product_id",
      "product_category",
      "product_name"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_campaigns_ecommerce",
    "table": "Customers",
    "questions": [],
    "col_names": [
      "customer_id",
      "payment_method",
      "customer_name",
      "customer_phone",
      "customer_email",
      "customer_address",
      "customer_login",
      "customer_password"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_campaigns_ecommerce",
    "table": "Mailshot_Campaigns",
    "questions": [],
    "col_names": [
      "mailshot_id",
      "product_category",
      "mailshot_name",
      "mailshot_start_date",
      "mailshot_end_date"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_campaigns_ecommerce",
    "table": "Customer_Addresses",
    "questions": [],
    "col_names": [
      "customer_id",
      "premise_id",
      "date_address_from",
      "address_type_code",
      "date_address_to"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_campaigns_ecommerce",
    "table": "Customer_Orders",
    "questions": [],
    "col_names": [
      "order_id",
      "customer_id",
      "order_status_code",
      "shipping_method_code",
      "order_placed_datetime",
      "order_delivered_datetime",
      "order_shipping_charges"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_campaigns_ecommerce",
    "table": "Mailshot_Customers",
    "questions": [],
    "col_names": [
      "mailshot_id",
      "customer_id",
      "outcome_code",
      "mailshot_customer_date"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_campaigns_ecommerce",
    "table": "Order_Items",
    "questions": [],
    "col_names": [
      "item_id",
      "order_item_status_code",
      "order_id",
      "product_id",
      "item_status_code",
      "item_delivered_datetime",
      "item_order_quantity"
    ],
    "standard_answer": []
  },
  {
    "database": "gymnast",
    "table": "gymnast",
    "questions": [
      "How many gymnasts are there?",
      "Count the number of gymnasts.",
      "List the total points of gymnasts in descending order.",
      "What are the total points for all gymnasts, ordered by total points descending?",
      "List the total points of gymnasts in descending order of floor exercise points.",
      "What are the total points of gymnasts, ordered by their floor exercise points descending?",
      "What is the average horizontal bar points for all gymnasts?",
      "Return the average horizontal bar points across all gymnasts.",
      "What are the names of gymnasts?",
      "Return the names of the gymnasts.",
      "What are the names of gymnasts whose hometown is not \"Santo Domingo\"?",
      "Return the names of gymnasts who did not grow up in Santo Domingo.",
      "What is the total point count of the youngest gymnast?",
      "Return the total points of the gymnast with the lowest age.",
      "What is the average age of all gymnasts?",
      "Return the average age across all gymnasts.",
      "What are the distinct hometowns of gymnasts with total points more than 57.5?",
      "Give the different hometowns of gymnasts that have a total point score of above 57.5.",
      "What are the hometowns of gymnasts and the corresponding number of gymnasts?",
      "How many gymnasts are from each hometown?",
      "What is the most common hometown of gymnasts?",
      "Return the hometown that is most common among gymnasts.",
      "What are the hometowns that are shared by at least two gymnasts?",
      "Give the hometowns from which two or more gymnasts are from.",
      "List the names of gymnasts in ascending order by their heights.",
      "What are the names of gymnasts, ordered by their heights ascending?",
      "Show the ages of gymnasts in descending order of total points.",
      "What are the ages of the gymnasts, ordered descending by their total points?"
    ],
    "col_names": [
      "Gymnast_ID",
      "Floor_Exercise_Points",
      "Pommel_Horse_Points",
      "Rings_Points",
      "Vault_Points",
      "Parallel_Bars_Points",
      "Horizontal_Bar_Points",
      "Total_Points"
    ],
    "standard_answer": [
      "SELECT count(*) FROM gymnast",
      "SELECT count(*) FROM gymnast",
      "SELECT Total_Points FROM gymnast ORDER BY Total_Points DESC",
      "SELECT Total_Points FROM gymnast ORDER BY Total_Points DESC",
      "SELECT Total_Points FROM gymnast ORDER BY Floor_Exercise_Points DESC",
      "SELECT Total_Points FROM gymnast ORDER BY Floor_Exercise_Points DESC",
      "SELECT avg(Horizontal_Bar_Points) FROM gymnast",
      "SELECT avg(Horizontal_Bar_Points) FROM gymnast",
      "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID",
      "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID",
      "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T2.Hometown != \"Santo Domingo\"",
      "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T2.Hometown != \"Santo Domingo\"",
      "SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Age ASC LIMIT 1",
      "SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Age ASC LIMIT 1",
      "SELECT avg(T2.Age) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID",
      "SELECT avg(T2.Age) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID",
      "SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T1.Total_Points  >  57.5",
      "SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T1.Total_Points  >  57.5",
      "SELECT T2.Hometown ,  COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown",
      "SELECT T2.Hometown ,  COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown",
      "SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*)  >=  2",
      "SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*)  >=  2",
      "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Height ASC",
      "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Height ASC",
      "SELECT T2.Age FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T1.Total_Points DESC",
      "SELECT T2.Age FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T1.Total_Points DESC"
    ]
  },
  {
    "database": "gymnast",
    "table": "people",
    "questions": [
      "What is the age of the tallest person?",
      "Return the age of the person with the greatest height.",
      "List the distinct hometowns that are not associated with any gymnast.",
      "From which hometowns did no gymnasts come from?",
      "Show the hometowns shared by people older than 23 and younger than 20.",
      "From which hometowns did both people older than 23 and younger than 20 come from?",
      "How many distinct hometowns did these people have?",
      "Count the number of different hometowns of these people."
    ],
    "col_names": [
      "People_ID",
      "Name",
      "Age",
      "Height",
      "Hometown"
    ],
    "standard_answer": [
      "SELECT Age FROM people ORDER BY Height DESC LIMIT 1",
      "SELECT Age FROM people ORDER BY Height DESC LIMIT 1",
      "SELECT DISTINCT Hometown FROM people EXCEPT SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID",
      "SELECT DISTINCT Hometown FROM people EXCEPT SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID",
      "SELECT Hometown FROM people WHERE Age  >  23 INTERSECT SELECT Hometown FROM people WHERE Age  <  20",
      "SELECT Hometown FROM people WHERE Age  >  23 INTERSECT SELECT Hometown FROM people WHERE Age  <  20",
      "SELECT count(DISTINCT Hometown) FROM people",
      "SELECT count(DISTINCT Hometown) FROM people"
    ]
  },
  {
    "database": "restaurants",
    "table": "GEOGRAPHIC",
    "questions": [],
    "col_names": [
      "CITY_NAME",
      "COUNTY",
      "REGION"
    ],
    "standard_answer": []
  },
  {
    "database": "restaurants",
    "table": "RESTAURANT",
    "questions": [],
    "col_names": [
      "ID",
      "NAME",
      "FOOD_TYPE",
      "CITY_NAME",
      "RATING"
    ],
    "standard_answer": []
  },
  {
    "database": "restaurants",
    "table": "LOCATION",
    "questions": [],
    "col_names": [
      "RESTAURANT_ID",
      "HOUSE_NUMBER",
      "STREET_NAME",
      "CITY_NAME"
    ],
    "standard_answer": []
  },
  {
    "database": "mountain_photos",
    "table": "mountain",
    "questions": [
      "What are the maximum and average height of the mountains?",
      "What are the average prominence of the mountains in country 'Morocco'?",
      "What are the name, height and prominence of mountains which do not belong to the range 'Aberdare Range'?",
      "What are the id and name of the photos for mountains?",
      "What are the id and name of the mountains that have at least 2 photos?",
      "How many distinct kinds of camera lenses are used to take photos of mountains in the country 'Ethiopia'?",
      "List the brands of lenses that took both a picture of mountains with range 'Toubkal Atlas' and a picture of mountains with range 'Lasta Massif'",
      "Show the name and prominence of the mountains whose picture is not taken by a lens of brand 'Sigma'."
    ],
    "col_names": [
      "id",
      "name",
      "Height",
      "Prominence",
      "Range",
      "Country"
    ],
    "standard_answer": [
      "SELECT max(height) ,  avg(height) FROM mountain",
      "SELECT avg(prominence) FROM mountain WHERE country  =  'Morocco'",
      "SELECT name ,  height ,  prominence FROM mountain WHERE range != 'Aberdare Range'",
      "SELECT T1.id ,  T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id WHERE T1.height  >  4000",
      "SELECT T1.id ,  T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id GROUP BY T1.id HAVING count(*)  >=  2",
      "SELECT count(DISTINCT T2.camera_lens_id) FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id WHERE T1.country  =  'Ethiopia'",
      "SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id  =  T3.id WHERE T1.range  =  'Toubkal Atlas' INTERSECT SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id  =  T3.id WHERE T1.range  =  'Lasta Massif'",
      "SELECT name ,  prominence FROM mountain EXCEPT SELECT T1.name ,  T1.prominence FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id  =  T3.id WHERE T3.brand  =  'Sigma'"
    ]
  },
  {
    "database": "mountain_photos",
    "table": "camera_lens",
    "questions": [
      "How many camera lenses have a focal length longer than 15 mm?",
      "Find the brand and name for each camera lens, and sort in descending order of maximum aperture.",
      "What are the names of photos taken with the lens brand 'Sigma' or 'Olympus'?",
      "How many different kinds of lens brands are there?",
      "How many camera lenses are not used in taking any photos?",
      "List the camera lens names containing substring \"Digital\".",
      "What is the name of each camera lens and the number of photos taken by it? Order the result by the count of photos."
    ],
    "col_names": [
      "id",
      "brand",
      "name",
      "focal_length_mm",
      "max_aperture"
    ],
    "standard_answer": [
      "SELECT count(*) FROM camera_lens WHERE focal_length_mm  >  15",
      "SELECT brand ,  name FROM camera_lens ORDER BY max_aperture DESC",
      "SELECT T1.name FROM camera_lens AS T1 JOIN photos AS T2 ON T2.camera_lens_id  =  T1.id WHERE T1.brand  =  'Sigma' OR T1.brand  =  'Olympus'",
      "SELECT count(DISTINCT brand) FROM camera_lens",
      "SELECT count(*) FROM camera_lens WHERE id NOT IN ( SELECT camera_lens_id FROM photos )",
      "SELECT name FROM camera_lens WHERE name LIKE \"%Digital%\"",
      "SELECT T1.name ,  count(*) FROM camera_lens AS T1 JOIN photos AS T2 ON T1.id  =  T2.camera_lens_id GROUP BY T1.id ORDER BY count(*)"
    ]
  },
  {
    "database": "mountain_photos",
    "table": "photos",
    "questions": [
      "List the id, color scheme, and name for all the photos.",
      "What are the names of the cameras that have taken picture of the most mountains?"
    ],
    "col_names": [
      "id",
      "camera_lens_id",
      "mountain_id",
      "color",
      "name"
    ],
    "standard_answer": [
      "SELECT id ,  color ,  name FROM photos",
      "SELECT T2.name FROM photos AS T1 JOIN camera_lens AS T2 ON T1.camera_lens_id  =  T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "battle_death",
    "table": "battle",
    "questions": [],
    "col_names": [
      "id",
      "name",
      "date",
      "bulgarian_commander",
      "latin_commander",
      "result"
    ],
    "standard_answer": []
  },
  {
    "database": "battle_death",
    "table": "ship",
    "questions": [],
    "col_names": [
      "lost_in_battle",
      "id",
      "name",
      "tonnage",
      "ship_type",
      "location",
      "disposition_of_ship"
    ],
    "standard_answer": []
  },
  {
    "database": "battle_death",
    "table": "death",
    "questions": [],
    "col_names": [
      "caused_by_ship_id",
      "id",
      "note",
      "killed",
      "injured"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Doc_Control_Systems",
    "table": "Ref_Document_Types",
    "questions": [
      "What is the description of document type 'Paper'?"
    ],
    "col_names": [
      "document_type_code",
      "document_type_description"
    ],
    "standard_answer": [
      "SELECT document_type_description FROM Ref_Document_Types WHERE document_type_code = \"Paper\";"
    ]
  },
  {
    "database": "cre_Doc_Control_Systems",
    "table": "Roles",
    "questions": [],
    "col_names": [
      "role_code",
      "role_description"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Doc_Control_Systems",
    "table": "Addresses",
    "questions": [
      "What address was the document with id 4 mailed to?"
    ],
    "col_names": [
      "address_id",
      "address_details"
    ],
    "standard_answer": [
      "SELECT Addresses.address_details FROM Addresses JOIN Documents_Mailed ON Documents_Mailed.mailed_to_address_id = Addresses.address_id WHERE document_id = 4;"
    ]
  },
  {
    "database": "cre_Doc_Control_Systems",
    "table": "Ref_Document_Status",
    "questions": [
      "What is the description of document status code 'working'?",
      "What is the document status description of the document with id 1?"
    ],
    "col_names": [
      "document_status_code",
      "document_status_description"
    ],
    "standard_answer": [
      "SELECT document_status_description FROM Ref_Document_Status WHERE document_status_code = \"working\";",
      "SELECT Ref_Document_Status.document_status_description FROM Ref_Document_Status JOIN Documents ON Documents.document_status_code = Ref_Document_Status.document_status_code WHERE Documents.document_id = 1;"
    ]
  },
  {
    "database": "cre_Doc_Control_Systems",
    "table": "Ref_Shipping_Agents",
    "questions": [
      "What is the shipping agent code of shipping agent UPS?",
      "What is the name of the shipping agent of the document with id 2?",
      "How many documents were shipped by USPS?",
      "Which shipping agent shipped the most documents? List the shipping agent name and the number of documents."
    ],
    "col_names": [
      "shipping_agent_code",
      "shipping_agent_name",
      "shipping_agent_description"
    ],
    "standard_answer": [
      "SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_name = \"UPS\";",
      "SELECT Ref_Shipping_Agents.shipping_agent_name FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Documents.document_id = 2;",
      "SELECT count(*) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"USPS\";",
      "SELECT Ref_Shipping_Agents.shipping_agent_name , count(Documents.document_id) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code GROUP BY Ref_Shipping_Agents.shipping_agent_code ORDER BY count(Documents.document_id) DESC LIMIT 1;"
    ]
  },
  {
    "database": "cre_Doc_Control_Systems",
    "table": "Documents",
    "questions": [
      "How many documents have the status code done?",
      "List the document type code for the document with the id 2.",
      "List the document ids for any documents with the status code done and the type code paper.",
      "What is the receipt date of the document with id 3?",
      "List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS.",
      "List document id of documents status is done and document type is Paper and the document is shipped by shipping agent named USPS."
    ],
    "col_names": [
      "document_id",
      "document_status_code",
      "document_type_code",
      "shipping_agent_code",
      "receipt_date",
      "receipt_number",
      "other_details"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Documents WHERE document_status_code = \"done\";",
      "SELECT document_type_code FROM Documents WHERE document_id = 2;",
      "SELECT document_id FROM Documents WHERE document_status_code = \"done\" AND document_type_code = \"Paper\";",
      "SELECT receipt_date FROM Documents WHERE document_id = 3;",
      "SELECT document_id FROM Documents WHERE document_status_code  =  \"done\" AND document_type_code = \"Paper\" EXCEPT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"USPS\";",
      "SELECT document_id FROM Documents WHERE document_status_code  =  \"done\" AND document_type_code = \"Paper\" INTERSECT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"USPS\";"
    ]
  },
  {
    "database": "cre_Doc_Control_Systems",
    "table": "Employees",
    "questions": [
      "List all employees in the circulation history of the document with id 1. List the employee's name.",
      "List the employees who have not showed up in any circulation history of documents. List the employee's name.",
      "Which employee has showed up in most circulation history documents. List the employee's name and the number of drafts and copies."
    ],
    "col_names": [
      "employee_id",
      "role_code",
      "employee_name",
      "other_details"
    ],
    "standard_answer": [
      "SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id WHERE Circulation_History.document_id = 1;",
      "SELECT employee_name FROM Employees EXCEPT SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id",
      "SELECT Employees.employee_name , count(*) FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id GROUP BY Circulation_History.document_id , Circulation_History.draft_number , Circulation_History.copy_number ORDER BY count(*) DESC LIMIT 1;"
    ]
  },
  {
    "database": "cre_Doc_Control_Systems",
    "table": "Document_Drafts",
    "questions": [
      "What is draft detail of the document with id 7?"
    ],
    "col_names": [
      "document_id",
      "draft_number",
      "draft_details"
    ],
    "standard_answer": [
      "SELECT draft_details FROM Document_Drafts WHERE document_id = 7;"
    ]
  },
  {
    "database": "cre_Doc_Control_Systems",
    "table": "Draft_Copies",
    "questions": [
      "How many draft copies does the document with id 2 have?",
      "Which document has the most draft copies? List its document id and number of draft copies.",
      "Which documents have more than 1 draft copies? List document id and number of draft copies."
    ],
    "col_names": [
      "document_id",
      "draft_number",
      "copy_number"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Draft_Copies WHERE document_id = 2;",
      "SELECT document_id , count(copy_number) FROM Draft_Copies GROUP BY document_id ORDER BY count(copy_number) DESC LIMIT 1;",
      "SELECT document_id , count(*) FROM Draft_Copies GROUP BY document_id HAVING count(*)  >  1;"
    ]
  },
  {
    "database": "cre_Doc_Control_Systems",
    "table": "Circulation_History",
    "questions": [
      "For each document, list the number of employees who have showed up in the circulation history of that document. List the document ids and number of employees."
    ],
    "col_names": [
      "document_id",
      "draft_number",
      "copy_number",
      "employee_id"
    ],
    "standard_answer": [
      "SELECT document_id ,  count(DISTINCT employee_id) FROM Circulation_History GROUP BY document_id;"
    ]
  },
  {
    "database": "cre_Doc_Control_Systems",
    "table": "Documents_Mailed",
    "questions": [
      "What is the mail date of the document with id 7?"
    ],
    "col_names": [
      "document_id",
      "mailed_to_address_id",
      "mailing_date"
    ],
    "standard_answer": [
      "SELECT mailing_date FROM Documents_Mailed WHERE document_id = 7;"
    ]
  },
  {
    "database": "tracking_share_transactions",
    "table": "Investors",
    "questions": [],
    "col_names": [
      "investor_id",
      "Investor_details"
    ],
    "standard_answer": []
  },
  {
    "database": "tracking_share_transactions",
    "table": "Lots",
    "questions": [
      "What are the details of the lots which are not used in any transactions?"
    ],
    "col_names": [
      "lot_id",
      "investor_id",
      "lot_details"
    ],
    "standard_answer": [
      "SELECT lot_details FROM Lots EXCEPT SELECT T1.lot_details FROM Lots AS T1 JOIN transactions_lots AS T2 ON T1.lot_id  =  T2.lot_id"
    ]
  },
  {
    "database": "tracking_share_transactions",
    "table": "Ref_Transaction_Types",
    "questions": [
      "Show the description of transaction type with code \"PUR\".",
      "Show the transaction type descriptions and dates if the share count is smaller than 10.",
      "Show the description of the transaction type that occurs most frequently."
    ],
    "col_names": [
      "transaction_type_code",
      "transaction_type_description"
    ],
    "standard_answer": [
      "SELECT transaction_type_description FROM Ref_Transaction_Types WHERE transaction_type_code\t  =  \"PUR\"",
      "SELECT T1.transaction_type_description ,  T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code  =  T2.transaction_type_code WHERE T2.share_count  <  10",
      "SELECT T1.transaction_type_description FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code  =  T2.transaction_type_code GROUP BY T1.transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "tracking_share_transactions",
    "table": "Transactions",
    "questions": [],
    "col_names": [
      "transaction_id",
      "investor_id",
      "transaction_type_code",
      "date_of_transaction",
      "amount_of_transaction",
      "share_count",
      "other_details"
    ],
    "standard_answer": []
  },
  {
    "database": "tracking_share_transactions",
    "table": "Sales",
    "questions": [],
    "col_names": [
      "sales_transaction_id",
      "sales_details"
    ],
    "standard_answer": []
  },
  {
    "database": "tracking_share_transactions",
    "table": "Purchases",
    "questions": [],
    "col_names": [
      "purchase_transaction_id",
      "purchase_details"
    ],
    "standard_answer": []
  },
  {
    "database": "tracking_share_transactions",
    "table": "Transactions_Lots",
    "questions": [],
    "col_names": [
      "transaction_id",
      "lot_id"
    ],
    "standard_answer": []
  },
  {
    "database": "apartment_rentals",
    "table": "Apartment_Buildings",
    "questions": [
      "Show all distinct building descriptions.",
      "Give me a list of all the distinct building descriptions.",
      "Show the short names of the buildings managed by \"Emma\".",
      "Which buildings does \"Emma\" manage? Give me the short names of the buildings.",
      "Show the addresses and phones of all the buildings managed by \"Brenden\".",
      "What are the address and phone number of the buildings managed by \"Brenden\"?",
      "What are the building full names that contain the word \"court\"?",
      "Find all the building full names containing the word \"court\".",
      "Show the total number of rooms of the apartments in the building with short name \"Columbus Square\".",
      "How many rooms in total are there in the apartments in the building with short name \"Columbus Square\"?",
      "Show the addresses of the buildings that have apartments with more than 2 bathrooms.",
      "Which buildings have apartments that have more than two bathrooms? Give me the addresses of the buildings.",
      "Show the apartment type codes and apartment numbers in the buildings managed by \"Kyle\".",
      "What apartment type codes and apartment numbers do the buildings managed by \"Kyle\" have?"
    ],
    "col_names": [
      "building_id",
      "building_short_name",
      "building_full_name",
      "building_description",
      "building_address",
      "building_manager",
      "building_phone"
    ],
    "standard_answer": [
      "SELECT DISTINCT building_description FROM Apartment_Buildings",
      "SELECT DISTINCT building_description FROM Apartment_Buildings",
      "SELECT building_short_name FROM Apartment_Buildings WHERE building_manager\t =  \"Emma\"",
      "SELECT building_short_name FROM Apartment_Buildings WHERE building_manager\t =  \"Emma\"",
      "SELECT building_address ,  building_phone FROM Apartment_Buildings WHERE building_manager\t =  \"Brenden\"",
      "SELECT building_address ,  building_phone FROM Apartment_Buildings WHERE building_manager\t =  \"Brenden\"",
      "SELECT building_full_name FROM Apartment_Buildings WHERE building_full_name LIKE \"%court%\"",
      "SELECT building_full_name FROM Apartment_Buildings WHERE building_full_name LIKE \"%court%\"",
      "SELECT sum(T2.room_count) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id  =  T2.building_id WHERE T1.building_short_name  =  \"Columbus Square\"",
      "SELECT sum(T2.room_count) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id  =  T2.building_id WHERE T1.building_short_name  =  \"Columbus Square\"",
      "SELECT T1.building_address FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id  =  T2.building_id WHERE T2.bathroom_count  >  2",
      "SELECT T1.building_address FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id  =  T2.building_id WHERE T2.bathroom_count  >  2",
      "SELECT T2.apt_type_code ,  T2.apt_number FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id  =  T2.building_id WHERE T1.building_manager  =  \"Kyle\"",
      "SELECT T2.apt_type_code ,  T2.apt_number FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id  =  T2.building_id WHERE T1.building_manager  =  \"Kyle\""
    ]
  },
  {
    "database": "apartment_rentals",
    "table": "Apartments",
    "questions": [
      "What is the minimum and maximum number of bathrooms of all the apartments?",
      "Give me the minimum and maximum bathroom count among all the apartments.",
      "What is the average number of bedrooms of all apartments?",
      "Find the average number of bedrooms of all the apartments.",
      "Return the apartment number and the number of rooms for each apartment.",
      "What are the apartment number and the room count of each apartment?",
      "What is the average number of rooms of apartments with type code \"Studio\"?",
      "Find the average room count of the apartments that have the \"Studio\" type code.",
      "Return the apartment numbers of the apartments with type code \"Flat\".",
      "Which apartments have type code \"Flat\"? Give me their apartment numbers.",
      "Return all the apartment numbers sorted by the room count in ascending order.",
      "Sort the apartment numbers in ascending order of room count.",
      "Return the apartment number with the largest number of bedrooms.",
      "What is the apartment number of the apartment with the most beds?",
      "Show the apartment type codes and the corresponding number of apartments sorted by the number of apartments in ascending order.",
      "Return each apartment type code with the number of apartments having that apartment type, in ascending order of the number of apartments.",
      "Show the top 3 apartment type codes sorted by the average number of rooms in descending order.",
      "What are the top three apartment types in terms of the average room count? Give me the",
      "Show the apartment type code that has the largest number of total rooms, together with the number of bathrooms and number of bedrooms.",
      "Which apartment type has the largest number of total rooms? Return the apartment type code, its number of bathrooms and number of bedrooms.",
      "Show the most common apartment type code.",
      "Which apartment type code appears the most often?",
      "Show the most common apartment type code among apartments with more than 1 bathroom.",
      "Which apartment type code is the most common among apartments with more than one bathroom?",
      "Show each apartment type code, and the maximum and minimum number of rooms for each type.",
      "Return each apartment type code along with the maximum and minimum number of rooms among each type.",
      "How many apartments do not have any facility?",
      "Find the number of apartments that have no facility.",
      "Show the apartment numbers of apartments with unit status availability of both 0 and 1.",
      "Which apartments have unit status availability of both 0 and 1? Return their apartment numbers."
    ],
    "col_names": [
      "apt_id",
      "building_id",
      "apt_type_code",
      "apt_number",
      "bathroom_count",
      "bedroom_count",
      "room_count"
    ],
    "standard_answer": [
      "SELECT min(bathroom_count) ,  max(bathroom_count) FROM Apartments",
      "SELECT min(bathroom_count) ,  max(bathroom_count) FROM Apartments",
      "SELECT avg(bedroom_count) FROM Apartments",
      "SELECT avg(bedroom_count) FROM Apartments",
      "SELECT apt_number ,  room_count FROM Apartments",
      "SELECT apt_number ,  room_count FROM Apartments",
      "SELECT avg(room_count) FROM Apartments WHERE apt_type_code  =  \"Studio\"",
      "SELECT avg(room_count) FROM Apartments WHERE apt_type_code  =  \"Studio\"",
      "SELECT apt_number FROM Apartments WHERE apt_type_code  =  \"Flat\"",
      "SELECT apt_number FROM Apartments WHERE apt_type_code  =  \"Flat\"",
      "SELECT apt_number FROM Apartments ORDER BY room_count ASC",
      "SELECT apt_number FROM Apartments ORDER BY room_count ASC",
      "SELECT apt_number FROM Apartments ORDER BY bedroom_count DESC LIMIT 1",
      "SELECT apt_number FROM Apartments ORDER BY bedroom_count DESC LIMIT 1",
      "SELECT apt_type_code ,  COUNT(*) FROM Apartments GROUP BY apt_type_code ORDER BY COUNT(*) ASC",
      "SELECT apt_type_code ,  COUNT(*) FROM Apartments GROUP BY apt_type_code ORDER BY COUNT(*) ASC",
      "SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY avg(room_count) DESC LIMIT 3",
      "SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY avg(room_count) DESC LIMIT 3",
      "SELECT apt_type_code ,  bathroom_count ,  bedroom_count FROM Apartments GROUP BY apt_type_code ORDER BY sum(room_count) DESC LIMIT 1",
      "SELECT apt_type_code ,  bathroom_count ,  bedroom_count FROM Apartments GROUP BY apt_type_code ORDER BY sum(room_count) DESC LIMIT 1",
      "SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1",
      "SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1",
      "SELECT apt_type_code FROM Apartments WHERE bathroom_count  >  1 GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1",
      "SELECT apt_type_code FROM Apartments WHERE bathroom_count  >  1 GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1",
      "SELECT apt_type_code ,  max(room_count) ,  min(room_count) FROM Apartments GROUP BY apt_type_code",
      "SELECT apt_type_code ,  max(room_count) ,  min(room_count) FROM Apartments GROUP BY apt_type_code",
      "SELECT count(*) FROM Apartments WHERE apt_id NOT IN (SELECT apt_id FROM Apartment_Facilities)",
      "SELECT count(*) FROM Apartments WHERE apt_id NOT IN (SELECT apt_id FROM Apartment_Facilities)",
      "SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.available_yn  =  0 INTERSECT SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.available_yn  =  1",
      "SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.available_yn  =  0 INTERSECT SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.available_yn  =  1"
    ]
  },
  {
    "database": "apartment_rentals",
    "table": "Apartment_Facilities",
    "questions": [
      "Show the facility codes of apartments with more than 4 bedrooms.",
      "What are the facility codes of the apartments with more than four bedrooms?",
      "Show the total number of rooms of all apartments with facility code \"Gym\".",
      "Find the total number of rooms in the apartments that have facility code \"Gym\"."
    ],
    "col_names": [
      "apt_id",
      "facility_code"
    ],
    "standard_answer": [
      "SELECT T1.facility_code FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.bedroom_count  >  4",
      "SELECT T1.facility_code FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.bedroom_count  >  4",
      "SELECT sum(T2.room_count) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.facility_code  =  \"Gym\"",
      "SELECT sum(T2.room_count) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.facility_code  =  \"Gym\""
    ]
  },
  {
    "database": "apartment_rentals",
    "table": "Guests",
    "questions": [
      "Return the first names and last names of all guests",
      "What are the first names and last names of all the guests?",
      "Return the date of birth for all the guests with gender code \"Male\".",
      "What are dates of birth of all the guests whose gender is \"Male\"?",
      "Show each gender code and the corresponding count of guests sorted by the count in descending order.",
      "Sort the gender codes in descending order of their corresponding number of guests. Return both the gender codes and counts."
    ],
    "col_names": [
      "guest_id",
      "gender_code",
      "guest_first_name",
      "guest_last_name",
      "date_of_birth"
    ],
    "standard_answer": [
      "SELECT guest_first_name ,  guest_last_name FROM Guests",
      "SELECT guest_first_name ,  guest_last_name FROM Guests",
      "SELECT date_of_birth FROM Guests WHERE gender_code  =  \"Male\"",
      "SELECT date_of_birth FROM Guests WHERE gender_code  =  \"Male\"",
      "SELECT gender_code ,  COUNT(*) FROM Guests GROUP BY gender_code ORDER BY COUNT(*) DESC",
      "SELECT gender_code ,  COUNT(*) FROM Guests GROUP BY gender_code ORDER BY COUNT(*) DESC"
    ]
  },
  {
    "database": "apartment_rentals",
    "table": "Apartment_Bookings",
    "questions": [
      "How many apartment bookings are there in total?",
      "Count the total number of apartment bookings.",
      "Show the start dates and end dates of all the apartment bookings.",
      "What are the start date and end date of each apartment booking?",
      "Show the apartment numbers, start dates, and end dates of all the apartment bookings.",
      "What are the apartment number, start date, and end date of each apartment booking?",
      "What are the booking start and end dates of the apartments with type code \"Duplex\"?",
      "Return the booking start date and end date for the apartments that have type code \"Duplex\".",
      "What are the booking start and end dates of the apartments with more than 2 bedrooms?",
      "Find the booking start date and end date for the apartments that have more than two bedrooms.",
      "What is the booking status code of the apartment with apartment number \"Suite 634\"?",
      "Tell me the booking status code for the apartment with number \"Suite 634\".",
      "Show the distinct apartment numbers of the apartments that have bookings with status code \"Confirmed\".",
      "Which apartments have bookings with status code \"Confirmed\"? Return their apartment numbers.",
      "Show the average room count of the apartments that have booking status code \"Provisional\".",
      "What is the average room count of the apartments whose booking status code is \"Provisional\"?",
      "Show the guest first names, start dates, and end dates of all the apartment bookings.",
      "What are the guest first name, start date, and end date of each apartment booking?",
      "Show the start dates and end dates of all the apartment bookings made by guests with gender code \"Female\".",
      "What are the start date and end date of the apartment bookings made by female guests (gender code \"Female\")?",
      "Show the first names and last names of all the guests that have apartment bookings with status code \"Confirmed\".",
      "Which guests have apartment bookings with status code \"Confirmed\"? Return their first names and last names.",
      "Show the booking status code and the corresponding number of bookings.",
      "How many bookings does each booking status have? List the booking status code and the number of corresponding bookings.",
      "Show the apartment numbers of apartments with bookings that have status code both \"Provisional\" and \"Confirmed\"",
      "Which apartments have bookings with both status codes \"Provisional\" and \"Confirmed\"? Give me the apartment numbers."
    ],
    "col_names": [
      "apt_booking_id",
      "apt_id",
      "guest_id",
      "booking_status_code",
      "booking_start_date",
      "booking_end_date"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Apartment_Bookings",
      "SELECT count(*) FROM Apartment_Bookings",
      "SELECT booking_start_date ,  booking_end_date FROM Apartment_Bookings",
      "SELECT booking_start_date ,  booking_end_date FROM Apartment_Bookings",
      "SELECT T2.apt_number ,  T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id",
      "SELECT T2.apt_number ,  T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id",
      "SELECT T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.apt_type_code  =  \"Duplex\"",
      "SELECT T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.apt_type_code  =  \"Duplex\"",
      "SELECT T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.bedroom_count  >  2",
      "SELECT T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.bedroom_count  >  2",
      "SELECT T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.apt_number  =  \"Suite 634\"",
      "SELECT T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.apt_number  =  \"Suite 634\"",
      "SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  \"Confirmed\"",
      "SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  \"Confirmed\"",
      "SELECT avg(room_count) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  \"Provisional\"",
      "SELECT avg(room_count) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  \"Provisional\"",
      "SELECT T2.guest_first_name ,  T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id  =  T2.guest_id",
      "SELECT T2.guest_first_name ,  T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id  =  T2.guest_id",
      "SELECT T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id  =  T2.guest_id WHERE T2.gender_code  =  \"Female\"",
      "SELECT T1.booking_start_date ,  T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id  =  T2.guest_id WHERE T2.gender_code  =  \"Female\"",
      "SELECT T2.guest_first_name ,  T2.guest_last_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id  =  T2.guest_id WHERE T1.booking_status_code  =  \"Confirmed\"",
      "SELECT T2.guest_first_name ,  T2.guest_last_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id  =  T2.guest_id WHERE T1.booking_status_code  =  \"Confirmed\"",
      "SELECT \tbooking_status_code ,  COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code",
      "SELECT \tbooking_status_code ,  COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code",
      "SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  \"Confirmed\" INTERSECT SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  \"Provisional\"",
      "SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  \"Confirmed\" INTERSECT SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  \"Provisional\""
    ]
  },
  {
    "database": "apartment_rentals",
    "table": "View_Unit_Status",
    "questions": [],
    "col_names": [
      "apt_id",
      "apt_booking_id",
      "status_date",
      "available_yn"
    ],
    "standard_answer": []
  },
  {
    "database": "student_transcripts_tracking",
    "table": "Addresses",
    "questions": [],
    "col_names": [
      "address_id",
      "line_1",
      "line_2",
      "line_3",
      "city",
      "zip_postcode",
      "state_province_county",
      "country",
      "other_address_details"
    ],
    "standard_answer": []
  },
  {
    "database": "student_transcripts_tracking",
    "table": "Courses",
    "questions": [],
    "col_names": [
      "course_id",
      "course_name",
      "course_description",
      "other_details"
    ],
    "standard_answer": []
  },
  {
    "database": "student_transcripts_tracking",
    "table": "Departments",
    "questions": [],
    "col_names": [
      "department_id",
      "department_name",
      "department_description",
      "other_details"
    ],
    "standard_answer": []
  },
  {
    "database": "student_transcripts_tracking",
    "table": "Degree_Programs",
    "questions": [],
    "col_names": [
      "degree_program_id",
      "department_id",
      "degree_summary_name",
      "degree_summary_description",
      "other_details"
    ],
    "standard_answer": []
  },
  {
    "database": "student_transcripts_tracking",
    "table": "Sections",
    "questions": [],
    "col_names": [
      "section_id",
      "course_id",
      "section_name",
      "section_description",
      "other_details"
    ],
    "standard_answer": []
  },
  {
    "database": "student_transcripts_tracking",
    "table": "Semesters",
    "questions": [],
    "col_names": [
      "semester_id",
      "semester_name",
      "semester_description",
      "other_details"
    ],
    "standard_answer": []
  },
  {
    "database": "student_transcripts_tracking",
    "table": "Students",
    "questions": [],
    "col_names": [
      "student_id",
      "current_address_id",
      "permanent_address_id",
      "first_name",
      "middle_name",
      "last_name",
      "cell_mobile_number",
      "email_address",
      "ssn",
      "date_first_registered",
      "date_left",
      "other_student_details"
    ],
    "standard_answer": []
  },
  {
    "database": "student_transcripts_tracking",
    "table": "Student_Enrolment",
    "questions": [],
    "col_names": [
      "student_enrolment_id",
      "degree_program_id",
      "semester_id",
      "student_id",
      "other_details"
    ],
    "standard_answer": []
  },
  {
    "database": "student_transcripts_tracking",
    "table": "Student_Enrolment_Courses",
    "questions": [],
    "col_names": [
      "student_course_id",
      "course_id",
      "student_enrolment_id"
    ],
    "standard_answer": []
  },
  {
    "database": "student_transcripts_tracking",
    "table": "Transcripts",
    "questions": [],
    "col_names": [
      "transcript_id",
      "transcript_date",
      "other_details"
    ],
    "standard_answer": []
  },
  {
    "database": "student_transcripts_tracking",
    "table": "Transcript_Contents",
    "questions": [],
    "col_names": [
      "student_course_id",
      "transcript_id"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Docs_and_Epenses",
    "table": "Ref_Document_Types",
    "questions": [],
    "col_names": [
      "Document_Type_Code",
      "Document_Type_Name",
      "Document_Type_Description"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Docs_and_Epenses",
    "table": "Ref_Budget_Codes",
    "questions": [],
    "col_names": [
      "Budget_Type_Code",
      "Budget_Type_Description"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Docs_and_Epenses",
    "table": "Projects",
    "questions": [
      "Show the number of projects.",
      "How many projects are there?",
      "List ids and details for all projects.",
      "What are the ids and details for each project?",
      "What is the project id and detail for the project with at least two documents?",
      "Return the ids and details corresponding to projects for which there are more than two documents.",
      "What is the project detail for the project with document \"King Book\"?",
      "Give the details of the project with the document name 'King Book'."
    ],
    "col_names": [
      "Project_ID",
      "Project_Details"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Projects",
      "SELECT count(*) FROM Projects",
      "SELECT project_id ,  project_details FROM Projects",
      "SELECT project_id ,  project_details FROM Projects",
      "SELECT T1.project_id ,  T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id HAVING count(*)  >  2",
      "SELECT T1.project_id ,  T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id HAVING count(*)  >  2",
      "SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id  =  T2.project_id WHERE T2.document_name  =  \"King Book\"",
      "SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id  =  T2.project_id WHERE T2.document_name  =  \"King Book\""
    ]
  },
  {
    "database": "cre_Docs_and_Epenses",
    "table": "Documents",
    "questions": [
      "Show the number of documents.",
      "Count the number of documents.",
      "List the document type code, document name, and document description for the document with name 'Noel CV' or name 'King Book'.",
      "What are the type come, name, and description of the document that has either the name 'Noel CV' or 'King Book'?",
      "Show the ids and names of all documents.",
      "What are the ids and names for each of the documents?",
      "Find names and ids of all documents with document type code BK.",
      "What are the names and ids of documents that have the type code BK?",
      "How many documents are with document type code BK for each product id?",
      "Count the number of documents with the type code BK that correspond to each product id.",
      "Show the document name and the document date for all documents on project with details 'Graph Database project'.",
      "What are the names and dates for documents corresponding to project that has the details 'Graph Database project'?",
      "Show project ids and the number of documents in each project.",
      "How many documents correspond with each project id?",
      "What is the id of the project with least number of documents?",
      "Return the id of the project that has the fewest corresponding documents.",
      "Show the ids for projects with at least 2 documents.",
      "What are project ids of projects that have 2 or more corresponding documents?",
      "List document type codes and the number of documents in each code.",
      "How many documents are there of each type?",
      "What is the document type code with most number of documents?",
      "Return the code of the document type that is most common.",
      "Show the document type code with fewer than 3 documents.",
      "What are the codes corresponding to document types for which there are less than 3 documents?",
      "What are the ids of documents which don't have expense budgets?",
      "Return the ids of documents that do not have expenses.",
      "Show ids for all documents in type CV without expense budgets.",
      "What are the ids of documents with the type code CV that do not have expenses.",
      "What are the ids of documents with letter 's' in the name with any expense budgets.",
      "Give the ids of documents that have expenses and contain the letter s in their names.",
      "How many documents do not have any expense?",
      "Count the number of documents that do not have expenses.",
      "What are the dates for the documents with both 'GV' type and 'SF' type expenses?",
      "Give the dates of creation for documents that have both budget type codes 'GV' and 'SF'."
    ],
    "col_names": [
      "Document_ID",
      "Document_Type_Code",
      "Project_ID",
      "Document_Date",
      "Document_Name",
      "Document_Description",
      "Other_Details"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Documents",
      "SELECT count(*) FROM Documents",
      "SELECT document_type_code ,  document_name ,  document_description FROM Documents WHERE document_name  =  'Noel CV' OR document_name  =  'King Book'",
      "SELECT document_type_code ,  document_name ,  document_description FROM Documents WHERE document_name  =  'Noel CV' OR document_name  =  'King Book'",
      "SELECT document_id ,  document_name FROM Documents",
      "SELECT document_id ,  document_name FROM Documents",
      "SELECT document_name ,  document_id FROM Documents WHERE document_type_code  =  \"BK\"",
      "SELECT document_name ,  document_id FROM Documents WHERE document_type_code  =  \"BK\"",
      "SELECT count(*) ,  project_id FROM Documents WHERE document_type_code  =  \"BK\" GROUP BY project_id",
      "SELECT count(*) ,  project_id FROM Documents WHERE document_type_code  =  \"BK\" GROUP BY project_id",
      "SELECT document_name ,  document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id  =  T2.project_id WHERE T2.project_details  =  'Graph Database project'",
      "SELECT document_name ,  document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id  =  T2.project_id WHERE T2.project_details  =  'Graph Database project'",
      "SELECT project_id ,  count(*) FROM Documents GROUP BY project_id",
      "SELECT project_id ,  count(*) FROM Documents GROUP BY project_id",
      "SELECT project_id FROM Documents GROUP BY project_id ORDER BY count(*) ASC LIMIT 1",
      "SELECT project_id FROM Documents GROUP BY project_id ORDER BY count(*) ASC LIMIT 1",
      "SELECT project_id FROM Documents GROUP BY project_id HAVING count(*)  >=  2",
      "SELECT project_id FROM Documents GROUP BY project_id HAVING count(*)  >=  2",
      "SELECT document_type_code ,  count(*) FROM Documents GROUP BY document_type_code",
      "SELECT document_type_code ,  count(*) FROM Documents GROUP BY document_type_code",
      "SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1",
      "SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1",
      "SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING count(*)  <  3",
      "SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING count(*)  <  3",
      "SELECT document_id FROM Documents EXCEPT SELECT document_id FROM Documents_with_expenses",
      "SELECT document_id FROM Documents EXCEPT SELECT document_id FROM Documents_with_expenses",
      "SELECT document_id FROM Documents WHERE document_type_code  =  \"CV\" EXCEPT SELECT document_id FROM Documents_with_expenses",
      "SELECT document_id FROM Documents WHERE document_type_code  =  \"CV\" EXCEPT SELECT document_id FROM Documents_with_expenses",
      "SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T1.document_name LIKE '%s%'",
      "SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T1.document_name LIKE '%s%'",
      "SELECT count(*) FROM Documents WHERE document_id NOT IN ( SELECT document_id FROM Documents_with_expenses )",
      "SELECT count(*) FROM Documents WHERE document_id NOT IN ( SELECT document_id FROM Documents_with_expenses )",
      "SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T2.budget_type_code  =  'GV' INTERSECT SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T2.budget_type_code  =  'SF'",
      "SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T2.budget_type_code  =  'GV' INTERSECT SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T2.budget_type_code  =  'SF'"
    ]
  },
  {
    "database": "cre_Docs_and_Epenses",
    "table": "Statements",
    "questions": [
      "How many statements do we have?",
      "Count the number of statements.",
      "List all statement ids and statement details.",
      "What are the ids and details of all statements?",
      "Show the statement detail and the corresponding document name for the statement with detail 'Private Project'.",
      "What are the details for statements with the details 'Private Project', and what are the names of the corresponding documents?"
    ],
    "col_names": [
      "Statement_ID",
      "Statement_Details"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Statements",
      "SELECT count(*) FROM Statements",
      "SELECT STATEMENT_ID ,  statement_details FROM Statements",
      "SELECT STATEMENT_ID ,  statement_details FROM Statements",
      "SELECT T1.statement_details ,  T2.document_name FROM Statements AS T1 JOIN Documents AS T2 ON T1.statement_id  =  T2.document_id WHERE T1.statement_details  =  'Private Project'",
      "SELECT T1.statement_details ,  T2.document_name FROM Statements AS T1 JOIN Documents AS T2 ON T1.statement_id  =  T2.document_id WHERE T1.statement_details  =  'Private Project'"
    ]
  },
  {
    "database": "cre_Docs_and_Epenses",
    "table": "Documents_with_Expenses",
    "questions": [],
    "col_names": [
      "Document_ID",
      "Budget_Type_Code",
      "Document_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Docs_and_Epenses",
    "table": "Accounts",
    "questions": [
      "How many accounts do we have?",
      "Count the number of accounts.",
      "Show all account ids and account details.",
      "What are the ids and details of all accounts?",
      "Show statement id, statement detail, account detail for accounts.",
      "What are the statement ids, statement details, and account details, for all accounts?",
      "Show all statement id and the number of accounts for each statement.",
      "What are the different statement ids on accounts, and the number of accounts for each?",
      "Show the statement id and the statement detail for the statement with most number of accounts.",
      "What are the statement id and statement detail for the statement that has the most corresponding accounts?",
      "What are the account details with the largest value or with value having char '5' in it?",
      "Return the account details with the greatest value, as well as those that include the character 5."
    ],
    "col_names": [
      "Account_ID",
      "Statement_ID",
      "Account_Details"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Accounts",
      "SELECT count(*) FROM Accounts",
      "SELECT account_id ,  account_details FROM Accounts",
      "SELECT account_id ,  account_details FROM Accounts",
      "SELECT T1.statement_id ,  T2.statement_details ,  T1.account_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id  =  T2.statement_id",
      "SELECT T1.statement_id ,  T2.statement_details ,  T1.account_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id  =  T2.statement_id",
      "SELECT STATEMENT_ID ,  count(*) FROM Accounts GROUP BY STATEMENT_ID",
      "SELECT STATEMENT_ID ,  count(*) FROM Accounts GROUP BY STATEMENT_ID",
      "SELECT T1.statement_id ,  T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id  =  T2.statement_id GROUP BY T1.statement_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.statement_id ,  T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id  =  T2.statement_id GROUP BY T1.statement_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT max(Account_details) FROM Accounts UNION SELECT Account_details FROM Accounts WHERE Account_details LIKE \"%5%\"",
      "SELECT max(Account_details) FROM Accounts UNION SELECT Account_details FROM Accounts WHERE Account_details LIKE \"%5%\""
    ]
  },
  {
    "database": "ship_mission",
    "table": "mission",
    "questions": [
      "Show codes and fates of missions, and names of ships involved.",
      "What are the mission codes, fates, and names of the ships involved?",
      "Show names of ships involved in a mission launched after 1928.",
      "What are the names of ships that were involved in a mission launched after 1928?",
      "Show the distinct fate of missions that involve ships with nationality \"United States\"",
      "What are the different fates of the mission that involved ships from the United States?"
    ],
    "col_names": [
      "Mission_ID",
      "Ship_ID",
      "Code",
      "Launched_Year",
      "Location",
      "Speed_knots",
      "Fate"
    ],
    "standard_answer": [
      "SELECT T1.Code ,  T1.Fate ,  T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID  =  T2.Ship_ID",
      "SELECT T1.Code ,  T1.Fate ,  T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID  =  T2.Ship_ID",
      "SELECT T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID  =  T2.Ship_ID WHERE T1.Launched_Year  >  1928",
      "SELECT T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID  =  T2.Ship_ID WHERE T1.Launched_Year  >  1928",
      "SELECT DISTINCT T1.Fate FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID  =  T2.Ship_ID WHERE T2.Nationality  =  \"United States\"",
      "SELECT DISTINCT T1.Fate FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID  =  T2.Ship_ID WHERE T2.Nationality  =  \"United States\""
    ]
  },
  {
    "database": "ship_mission",
    "table": "ship",
    "questions": [
      "How many ships are there?",
      "What is the number of ships?",
      "List the name of ships in ascending order of tonnage.",
      "what are the names of the ships ordered by ascending tonnage?",
      "What are the type and nationality of ships?",
      "What are the types and nationalities of every ship?",
      "List the name of ships whose nationality is not \"United States\".",
      "What are the names of the ships that are not from the United States?",
      "Show the name of ships whose nationality is either United States or United Kingdom.",
      "What are the names of the ships  that are from either the US or the UK?",
      "What is the name of the ship with the largest tonnage?",
      "What is the ship with the largest amount of tonnage called?",
      "Show different types of ships and the number of ships of each type.",
      "For each type, how many ships are there?",
      "Please show the most common type of ships.",
      "What is the most common type of ships?",
      "List the nations that have more than two ships.",
      "What are the nations that have more than two ships?",
      "Show different types of ships and the average tonnage of ships of each type.",
      "For each type, what is the average tonnage?",
      "List the name of ships that are not involved in any mission",
      "What are the names of the ships that are not involved in any missions?",
      "Show the types of ships that have both ships with tonnage larger than 6000 and ships with tonnage smaller than 4000.",
      "What are the types of the ships that have both shiips with tonnage more than 6000 and those with tonnage less than 4000?"
    ],
    "col_names": [
      "Ship_ID",
      "Name",
      "Type",
      "Nationality",
      "Tonnage"
    ],
    "standard_answer": [
      "SELECT count(*) FROM ship",
      "SELECT count(*) FROM ship",
      "SELECT Name FROM ship ORDER BY Tonnage ASC",
      "SELECT Name FROM ship ORDER BY Tonnage ASC",
      "SELECT TYPE ,  Nationality FROM ship",
      "SELECT TYPE ,  Nationality FROM ship",
      "SELECT Name FROM ship WHERE Nationality != \"United States\"",
      "SELECT Name FROM ship WHERE Nationality != \"United States\"",
      "SELECT Name FROM ship WHERE Nationality  =  \"United States\" OR Nationality  =  \"United Kingdom\"",
      "SELECT Name FROM ship WHERE Nationality  =  \"United States\" OR Nationality  =  \"United Kingdom\"",
      "SELECT Name FROM ship ORDER BY Tonnage DESC LIMIT 1",
      "SELECT Name FROM ship ORDER BY Tonnage DESC LIMIT 1",
      "SELECT TYPE ,  COUNT(*) FROM ship GROUP BY TYPE",
      "SELECT TYPE ,  COUNT(*) FROM ship GROUP BY TYPE",
      "SELECT TYPE FROM ship GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT TYPE FROM ship GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Nationality FROM ship GROUP BY Nationality HAVING COUNT(*)  >  2",
      "SELECT Nationality FROM ship GROUP BY Nationality HAVING COUNT(*)  >  2",
      "SELECT TYPE ,  avg(Tonnage) FROM ship GROUP BY TYPE",
      "SELECT TYPE ,  avg(Tonnage) FROM ship GROUP BY TYPE",
      "SELECT Name FROM ship WHERE Ship_ID NOT IN (SELECT Ship_ID FROM mission)",
      "SELECT Name FROM ship WHERE Ship_ID NOT IN (SELECT Ship_ID FROM mission)",
      "SELECT TYPE FROM ship WHERE Tonnage  >  6000 INTERSECT SELECT TYPE FROM ship WHERE Tonnage  <  4000",
      "SELECT TYPE FROM ship WHERE Tonnage  >  6000 INTERSECT SELECT TYPE FROM ship WHERE Tonnage  <  4000"
    ]
  },
  {
    "database": "company_office",
    "table": "buildings",
    "questions": [
      "List the names of buildings in descending order of building height.",
      "What are the names of buildings sorted in descending order of building height?",
      "Find the stories of the building with the largest height.",
      "What is the stories of highest building?",
      "Please show the names of the buildings whose status is \"on-hold\", in ascending order of stories.",
      "Find the names of the buildings in \"on-hold\" status, and sort them in ascending order of building stories.",
      "List the names of buildings that have no company office.",
      "Which buildings do not have any company office? Give me the building names."
    ],
    "col_names": [
      "id",
      "name",
      "City",
      "Height",
      "Stories",
      "Status"
    ],
    "standard_answer": [
      "SELECT name FROM buildings ORDER BY Height DESC",
      "SELECT name FROM buildings ORDER BY Height DESC",
      "SELECT Stories FROM buildings ORDER BY Height DESC LIMIT 1",
      "SELECT Stories FROM buildings ORDER BY Height DESC LIMIT 1",
      "SELECT name FROM buildings WHERE Status  =  \"on-hold\" ORDER BY Stories ASC",
      "SELECT name FROM buildings WHERE Status  =  \"on-hold\" ORDER BY Stories ASC",
      "SELECT name FROM buildings WHERE id NOT IN (SELECT building_id FROM Office_locations)",
      "SELECT name FROM buildings WHERE id NOT IN (SELECT building_id FROM Office_locations)"
    ]
  },
  {
    "database": "company_office",
    "table": "Companies",
    "questions": [
      "How many companies are there?",
      "Count the number of companies.",
      "List the names of companies in descending order of market value.",
      "Sort the company names in descending order of the company's market value.",
      "What are the names of companies whose headquarters are not \"USA\"?",
      "Find the names of the companies whose headquarters are not located in \"USA\".",
      "What are the name and assets of each company, sorted in ascending order of company name?",
      "List the name and assets of each company in ascending order of company name.",
      "What are the average profits of companies?",
      "Compute the average profits companies make.",
      "What are the maximum and minimum sales of the companies whose industries are not \"Banking\".",
      "Find the maximum and minimum sales of the companies that are not in the \"Banking\" industry.",
      "How many different industries are the companies in?",
      "Count the number of distinct company industries.",
      "Please show each industry and the corresponding number of companies in that industry.",
      "Whah are the name of each industry and the number of companies in that industry?",
      "Please show the industries of companies in descending order of the number of companies.",
      "Sort all the industries in descending order of the count of companies in each industry",
      "List the industry shared by the most companies.",
      "Which industry has the most companies?",
      "Show the industries shared by companies whose headquarters are \"USA\" and companies whose headquarters are \"China\".",
      "Which industries have both companies with headquarter in \"USA\" and companies with headquarter in \"China\"?",
      "Find the number of companies whose industry is \"Banking\" or \"Conglomerate\",",
      "How many companies are in either \"Banking\" industry or \"Conglomerate\" industry?",
      "Show the headquarters shared by more than two companies.",
      "Which headquarter locations are used by more than 2 companies?"
    ],
    "col_names": [
      "id",
      "name",
      "Headquarters",
      "Industry",
      "Sales_billion",
      "Profits_billion",
      "Assets_billion",
      "Market_Value_billion"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Companies",
      "SELECT count(*) FROM Companies",
      "SELECT name FROM Companies ORDER BY Market_Value_billion DESC",
      "SELECT name FROM Companies ORDER BY Market_Value_billion DESC",
      "SELECT name FROM Companies WHERE Headquarters != 'USA'",
      "SELECT name FROM Companies WHERE Headquarters != 'USA'",
      "SELECT name ,  Assets_billion FROM Companies ORDER BY name ASC",
      "SELECT name ,  Assets_billion FROM Companies ORDER BY name ASC",
      "SELECT avg(Profits_billion) FROM Companies",
      "SELECT avg(Profits_billion) FROM Companies",
      "SELECT max(Sales_billion) ,  min(Sales_billion) FROM Companies WHERE Industry != \"Banking\"",
      "SELECT max(Sales_billion) ,  min(Sales_billion) FROM Companies WHERE Industry != \"Banking\"",
      "SELECT count(DISTINCT Industry) FROM Companies",
      "SELECT count(DISTINCT Industry) FROM Companies",
      "SELECT Industry ,  COUNT(*) FROM Companies GROUP BY Industry",
      "SELECT Industry ,  COUNT(*) FROM Companies GROUP BY Industry",
      "SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC",
      "SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC",
      "SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Industry FROM Companies WHERE Headquarters  =  \"USA\" INTERSECT SELECT Industry FROM Companies WHERE Headquarters  =  \"China\"",
      "SELECT Industry FROM Companies WHERE Headquarters  =  \"USA\" INTERSECT SELECT Industry FROM Companies WHERE Headquarters  =  \"China\"",
      "SELECT count(*) FROM Companies WHERE Industry  =  \"Banking\" OR Industry  =  \"Conglomerate\"",
      "SELECT count(*) FROM Companies WHERE Industry  =  \"Banking\" OR Industry  =  \"Conglomerate\"",
      "SELECT Headquarters FROM Companies GROUP BY Headquarters HAVING COUNT(*)  >  2",
      "SELECT Headquarters FROM Companies GROUP BY Headquarters HAVING COUNT(*)  >  2"
    ]
  },
  {
    "database": "company_office",
    "table": "Office_locations",
    "questions": [
      "List the name of a building along with the name of a company whose office is in the building.",
      "For each company, return the company name and the name of the building its office is located in.",
      "Show the names of the buildings that have more than one company offices.",
      "Which buildings have more than one company offices? Give me the building names.",
      "Show the name of the building that has the most company offices.",
      "Which building has the largest number of company offices? Give me the building name."
    ],
    "col_names": [
      "building_id",
      "company_id",
      "move_in_year"
    ],
    "standard_answer": [
      "SELECT T3.name ,  T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id",
      "SELECT T3.name ,  T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id",
      "SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id GROUP BY T1.building_id HAVING COUNT(*)  >  1",
      "SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id GROUP BY T1.building_id HAVING COUNT(*)  >  1",
      "SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "tracking_software_problems",
    "table": "Problem_Category_Codes",
    "questions": [],
    "col_names": [
      "problem_category_code",
      "problem_category_description"
    ],
    "standard_answer": []
  },
  {
    "database": "tracking_software_problems",
    "table": "Problem_Log",
    "questions": [],
    "col_names": [
      "problem_log_id",
      "assigned_to_staff_id",
      "problem_id",
      "problem_category_code",
      "problem_status_code",
      "log_entry_date",
      "log_entry_description",
      "log_entry_fix",
      "other_log_details"
    ],
    "standard_answer": []
  },
  {
    "database": "tracking_software_problems",
    "table": "Problem_Status_Codes",
    "questions": [],
    "col_names": [
      "problem_status_code",
      "problem_status_description"
    ],
    "standard_answer": []
  },
  {
    "database": "tracking_software_problems",
    "table": "Product",
    "questions": [],
    "col_names": [
      "product_id",
      "product_name",
      "product_details"
    ],
    "standard_answer": []
  },
  {
    "database": "tracking_software_problems",
    "table": "Staff",
    "questions": [],
    "col_names": [
      "staff_id",
      "staff_first_name",
      "staff_last_name",
      "other_staff_details"
    ],
    "standard_answer": []
  },
  {
    "database": "tracking_software_problems",
    "table": "Problems",
    "questions": [],
    "col_names": [
      "problem_id",
      "product_id",
      "closure_authorised_by_staff_id",
      "reported_by_staff_id",
      "date_problem_reported",
      "date_problem_closed",
      "problem_description",
      "other_problem_details"
    ],
    "standard_answer": []
  },
  {
    "database": "products_gen_characteristics",
    "table": "Ref_Characteristic_Types",
    "questions": [],
    "col_names": [
      "characteristic_type_code",
      "characteristic_type_description"
    ],
    "standard_answer": []
  },
  {
    "database": "products_gen_characteristics",
    "table": "Ref_Colors",
    "questions": [],
    "col_names": [
      "color_code",
      "color_description"
    ],
    "standard_answer": []
  },
  {
    "database": "products_gen_characteristics",
    "table": "Ref_Product_Categories",
    "questions": [],
    "col_names": [
      "product_category_code",
      "product_category_description",
      "unit_of_measure"
    ],
    "standard_answer": []
  },
  {
    "database": "products_gen_characteristics",
    "table": "Characteristics",
    "questions": [],
    "col_names": [
      "characteristic_id",
      "characteristic_type_code",
      "characteristic_data_type",
      "characteristic_name",
      "other_characteristic_details"
    ],
    "standard_answer": []
  },
  {
    "database": "products_gen_characteristics",
    "table": "Products",
    "questions": [],
    "col_names": [
      "product_id",
      "color_code",
      "product_category_code",
      "product_name",
      "typical_buying_price",
      "typical_selling_price",
      "product_description",
      "other_product_details"
    ],
    "standard_answer": []
  },
  {
    "database": "products_gen_characteristics",
    "table": "Product_Characteristics",
    "questions": [],
    "col_names": [
      "product_id",
      "characteristic_id",
      "product_characteristic_value"
    ],
    "standard_answer": []
  },
  {
    "database": "coffee_shop",
    "table": "shop",
    "questions": [
      "Show the shop addresses ordered by their opening year.",
      "What are the average score and average staff number of all shops?",
      "Find the id and address of the shops whose score is below the average score.",
      "Find the address and staff number of the shops that do not have any happy hour.",
      "What are the id and address of the shops which have a happy hour in May?"
    ],
    "col_names": [
      "Shop_ID",
      "Address",
      "Num_of_staff",
      "Score",
      "Open_Year"
    ],
    "standard_answer": [
      "SELECT address FROM shop ORDER BY open_year",
      "SELECT avg(num_of_staff) ,  avg(score) FROM shop",
      "SELECT shop_id ,  address FROM shop WHERE score  <  (SELECT avg(score) FROM shop)",
      "SELECT address ,  num_of_staff FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM happy_hour)",
      "SELECT t1.address ,  t1.shop_id FROM shop AS t1 JOIN happy_hour AS t2 ON t1.shop_id  =  t2.shop_id WHERE MONTH  =  'May'"
    ]
  },
  {
    "database": "coffee_shop",
    "table": "member",
    "questions": [
      "How many members have the black membership card?",
      "Find the number of members living in each address.",
      "Give me the names of members whose address is in Harford or Waterbury.",
      "Find the ids and names of members who are under age 30 or with black membership card.",
      "Find the purchase time, age and address of each member, and show the results in the order of purchase time.",
      "Which membership card has more than 5 members?",
      "Which address has both members younger than 30 and members older than 40?",
      "What is the membership card held by both members living in Hartford and ones living in Waterbury address?",
      "How many members are not living in Hartford?",
      "Which address do not have any member with the black membership card?"
    ],
    "col_names": [
      "Member_ID",
      "Name",
      "Membership_card",
      "Age",
      "Time_of_purchase",
      "Level_of_membership",
      "Address"
    ],
    "standard_answer": [
      "SELECT count(*) FROM member WHERE Membership_card  =  'Black'",
      "SELECT count(*) ,  address FROM member GROUP BY address",
      "SELECT name FROM member WHERE address  =  'Harford' OR address  =  'Waterbury'",
      "SELECT name ,  member_id FROM member WHERE Membership_card  =  'Black' OR age  <  30",
      "SELECT Time_of_purchase ,  age ,  address FROM member ORDER BY Time_of_purchase",
      "SELECT Membership_card FROM member GROUP BY Membership_card HAVING count(*)  >  5",
      "SELECT address FROM member WHERE age  <  30 INTERSECT SELECT address FROM member WHERE age  >  40",
      "SELECT membership_card FROM member WHERE address  =  'Hartford' INTERSECT SELECT membership_card FROM member WHERE address  =  'Waterbury'",
      "SELECT count(*) FROM member WHERE address != 'Hartford'",
      "SELECT address FROM member EXCEPT SELECT address FROM member WHERE Membership_card  =  'Black'"
    ]
  },
  {
    "database": "coffee_shop",
    "table": "happy_hour",
    "questions": [
      "which shop has happy hour most frequently? List its id and number of happy hours.",
      "Which month has the most happy hours?",
      "Which months have more than 2 happy hours?"
    ],
    "col_names": [
      "HH_ID",
      "Shop_ID",
      "Month",
      "Num_of_shaff_in_charge"
    ],
    "standard_answer": [
      "SELECT shop_id ,  count(*) FROM happy_hour GROUP BY shop_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT MONTH FROM happy_hour GROUP BY MONTH ORDER BY count(*) DESC LIMIT 1",
      "SELECT MONTH FROM happy_hour GROUP BY MONTH HAVING count(*)  >  2"
    ]
  },
  {
    "database": "coffee_shop",
    "table": "happy_hour_member",
    "questions": [],
    "col_names": [
      "HH_ID",
      "Member_ID",
      "Total_amount"
    ],
    "standard_answer": []
  },
  {
    "database": "riding_club",
    "table": "player",
    "questions": [
      "How many players are there?",
      "List the names of players in ascending order of votes.",
      "What are the gender and occupation of players?",
      "List the name and residence for players whose occupation is not \"Researcher\".",
      "Show the names of sponsors of players whose residence is either \"Brandon\" or \"Birtle\".",
      "What is the name of the player with the largest number of votes?",
      "Show different occupations along with the number of players in each occupation.",
      "Please show the most common occupation of players.",
      "Show the residences that have at least two players.",
      "List the names of players that do not have coaches.",
      "Show the residences that have both a player of gender \"M\" and a player of gender \"F\"."
    ],
    "col_names": [
      "Player_ID",
      "Sponsor_name",
      "Player_name",
      "Gender",
      "Residence",
      "Occupation",
      "Votes",
      "Rank"
    ],
    "standard_answer": [
      "SELECT count(*) FROM player",
      "SELECT Player_name FROM player ORDER BY Votes ASC",
      "SELECT Gender ,  Occupation FROM player",
      "SELECT Player_name ,  residence FROM player WHERE Occupation != \"Researcher\"",
      "SELECT Sponsor_name FROM player WHERE Residence  =  \"Brandon\" OR Residence  =  \"Birtle\"",
      "SELECT Player_name FROM player ORDER BY Votes DESC LIMIT 1",
      "SELECT Occupation ,  COUNT(*) FROM player GROUP BY Occupation",
      "SELECT Occupation FROM player GROUP BY Occupation ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Residence FROM player GROUP BY Residence HAVING COUNT(*)  >=  2",
      "SELECT Player_name FROM player WHERE Player_ID NOT IN (SELECT Player_ID FROM player_coach)",
      "SELECT Residence FROM player WHERE gender  =  \"M\" INTERSECT SELECT Residence FROM player WHERE gender  =  \"F\""
    ]
  },
  {
    "database": "riding_club",
    "table": "club",
    "questions": [
      "How many coaches does each club has? List the club id, name and the number of coaches."
    ],
    "col_names": [
      "Club_ID",
      "Club_name",
      "Region",
      "Start_year"
    ],
    "standard_answer": [
      "SELECT T1.club_id ,  T1.club_name, count(*) FROM club AS T1 JOIN coach AS T2 ON T1.club_id  =  T2.club_id GROUP BY T1.club_id"
    ]
  },
  {
    "database": "riding_club",
    "table": "coach",
    "questions": [],
    "col_names": [
      "Coach_ID",
      "Coach_name",
      "Gender",
      "Club_ID",
      "Rank"
    ],
    "standard_answer": []
  },
  {
    "database": "riding_club",
    "table": "player_coach",
    "questions": [
      "Show the names of players and names of their coaches.",
      "Show the names of players coached by the rank 1 coach.",
      "Show the names and genders of players with a coach starting after 2011.",
      "Show the names of players and names of their coaches in descending order of the votes of players."
    ],
    "col_names": [
      "Player_ID",
      "Coach_ID",
      "Starting_year"
    ],
    "standard_answer": [
      "SELECT T3.Player_name ,  T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID",
      "SELECT T3.Player_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID WHERE T2.Rank  =  1",
      "SELECT T3.Player_name ,  T3.gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID WHERE T1.Starting_year  >  2011",
      "SELECT T3.Player_name ,  T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID ORDER BY T3.Votes DESC"
    ]
  },
  {
    "database": "riding_club",
    "table": "match_result",
    "questions": [
      "How many gold medals has the club with the most coaches won?"
    ],
    "col_names": [
      "Rank",
      "Club_ID",
      "Gold",
      "Big_Silver",
      "Small_Silver",
      "Bronze",
      "Points"
    ],
    "standard_answer": [
      "SELECT T1.club_id ,  T1.gold FROM match_result AS T1 JOIN coach AS T2 ON T1.club_id  =  T2.club_id GROUP BY T1.club_id ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "customers_card_transactions",
    "table": "Accounts",
    "questions": [
      "How many accounts do we have?",
      "Count the number of accounts.",
      "Show ids, customer ids, names for all accounts.",
      "What are the account ids, customer ids, and account names for all the accounts?",
      "Show other account details for account with name 338.",
      "What are the other account details for the account with the name 338?",
      "What is the first name, last name, and phone of the customer with account name 162?",
      "Give the full name and phone of the customer who has the account name 162.",
      "How many accounts does the customer with first name Art and last name Turcotte have?",
      "Return the number of accounts that the customer with the first name Art and last name Turcotte has.",
      "Show all customer ids and the number of accounts for each customer.",
      "How many accounts are there for each customer id?",
      "Show the customer id and number of accounts with most accounts.",
      "What is the customer id of the customer with the most accounts, and how many accounts does this person have?",
      "What is the customer first, last name and id with least number of accounts.",
      "Give the full name and customer id of the customer with the fewest accounts.",
      "How many customers have an account?",
      "Count the number of customers who hold an account."
    ],
    "col_names": [
      "account_id",
      "customer_id",
      "account_name",
      "other_account_details"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Accounts",
      "SELECT count(*) FROM Accounts",
      "SELECT account_id ,  customer_id ,  account_name FROM Accounts",
      "SELECT account_id ,  customer_id ,  account_name FROM Accounts",
      "SELECT other_account_details FROM Accounts WHERE account_name  =  \"338\"",
      "SELECT other_account_details FROM Accounts WHERE account_name  =  \"338\"",
      "SELECT T2.customer_first_name ,  T2.customer_last_name ,  T2.customer_phone FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.account_name  =  \"162\"",
      "SELECT T2.customer_first_name ,  T2.customer_last_name ,  T2.customer_phone FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.account_name  =  \"162\"",
      "SELECT count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  \"Art\" AND T2.customer_last_name  =  \"Turcotte\"",
      "SELECT count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  \"Art\" AND T2.customer_last_name  =  \"Turcotte\"",
      "SELECT customer_id ,  count(*) FROM Accounts GROUP BY customer_id",
      "SELECT customer_id ,  count(*) FROM Accounts GROUP BY customer_id",
      "SELECT customer_id ,  count(*) FROM Accounts GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT customer_id ,  count(*) FROM Accounts GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T2.customer_first_name ,  T2.customer_last_name ,  T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1",
      "SELECT T2.customer_first_name ,  T2.customer_last_name ,  T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1",
      "SELECT count(DISTINCT customer_id) FROM Accounts",
      "SELECT count(DISTINCT customer_id) FROM Accounts"
    ]
  },
  {
    "database": "customers_card_transactions",
    "table": "Customers",
    "questions": [
      "Show the number of all customers without an account.",
      "How many customers do not have an account?",
      "Show the first names and last names of customers without any account.",
      "What are the full names of customers who do not have any accounts?",
      "Show distinct first and last names for all customers with an account.",
      "What are the full names of customers who have accounts?",
      "How many customers do we have?",
      "Count the number of customers.",
      "Show ids, first names, last names, and phones for all customers.",
      "What are the ids, full names, and phones of each customer?",
      "What is the phone and email for customer with first name Aniyah and last name Feest?",
      "Return the phone and email of the customer with the first name Aniyah and last name Feest.",
      "Show the customer ids and firstname without a credit card.",
      "What are the ids and first names of customers who do not hold a credit card?"
    ],
    "col_names": [
      "customer_id",
      "customer_first_name",
      "customer_last_name",
      "customer_address",
      "customer_phone",
      "customer_email",
      "other_customer_details"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Customers WHERE customer_id NOT IN (SELECT customer_id FROM Accounts)",
      "SELECT count(*) FROM Customers WHERE customer_id NOT IN (SELECT customer_id FROM Accounts)",
      "SELECT customer_first_name ,  customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name ,  T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id  =  T2.customer_id",
      "SELECT customer_first_name ,  customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name ,  T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id  =  T2.customer_id",
      "SELECT DISTINCT T1.customer_first_name ,  T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id  =  T2.customer_id",
      "SELECT DISTINCT T1.customer_first_name ,  T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id  =  T2.customer_id",
      "SELECT count(*) FROM Customers",
      "SELECT count(*) FROM Customers",
      "SELECT customer_id ,  customer_first_name ,  customer_last_name ,  customer_phone FROM Customers",
      "SELECT customer_id ,  customer_first_name ,  customer_last_name ,  customer_phone FROM Customers",
      "SELECT customer_phone ,  customer_email FROM Customers WHERE customer_first_name  =  \"Aniyah\" AND customer_last_name  =  \"Feest\"",
      "SELECT customer_phone ,  customer_email FROM Customers WHERE customer_first_name  =  \"Aniyah\" AND customer_last_name  =  \"Feest\"",
      "SELECT customer_id ,  customer_first_name FROM Customers EXCEPT SELECT T1.customer_id ,  T2.customer_first_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE card_type_code  =  \"Credit\"",
      "SELECT customer_id ,  customer_first_name FROM Customers EXCEPT SELECT T1.customer_id ,  T2.customer_first_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE card_type_code  =  \"Credit\""
    ]
  },
  {
    "database": "customers_card_transactions",
    "table": "Customers_Cards",
    "questions": [
      "Show all card type codes.",
      "What are the different card type codes?",
      "Show the number of card types.",
      "How many different card types are there?"
    ],
    "col_names": [
      "card_id",
      "customer_id",
      "card_type_code",
      "card_number",
      "date_valid_from",
      "date_valid_to",
      "other_card_details"
    ],
    "standard_answer": [
      "SELECT DISTINCT card_type_code FROM Customers_Cards",
      "SELECT DISTINCT card_type_code FROM Customers_Cards",
      "SELECT count(DISTINCT card_type_code) FROM Customers_Cards",
      "SELECT count(DISTINCT card_type_code) FROM Customers_Cards"
    ]
  },
  {
    "database": "customers_card_transactions",
    "table": "Financial_Transactions",
    "questions": [
      "Show all transaction types.",
      "What are the different types of transactions?",
      "Show the number of transaction types.",
      "How many different types of transactions are there?"
    ],
    "col_names": [
      "transaction_id",
      "previous_transaction_id",
      "account_id",
      "card_id",
      "transaction_type",
      "transaction_date",
      "transaction_amount",
      "transaction_comment",
      "other_transaction_details"
    ],
    "standard_answer": [
      "SELECT DISTINCT transaction_type FROM Financial_Transactions",
      "SELECT DISTINCT transaction_type FROM Financial_Transactions",
      "SELECT count(DISTINCT transaction_type) FROM Financial_Transactions",
      "SELECT count(DISTINCT transaction_type) FROM Financial_Transactions"
    ]
  },
  {
    "database": "county_public_safety",
    "table": "county_public_safety",
    "questions": [
      "How many counties are there?",
      "Count the number of countries.",
      "List the names of counties in descending order of population.",
      "What are the names of the counties of public safety, ordered by population descending?",
      "List the distinct police forces of counties whose location is not on east side.",
      "What are the different police forces of counties that are not located in the East?",
      "What are the minimum and maximum crime rate of counties?",
      "Return the minimum and maximum crime rates across all counties.",
      "Show the crime rates of counties in ascending order of number of police officers.",
      "What are the crime rates of counties sorted by number of offices ascending?",
      "List the name of the county with the largest population.",
      "What is the name of the county with the greatest population?",
      "Please show the police forces and the number of counties with each police force.",
      "How many counties correspond to each police force?",
      "What is the location shared by most counties?",
      "Which location has the most corresponding counties?",
      "List the names of counties that do not have any cities.",
      "What are the names of counties that do not contain any cities?",
      "Show the police force shared by counties with location on the east and west.",
      "Which police forces operate in both counties that are located in the East and in the West?",
      "Show the case burden of counties in descending order of population.",
      "What are the case burdens of counties, ordered descending by population?"
    ],
    "col_names": [
      "County_ID",
      "Name",
      "Population",
      "Police_officers",
      "Residents_per_officer",
      "Case_burden",
      "Crime_rate",
      "Police_force",
      "Location"
    ],
    "standard_answer": [
      "SELECT count(*) FROM county_public_safety",
      "SELECT count(*) FROM county_public_safety",
      "SELECT Name FROM county_public_safety ORDER BY Population DESC",
      "SELECT Name FROM county_public_safety ORDER BY Population DESC",
      "SELECT DISTINCT Police_force FROM county_public_safety WHERE LOCATION != \"East\"",
      "SELECT DISTINCT Police_force FROM county_public_safety WHERE LOCATION != \"East\"",
      "SELECT min(Crime_rate) ,  max(Crime_rate) FROM county_public_safety",
      "SELECT min(Crime_rate) ,  max(Crime_rate) FROM county_public_safety",
      "SELECT Crime_rate FROM county_public_safety ORDER BY Police_officers ASC",
      "SELECT Crime_rate FROM county_public_safety ORDER BY Police_officers ASC",
      "SELECT Name FROM county_public_safety ORDER BY Population DESC LIMIT 1",
      "SELECT Name FROM county_public_safety ORDER BY Population DESC LIMIT 1",
      "SELECT Police_force ,  COUNT(*) FROM county_public_safety GROUP BY Police_force",
      "SELECT Police_force ,  COUNT(*) FROM county_public_safety GROUP BY Police_force",
      "SELECT LOCATION FROM county_public_safety GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT LOCATION FROM county_public_safety GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Name FROM county_public_safety WHERE County_ID NOT IN (SELECT County_ID FROM city)",
      "SELECT Name FROM county_public_safety WHERE County_ID NOT IN (SELECT County_ID FROM city)",
      "SELECT Police_force FROM county_public_safety WHERE LOCATION  =  \"East\" INTERSECT SELECT Police_force FROM county_public_safety WHERE LOCATION  =  \"West\"",
      "SELECT Police_force FROM county_public_safety WHERE LOCATION  =  \"East\" INTERSECT SELECT Police_force FROM county_public_safety WHERE LOCATION  =  \"West\"",
      "SELECT Case_burden FROM county_public_safety ORDER BY Population DESC",
      "SELECT Case_burden FROM county_public_safety ORDER BY Population DESC"
    ]
  },
  {
    "database": "county_public_safety",
    "table": "city",
    "questions": [
      "What are the names of cities in ascending alphabetical order?",
      "Return the names of cities, ordered alphabetically.",
      "What are the percentage of hispanics in cities with the black percentage higher than 10?",
      "Return the hispanic percentage for cities in which the black percentage is greater than 10.",
      "List the names of the city with the top 5 white percentages.",
      "What are the names of the five cities with the greatest proportion of white people?",
      "Show names of cities and names of counties they are in.",
      "What are the names of cities, as well as the names of the counties they correspond to?",
      "Show white percentages of cities and the crime rates of counties they are in.",
      "What are the white percentages of cities, and the corresponding crime rates of the counties they correspond to?",
      "Show the name of cities in the county that has the largest number of police officers.",
      "What are the names of cities that are in the county with the most police officers?",
      "Show the number of cities in counties that have a population more than 20000.",
      "How many cities are in counties that have populations of over 20000?",
      "Show the crime rate of counties with a city having white percentage more than 90.",
      "What are the crime rates of counties that contain cities that have white percentages of over 90?",
      "Show the names of cities in counties that have a crime rate less than 100.",
      "What are the names of cities that are in counties that have a crime rate below 100?"
    ],
    "col_names": [
      "City_ID",
      "County_ID",
      "Name",
      "White",
      "Black",
      "Amerindian",
      "Asian",
      "Multiracial",
      "Hispanic"
    ],
    "standard_answer": [
      "SELECT Name FROM city ORDER BY Name ASC",
      "SELECT Name FROM city ORDER BY Name ASC",
      "SELECT Hispanic FROM city WHERE Black  >  10",
      "SELECT Hispanic FROM city WHERE Black  >  10",
      "SELECT Name FROM city ORDER BY White DESC LIMIT 5",
      "SELECT Name FROM city ORDER BY White DESC LIMIT 5",
      "SELECT T1.Name ,  T2.Name FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID  =  T2.County_ID",
      "SELECT T1.Name ,  T2.Name FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID  =  T2.County_ID",
      "SELECT T1.White ,  T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID  =  T2.County_ID",
      "SELECT T1.White ,  T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID  =  T2.County_ID",
      "SELECT name FROM city WHERE county_ID  =  (SELECT county_ID FROM county_public_safety ORDER BY Police_officers DESC LIMIT 1)",
      "SELECT name FROM city WHERE county_ID  =  (SELECT county_ID FROM county_public_safety ORDER BY Police_officers DESC LIMIT 1)",
      "SELECT count(*) FROM city WHERE county_ID IN (SELECT county_ID FROM county_public_safety WHERE population  >  20000)",
      "SELECT count(*) FROM city WHERE county_ID IN (SELECT county_ID FROM county_public_safety WHERE population  >  20000)",
      "SELECT T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID  =  T2.County_ID WHERE T1.White  >  90",
      "SELECT T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID  =  T2.County_ID WHERE T1.White  >  90",
      "SELECT name FROM city WHERE county_id IN (SELECT county_id FROM county_public_safety WHERE Crime_rate  <  100)",
      "SELECT name FROM city WHERE county_id IN (SELECT county_id FROM county_public_safety WHERE Crime_rate  <  100)"
    ]
  },
  {
    "database": "performance_attendance",
    "table": "member",
    "questions": [
      "List the names of members who did not attend any performance."
    ],
    "col_names": [
      "Member_ID",
      "Name",
      "Nationality",
      "Role"
    ],
    "standard_answer": [
      "SELECT Name FROM member WHERE Member_ID NOT IN (SELECT Member_ID FROM member_attendance)"
    ]
  },
  {
    "database": "performance_attendance",
    "table": "performance",
    "questions": [
      "How many performances are there?",
      "List the hosts of performances in ascending order of attendance.",
      "What are the dates and locations of performances?",
      "Show the attendances of the performances at location \"TD Garden\" or \"Bell Centre\"",
      "What is the average number of attendees for performances?",
      "What is the date of the performance with the highest number of attendees?",
      "Show different locations and the number of performances at each location.",
      "Show the most common location of performances.",
      "Show the locations that have at least two performances.",
      "Show the locations that have both performances with more than 2000 attendees and performances with less than 1000 attendees."
    ],
    "col_names": [
      "Performance_ID",
      "Date",
      "Host",
      "Location",
      "Attendance"
    ],
    "standard_answer": [
      "SELECT count(*) FROM performance",
      "SELECT HOST FROM performance ORDER BY Attendance ASC",
      "SELECT Date ,  LOCATION FROM performance",
      "SELECT Attendance FROM performance WHERE LOCATION  =  \"TD Garden\" OR LOCATION  =  \"Bell Centre\"",
      "SELECT avg(Attendance) FROM performance",
      "SELECT Date FROM performance ORDER BY Attendance DESC LIMIT 1",
      "SELECT LOCATION ,  COUNT(*) FROM performance GROUP BY LOCATION",
      "SELECT LOCATION FROM performance GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT LOCATION FROM performance GROUP BY LOCATION HAVING COUNT(*)  >=  2",
      "SELECT LOCATION FROM performance WHERE Attendance  >  2000 INTERSECT SELECT LOCATION FROM performance WHERE Attendance  <  1000"
    ]
  },
  {
    "database": "performance_attendance",
    "table": "member_attendance",
    "questions": [
      "Show the names of members and the location of the performances they attended.",
      "Show the names of members and the location of performances they attended in ascending alphabetical order of their names.",
      "Show the dates of performances with attending members whose roles are \"Violin\".",
      "Show the names of members and the dates of performances they attended in descending order of attendance of the performances."
    ],
    "col_names": [
      "Member_ID",
      "Performance_ID",
      "Num_of_Pieces"
    ],
    "standard_answer": [
      "SELECT T2.Name ,  T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID  =  T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID  =  T3.Performance_ID",
      "SELECT T2.Name ,  T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID  =  T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID  =  T3.Performance_ID ORDER BY T2.Name ASC",
      "SELECT T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID  =  T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID  =  T3.Performance_ID WHERE T2.Role  =  \"Violin\"",
      "SELECT T2.Name ,  T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID  =  T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID  =  T3.Performance_ID ORDER BY T3.Attendance DESC"
    ]
  },
  {
    "database": "club_1",
    "table": "Student",
    "questions": [],
    "col_names": [
      "StuID",
      "LName",
      "Fname",
      "Age",
      "Sex",
      "Major",
      "Advisor",
      "city_code"
    ],
    "standard_answer": []
  },
  {
    "database": "club_1",
    "table": "Club",
    "questions": [],
    "col_names": [
      "ClubID",
      "ClubName",
      "ClubDesc",
      "ClubLocation"
    ],
    "standard_answer": []
  },
  {
    "database": "club_1",
    "table": "Member_of_club",
    "questions": [],
    "col_names": [
      "StuID",
      "ClubID",
      "Position"
    ],
    "standard_answer": []
  },
  {
    "database": "singer",
    "table": "singer",
    "questions": [],
    "col_names": [
      "Singer_ID",
      "Name",
      "Birth_Year",
      "Net_Worth_Millions",
      "Citizenship"
    ],
    "standard_answer": []
  },
  {
    "database": "singer",
    "table": "song",
    "questions": [],
    "col_names": [
      "Song_ID",
      "Title",
      "Singer_ID",
      "Sales",
      "Highest_Position"
    ],
    "standard_answer": []
  },
  {
    "database": "culture_company",
    "table": "book_club",
    "questions": [
      "How many book clubs are there?",
      "Count the number of book clubs.",
      "show the titles, and authors or editors for all books made after the year 1989.",
      "What are the titles and authors or editors that correspond to books made after 1989?",
      "Show all distinct publishers for books.",
      "What are all the different book publishers?",
      "Show the years, book titles, and publishers for all books, in descending order by year.",
      "What are the years, titles, and publishers for all books, ordered by year descending?",
      "Show all publishers and the number of books for each publisher.",
      "How many books are there for each publisher?",
      "What is the publisher with most number of books?",
      "Return the publisher that has published the most books.",
      "Show all book categories and the number of books in each category.",
      "How many books fall into each category?",
      "List categories that have at least two books after year 1989.",
      "What categories have two or more corresponding books that were made after 1989?",
      "Show publishers with a book published in 1989 and a book in 1990.",
      "What are the publishers who have published a book in both 1989 and 1990?",
      "Show all publishers which do not have a book in 1989.",
      "Which publishers did not publish a book in 1989?"
    ],
    "col_names": [
      "book_club_id",
      "Year",
      "Author_or_Editor",
      "Book_Title",
      "Publisher",
      "Category",
      "Result"
    ],
    "standard_answer": [
      "SELECT count(*) FROM book_club",
      "SELECT count(*) FROM book_club",
      "SELECT book_title ,  author_or_editor FROM book_club WHERE YEAR  >  1989",
      "SELECT book_title ,  author_or_editor FROM book_club WHERE YEAR  >  1989",
      "SELECT DISTINCT publisher FROM book_club",
      "SELECT DISTINCT publisher FROM book_club",
      "SELECT YEAR ,  book_title ,  publisher FROM book_club ORDER BY YEAR DESC",
      "SELECT YEAR ,  book_title ,  publisher FROM book_club ORDER BY YEAR DESC",
      "SELECT publisher ,  count(*) FROM book_club GROUP BY publisher",
      "SELECT publisher ,  count(*) FROM book_club GROUP BY publisher",
      "SELECT publisher FROM book_club GROUP BY publisher ORDER BY count(*) DESC LIMIT 1",
      "SELECT publisher FROM book_club GROUP BY publisher ORDER BY count(*) DESC LIMIT 1",
      "SELECT category ,  count(*) FROM book_club GROUP BY category",
      "SELECT category ,  count(*) FROM book_club GROUP BY category",
      "SELECT category FROM book_club WHERE YEAR  >  1989 GROUP BY category HAVING count(*)  >=  2",
      "SELECT category FROM book_club WHERE YEAR  >  1989 GROUP BY category HAVING count(*)  >=  2",
      "SELECT publisher FROM book_club WHERE YEAR  =  1989 INTERSECT SELECT publisher FROM book_club WHERE YEAR  =  1990",
      "SELECT publisher FROM book_club WHERE YEAR  =  1989 INTERSECT SELECT publisher FROM book_club WHERE YEAR  =  1990",
      "SELECT publisher FROM book_club EXCEPT SELECT publisher FROM book_club WHERE YEAR  =  1989",
      "SELECT publisher FROM book_club EXCEPT SELECT publisher FROM book_club WHERE YEAR  =  1989"
    ]
  },
  {
    "database": "culture_company",
    "table": "movie",
    "questions": [
      "Show all movie titles, years, and directors, ordered by budget.",
      "What are the titles, years, and directors of all movies, ordered by budget in millions?",
      "How many movie directors are there?",
      "Count the number of different directors.",
      "What is the title and director for the movie with highest worldwide gross in the year 2000 or before?",
      "Return the title and director of the movie released in the year 2000 or earlier that had the highest worldwide gross.",
      "Show all director names who have a movie in both year 1999 and 2000.",
      "Which directors had a movie both in the year 1999 and 2000?",
      "Show all director names who have a movie in the year 1999 or 2000.",
      "Which directors had a movie in either 1999 or 2000?",
      "What is the average, maximum, and minimum budget for all movies before 2000.",
      "Return the average, maximum, and minimum budgets in millions for movies made before the year 2000.",
      "Show the movie titles and book titles for all companies in China.",
      "What are the titles of movies and books corresponding to companies incorporated in China?",
      "Show all company names with a movie directed in year 1999.",
      "What are all company names that have a corresponding movie directed in the year 1999?"
    ],
    "col_names": [
      "movie_id",
      "Title",
      "Year",
      "Director",
      "Budget_million",
      "Gross_worldwide"
    ],
    "standard_answer": [
      "SELECT title ,  YEAR ,  director FROM movie ORDER BY budget_million",
      "SELECT title ,  YEAR ,  director FROM movie ORDER BY budget_million",
      "SELECT COUNT (DISTINCT director) FROM movie",
      "SELECT COUNT (DISTINCT director) FROM movie",
      "SELECT title ,  director FROM movie WHERE YEAR  <=  2000 ORDER BY gross_worldwide DESC LIMIT 1",
      "SELECT title ,  director FROM movie WHERE YEAR  <=  2000 ORDER BY gross_worldwide DESC LIMIT 1",
      "SELECT director FROM movie WHERE YEAR  =  2000 INTERSECT SELECT director FROM movie WHERE YEAR  =  1999",
      "SELECT director FROM movie WHERE YEAR  =  2000 INTERSECT SELECT director FROM movie WHERE YEAR  =  1999",
      "SELECT director FROM movie WHERE YEAR  =  1999 OR YEAR  =  2000",
      "SELECT director FROM movie WHERE YEAR  =  1999 OR YEAR  =  2000",
      "SELECT avg(budget_million) ,  max(budget_million) ,  min(budget_million) FROM movie WHERE YEAR  <  2000",
      "SELECT avg(budget_million) ,  max(budget_million) ,  min(budget_million) FROM movie WHERE YEAR  <  2000",
      "SELECT T1.title ,  T3.book_title FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id  =  T2.movie_id JOIN book_club AS T3 ON T3.book_club_id  =  T2.book_club_id WHERE T2.incorporated_in  =  'China'",
      "SELECT T1.title ,  T3.book_title FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id  =  T2.movie_id JOIN book_club AS T3 ON T3.book_club_id  =  T2.book_club_id WHERE T2.incorporated_in  =  'China'",
      "SELECT T2.company_name FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id  =  T2.movie_id WHERE T1.year  =  1999",
      "SELECT T2.company_name FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id  =  T2.movie_id WHERE T1.year  =  1999"
    ]
  },
  {
    "database": "culture_company",
    "table": "culture_company",
    "questions": [
      "List all company names with a book published by Alyson.",
      "What are all the company names that have a book published by Alyson?"
    ],
    "col_names": [
      "Company_name",
      "Type",
      "Incorporated_in",
      "Group_Equity_Shareholding",
      "book_club_id",
      "movie_id"
    ],
    "standard_answer": [
      "SELECT T1.company_name FROM culture_company AS T1 JOIN book_club AS T2 ON T1.book_club_id  =  T2.book_club_id WHERE T2.publisher  =  'Alyson'",
      "SELECT T1.company_name FROM culture_company AS T1 JOIN book_club AS T2 ON T1.book_club_id  =  T2.book_club_id WHERE T2.publisher  =  'Alyson'"
    ]
  },
  {
    "database": "cre_Doc_Template_Mgt",
    "table": "Ref_Template_Types",
    "questions": [],
    "col_names": [
      "Template_Type_Code",
      "Template_Type_Description"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Doc_Template_Mgt",
    "table": "Templates",
    "questions": [],
    "col_names": [
      "Template_ID",
      "Version_Number",
      "Template_Type_Code",
      "Date_Effective_From",
      "Date_Effective_To",
      "Template_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Doc_Template_Mgt",
    "table": "Documents",
    "questions": [],
    "col_names": [
      "Document_ID",
      "Template_ID",
      "Document_Name",
      "Document_Description",
      "Other_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Doc_Template_Mgt",
    "table": "Paragraphs",
    "questions": [],
    "col_names": [
      "Paragraph_ID",
      "Document_ID",
      "Paragraph_Text",
      "Other_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "musical",
    "table": "musical",
    "questions": [
      "What are the names of musicals with nominee \"Bob Fosse\"?",
      "Return the names of musicals who have the nominee Bob Fosse.",
      "What are the distinct nominees of the musicals with the award that is not \"Tony Award\"?",
      "Return the different nominees of musicals that have an award that is not the Tony Award.",
      "Show different nominees and the number of musicals they have been nominated.",
      "How many musicals has each nominee been nominated for?",
      "Please show the nominee who has been nominated the greatest number of times.",
      "Who is the nominee who has been nominated for the most musicals?",
      "List the most common result of the musicals.",
      "Return the most frequent result across all musicals.",
      "List the nominees that have been nominated more than two musicals.",
      "Who are the nominees who have been nominated more than two times?",
      "List the name of musicals that do not have actors.",
      "What are the names of musicals who have no actors?",
      "Show the nominees that have nominated musicals for both \"Tony Award\" and \"Drama Desk Award\".",
      "Who are the nominees who have been nominated for both a Tony Award and a Drama Desk Award?",
      "Show the musical nominee with award \"Bob Fosse\" or \"Cleavant Derricks\".",
      "Who are the nominees who were nominated for either of the Bob Fosse or Cleavant Derricks awards?"
    ],
    "col_names": [
      "Musical_ID",
      "Name",
      "Year",
      "Award",
      "Category",
      "Nominee",
      "Result"
    ],
    "standard_answer": [
      "SELECT Name FROM musical WHERE Nominee  =  \"Bob Fosse\"",
      "SELECT Name FROM musical WHERE Nominee  =  \"Bob Fosse\"",
      "SELECT DISTINCT Nominee FROM musical WHERE Award != \"Tony Award\"",
      "SELECT DISTINCT Nominee FROM musical WHERE Award != \"Tony Award\"",
      "SELECT Nominee ,  COUNT(*) FROM musical GROUP BY Nominee",
      "SELECT Nominee ,  COUNT(*) FROM musical GROUP BY Nominee",
      "SELECT Nominee FROM musical GROUP BY Nominee ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Nominee FROM musical GROUP BY Nominee ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT RESULT FROM musical GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT RESULT FROM musical GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Nominee FROM musical GROUP BY Nominee HAVING COUNT(*)  >  2",
      "SELECT Nominee FROM musical GROUP BY Nominee HAVING COUNT(*)  >  2",
      "SELECT Name FROM musical WHERE Musical_ID NOT IN (SELECT Musical_ID FROM actor)",
      "SELECT Name FROM musical WHERE Musical_ID NOT IN (SELECT Musical_ID FROM actor)",
      "SELECT Nominee FROM musical WHERE Award  =  \"Tony Award\" INTERSECT SELECT Nominee FROM musical WHERE Award  =  \"Drama Desk Award\"",
      "SELECT Nominee FROM musical WHERE Award  =  \"Tony Award\" INTERSECT SELECT Nominee FROM musical WHERE Award  =  \"Drama Desk Award\"",
      "SELECT Nominee FROM musical WHERE Award  =  \"Tony Award\" OR Award  =  \"Cleavant Derricks\"",
      "SELECT Nominee FROM musical WHERE Award  =  \"Tony Award\" OR Award  =  \"Cleavant Derricks\""
    ]
  },
  {
    "database": "musical",
    "table": "actor",
    "questions": [
      "How many actors are there?",
      "Count the number of actors.",
      "List the name of actors in ascending alphabetical order.",
      "What are the names of actors, ordered alphabetically?",
      "What are the characters and duration of actors?",
      "Return the characters and durations for each actor.",
      "List the name of actors whose age is not 20.",
      "What are the names of actors who are not 20 years old?",
      "What are the characters of actors in descending order of age?",
      "Return the characters for actors, ordered by age descending.",
      "What is the duration of the oldest actor?",
      "Return the duration of the actor with the greatest age.",
      "Show names of actors and names of musicals they are in.",
      "What are the names of actors and the musicals that they are in?",
      "Show names of actors that have appeared in musical with name \"The Phantom of the Opera\".",
      "What are the names of actors who have been in the musical titled The Phantom of the Opera?",
      "Show names of actors in descending order of the year their musical is awarded.",
      "What are the names of actors ordered descending by the year in which their musical was awarded?",
      "Show names of musicals and the number of actors who have appeared in the musicals.",
      "How many actors have appeared in each musical?",
      "Show names of musicals which have at least three actors.",
      "What are the names of musicals who have at 3 or more actors?"
    ],
    "col_names": [
      "Actor_ID",
      "Name",
      "Musical_ID",
      "Character",
      "Duration",
      "age"
    ],
    "standard_answer": [
      "SELECT count(*) FROM actor",
      "SELECT count(*) FROM actor",
      "SELECT Name FROM actor ORDER BY Name ASC",
      "SELECT Name FROM actor ORDER BY Name ASC",
      "SELECT Character ,  Duration FROM actor",
      "SELECT Character ,  Duration FROM actor",
      "SELECT Name FROM actor WHERE Age != 20",
      "SELECT Name FROM actor WHERE Age != 20",
      "SELECT Character FROM actor ORDER BY age DESC",
      "SELECT Character FROM actor ORDER BY age DESC",
      "SELECT Duration FROM actor ORDER BY Age DESC LIMIT 1",
      "SELECT Duration FROM actor ORDER BY Age DESC LIMIT 1",
      "SELECT T1.Name ,  T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID",
      "SELECT T1.Name ,  T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID",
      "SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID WHERE T2.Name  =  \"The Phantom of the Opera\"",
      "SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID WHERE T2.Name  =  \"The Phantom of the Opera\"",
      "SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID ORDER BY T2.Year DESC",
      "SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID ORDER BY T2.Year DESC",
      "SELECT T2.Name ,  COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID GROUP BY T1.Musical_ID",
      "SELECT T2.Name ,  COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID GROUP BY T1.Musical_ID",
      "SELECT T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID GROUP BY T1.Musical_ID HAVING COUNT(*)  >=  3",
      "SELECT T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID GROUP BY T1.Musical_ID HAVING COUNT(*)  >=  3"
    ]
  },
  {
    "database": "world_1",
    "table": "city",
    "questions": [],
    "col_names": [
      "ID",
      "Name",
      "CountryCode",
      "District",
      "Population"
    ],
    "standard_answer": []
  },
  {
    "database": "world_1",
    "table": "sqlite_sequence",
    "questions": [],
    "col_names": [
      "name",
      "seq"
    ],
    "standard_answer": []
  },
  {
    "database": "world_1",
    "table": "country",
    "questions": [],
    "col_names": [
      "Code",
      "Name",
      "Continent",
      "Region",
      "SurfaceArea",
      "IndepYear",
      "Population",
      "LifeExpectancy",
      "GNP",
      "GNPOld",
      "LocalName",
      "GovernmentForm",
      "HeadOfState",
      "Capital",
      "Code2"
    ],
    "standard_answer": []
  },
  {
    "database": "world_1",
    "table": "countrylanguage",
    "questions": [],
    "col_names": [
      "CountryCode",
      "Language",
      "IsOfficial",
      "Percentage"
    ],
    "standard_answer": []
  },
  {
    "database": "device",
    "table": "device",
    "questions": [
      "How many devices are there?",
      "Count the number of devices.",
      "List the carriers of devices in ascending alphabetical order.",
      "What are the different carriers for devices, listed in alphabetical order?",
      "What are the carriers of devices whose software platforms are not \"Android\"?",
      "Return the device carriers that do not have Android as their software platform.",
      "How many different software platforms are there for devices?",
      "Count the number of different software platforms.",
      "Please show different software platforms and the corresponding number of devices using each.",
      "What are the different software platforms for devices, and how many devices have each?",
      "Please show the software platforms of devices in descending order of the count.",
      "What are the different software platforms for devices, ordered by frequency descending?",
      "List the software platform shared by the greatest number of devices.",
      "What is the software platform that is most common amongst all devices?",
      "List the carriers of devices that have no devices in stock.",
      "What are the carriers of devices that are not in stock anywhere?"
    ],
    "col_names": [
      "Device_ID",
      "Device",
      "Carrier",
      "Package_Version",
      "Applications",
      "Software_Platform"
    ],
    "standard_answer": [
      "SELECT count(*) FROM device",
      "SELECT count(*) FROM device",
      "SELECT Carrier FROM device ORDER BY Carrier ASC",
      "SELECT Carrier FROM device ORDER BY Carrier ASC",
      "SELECT Carrier FROM device WHERE Software_Platform != 'Android'",
      "SELECT Carrier FROM device WHERE Software_Platform != 'Android'",
      "SELECT count(DISTINCT Software_Platform) FROM device",
      "SELECT count(DISTINCT Software_Platform) FROM device",
      "SELECT Software_Platform ,  COUNT(*) FROM device GROUP BY Software_Platform",
      "SELECT Software_Platform ,  COUNT(*) FROM device GROUP BY Software_Platform",
      "SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC",
      "SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC",
      "SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Carrier FROM device WHERE Device_ID NOT IN (SELECT Device_ID FROM stock)",
      "SELECT Carrier FROM device WHERE Device_ID NOT IN (SELECT Device_ID FROM stock)"
    ]
  },
  {
    "database": "device",
    "table": "shop",
    "questions": [
      "What are the names of shops in ascending order of open year?",
      "Return the names of shops, ordered by year of opening ascending.",
      "What are the names and location of the shops in ascending alphabetical order of name.",
      "Return the names and locations of shops, ordered by name in alphabetical order.",
      "List the open date of open year of the shop named \"Apple\".",
      "What are the open dates and years for the shop named Apple?",
      "List the name of the shop with the latest open year.",
      "What is the shop name corresponding to the shop that opened in the most recent year?",
      "List the names of shops that have no devices in stock.",
      "What are the names of shops that do not have any devices in stock?",
      "Show the locations shared by shops with open year later than 2012 and shops with open year before 2008.",
      "Which locations contains both shops that opened after the year 2012 and shops that opened before 2008?"
    ],
    "col_names": [
      "Shop_ID",
      "Shop_Name",
      "Location",
      "Open_Date",
      "Open_Year"
    ],
    "standard_answer": [
      "SELECT Shop_Name FROM shop ORDER BY Open_Year ASC",
      "SELECT Shop_Name FROM shop ORDER BY Open_Year ASC",
      "SELECT Shop_Name ,  LOCATION FROM shop ORDER BY Shop_Name ASC",
      "SELECT Shop_Name ,  LOCATION FROM shop ORDER BY Shop_Name ASC",
      "SELECT Open_Date ,  Open_Year FROM shop WHERE Shop_Name  =  \"Apple\"",
      "SELECT Open_Date ,  Open_Year FROM shop WHERE Shop_Name  =  \"Apple\"",
      "SELECT Shop_Name FROM shop ORDER BY Open_Year DESC LIMIT 1",
      "SELECT Shop_Name FROM shop ORDER BY Open_Year DESC LIMIT 1",
      "SELECT Shop_Name FROM shop WHERE Shop_ID NOT IN (SELECT Shop_ID FROM stock)",
      "SELECT Shop_Name FROM shop WHERE Shop_ID NOT IN (SELECT Shop_ID FROM stock)",
      "SELECT LOCATION FROM shop WHERE Open_Year  >  2012 INTERSECT SELECT LOCATION FROM shop WHERE Open_Year  <  2008",
      "SELECT LOCATION FROM shop WHERE Open_Year  >  2012 INTERSECT SELECT LOCATION FROM shop WHERE Open_Year  <  2008"
    ]
  },
  {
    "database": "device",
    "table": "stock",
    "questions": [
      "What is the average quantity of stocks?",
      "Give the average quantity of stocks.",
      "Show names of shops and the carriers of devices they have in stock.",
      "What are the names of device shops, and what are the carriers that they carry devices in stock for?",
      "Show names of shops that have more than one kind of device in stock.",
      "What are the names of shops that have more than a single kind of device in stock?",
      "Show the name of the shop that has the most kind of devices in stock.",
      "What is the name of the shop that has the most different kinds of devices in stock?",
      "Show the name of the shop that have the largest quantity of devices in stock.",
      "What is the name of the shop that has the greatest quantity of devices in stock?",
      "Show the carriers of devices in stock at more than one shop.",
      "What are the carriers of devices that are in stock in more than a single shop?"
    ],
    "col_names": [
      "Shop_ID",
      "Device_ID",
      "Quantity"
    ],
    "standard_answer": [
      "SELECT avg(Quantity) FROM stock",
      "SELECT avg(Quantity) FROM stock",
      "SELECT T3.Shop_Name ,  T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID  =  T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID  =  T3.Shop_ID",
      "SELECT T3.Shop_Name ,  T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID  =  T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID  =  T3.Shop_ID",
      "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID HAVING COUNT(*)  >  1",
      "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID HAVING COUNT(*)  >  1",
      "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM(T1.quantity) DESC LIMIT 1",
      "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM(T1.quantity) DESC LIMIT 1",
      "SELECT T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID  =  T2.Device_ID GROUP BY T1.Device_ID HAVING COUNT(*)  >  1",
      "SELECT T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID  =  T2.Device_ID GROUP BY T1.Device_ID HAVING COUNT(*)  >  1"
    ]
  },
  {
    "database": "tracking_grants_for_research",
    "table": "Document_Types",
    "questions": [
      "Which document type is described with the prefix 'Initial'?",
      "What is the type of the document whose description starts with the word 'Initial'?"
    ],
    "col_names": [
      "document_type_code",
      "document_description"
    ],
    "standard_answer": [
      "SELECT document_type_code FROM Document_Types WHERE document_description LIKE 'Initial%'",
      "SELECT document_type_code FROM Document_Types WHERE document_description LIKE 'Initial%'"
    ]
  },
  {
    "database": "tracking_grants_for_research",
    "table": "Documents",
    "questions": [
      "What are the response received dates for the documents described as 'Regular' or granted with more than 100?",
      "What is the response received date for the document described as Regular that was granted more than 100 dollars?",
      "How many documents can one grant have at most? List the grant id and number.",
      "For each grant id, how many documents does it have, and which one has the most?"
    ],
    "col_names": [
      "document_id",
      "document_type_code",
      "grant_id",
      "sent_date",
      "response_received_date",
      "other_details"
    ],
    "standard_answer": [
      "SELECT T1.response_received_date FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code  =  T2.document_type_code JOIN Grants AS T3 ON T1.grant_id  =  T3.grant_id WHERE T2.document_description  =  'Regular' OR T3.grant_amount  >  100",
      "SELECT T1.response_received_date FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code  =  T2.document_type_code JOIN Grants AS T3 ON T1.grant_id  =  T3.grant_id WHERE T2.document_description  =  'Regular' OR T3.grant_amount  >  100",
      "SELECT grant_id ,  count(*) FROM Documents GROUP BY grant_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT grant_id ,  count(*) FROM Documents GROUP BY grant_id ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "tracking_grants_for_research",
    "table": "Grants",
    "questions": [
      "What are the distinct grant amount for the grants where the documents were sent before '1986-08-26 20:49:27' and grant were ended after '1989-03-16 18:27:16'?",
      "What are the different grant amounts for documents sent before '1986-08-26 20:49:27' and after the grant ended on '1989-03-16 18:27:16'?",
      "What is the total grant amount of the organisations described as research?",
      "What is the total amount of grant money for research?",
      "Find the organisation ids and details of the organisations which are involved in",
      "What are the ids and details for all organizations that have grants of more than 6000 dollars?",
      "What is the total amount of grants given by each organisations? Also list the organisation id.",
      "What is the total amount of grant money given to each organization and what is its id?",
      "For grants with both documents described as 'Regular' and documents described as 'Initial Application', list its start date.",
      "For grants that have descriptions of Regular and Initial Applications, what are their start dates?"
    ],
    "col_names": [
      "grant_id",
      "organisation_id",
      "grant_amount",
      "grant_start_date",
      "grant_end_date",
      "other_details"
    ],
    "standard_answer": [
      "SELECT T1.grant_amount FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id  =  T2.grant_id WHERE T2.sent_date  <  '1986-08-26 20:49:27' INTERSECT SELECT grant_amount FROM grants WHERE grant_end_date  >  '1989-03-16 18:27:16'",
      "SELECT T1.grant_amount FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id  =  T2.grant_id WHERE T2.sent_date  <  '1986-08-26 20:49:27' INTERSECT SELECT grant_amount FROM grants WHERE grant_end_date  >  '1989-03-16 18:27:16'",
      "SELECT sum(grant_amount) FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id  =  T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type  =  T3.organisation_type WHERE T3.organisation_type_description  =  'Research'",
      "SELECT sum(grant_amount) FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id  =  T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type  =  T3.organisation_type WHERE T3.organisation_type_description  =  'Research'",
      "SELECT T2.organisation_id ,  T2.organisation_details FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id  =  T2.organisation_id GROUP BY T2.organisation_id HAVING sum(T1.grant_amount)  >  6000",
      "SELECT T2.organisation_id ,  T2.organisation_details FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id  =  T2.organisation_id GROUP BY T2.organisation_id HAVING sum(T1.grant_amount)  >  6000",
      "SELECT sum(grant_amount) ,  organisation_id FROM Grants GROUP BY organisation_id",
      "SELECT sum(grant_amount) ,  organisation_id FROM Grants GROUP BY organisation_id",
      "SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id  =  T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code  =  T3.document_type_code WHERE T3.document_description  =  'Regular' INTERSECT SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id  =  T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code  =  T3.document_type_code WHERE T3.document_description  =  'Initial Application'",
      "SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id  =  T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code  =  T3.document_type_code WHERE T3.document_description  =  'Regular' INTERSECT SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id  =  T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code  =  T3.document_type_code WHERE T3.document_description  =  'Initial Application'"
    ]
  },
  {
    "database": "tracking_grants_for_research",
    "table": "Organisation_Types",
    "questions": [],
    "col_names": [
      "organisation_type",
      "organisation_type_description"
    ],
    "standard_answer": []
  },
  {
    "database": "tracking_grants_for_research",
    "table": "Organisations",
    "questions": [
      "What is the organisation type and id of the organisation which has the most number of research staff?",
      "What is the type and id of the organization that has the most research staff?",
      "Which organisation type hires most research staff?",
      "What is the type of the organization with the most research staff?",
      "Which organisation hired the most number of research staff? List the organisation id, type and detail.",
      "What are the ids, types, and details of the organization with the most research staff?",
      "What are all the details of the organisations described as 'Sponsor'? Sort the result in an ascending order.",
      "What are the details of all organizations that are described as Sponsors and sort the results in ascending order?"
    ],
    "col_names": [
      "organisation_id",
      "organisation_type",
      "organisation_details"
    ],
    "standard_answer": [
      "SELECT T1.organisation_type ,  T1.organisation_id FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.organisation_type ,  T1.organisation_id FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.organisation_type FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_type ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.organisation_type FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_type ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.organisation_id ,  T1.organisation_type ,  T1.organisation_details FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.organisation_id ,  T1.organisation_type ,  T1.organisation_details FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT organisation_details FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type  =  T2.organisation_type WHERE T2.organisation_type_description  =  'Sponsor' ORDER BY organisation_details",
      "SELECT organisation_details FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type  =  T2.organisation_type WHERE T2.organisation_type_description  =  'Sponsor' ORDER BY organisation_details"
    ]
  },
  {
    "database": "tracking_grants_for_research",
    "table": "Project_Outcomes",
    "questions": [],
    "col_names": [
      "project_id",
      "outcome_code",
      "outcome_details"
    ],
    "standard_answer": []
  },
  {
    "database": "tracking_grants_for_research",
    "table": "Project_Staff",
    "questions": [
      "List from which date and to which date these staff work: project staff of the project which hires the most staffs",
      "From what date and to what date do the staff work on a project that has the most staff and has staff in a leader role?",
      "When do all the researcher role staff start to work, and when do they stop working?",
      "When did researchers start and stop working?",
      "How many kinds of roles are there for the staff?",
      "How many different roles are there on the project staff?",
      "How many staff does each project has? List the project id and the number in an ascending order.",
      "For each project id, how many staff does it have? List them in increasing order.",
      "When did the first staff for the projects started working?",
      "When did the first staff member start working?",
      "How many project staff worked as leaders or started working before '1989-04-24 23:51:54'?",
      "How many project members were leaders or started working before '1989-04-24 23:51:54'?",
      "What is the last date of the staff leaving the projects?",
      "What is the last date that a staff member left a project?",
      "What are the staff roles of the staff who",
      "What roles did staff members play between '2003-04-19 15:06:20' and '2016-03-15 00:33:18'?",
      "Which role is most common for the staff?",
      "What is the most common role for the staff?"
    ],
    "col_names": [
      "staff_id",
      "project_id",
      "role_code",
      "date_from",
      "date_to",
      "other_details"
    ],
    "standard_answer": [
      "SELECT date_from ,  date_to FROM Project_Staff WHERE project_id IN( SELECT project_id FROM Project_Staff GROUP BY project_id ORDER BY count(*) DESC LIMIT 1 ) UNION SELECT date_from ,  date_to FROM Project_Staff WHERE role_code  =  'leader'",
      "SELECT date_from ,  date_to FROM Project_Staff WHERE project_id IN( SELECT project_id FROM Project_Staff GROUP BY project_id ORDER BY count(*) DESC LIMIT 1 ) UNION SELECT date_from ,  date_to FROM Project_Staff WHERE role_code  =  'leader'",
      "SELECT date_from ,  date_to FROM Project_Staff WHERE role_code  =  'researcher'",
      "SELECT date_from ,  date_to FROM Project_Staff WHERE role_code  =  'researcher'",
      "SELECT count(DISTINCT role_code) FROM Project_Staff",
      "SELECT count(DISTINCT role_code) FROM Project_Staff",
      "SELECT T1.project_id ,  count(*) FROM Project_Staff AS T1 JOIN Projects AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id ORDER BY count(*) ASC",
      "SELECT T1.project_id ,  count(*) FROM Project_Staff AS T1 JOIN Projects AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id ORDER BY count(*) ASC",
      "SELECT date_from FROM Project_Staff ORDER BY date_from ASC LIMIT 1",
      "SELECT date_from FROM Project_Staff ORDER BY date_from ASC LIMIT 1",
      "SELECT count(*) FROM Project_Staff WHERE role_code  =  'leader' OR date_from  <  '1989-04-24 23:51:54'",
      "SELECT count(*) FROM Project_Staff WHERE role_code  =  'leader' OR date_from  <  '1989-04-24 23:51:54'",
      "SELECT date_to FROM Project_Staff ORDER BY date_to DESC LIMIT 1",
      "SELECT date_to FROM Project_Staff ORDER BY date_to DESC LIMIT 1",
      "SELECT role_code FROM Project_Staff WHERE date_from  >  '2003-04-19 15:06:20' AND date_to  <  '2016-03-15 00:33:18'",
      "SELECT role_code FROM Project_Staff WHERE date_from  >  '2003-04-19 15:06:20' AND date_to  <  '2016-03-15 00:33:18'",
      "SELECT role_code FROM Project_Staff GROUP BY role_code ORDER BY count(*) DESC LIMIT 1",
      "SELECT role_code FROM Project_Staff GROUP BY role_code ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "tracking_grants_for_research",
    "table": "Projects",
    "questions": [
      "List the project details of the project both producing patent and paper as outcomes.",
      "What are the details of the project that is producing both patents and papers as outcomes?",
      "List the project details of the projects which did not hire any staff for a researcher role.",
      "What are the details for all projects that did not hire any staff in a research role?",
      "List the project details of the projects with the research outcome described with the substring 'Published'.",
      "What are the details for the project whose research has been published?",
      "Which project made the most number of outcomes? List the project details and the project id.",
      "What are the details and id of the project with the most outcomes?",
      "Which projects have no outcome? List the project details.",
      "What are the details of the project with no outcomes?",
      "List the organisation id with the maximum outcome count, and the count.",
      "What is the id of the organization with the maximum number of outcomes and how many outcomes are there?",
      "List the project details of the projects launched by the organisation",
      "What are the details for the projects which were launched by the organization with the most projects?",
      "How many tasks does each project have? List the task count and the project detail.",
      "For each project id, how many tasks are there?"
    ],
    "col_names": [
      "project_id",
      "organisation_id",
      "project_details"
    ],
    "standard_answer": [
      "SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id WHERE T2.outcome_code  =  'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id WHERE T2.outcome_code  =  'Patent'",
      "SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id WHERE T2.outcome_code  =  'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id WHERE T2.outcome_code  =  'Patent'",
      "SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_Staff WHERE role_code  =  'researcher' )",
      "SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_Staff WHERE role_code  =  'researcher' )",
      "SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id JOIN Research_outcomes AS T3 ON T2.outcome_code  =  T3.outcome_code WHERE T3.outcome_description LIKE '%Published%'",
      "SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id JOIN Research_outcomes AS T3 ON T2.outcome_code  =  T3.outcome_code WHERE T3.outcome_description LIKE '%Published%'",
      "SELECT T1.project_details ,  T1.project_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.project_details ,  T1.project_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_outcomes )",
      "SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_outcomes )",
      "SELECT T1.organisation_id ,  count(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.organisation_id ,  count(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT project_details FROM Projects WHERE organisation_id IN ( SELECT organisation_id FROM Projects GROUP BY organisation_id ORDER BY count(*) DESC LIMIT 1 )",
      "SELECT project_details FROM Projects WHERE organisation_id IN ( SELECT organisation_id FROM Projects GROUP BY organisation_id ORDER BY count(*) DESC LIMIT 1 )",
      "SELECT count(*) ,  T1.project_details FROM Projects AS T1 JOIN Tasks AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id",
      "SELECT count(*) ,  T1.project_details FROM Projects AS T1 JOIN Tasks AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id"
    ]
  },
  {
    "database": "tracking_grants_for_research",
    "table": "Research_Outcomes",
    "questions": [],
    "col_names": [
      "outcome_code",
      "outcome_description"
    ],
    "standard_answer": []
  },
  {
    "database": "tracking_grants_for_research",
    "table": "Research_Staff",
    "questions": [
      "List the research staff details, and order in ascending order.",
      "What details are there on the research staff? List the result in ascending alphabetical order."
    ],
    "col_names": [
      "staff_id",
      "employer_organisation_id",
      "staff_details"
    ],
    "standard_answer": [
      "SELECT staff_details FROM Research_Staff ORDER BY staff_details ASC",
      "SELECT staff_details FROM Research_Staff ORDER BY staff_details ASC"
    ]
  },
  {
    "database": "tracking_grants_for_research",
    "table": "Staff_Roles",
    "questions": [
      "What is the complete description of the researcher role.",
      "What is the complete description of the job of a researcher?",
      "Show the role description and the id of the project staff involved in most number of project outcomes?",
      "For each staff id, what is the description of the role that is involved with the most number of projects?"
    ],
    "col_names": [
      "role_code",
      "role_description"
    ],
    "standard_answer": [
      "SELECT role_description FROM Staff_Roles WHERE role_code  =  'researcher'",
      "SELECT role_description FROM Staff_Roles WHERE role_code  =  'researcher'",
      "SELECT T1.role_description ,  T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code  =  T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id  =  T3.project_id GROUP BY T2.staff_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.role_description ,  T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code  =  T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id  =  T3.project_id GROUP BY T2.staff_id ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "tracking_grants_for_research",
    "table": "Tasks",
    "questions": [
      "What are the task details, task id and project id for the projects which are detailed as 'omnis' or  have more than 2 outcomes?",
      "What are the task details, task ids, and project ids for the progrects that are detailed as 'omnis' or have at least 3 outcomes?",
      "How many tasks are there in total?",
      "How many tasks are there?"
    ],
    "col_names": [
      "task_id",
      "project_id",
      "task_details",
      "eg Agree Objectives"
    ],
    "standard_answer": [
      "SELECT T1.task_details ,  T1.task_id ,  T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id  =  T2.project_id WHERE T2.project_details  =  'omnis' UNION SELECT T1.task_details ,  T1.task_id ,  T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id  =  T2.project_id JOIN Project_outcomes AS T3 ON T2.project_id  =  T3.project_id GROUP BY T2.project_id HAVING count(*)  >  2",
      "SELECT T1.task_details ,  T1.task_id ,  T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id  =  T2.project_id WHERE T2.project_details  =  'omnis' UNION SELECT T1.task_details ,  T1.task_id ,  T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id  =  T2.project_id JOIN Project_outcomes AS T3 ON T2.project_id  =  T3.project_id GROUP BY T2.project_id HAVING count(*)  >  2",
      "SELECT count(*) FROM Tasks",
      "SELECT count(*) FROM Tasks"
    ]
  },
  {
    "database": "employee_hire_evaluation",
    "table": "employee",
    "questions": [],
    "col_names": [
      "Employee_ID",
      "Name",
      "Age",
      "City"
    ],
    "standard_answer": []
  },
  {
    "database": "employee_hire_evaluation",
    "table": "shop",
    "questions": [],
    "col_names": [
      "Shop_ID",
      "Name",
      "Location",
      "District",
      "Number_products",
      "Manager_name"
    ],
    "standard_answer": []
  },
  {
    "database": "employee_hire_evaluation",
    "table": "hiring",
    "questions": [],
    "col_names": [
      "Shop_ID",
      "Employee_ID",
      "Start_from",
      "Is_full_time"
    ],
    "standard_answer": []
  },
  {
    "database": "employee_hire_evaluation",
    "table": "evaluation",
    "questions": [],
    "col_names": [
      "Employee_ID",
      "Year_awarded",
      "Bonus"
    ],
    "standard_answer": []
  },
  {
    "database": "movie_1",
    "table": "Movie",
    "questions": [
      "Find the titles of all movies directed by steven spielberg.",
      "What are the names of all movies directed by Steven Spielberg?",
      "What is the name of the movie produced after 2000 and directed by James Cameron?",
      "What are the titles of all movies that James Cameron directed after 2000?",
      "How many movies were made before 2000?",
      "How many movies were made before 2000?",
      "Who is the director of movie Avatar?",
      "Who directed Avatar?",
      "Find all years that have a movie that received a rating of 4 or 5, and sort them in increasing order of year.",
      "In what years did a movie receive a 4 or 5 star rating, and list the years from oldest to most recently?",
      "What are the names of directors who directed movies with 5 star rating? Also return the title of these movies.",
      "What are the names of the directors who created a movie with a 5 star rating, and what was the name of those movies?",
      "Find the titles of all movies that have no ratings.",
      "What are the titles of all movies that have not been rated?",
      "What is the name of the most recent movie?",
      "What is the title of the newest movie?",
      "What is the names of movies whose created year is after all movies directed by Steven Spielberg?",
      "What are the names of all movies that were created after the most recent Steven Spielberg film?",
      "Find the titles of all movies not reviewed by Chris Jackson.",
      "What are the titles of all movies that were not reviewed by Chris Jackson?",
      "For all directors who directed more than one movie, return the titles of all movies directed by them, along with the director name. Sort by director name, then movie title.",
      "For all directors who have directed more than one movie, what movies have they directed and what are their names?",
      "For directors who had more than one movie, return the titles and produced years of all movies directed by them.",
      "For each director who directed more than one movie, what are the titles and dates of release for all those movies?",
      "What are the names of the directors who made exactly one movie?",
      "What are the names of all directors who made one movie?",
      "What are the names of the directors who made exactly one movie excluding director NULL?",
      "What are the names of all directors who have made one movie except for the director named NULL?",
      "How many movie reviews does each director get?",
      "For each director, how many reviews have they received?",
      "What are names of the movies that are either made before 1980 or directed by James Cameron?",
      "What are the names of all movies made before 1980 or had James Cameron as the director?"
    ],
    "col_names": [
      "mID",
      "title",
      "year",
      "director"
    ],
    "standard_answer": [
      "SELECT title FROM Movie WHERE director = 'Steven Spielberg'",
      "SELECT title FROM Movie WHERE director = 'Steven Spielberg'",
      "SELECT title FROM Movie WHERE director = 'James Cameron' AND YEAR  >  2000",
      "SELECT title FROM Movie WHERE director = 'James Cameron' AND YEAR  >  2000",
      "SELECT count(*) FROM Movie WHERE YEAR  <  2000",
      "SELECT count(*) FROM Movie WHERE YEAR  <  2000",
      "SELECT director FROM Movie WHERE title  = 'Avatar'",
      "SELECT director FROM Movie WHERE title  = 'Avatar'",
      "SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID WHERE T2.stars  >=  4 ORDER BY T1.year",
      "SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID WHERE T2.stars  >=  4 ORDER BY T1.year",
      "SELECT T1.director ,  T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID WHERE T2.stars  =  5",
      "SELECT T1.director ,  T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID WHERE T2.stars  =  5",
      "SELECT title FROM Movie WHERE mID NOT IN (SELECT mID FROM Rating)",
      "SELECT title FROM Movie WHERE mID NOT IN (SELECT mID FROM Rating)",
      "SELECT title FROM Movie WHERE YEAR  =  (SELECT max(YEAR) FROM Movie)",
      "SELECT title FROM Movie WHERE YEAR  =  (SELECT max(YEAR) FROM Movie)",
      "SELECT title FROM Movie WHERE YEAR  >  (SELECT max(YEAR) FROM Movie WHERE director  =  \"Steven Spielberg\")",
      "SELECT title FROM Movie WHERE YEAR  >  (SELECT max(YEAR) FROM Movie WHERE director  =  \"Steven Spielberg\")",
      "SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  'Chris Jackson'",
      "SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  'Chris Jackson'",
      "SELECT T1.title ,  T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director  =  T2.director WHERE T1.title != T2.title ORDER BY T1.director ,  T1.title",
      "SELECT T1.title ,  T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director  =  T2.director WHERE T1.title != T2.title ORDER BY T1.director ,  T1.title",
      "SELECT T1.title ,  T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director  =  T2.director WHERE T1.title != T2.title",
      "SELECT T1.title ,  T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director  =  T2.director WHERE T1.title != T2.title",
      "SELECT director FROM Movie GROUP BY director HAVING count(*)  =  1",
      "SELECT director FROM Movie GROUP BY director HAVING count(*)  =  1",
      "SELECT director FROM Movie WHERE director != \"null\" GROUP BY director HAVING count(*)  =  1",
      "SELECT director FROM Movie WHERE director != \"null\" GROUP BY director HAVING count(*)  =  1",
      "SELECT count(*) ,  T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID GROUP BY T1.director",
      "SELECT count(*) ,  T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID GROUP BY T1.director",
      "SELECT title FROM Movie WHERE director  =  \"James Cameron\" OR YEAR   <  1980",
      "SELECT title FROM Movie WHERE director  =  \"James Cameron\" OR YEAR   <  1980"
    ]
  },
  {
    "database": "movie_1",
    "table": "Reviewer",
    "questions": [
      "How many reviewers listed?",
      "How many reviewers are there?",
      "What is the id of the reviewer whose name has substring \u201cMike\u201d?",
      "What is the id of the reviewer whose name includes the word \"Mike\"?",
      "What is the reviewer id of Daniel Lewis?",
      "What is the id of the reviewer named Daniel Lewis?",
      "Find the names of all reviewers who have ratings with a NULL value for the date.",
      "What are the different names of all reviewers whose ratings do not have a date field?",
      "Return all reviewer names and movie names together in a single list.",
      "What are the names of all the reviewers and movie names?"
    ],
    "col_names": [
      "rID",
      "name"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Reviewer",
      "SELECT count(*) FROM Reviewer",
      "SELECT rID FROM Reviewer WHERE name LIKE \"%Mike%\"",
      "SELECT rID FROM Reviewer WHERE name LIKE \"%Mike%\"",
      "SELECT rID FROM Reviewer WHERE name  =  \"Daniel Lewis\"",
      "SELECT rID FROM Reviewer WHERE name  =  \"Daniel Lewis\"",
      "SELECT DISTINCT name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID  =  T2.rID WHERE ratingDate  =  \"null\"",
      "SELECT DISTINCT name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID  =  T2.rID WHERE ratingDate  =  \"null\"",
      "SELECT name FROM Reviewer UNION SELECT title FROM Movie",
      "SELECT name FROM Reviewer UNION SELECT title FROM Movie"
    ]
  },
  {
    "database": "movie_1",
    "table": "Rating",
    "questions": [
      "What is the total number of ratings that has more than 3 stars?",
      "How many movie ratings have more than 3 stars?",
      "What is the lowest and highest rating star?",
      "What is the maximum and mininum number of stars a rating can receive?",
      "What is the average rating star for each reviewer?",
      "What is the average number of stars that each reviewer awards for a movie?",
      "What is the average rating stars and title for the oldest movie?",
      "For the oldest movie listed, what is its average rating and title?",
      "What is the maximum stars and year for the most recent movie?",
      "What is highest rating for the most recent movie and when was it released?",
      "What are the titles and directors of the movies whose star is greater than the average stars of the movies directed by James Cameron?",
      "What are the titles and directors of all movies that have a rating higher than the average James Cameron film rating?",
      "Return reviewer name, movie title, stars, and ratingDate. And sort the data first by reviewer name, then by movie title, and lastly by number of stars.",
      "What is the reviewer name, film title, movie rating, and rating date  for every movie ordered by reviewer name, movie title, then finally rating?",
      "Find the names of all reviewers who have contributed three or more ratings.",
      "What are the names of all reviewers that have rated 3 or more movies?",
      "Find the names of all reviewers who rated Gone with the Wind.",
      "What are the names of all the different reviewers who rates Gone with the Wind?",
      "Find the names of all directors whose movies are rated by Sarah Martinez.",
      "What are the names of all directors whose movies have been reviewed by Sarah Martinez?",
      "For any rating where the name of reviewer is the same as the director of the movie, return the reviewer name, movie title, and number of stars.",
      "What are the different reviewer names, movie titles, and stars for every rating where the reviewer had the same name as the director?",
      "Find the movies with the highest average rating. Return the movie titles and average rating.",
      "What are the movie titles with the highest average rating and what are those ratings?",
      "What are the movie titles and average rating of the movies with the lowest average rating?",
      "What are the titles and average ratings for all movies that have the lowest average rating?",
      "What are the names and years of the movies that has the top 3 highest rating star?",
      "What are the names and years released for the movies with the top 3 highest ratings?",
      "For each director, return the director's name together with the title of the movie they directed that received the highest rating among all of their movies, and the value of that rating. Ignore movies whose director is NULL.",
      "For each director, what are the titles and ratings for all the movies they reviewed?",
      "Find the title and star rating of the movie that got the least rating star for each reviewer.",
      "For each reviewer id, what is the title and rating for the movie with the smallest rating?",
      "Find the title and score of the movie with the lowest rating among all movies directed by each director.",
      "For each director, what is the title and score of their most poorly rated movie?",
      "What is the name of the movie that is rated by most of times?",
      "What is the name of the movie that has been reviewed the most?",
      "What are the titles of all movies that have rating star is between 3 and 5?",
      "What are the titles of all movies that have between 3 and 5 stars?",
      "Find the names of reviewers who had given higher than 3 star ratings.",
      "What are the names of the reviewers who have rated a movie more than 3 stars before?",
      "Find the average rating star for each movie that are not reviewed by Brittany Harris.",
      "What is the average rating for each movie that has never been reviewed by Brittany Harris?",
      "What are the ids of the movies that are not reviewed by Brittany Harris.",
      "What are the ids of all moviest hat have not been reviewed by Britanny Harris?",
      "Find the average rating star for each movie that received at least 2 ratings.",
      "For each movie that received more than 3 reviews, what is the average rating?",
      "find the ids of reviewers who did not give 4 star.",
      "What are the ids of all reviewers who did not give 4 stars?",
      "Find the ids of reviewers who didn't only give 4 star.",
      "What are the ids of all reviewers who have not given 4 stars at least once?",
      "What are names of the movies that are either made after 2000 or reviewed by Brittany Harris?",
      "What are the names of all movies that were made after 2000 or reviewed by Brittany Harris?",
      "What are the names of reviewers who had rated 3 star and 4 star?",
      "What are the names of all reviewers that have given 3 or 4 stars for reviews?",
      "What are the names of movies that get 3 star and 4 star?",
      "What are the names of all movies that received 3 or 4 stars?"
    ],
    "col_names": [
      "rID",
      "mID",
      "stars",
      "ratingDate"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Rating WHERE stars  >  3",
      "SELECT count(*) FROM Rating WHERE stars  >  3",
      "SELECT max(stars) ,  min(stars) FROM Rating",
      "SELECT max(stars) ,  min(stars) FROM Rating",
      "SELECT T2.name ,  avg(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID GROUP BY T2.name",
      "SELECT T2.name ,  avg(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID GROUP BY T2.name",
      "SELECT avg(T1.stars) ,  T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.year  =  (SELECT min(YEAR) FROM Movie)",
      "SELECT avg(T1.stars) ,  T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.year  =  (SELECT min(YEAR) FROM Movie)",
      "SELECT max(T1.stars) ,  T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.year  =  (SELECT max(YEAR) FROM Movie)",
      "SELECT max(T1.stars) ,  T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.year  =  (SELECT max(YEAR) FROM Movie)",
      "SELECT T2.title ,  T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars  >  (SELECT avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.director  =  \"James Cameron\")",
      "SELECT T2.title ,  T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars  >  (SELECT avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.director  =  \"James Cameron\")",
      "SELECT T3.name ,  T2.title ,  T1.stars ,  T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID ORDER BY T3.name ,  T2.title ,  T1.stars",
      "SELECT T3.name ,  T2.title ,  T1.stars ,  T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID ORDER BY T3.name ,  T2.title ,  T1.stars",
      "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID GROUP BY T1.rID HAVING COUNT(*)  >=  3",
      "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID GROUP BY T1.rID HAVING COUNT(*)  >=  3",
      "SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T2.title  =  'Gone with the Wind'",
      "SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T2.title  =  'Gone with the Wind'",
      "SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  'Sarah Martinez'",
      "SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  'Sarah Martinez'",
      "SELECT DISTINCT T3.name ,  T2.title ,  T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T2.director  =  T3.name",
      "SELECT DISTINCT T3.name ,  T2.title ,  T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T2.director  =  T3.name",
      "SELECT T2.title ,  avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) DESC LIMIT 1",
      "SELECT T2.title ,  avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) DESC LIMIT 1",
      "SELECT T2.title ,  avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) LIMIT 1",
      "SELECT T2.title ,  avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) LIMIT 1",
      "SELECT T2.title ,  T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID ORDER BY T1.stars DESC LIMIT 3",
      "SELECT T2.title ,  T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID ORDER BY T1.stars DESC LIMIT 3",
      "SELECT T2.title ,  T1.stars ,  T2.director ,  max(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE director != \"null\" GROUP BY director",
      "SELECT T2.title ,  T1.stars ,  T2.director ,  max(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE director != \"null\" GROUP BY director",
      "SELECT T2.title ,  T1.rID ,  T1.stars ,  min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.rID",
      "SELECT T2.title ,  T1.rID ,  T1.stars ,  min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.rID",
      "SELECT T2.title ,  T1.stars ,  T2.director ,  min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T2.director",
      "SELECT T2.title ,  T1.stars ,  T2.director ,  min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T2.director",
      "SELECT T2.title ,  T1.mID FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY count(*) DESC LIMIT 1",
      "SELECT T2.title ,  T1.mID FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY count(*) DESC LIMIT 1",
      "SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars BETWEEN 3 AND 5",
      "SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars BETWEEN 3 AND 5",
      "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  >  3",
      "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  >  3",
      "SELECT mID ,  avg(stars) FROM Rating WHERE mID NOT IN (SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T2.name  =  \"Brittany Harris\") GROUP BY mID",
      "SELECT mID ,  avg(stars) FROM Rating WHERE mID NOT IN (SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T2.name  =  \"Brittany Harris\") GROUP BY mID",
      "SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T2.name  =  \"Brittany Harris\"",
      "SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T2.name  =  \"Brittany Harris\"",
      "SELECT mID ,  avg(stars) FROM Rating GROUP BY mID HAVING count(*)  >=  2",
      "SELECT mID ,  avg(stars) FROM Rating GROUP BY mID HAVING count(*)  >=  2",
      "SELECT rID FROM Rating EXCEPT SELECT rID FROM Rating WHERE stars  =  4",
      "SELECT rID FROM Rating EXCEPT SELECT rID FROM Rating WHERE stars  =  4",
      "SELECT rID FROM Rating WHERE stars != 4",
      "SELECT rID FROM Rating WHERE stars != 4",
      "SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  'Brittany Harris' OR T2.year  >  2000",
      "SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  'Brittany Harris' OR T2.year  >  2000",
      "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  =  3 INTERSECT SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  =  4",
      "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  =  3 INTERSECT SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  =  4",
      "SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars  =  3 INTERSECT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars  =  4",
      "SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars  =  3 INTERSECT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars  =  4"
    ]
  },
  {
    "database": "network_1",
    "table": "Highschooler",
    "questions": [],
    "col_names": [
      "ID",
      "name",
      "grade"
    ],
    "standard_answer": []
  },
  {
    "database": "network_1",
    "table": "Friend",
    "questions": [],
    "col_names": [
      "student_id",
      "friend_id"
    ],
    "standard_answer": []
  },
  {
    "database": "network_1",
    "table": "Likes",
    "questions": [],
    "col_names": [
      "student_id",
      "liked_id"
    ],
    "standard_answer": []
  },
  {
    "database": "poker_player",
    "table": "poker_player",
    "questions": [],
    "col_names": [
      "Poker_Player_ID",
      "People_ID",
      "Final_Table_Made",
      "Best_Finish",
      "Money_Rank",
      "Earnings"
    ],
    "standard_answer": []
  },
  {
    "database": "poker_player",
    "table": "people",
    "questions": [],
    "col_names": [
      "People_ID",
      "Nationality",
      "Name",
      "Birth_Date",
      "Height"
    ],
    "standard_answer": []
  },
  {
    "database": "program_share",
    "table": "program",
    "questions": [
      "how many programs are there?",
      "Count the number of programs.",
      "list all the names of programs, ordering by launch time.",
      "What is the list of program names, sorted by the order of launch date?",
      "List the name, origin and owner of each program.",
      "What are the name, origin and owner of each program?",
      "find the name of the program that was launched most recently.",
      "Which program was launched most recently? Return the program name.",
      "Find the names of programs that are never broadcasted in the morning.",
      "Which programs are never broadcasted in the morning? Give me the names of the programs.",
      "find the program owners that have some programs in both morning and night time.",
      "Who are the owners of the programs that broadcast both in the morning and at night?",
      "List all program origins in the alphabetical order.",
      "What is the list of program origins ordered alphabetically?",
      "find the names of programs whose origin is not in Beijing.",
      "Which programs' origins are not \"Beijing\"? Give me the program names.",
      "Find the name of the program that is broadcast most frequently.",
      "Which program is broadcast most frequently? Give me the program name."
    ],
    "col_names": [
      "Program_ID",
      "Name",
      "Origin",
      "Launch",
      "Owner"
    ],
    "standard_answer": [
      "SELECT count(*) FROM program",
      "SELECT count(*) FROM program",
      "SELECT name FROM program ORDER BY launch",
      "SELECT name FROM program ORDER BY launch",
      "SELECT name ,  origin ,  OWNER FROM program",
      "SELECT name ,  origin ,  OWNER FROM program",
      "SELECT name FROM program ORDER BY launch DESC LIMIT 1",
      "SELECT name FROM program ORDER BY launch DESC LIMIT 1",
      "SELECT name FROM program EXCEPT SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  \"Morning\"",
      "SELECT name FROM program EXCEPT SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  \"Morning\"",
      "SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  \"Morning\" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  \"Night\"",
      "SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  \"Morning\" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  \"Night\"",
      "SELECT origin FROM program ORDER BY origin",
      "SELECT origin FROM program ORDER BY origin",
      "SELECT name FROM program WHERE origin != 'Beijing'",
      "SELECT name FROM program WHERE origin != 'Beijing'",
      "SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id GROUP BY t2.program_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id GROUP BY t2.program_id ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "program_share",
    "table": "channel",
    "questions": [
      "Find the names of channels that are not owned by CCTV.",
      "Which channels are not owned by CCTV? Give me the channel names.",
      "List all channel names ordered by their rating in percent from big to small.",
      "Give me a list of all the channel names sorted by the channel rating in descending order.",
      "What is the owner of the channel that has the highest rating ratio?",
      "Show me the owner of the channel with the highest rating.",
      "find the total percentage share of all channels owned by CCTV.",
      "What is the total share (in percent) of all the channels owned by CCTV?",
      "Find the names of the channels that are broadcast in the morning.",
      "Which channels are broadcast in the morning? Give me the channel names.",
      "what are the names of the channels that broadcast in both morning and night?",
      "Which channels broadcast both in the morning and at night? Give me the channel names.",
      "what is the number of different channel owners?",
      "Count the number of distinct channel owners.",
      "What are the names of the channels owned by CCTV or HBS?",
      "List the names of all the channels owned by either CCTV or HBS",
      "Find the total rating ratio for each channel owner.",
      "What is the total rating of channel for each channel owner?"
    ],
    "col_names": [
      "Channel_ID",
      "Name",
      "Owner",
      "Share_in_percent",
      "Rating_in_percent"
    ],
    "standard_answer": [
      "SELECT name FROM channel WHERE OWNER != 'CCTV'",
      "SELECT name FROM channel WHERE OWNER != 'CCTV'",
      "SELECT name FROM channel ORDER BY rating_in_percent DESC",
      "SELECT name FROM channel ORDER BY rating_in_percent DESC",
      "SELECT OWNER FROM channel ORDER BY rating_in_percent DESC LIMIT 1",
      "SELECT OWNER FROM channel ORDER BY rating_in_percent DESC LIMIT 1",
      "SELECT sum(Share_in_percent) FROM channel WHERE OWNER  =  'CCTV'",
      "SELECT sum(Share_in_percent) FROM channel WHERE OWNER  =  'CCTV'",
      "SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  'Morning'",
      "SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  'Morning'",
      "SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  'Morning' INTERSECT SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  'Night'",
      "SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  'Morning' INTERSECT SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  'Night'",
      "SELECT count(DISTINCT OWNER) FROM channel",
      "SELECT count(DISTINCT OWNER) FROM channel",
      "SELECT name FROM channel WHERE OWNER  =  'CCTV' OR OWNER  =  'HBS'",
      "SELECT name FROM channel WHERE OWNER  =  'CCTV' OR OWNER  =  'HBS'",
      "SELECT sum(Rating_in_percent) ,  OWNER FROM channel GROUP BY OWNER",
      "SELECT sum(Rating_in_percent) ,  OWNER FROM channel GROUP BY OWNER"
    ]
  },
  {
    "database": "program_share",
    "table": "broadcast",
    "questions": [
      "how many programs are broadcast in each time section of the day?",
      "Count the number of programs broadcast for each time section of a day.",
      "find the number of different programs that are broadcast during night time.",
      "How many distinct programs are broadcast at \"Night\" time?"
    ],
    "col_names": [
      "Channel_ID",
      "Program_ID",
      "Time_of_day"
    ],
    "standard_answer": [
      "SELECT count(*) ,  time_of_day FROM broadcast GROUP BY time_of_day",
      "SELECT count(*) ,  time_of_day FROM broadcast GROUP BY time_of_day",
      "SELECT count(DISTINCT program_id) FROM broadcast WHERE time_of_day  =  'Night'",
      "SELECT count(DISTINCT program_id) FROM broadcast WHERE time_of_day  =  'Night'"
    ]
  },
  {
    "database": "program_share",
    "table": "broadcast_share",
    "questions": [],
    "col_names": [
      "Channel_ID",
      "Program_ID",
      "Date",
      "Share_in_percent"
    ],
    "standard_answer": []
  },
  {
    "database": "aircraft",
    "table": "pilot",
    "questions": [
      "What are the name of pilots aged 25 or older?",
      "what is the name of every pilot who is at least 25 years old?",
      "List all pilot names in ascending alphabetical order.",
      "What are the names of the pilots in alphabetical order?",
      "List names of all pilot aged 30 or younger in descending alphabetical order.",
      "What are the names of all pilots 30 years old or young in descending alphabetical order?",
      "List names of all pilot in descending order of age.",
      "What are the names of all pilots listed by descending age?",
      "find the name and age of the pilot who has won the most number of times among the pilots who are younger than 30.",
      "What is the name and age of the pilot younger than 30 who has won the most number of times?",
      "what is the name and age of the youngest winning pilot?",
      "How old is the youngest winning pilot and what is their name?",
      "find the name of pilots who did not win the matches held in the country of Australia.",
      "What are the names of the pilots that have not won any matches in Australia?"
    ],
    "col_names": [
      "Pilot_Id",
      "Name",
      "Age"
    ],
    "standard_answer": [
      "SELECT Name FROM pilot WHERE Age  >=  25",
      "SELECT Name FROM pilot WHERE Age  >=  25",
      "SELECT Name FROM pilot ORDER BY Name ASC",
      "SELECT Name FROM pilot ORDER BY Name ASC",
      "SELECT Name FROM pilot WHERE Age  <=  30 ORDER BY Name DESC",
      "SELECT Name FROM pilot WHERE Age  <=  30 ORDER BY Name DESC",
      "SELECT Name FROM pilot ORDER BY Age DESC",
      "SELECT Name FROM pilot ORDER BY Age DESC",
      "SELECT t1.name ,  t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id  =  t2.winning_pilot WHERE t1.age  <  30 GROUP BY t2.winning_pilot ORDER BY count(*) DESC LIMIT 1",
      "SELECT t1.name ,  t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id  =  t2.winning_pilot WHERE t1.age  <  30 GROUP BY t2.winning_pilot ORDER BY count(*) DESC LIMIT 1",
      "SELECT t1.name ,  t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id  =  t2.winning_pilot ORDER BY t1.age LIMIT 1",
      "SELECT t1.name ,  t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id  =  t2.winning_pilot ORDER BY t1.age LIMIT 1",
      "SELECT name FROM pilot WHERE pilot_id NOT IN (SELECT Winning_Pilot  FROM MATCH WHERE country  =  'Australia')",
      "SELECT name FROM pilot WHERE pilot_id NOT IN (SELECT Winning_Pilot  FROM MATCH WHERE country  =  'Australia')"
    ]
  },
  {
    "database": "aircraft",
    "table": "aircraft",
    "questions": [
      "How many aircrafts are there?",
      "What is the number of aircraft?",
      "List the description of all aircrafts.",
      "What are the descriptions for the aircrafts?",
      "Please show the names of aircrafts associated with airport with name \"London Gatwick\".",
      "What are the names of all the aircrafts associated with London Gatwick airport?",
      "Please show the names and descriptions of aircrafts associated with airports that have a total number of passengers bigger than 10000000.",
      "What are the names and descriptions of aircrafts associated with an airport that has more total passengers than 10000000?",
      "What is the average total number of passengers of airports that are associated with aircraft \"Robinson R-22\"?",
      "What is the average total number of passengers for all airports that the aircraft \"Robinson R-22\" visits?",
      "Please list the location and the winning aircraft name.",
      "What is the location and name of the winning aircraft?",
      "List the name of the aircraft that has been named winning aircraft the most number of times.",
      "What is the name of the aircraft that has won an award the most?",
      "List the names of aircrafts and the number of times it won matches.",
      "For each aircraft that has won an award, what is its name and how many time has it won?",
      "List the names of aircrafts and that won matches at least twice.",
      "What are the names of all aircrafts that have won a match at least twice?",
      "List the names of aircrafts and that did not win any match.",
      "What are the names of all aicrafts that have never won any match?",
      "Show the names of aircrafts that are associated with both an airport named \"London Heathrow\" and an airport named \"London Gatwick\"",
      "What are the names of all aircrafts that are associated with both London Heathrow and Gatwick airports?"
    ],
    "col_names": [
      "Aircraft_ID",
      "Aircraft",
      "Description",
      "Max_Gross_Weight",
      "Total_disk_area",
      "Max_disk_Loading"
    ],
    "standard_answer": [
      "SELECT count(*) FROM aircraft",
      "SELECT count(*) FROM aircraft",
      "SELECT Description FROM aircraft",
      "SELECT Description FROM aircraft",
      "SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Airport_Name  =  \"London Gatwick\"",
      "SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Airport_Name  =  \"London Gatwick\"",
      "SELECT T1.Aircraft ,  T1.Description FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Total_Passengers  >  10000000",
      "SELECT T1.Aircraft ,  T1.Description FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Total_Passengers  >  10000000",
      "SELECT avg(T3.Total_Passengers) FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T1.Aircraft  =  \"Robinson R-22\"",
      "SELECT avg(T3.Total_Passengers) FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T1.Aircraft  =  \"Robinson R-22\"",
      "SELECT T2.Location ,  T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft",
      "SELECT T2.Location ,  T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft",
      "SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T1.Aircraft ,  COUNT(*) FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft",
      "SELECT T1.Aircraft ,  COUNT(*) FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft",
      "SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft HAVING COUNT(*)  >=  2",
      "SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft HAVING COUNT(*)  >=  2",
      "SELECT Aircraft FROM aircraft WHERE Aircraft_ID NOT IN (SELECT Winning_Aircraft FROM MATCH)",
      "SELECT Aircraft FROM aircraft WHERE Aircraft_ID NOT IN (SELECT Winning_Aircraft FROM MATCH)",
      "SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Airport_Name  =  \"London Heathrow\" INTERSECT SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Airport_Name  =  \"London Gatwick\"",
      "SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Airport_Name  =  \"London Heathrow\" INTERSECT SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Airport_Name  =  \"London Gatwick\""
    ]
  },
  {
    "database": "aircraft",
    "table": "match",
    "questions": [],
    "col_names": [
      "Round",
      "Location",
      "Country",
      "Date",
      "Fastest_Qualifying",
      "Winning_Pilot",
      "Winning_Aircraft"
    ],
    "standard_answer": []
  },
  {
    "database": "aircraft",
    "table": "airport",
    "questions": [
      "What is the average number of international passengers of all airports?",
      "What is the average number of international passengers for an airport?",
      "What are the number of international and domestic passengers of the airport named London \"Heathrow\"?",
      "How many international and domestic passengers are there in the airport London Heathrow?",
      "What are the total number of Domestic Passengers of airports that contain the word \"London\".",
      "What are the total number of domestic passengers at all London airports?",
      "What are the maximum and minimum number of transit passengers of all aiports.",
      "What is the maximum and mininum number of transit passengers for all airports?",
      "Show all information on the airport that has the largest number of international passengers.",
      "What is all the information on the airport with the largest number of international passengers?"
    ],
    "col_names": [
      "Airport_ID",
      "Airport_Name",
      "Total_Passengers",
      "%_Change_2007",
      "International_Passengers",
      "Domestic_Passengers",
      "Transit_Passengers",
      "Aircraft_Movements",
      "Freight_Metric_Tonnes"
    ],
    "standard_answer": [
      "SELECT avg(International_Passengers) FROM airport",
      "SELECT avg(International_Passengers) FROM airport",
      "SELECT International_Passengers ,  Domestic_Passengers FROM airport WHERE Airport_Name  =  \"London Heathrow\"",
      "SELECT International_Passengers ,  Domestic_Passengers FROM airport WHERE Airport_Name  =  \"London Heathrow\"",
      "SELECT sum(Domestic_Passengers) FROM airport WHERE Airport_Name LIKE \"%London%\"",
      "SELECT sum(Domestic_Passengers) FROM airport WHERE Airport_Name LIKE \"%London%\"",
      "SELECT max(Transit_Passengers) ,  min(Transit_Passengers) FROM airport",
      "SELECT max(Transit_Passengers) ,  min(Transit_Passengers) FROM airport",
      "SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1",
      "SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1"
    ]
  },
  {
    "database": "aircraft",
    "table": "airport_aircraft",
    "questions": [],
    "col_names": [
      "ID",
      "Airport_ID",
      "Aircraft_ID"
    ],
    "standard_answer": []
  },
  {
    "database": "restaurant_1",
    "table": "Student",
    "questions": [
      "What is the age of student Linda Smith?",
      "What is the gender of the student Linda Smith?",
      "List all students' first names and last names who majored in 600.",
      "Which city does student Linda Smith live in?",
      "Advisor 1121 has how many students?",
      "Which Advisor has most of students? List advisor and the number of students.",
      "Which major has least number of students? List the major and the number of students.",
      "Which major has between 2 and 30 number of students? List major and the number of students.",
      "Which student's age is older than 18 and is majoring in 600? List each student's first and last name.",
      "List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.",
      "How long does student Linda Smith spend on the restaurant in total?",
      "How many times has the student Linda Smith visited Subway?",
      "When did Linda Smith visit Subway?",
      "Which student visited restaurant most often? List student's first name and last name."
    ],
    "col_names": [
      "StuID",
      "LName",
      "Fname",
      "Age",
      "Sex",
      "Major",
      "Advisor",
      "city_code"
    ],
    "standard_answer": [
      "SELECT Age FROM Student WHERE Fname = \"Linda\" AND Lname = \"Smith\";",
      "SELECT Sex FROM Student WHERE Fname = \"Linda\" AND Lname = \"Smith\";",
      "SELECT Fname , Lname FROM Student WHERE Major  =  600;",
      "SELECT city_code FROM Student WHERE Fname = \"Linda\" AND Lname = \"Smith\";",
      "SELECT count(*) FROM Student WHERE Advisor =  1121;",
      "SELECT Advisor ,  count(*) FROM Student GROUP BY Advisor ORDER BY count(Advisor) DESC LIMIT 1;",
      "SELECT Major ,  count(*) FROM Student GROUP BY Major ORDER BY count(Major) ASC LIMIT 1;",
      "SELECT Major ,  count(*) FROM Student GROUP BY Major HAVING count(Major) BETWEEN 2 AND 30;",
      "SELECT Fname , Lname FROM Student WHERE Age  >  18 AND Major = 600;",
      "SELECT Fname , Lname FROM Student WHERE Age  >  18 AND Major != 600 AND Sex = 'F';",
      "SELECT sum(Spent) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID WHERE Student.Fname = \"Linda\" AND Student.Lname = \"Smith\";",
      "SELECT count(*) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = \"Linda\" AND Student.Lname = \"Smith\" AND Restaurant.ResName = \"Subway\";",
      "SELECT TIME FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = \"Linda\" AND Student.Lname = \"Smith\" AND Restaurant.ResName = \"Subway\";",
      "SELECT Student.Fname , Student.Lname FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID GROUP BY Student.StuID ORDER BY count(*) DESC LIMIT 1;"
    ]
  },
  {
    "database": "restaurant_1",
    "table": "Restaurant",
    "questions": [
      "What is the address of the restaurant Subway?",
      "What is the rating of the restaurant Subway?",
      "Which restaurants have highest rating? List the restaurant name and its rating.",
      "How many restaurant is the Sandwich type restaurant?"
    ],
    "col_names": [
      "ResID",
      "ResName",
      "Address",
      "Rating"
    ],
    "standard_answer": [
      "SELECT Address FROM Restaurant WHERE ResName = \"Subway\";",
      "SELECT Rating FROM Restaurant WHERE ResName = \"Subway\";",
      "SELECT ResName , Rating FROM Restaurant ORDER BY Rating DESC LIMIT 1;",
      "SELECT count(*) FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID =  Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich'"
    ]
  },
  {
    "database": "restaurant_1",
    "table": "Type_Of_Restaurant",
    "questions": [],
    "col_names": [
      "ResID",
      "ResTypeID"
    ],
    "standard_answer": []
  },
  {
    "database": "restaurant_1",
    "table": "Restaurant_Type",
    "questions": [
      "What is the description of the restaurant type Sandwich?"
    ],
    "col_names": [
      "ResTypeID",
      "ResTypeName",
      "ResTypeDescription"
    ],
    "standard_answer": [
      "SELECT ResTypeDescription FROM Restaurant_Type WHERE ResTypeName = \"Sandwich\";"
    ]
  },
  {
    "database": "restaurant_1",
    "table": "Visits_Restaurant",
    "questions": [
      "At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in total."
    ],
    "col_names": [
      "StuID",
      "ResID",
      "Time",
      "Spent"
    ],
    "standard_answer": [
      "SELECT Restaurant.ResName ,  sum(Visits_Restaurant.Spent) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID GROUP BY Restaurant.ResID ORDER BY sum(Visits_Restaurant.Spent) ASC LIMIT 1;"
    ]
  },
  {
    "database": "customers_and_invoices",
    "table": "Customers",
    "questions": [
      "How many customers don't have an account?",
      "Count the number of customers who do not have an account.",
      "Show the unique first names, last names, and phone numbers for all customers with any account.",
      "What are the distinct first names, last names, and phone numbers for customers with accounts?",
      "Show customer ids who don't have an account.",
      "What are the customer ids for customers who do not have an account?",
      "Show the number of customers.",
      "Count the number of customers.",
      "Show the number of customers for each gender.",
      "How many customers are there of each gender?"
    ],
    "col_names": [
      "customer_id",
      "customer_first_name",
      "customer_middle_initial",
      "customer_last_name",
      "gender",
      "email_address",
      "login_name",
      "login_password",
      "phone_number",
      "town_city",
      "state_county_province",
      "country"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Customers WHERE customer_id NOT IN (SELECT customer_id FROM Accounts)",
      "SELECT count(*) FROM Customers WHERE customer_id NOT IN (SELECT customer_id FROM Accounts)",
      "SELECT DISTINCT T1.customer_first_name ,  T1.customer_last_name ,  T1.phone_number FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id  =  T2.customer_id",
      "SELECT DISTINCT T1.customer_first_name ,  T1.customer_last_name ,  T1.phone_number FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id  =  T2.customer_id",
      "SELECT customer_id FROM Customers EXCEPT SELECT customer_id FROM Accounts",
      "SELECT customer_id FROM Customers EXCEPT SELECT customer_id FROM Accounts",
      "SELECT count(*) FROM Customers",
      "SELECT count(*) FROM Customers",
      "SELECT gender ,  count(*) FROM Customers GROUP BY gender",
      "SELECT gender ,  count(*) FROM Customers GROUP BY gender"
    ]
  },
  {
    "database": "customers_and_invoices",
    "table": "Orders",
    "questions": [
      "What is the customer last name, id and phone number with most number of orders?",
      "Return the last name, id and phone number of the customer who has made the greatest number of orders."
    ],
    "col_names": [
      "order_id",
      "customer_id",
      "date_order_placed",
      "order_details"
    ],
    "standard_answer": [
      "SELECT T2.customer_last_name ,  T1.customer_id ,  T2.phone_number FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T2.customer_last_name ,  T1.customer_id ,  T2.phone_number FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "customers_and_invoices",
    "table": "Invoices",
    "questions": [
      "How many invoices do we have?",
      "Count the number of invoices.",
      "Show invoice dates and order id and details for all invoices.",
      "What are the invoice dates, order ids, and order details for all invoices?",
      "Show the order ids and the number of invoices for each order.",
      "How many invoices correspond to each order id?",
      "What is the order id and order details for the order more than two invoices.",
      "Return the order ids and details for orderes with two or more invoices."
    ],
    "col_names": [
      "invoice_number",
      "order_id",
      "invoice_date"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Invoices",
      "SELECT count(*) FROM Invoices",
      "SELECT T1.invoice_date ,  T1.order_id ,  T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id  =  T2.order_id",
      "SELECT T1.invoice_date ,  T1.order_id ,  T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id  =  T2.order_id",
      "SELECT order_id ,  count(*) FROM Invoices GROUP BY order_id",
      "SELECT order_id ,  count(*) FROM Invoices GROUP BY order_id",
      "SELECT T2.order_id ,  T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id  =  T2.order_id GROUP BY T2.order_id HAVING count(*)  >  2",
      "SELECT T2.order_id ,  T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id  =  T2.order_id GROUP BY T2.order_id HAVING count(*)  >  2"
    ]
  },
  {
    "database": "customers_and_invoices",
    "table": "Accounts",
    "questions": [
      "Show the number of accounts.",
      "How many accounts are there?",
      "How many customers have opened an account?",
      "Count the number of customers who have an account.",
      "Show the id, the date of account opened, the account name, and other account detail for all accounts.",
      "What are the ids, date opened, name, and other details for all accounts?",
      "Show the id, the account name, and other account details for all accounts by the customer with first name 'Meaghan'.",
      "What are the ids, names, dates of opening, and other details for accounts corresponding to the customer with the first name \"Meaghan\"?",
      "Show the account name and other account detail for all accounts by the customer with first name Meaghan and last name Keeling.",
      "What are the names and other details for accounts corresponding to the customer named Meaghan Keeling?",
      "Show the first name and last name for the customer with account name 900.",
      "What are the full names of customers with the account name 900?",
      "How many accounts does each customer have? List the number and customer id.",
      "Count the number of accounts corresponding to each customer id.",
      "What is the customer id, first and last name with most number of accounts.",
      "Return the id and full name of the customer with the most accounts.",
      "Show id, first name and last name for all customers and the number of accounts.",
      "What are the the full names and ids for all customers, and how many accounts does each have?",
      "Show first name and id for all customers with at least 2 accounts.",
      "What are the first names and ids for customers who have two or more accounts?"
    ],
    "col_names": [
      "account_id",
      "customer_id",
      "date_account_opened",
      "account_name",
      "other_account_details"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Accounts",
      "SELECT count(*) FROM Accounts",
      "SELECT count(DISTINCT customer_id) FROM Accounts",
      "SELECT count(DISTINCT customer_id) FROM Accounts",
      "SELECT account_id ,  date_account_opened ,  account_name ,  other_account_details FROM Accounts",
      "SELECT account_id ,  date_account_opened ,  account_name ,  other_account_details FROM Accounts",
      "SELECT T1.account_id ,  T1.date_account_opened ,  T1.account_name ,  T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  'Meaghan'",
      "SELECT T1.account_id ,  T1.date_account_opened ,  T1.account_name ,  T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  'Meaghan'",
      "SELECT T1.account_name ,  T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  \"Meaghan\" AND T2.customer_last_name  =  \"Keeling\"",
      "SELECT T1.account_name ,  T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  \"Meaghan\" AND T2.customer_last_name  =  \"Keeling\"",
      "SELECT T2.customer_first_name ,  T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.account_name  =  \"900\"",
      "SELECT T2.customer_first_name ,  T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.account_name  =  \"900\"",
      "SELECT count(*) ,  customer_id FROM Accounts GROUP BY customer_id",
      "SELECT count(*) ,  customer_id FROM Accounts GROUP BY customer_id",
      "SELECT T1.customer_id ,  T2.customer_first_name ,  T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.customer_id ,  T2.customer_first_name ,  T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.customer_id ,  T2.customer_first_name ,  T2.customer_last_name ,  count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id",
      "SELECT T1.customer_id ,  T2.customer_first_name ,  T2.customer_last_name ,  count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id",
      "SELECT T2.customer_first_name ,  T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >=  2",
      "SELECT T2.customer_first_name ,  T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >=  2"
    ]
  },
  {
    "database": "customers_and_invoices",
    "table": "Product_Categories",
    "questions": [],
    "col_names": [
      "production_type_code",
      "product_type_description",
      "vat_rating"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_and_invoices",
    "table": "Products",
    "questions": [
      "Show all product sizes.",
      "What are the different product sizes?",
      "Show all product colors.",
      "What are the different product colors?",
      "Show all product names without an order.",
      "What are the names of products that have never been ordered?"
    ],
    "col_names": [
      "product_id",
      "parent_product_id",
      "production_type_code",
      "unit_price",
      "product_name",
      "product_color",
      "product_size"
    ],
    "standard_answer": [
      "SELECT DISTINCT product_size FROM Products",
      "SELECT DISTINCT product_size FROM Products",
      "SELECT DISTINCT product_color FROM Products",
      "SELECT DISTINCT product_color FROM Products",
      "SELECT product_name FROM Products EXCEPT SELECT T1.product_name FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id  =  T2.product_id",
      "SELECT product_name FROM Products EXCEPT SELECT T1.product_name FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id  =  T2.product_id"
    ]
  },
  {
    "database": "customers_and_invoices",
    "table": "Financial_Transactions",
    "questions": [],
    "col_names": [
      "transaction_id",
      "account_id",
      "invoice_number",
      "transaction_type",
      "transaction_date",
      "transaction_amount",
      "transaction_comment",
      "other_transaction_details"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_and_invoices",
    "table": "Order_Items",
    "questions": [],
    "col_names": [
      "order_item_id",
      "order_id",
      "product_id",
      "product_quantity",
      "other_order_item_details"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_and_invoices",
    "table": "Invoice_Line_Items",
    "questions": [],
    "col_names": [
      "order_item_id",
      "invoice_number",
      "product_id",
      "product_title",
      "product_quantity",
      "product_price",
      "derived_product_cost",
      "derived_vat_payable",
      "derived_total_cost"
    ],
    "standard_answer": []
  },
  {
    "database": "insurance_and_eClaims",
    "table": "Customers",
    "questions": [],
    "col_names": [
      "Customer_ID",
      "Customer_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "insurance_and_eClaims",
    "table": "Staff",
    "questions": [],
    "col_names": [
      "Staff_ID",
      "Staff_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "insurance_and_eClaims",
    "table": "Policies",
    "questions": [],
    "col_names": [
      "Policy_ID",
      "Customer_ID",
      "Policy_Type_Code",
      "Start_Date",
      "End_Date"
    ],
    "standard_answer": []
  },
  {
    "database": "insurance_and_eClaims",
    "table": "Claim_Headers",
    "questions": [],
    "col_names": [
      "Claim_Header_ID",
      "Claim_Status_Code",
      "Claim_Type_Code",
      "Policy_ID",
      "Date_of_Claim",
      "Date_of_Settlement",
      "Amount_Claimed",
      "Amount_Piad"
    ],
    "standard_answer": []
  },
  {
    "database": "insurance_and_eClaims",
    "table": "Claims_Documents",
    "questions": [],
    "col_names": [
      "Claim_ID",
      "Document_Type_Code",
      "Created_by_Staff_ID",
      "Created_Date"
    ],
    "standard_answer": []
  },
  {
    "database": "insurance_and_eClaims",
    "table": "Claims_Processing_Stages",
    "questions": [],
    "col_names": [
      "Claim_Stage_ID",
      "Next_Claim_Stage_ID",
      "Claim_Status_Name",
      "Claim_Status_Description"
    ],
    "standard_answer": []
  },
  {
    "database": "insurance_and_eClaims",
    "table": "Claims_Processing",
    "questions": [],
    "col_names": [
      "Claim_Processing_ID",
      "Claim_ID",
      "Claim_Outcome_Code",
      "Claim_Stage_ID",
      "Staff_ID"
    ],
    "standard_answer": []
  },
  {
    "database": "college_1",
    "table": "CLASS",
    "questions": [
      "How many professors are teaching class with code ACCT-211?",
      "How many professors teach a class with the code ACCT-211?",
      "How many sections does each course has?",
      "How many sections does each course have?",
      "Find the number of classes offered for all class rooms that held at least 2 classes.",
      "For each classroom with at least 2 classes, how many classes are offered?",
      "Find the number of classes in each department.",
      "How many classes are held in each department?",
      "Find the number of classes in each school.",
      "How many classes exist for each school?",
      "How many different classes are there?",
      "How many unique classes are offered?",
      "How many courses are offered?",
      "What are the number of different course codes?",
      "How many sections does course ACCT-211 has?",
      "What is the number of different class sections offered in the course ACCT-211?",
      "How many students enrolled in class ACCT-211?",
      "What are the total number of students enrolled in ACCT-211?",
      "What is the first name of each student enrolled in class ACCT-211?",
      "What are the first names of all students in course ACCT-211?",
      "What is the first name of students enrolled in class ACCT-211 and got grade C?",
      "What are the first names of all students who took ACCT-211 and received a C?",
      "How many students are enrolled in the class taught by some professor from the accounting department?",
      "How many students are enrolled in some classes that are taught by an accounting professor?",
      "What is the name of the department that has the largest number of students enrolled?",
      "What is the name of the department with the most students enrolled?",
      "List the codes of all courses that take place in room KLR209.",
      "What are the codes of all the courses that are located in room KLR209?",
      "What is the code of the course which the student whose last name is Smithson took?",
      "What are the course codes for every class that the student with the last name Smithson took?",
      "What are the description and credit of the course which the student whose last name is Smithson took?",
      "How many credits is the course that the student with the last name Smithson took, and what is its description?",
      "Find the first names of all instructors who have taught some course and the course code.",
      "What are the first names of all teachers who have taught a course and the corresponding course codes?",
      "Find the first names of all instructors who have taught some course and the course description.",
      "What are the first names of all teachers who have taught a course and the corresponding descriptions?",
      "Find the first names and offices of all instructors who have taught some course and also find the course description.",
      "What are the first names, office locations of all lecturers who have taught some course?",
      "Find the first names and offices of all instructors who have taught some course and the course description and the department name.",
      "What are the first names, office locations, and departments of all instructors, and also what are the descriptions of the courses they teach?",
      "Find the first names of all professors in the Accounting department who is teaching some course and the class room.",
      "What are the first names of all Accounting professors who teach and what are the classrooms of the courses they teach?",
      "Find the first names and degree of all professors who are teaching some class in Computer Info. Systems department.",
      "What are the different first names and highest degree attained for professors teaching in the Computer Information Systems department?",
      "Find the first names of professors who are teaching more than one class.",
      "What are the first names of all professors who teach more than one class?"
    ],
    "col_names": [
      "CLASS_CODE",
      "CRS_CODE",
      "CLASS_SECTION",
      "CLASS_TIME",
      "CLASS_ROOM",
      "PROF_NUM"
    ],
    "standard_answer": [
      "SELECT count(DISTINCT PROF_NUM) FROM CLASS WHERE CRS_CODE  =  \"ACCT-211\"",
      "SELECT count(DISTINCT PROF_NUM) FROM CLASS WHERE CRS_CODE  =  \"ACCT-211\"",
      "SELECT count(*) ,  crs_code FROM CLASS GROUP BY crs_code",
      "SELECT count(*) ,  crs_code FROM CLASS GROUP BY crs_code",
      "SELECT count(*) ,  class_room FROM CLASS GROUP BY class_room HAVING count(*)  >=  2",
      "SELECT count(*) ,  class_room FROM CLASS GROUP BY class_room HAVING count(*)  >=  2",
      "SELECT count(*) ,  dept_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code  =  T2.crs_code GROUP BY dept_code",
      "SELECT count(*) ,  dept_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code  =  T2.crs_code GROUP BY dept_code",
      "SELECT count(*) ,  T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code  =  T2.crs_code JOIN department AS T3 ON T2.dept_code  =  T3.dept_code GROUP BY T3.school_code",
      "SELECT count(*) ,  T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code  =  T2.crs_code JOIN department AS T3 ON T2.dept_code  =  T3.dept_code GROUP BY T3.school_code",
      "SELECT count(DISTINCT class_code) FROM CLASS",
      "SELECT count(DISTINCT class_code) FROM CLASS",
      "SELECT count(DISTINCT crs_code) FROM CLASS",
      "SELECT count(DISTINCT crs_code) FROM CLASS",
      "SELECT count(DISTINCT class_section) FROM CLASS WHERE crs_code  =  'ACCT-211'",
      "SELECT count(DISTINCT class_section) FROM CLASS WHERE crs_code  =  'ACCT-211'",
      "SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code WHERE T1.crs_code  =  'ACCT-211'",
      "SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code WHERE T1.crs_code  =  'ACCT-211'",
      "SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T2.stu_num  =  T3.stu_num WHERE T1.crs_code  =  'ACCT-211'",
      "SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T2.stu_num  =  T3.stu_num WHERE T1.crs_code  =  'ACCT-211'",
      "SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T2.stu_num  =  T3.stu_num WHERE T1.crs_code  =  'ACCT-211' AND T2.enroll_grade  =  'C'",
      "SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T2.stu_num  =  T3.stu_num WHERE T1.crs_code  =  'ACCT-211' AND T2.enroll_grade  =  'C'",
      "SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN department AS T4 ON T3.dept_code  =  T4.dept_code WHERE T4.dept_name  =  'Accounting'",
      "SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN department AS T4 ON T3.dept_code  =  T4.dept_code WHERE T4.dept_name  =  'Accounting'",
      "SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN department AS T4 ON T3.dept_code  =  T4.dept_code GROUP BY T3.dept_code ORDER BY count(*) DESC LIMIT 1",
      "SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN department AS T4 ON T3.dept_code  =  T4.dept_code GROUP BY T3.dept_code ORDER BY count(*) DESC LIMIT 1",
      "SELECT class_code FROM CLASS WHERE class_room  =  'KLR209'",
      "SELECT class_code FROM CLASS WHERE class_room  =  'KLR209'",
      "SELECT T1.crs_code FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T3.stu_num  =  T2.stu_num WHERE T3.stu_lname  =  'Smithson'",
      "SELECT T1.crs_code FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T3.stu_num  =  T2.stu_num WHERE T3.stu_lname  =  'Smithson'",
      "SELECT T4.crs_description ,  T4.crs_credit FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T3.stu_num  =  T2.stu_num JOIN course AS T4 ON T4.crs_code  =  T1.crs_code WHERE T3.stu_lname  =  'Smithson'",
      "SELECT T4.crs_description ,  T4.crs_credit FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T3.stu_num  =  T2.stu_num JOIN course AS T4 ON T4.crs_code  =  T1.crs_code WHERE T3.stu_lname  =  'Smithson'",
      "SELECT T2.emp_fname ,  T1.crs_code FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num",
      "SELECT T2.emp_fname ,  T1.crs_code FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num",
      "SELECT T2.emp_fname ,  T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN course AS T3 ON T1.crs_code  =  T3.crs_code",
      "SELECT T2.emp_fname ,  T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN course AS T3 ON T1.crs_code  =  T3.crs_code",
      "SELECT T2.emp_fname ,  T4.prof_office ,  T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN professor AS T4 ON T2.emp_num  =  T4.emp_num",
      "SELECT T2.emp_fname ,  T4.prof_office ,  T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN professor AS T4 ON T2.emp_num  =  T4.emp_num",
      "SELECT T2.emp_fname ,  T4.prof_office ,  T3.crs_description ,  T5.dept_name FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN professor AS T4 ON T2.emp_num  =  T4.emp_num JOIN department AS T5 ON T4.dept_code  =  T5.dept_code",
      "SELECT T2.emp_fname ,  T4.prof_office ,  T3.crs_description ,  T5.dept_name FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN professor AS T4 ON T2.emp_num  =  T4.emp_num JOIN department AS T5 ON T4.dept_code  =  T5.dept_code",
      "SELECT T2.emp_fname ,  T1.class_room FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN professor AS T3 ON T2.emp_num  =  T3.emp_num JOIN department AS T4 ON T4.dept_code  =  T3.dept_code WHERE T4.dept_name  =  'Accounting'",
      "SELECT T2.emp_fname ,  T1.class_room FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN professor AS T3 ON T2.emp_num  =  T3.emp_num JOIN department AS T4 ON T4.dept_code  =  T3.dept_code WHERE T4.dept_name  =  'Accounting'",
      "SELECT DISTINCT T2.emp_fname ,  T3.prof_high_degree FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN professor AS T3 ON T2.emp_num  =  T3.emp_num JOIN department AS T4 ON T4.dept_code  =  T3.dept_code WHERE T4.dept_name  =  'Computer Info. Systems'",
      "SELECT DISTINCT T2.emp_fname ,  T3.prof_high_degree FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN professor AS T3 ON T2.emp_num  =  T3.emp_num JOIN department AS T4 ON T4.dept_code  =  T3.dept_code WHERE T4.dept_name  =  'Computer Info. Systems'",
      "SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num GROUP BY T1.prof_num HAVING count(*)  >  1",
      "SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num GROUP BY T1.prof_num HAVING count(*)  >  1"
    ]
  },
  {
    "database": "college_1",
    "table": "COURSE",
    "questions": [],
    "col_names": [
      "CRS_CODE",
      "DEPT_CODE",
      "CRS_DESCRIPTION",
      "CRS_CREDIT"
    ],
    "standard_answer": []
  },
  {
    "database": "college_1",
    "table": "DEPARTMENT",
    "questions": [],
    "col_names": [
      "DEPT_CODE",
      "DEPT_NAME",
      "SCHOOL_CODE",
      "EMP_NUM",
      "DEPT_ADDRESS",
      "DEPT_EXTENSION"
    ],
    "standard_answer": []
  },
  {
    "database": "college_1",
    "table": "EMPLOYEE",
    "questions": [],
    "col_names": [
      "EMP_NUM",
      "EMP_LNAME",
      "EMP_FNAME",
      "EMP_INITIAL",
      "EMP_JOBCODE",
      "EMP_HIREDATE",
      "EMP_DOB"
    ],
    "standard_answer": []
  },
  {
    "database": "college_1",
    "table": "ENROLL",
    "questions": [],
    "col_names": [
      "CLASS_CODE",
      "STU_NUM",
      "ENROLL_GRADE"
    ],
    "standard_answer": []
  },
  {
    "database": "college_1",
    "table": "PROFESSOR",
    "questions": [],
    "col_names": [
      "EMP_NUM",
      "DEPT_CODE",
      "PROF_OFFICE",
      "PROF_EXTENSION",
      "PROF_HIGH_DEGREE"
    ],
    "standard_answer": []
  },
  {
    "database": "college_1",
    "table": "STUDENT",
    "questions": [],
    "col_names": [
      "STU_NUM",
      "STU_LNAME",
      "STU_FNAME",
      "STU_INIT",
      "STU_DOB",
      "STU_HRS",
      "STU_CLASS",
      "STU_GPA",
      "STU_TRANSFER",
      "DEPT_CODE",
      "STU_PHONE",
      "PROF_NUM"
    ],
    "standard_answer": []
  },
  {
    "database": "local_govt_mdm",
    "table": "Customer_Master_Index",
    "questions": [
      "what are the details of the cmi masters that have the cross reference code 'Tax'?"
    ],
    "col_names": [
      "master_customer_id",
      "cmi_details"
    ],
    "standard_answer": [
      "SELECT T1.cmi_details FROM Customer_Master_Index AS T1 JOIN CMI_Cross_References AS T2 ON T1.master_customer_id  =  T2.master_customer_id WHERE T2.source_system_code  =  'Tax'"
    ]
  },
  {
    "database": "local_govt_mdm",
    "table": "CMI_Cross_References",
    "questions": [
      "What is the cmi cross reference id that is related to at least one council tax entry? List the cross reference id and source system code.",
      "What is the tax source system code related to the benefits and overpayments? List the code and the benifit id, order by benifit id.",
      "Wat is the tax source system code and master customer id of the taxes related to each parking fine id?"
    ],
    "col_names": [
      "cmi_cross_ref_id",
      "master_customer_id",
      "source_system_code"
    ],
    "standard_answer": [
      "SELECT T1.cmi_cross_ref_id ,  T1.source_system_code FROM CMI_Cross_References AS T1 JOIN Council_Tax AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id GROUP BY T1.cmi_cross_ref_id HAVING count(*)  >=  1",
      "SELECT T1.source_system_code ,  T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Benefits_Overpayments AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id ORDER BY T2.council_tax_id",
      "SELECT T1.source_system_code ,  T1.master_customer_id ,  T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Parking_Fines AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id"
    ]
  },
  {
    "database": "local_govt_mdm",
    "table": "Council_Tax",
    "questions": [],
    "col_names": [
      "council_tax_id",
      "cmi_cross_ref_id"
    ],
    "standard_answer": []
  },
  {
    "database": "local_govt_mdm",
    "table": "Business_Rates",
    "questions": [
      "How many business rates are related to each cmi cross reference? List cross reference id, master customer id and the n"
    ],
    "col_names": [
      "business_rates_id",
      "cmi_cross_ref_id"
    ],
    "standard_answer": [
      "SELECT T2.cmi_cross_ref_id ,  T2.master_customer_id ,  count(*) FROM Business_Rates AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id GROUP BY T2.cmi_cross_ref_id"
    ]
  },
  {
    "database": "local_govt_mdm",
    "table": "Benefits_Overpayments",
    "questions": [],
    "col_names": [
      "council_tax_id",
      "cmi_cross_ref_id"
    ],
    "standard_answer": []
  },
  {
    "database": "local_govt_mdm",
    "table": "Parking_Fines",
    "questions": [],
    "col_names": [
      "council_tax_id",
      "cmi_cross_ref_id"
    ],
    "standard_answer": []
  },
  {
    "database": "local_govt_mdm",
    "table": "Rent_Arrears",
    "questions": [
      "What are the renting arrears tax ids related to the customer master index whose detail is not 'Schmidt, Kertzmann and Lubowitz'?"
    ],
    "col_names": [
      "council_tax_id",
      "cmi_cross_ref_id"
    ],
    "standard_answer": [
      "SELECT T1.council_tax_id FROM Rent_Arrears AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id JOIN Customer_Master_Index AS T3 ON T3.master_customer_id  =  T2.master_customer_id WHERE T3.cmi_details != 'Schmidt ,  Kertzmann and Lubowitz'"
    ]
  },
  {
    "database": "local_govt_mdm",
    "table": "Electoral_Register",
    "questions": [
      "What are the register ids of electoral registries that have the cross reference source system code 'Electoral' or 'Tax'?"
    ],
    "col_names": [
      "electoral_register_id",
      "cmi_cross_ref_id"
    ],
    "standard_answer": [
      "SELECT T1.electoral_register_id FROM Electoral_Register AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id  =  T2.cmi_cross_ref_id WHERE T2.source_system_code  =  'Electoral' OR T2.source_system_code  =  'Tax'"
    ]
  },
  {
    "database": "book_2",
    "table": "publication",
    "questions": [
      "What are the dates of publications in descending order of price?",
      "What are the distinct publishers of publications with price higher than 5000000?",
      "List the publisher of the publication with the highest price.",
      "List the publication dates of publications with 3 lowest prices.",
      "Show publishers that have more than one publication.",
      "Show different publishers together with the number of publications they have.",
      "Please show the most common publication date.",
      "Show the publishers that have publications with price higher than 10000000 and publications with price lower than 5000000.",
      "What is the number of distinct publication dates?",
      "How many distinct publication dates are there in our record?",
      "Show the prices of publications whose publisher is either \"Person\" or \"Wiley\""
    ],
    "col_names": [
      "Publication_ID",
      "Book_ID",
      "Publisher",
      "Publication_Date",
      "Price"
    ],
    "standard_answer": [
      "SELECT Publication_Date FROM publication ORDER BY Price DESC",
      "SELECT DISTINCT Publisher FROM publication WHERE Price  >  5000000",
      "SELECT Publisher FROM publication ORDER BY Price DESC LIMIT 1",
      "SELECT Publication_Date FROM publication ORDER BY Price ASC LIMIT 3",
      "SELECT Publisher FROM publication GROUP BY Publisher HAVING COUNT(*)  >  1",
      "SELECT Publisher ,  COUNT(*) FROM publication GROUP BY Publisher",
      "SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Publisher FROM publication WHERE Price  >  10000000 INTERSECT SELECT Publisher FROM publication WHERE Price  <  5000000",
      "SELECT COUNT (DISTINCT Publication_Date) FROM publication",
      "SELECT COUNT (DISTINCT Publication_Date) FROM publication",
      "SELECT Price FROM publication WHERE Publisher  =  \"Person\" OR Publisher  =  \"Wiley\""
    ]
  },
  {
    "database": "book_2",
    "table": "book",
    "questions": [
      "How many books are there?",
      "List the writers of the books in ascending alphabetical order.",
      "List the titles of the books in ascending order of issues.",
      "What are the titles of the books whose writer is not \"Elaine Lee\"?",
      "What are the title and issues of the books?",
      "Show the title and publication dates of books.",
      "Show writers who have published a book with price more than 4000000.",
      "Show the titles of books in descending order of publication price.",
      "List the writers who have written more than one book.",
      "List the titles of books that are not published."
    ],
    "col_names": [
      "Book_ID",
      "Title",
      "Issues",
      "Writer"
    ],
    "standard_answer": [
      "SELECT count(*) FROM book",
      "SELECT Writer FROM book ORDER BY Writer ASC",
      "SELECT Title FROM book ORDER BY Issues ASC",
      "SELECT Title FROM book WHERE Writer != \"Elaine Lee\"",
      "SELECT Title ,  Issues FROM book",
      "SELECT T1.Title ,  T2.Publication_Date FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID  =  T2.Book_ID",
      "SELECT T1.Writer FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID  =  T2.Book_ID WHERE T2.Price  >  4000000",
      "SELECT T1.Title FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID  =  T2.Book_ID ORDER BY T2.Price DESC",
      "SELECT Writer FROM book GROUP BY Writer HAVING COUNT(*)  >  1",
      "SELECT Title FROM book WHERE Book_ID NOT IN (SELECT Book_ID FROM publication)"
    ]
  },
  {
    "database": "hr_1",
    "table": "regions",
    "questions": [],
    "col_names": [
      "REGION_ID",
      "REGION_NAME"
    ],
    "standard_answer": []
  },
  {
    "database": "hr_1",
    "table": "countries",
    "questions": [],
    "col_names": [
      "COUNTRY_ID",
      "COUNTRY_NAME",
      "REGION_ID"
    ],
    "standard_answer": []
  },
  {
    "database": "hr_1",
    "table": "departments",
    "questions": [
      "display the department name, city, and state province for each department.",
      "What are the department names, cities, and state provinces for each department?"
    ],
    "col_names": [
      "DEPARTMENT_ID",
      "DEPARTMENT_NAME",
      "MANAGER_ID",
      "LOCATION_ID"
    ],
    "standard_answer": [
      "SELECT T1.department_name ,  T2.city ,  T2.state_province FROM departments AS T1 JOIN locations AS T2 ON T2.location_id  =  T1.location_id",
      "SELECT T1.department_name ,  T2.city ,  T2.state_province FROM departments AS T1 JOIN locations AS T2 ON T2.location_id  =  T1.location_id"
    ]
  },
  {
    "database": "hr_1",
    "table": "jobs",
    "questions": [
      "display the job title of jobs which minimum salary is greater than 9000.",
      "Which job titles correspond to jobs with salaries over 9000?",
      "display job Title, the difference between minimum and maximum salaries for those jobs which max salary within the range 12000 to 18000.",
      "What are the job titles, and range of salaries for jobs with maximum salary between 12000 and 18000?"
    ],
    "col_names": [
      "JOB_ID",
      "JOB_TITLE",
      "MIN_SALARY",
      "MAX_SALARY"
    ],
    "standard_answer": [
      "SELECT job_title FROM jobs WHERE min_salary  >  9000",
      "SELECT job_title FROM jobs WHERE min_salary  >  9000",
      "SELECT job_title ,  max_salary - min_salary FROM jobs WHERE max_salary BETWEEN 12000 AND 18000",
      "SELECT job_title ,  max_salary - min_salary FROM jobs WHERE max_salary BETWEEN 12000 AND 18000"
    ]
  },
  {
    "database": "hr_1",
    "table": "employees",
    "questions": [
      "Display the first name and department name for each employee.",
      "What are the first name and department name of all employees?",
      "List the full name (first and last name), and salary for those employees who earn below 6000.",
      "What are the full names and salaries for any employees earning less than 6000?",
      "Display the first name, and department number for all employees whose last name is \"McEwen\".",
      "What are the first names and department numbers for employees with last name McEwen?",
      "Return all the information for all employees without any department number.",
      "What are all the employees without a department number?",
      "when is the hire date for those employees whose first name does not containing the letter M?",
      "On what dates were employees without the letter M in their first names hired?",
      "display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M.",
      "What are the full name, hire date, salary, and department id for employees without the letter M in their first name?",
      "display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M and make the result set in ascending order by department number.",
      "What are the full name, hire data, salary and department id for employees without the letter M in their first name, ordered by ascending department id?",
      "what is the phone number of employees whose salary is in the range of 8000 and 12000?",
      "Return the phone numbers of employees with salaries between 8000 and 12000.",
      "display all the information of employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40.",
      "Return all information about employees with salaries between 8000 and 12000 for which commission is not null or where their department id is not 40.",
      "Display the first and last name, and salary for those employees whose first name is ending with the letter m.",
      "Return the full names and salaries for employees with first names that end with the letter m.",
      "Find job id and date of hire for those employees who was hired between November 5th, 2007 and July 5th, 2009.",
      "What are the job ids and dates of hire for employees hired after November 5th, 2007 and before July 5th, 2009?",
      "What are the first and last name for those employees who works either in department 70 or 90?",
      "What are the full names of employees who with in department 70 or 90?",
      "Find the salary and manager number for those employees who is working under a manager.",
      "What are the salaries and manager ids for employees who have managers?",
      "display all the details from Employees table for those employees who was hired before 2002-06-21.",
      "What is all the information about employees hired before June 21, 2002?",
      "display all the information for all employees who have the letters D or S in their first name and also arrange the result in descending order by salary.",
      "What is all the information about employees with D or S in their first name, ordered by salary descending?",
      "display those employees who joined after 7th September, 1987.",
      "Which employees were hired after September 7th, 1987?",
      "display the emails of the employees who have no commission percentage and salary within the range 7000 to 12000 and works in that department which number is 50.",
      "What are the emails of employees with null commission, salary between 7000 and 12000, and who work in department 50?",
      "display those departments where more than ten employees work who got a commission percentage.",
      "What are the department ids for which more than 10 employees had a commission?",
      "Find the ids of the departments where any manager is managing 4 or more employees.",
      "What are department ids for departments with managers managing more than 3 employees?",
      "display the average salary of employees for each department who gets a commission percentage.",
      "What is the average salary of employees who have a commission percentage that is not null?",
      "Find employee with ID and name of the country presently where (s)he is working.",
      "What are all the employee ids and the names of the countries in which they work?",
      "display the department name and number of employees in each of the department.",
      "Give the name of each department and the number of employees in each.",
      "display job title and average salary of employees.",
      "What is the average salary for each job title?",
      "What is the full name ( first name and last name ) for those employees who gets more salary than the employee whose id is 163?",
      "Provide the full names of employees earning more than the employee with id 163.",
      "return the smallest salary for every departments.",
      "What is the minimum salary in each department?",
      "Find the first name and last name and department id for those employees who earn such amount of salary which is the smallest salary of any of the departments.",
      "What are the full names and department ids for the lowest paid employees across all departments.",
      "Find the employee id for all employees who earn more than the average salary.",
      "What are the employee ids for employees who make more than the average?",
      "display the employee id and salary of all employees who report to Payam (first name).",
      "What are the employee ids of employees who report to Payam, and what are their salaries?",
      "find the name of all departments that do actually have one or more employees assigned to them.",
      "What are the names of departments that have at least one employee.",
      "get the details of employees who manage a department.",
      "What is all the information regarding employees who are managers?",
      "What are the unique ids of those departments where any manager is managing 4 or more employees.",
      "Give the distinct department ids of departments in which a manager is in charge of 4 or more employees?",
      "Find the job ID for those jobs which average salary is above 8000.",
      "What are the job ids corresponding to jobs with average salary above 8000?",
      "display the employee ID and job name for all those jobs in department 80.",
      "what are the employee ids and job titles for employees in department 80?",
      "What is the first name and job id for all employees in the Finance department?",
      "Give the first name and job id for all employees in the Finance department.",
      "display all the information of the employees whose salary if within the range of smallest salary and 2500.",
      "What is all the information regarding employees with salaries above the minimum and under 2500?",
      "Find the ids of the employees who does not work in those departments where some employees works whose manager id within the range 100 and 200.",
      "What are the ids for employees who do not work in departments with managers that have ids between 100 and 200?",
      "display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara.",
      "What are the full names and hire dates for employees in the same department as someone with the first name Clara?",
      "display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara excluding Clara.",
      "What are the full names and hire dates for employees in the same department as someone with the first name Clara, not including Clara?",
      "display the employee number and name( first name and last name ) for all employees who work in a department with any employee whose name contains a \u2019T\u2019.",
      "What are the ids and full names for employees who work in a department that has someone with a first name that contains the letter T?",
      "display the employee number, name( first name and last name ), and salary for all employees who earn more than the average salary and who work in a department with any employee with a 'J' in their first name.",
      "What are the ids, full names, and salaries for employees making more than average and who work in a department with employees who have the letter J in their first name?",
      "display the employee number and job id for all employees whose salary is smaller than any salary of those employees whose job title is MK_MAN.",
      "What are the employee ids and job ids for employees who make less than the lowest earning employee with title MK_MAN?",
      "display the employee number, name( first name and last name ) and job title for all employees whose salary is more than any salary of those employees whose job title is PU_MAN.",
      "What are the employee ids, full names, and job ids for employees who make more than the highest earning employee with title PU_MAN?",
      "display the department id and the total salary for those departments which contains at least two employees.",
      "What are total salaries and department id for each department that has more than 2 employees?",
      "display all the information of those employees who did not have any job in the past.",
      "What is all the information about employees who have never had a job in the past?",
      "display the department ID, full name (first and last name), salary for those employees who is highest salary in every department.",
      "What are the department ids, full names, and salaries for employees who make the most in their departments?",
      "display the first and last name, department, city, and state province for each employee.",
      "What are the full names, departments, cities, and state provinces for each employee?",
      "display those employees who contain a letter z to their first name and also display their last name, city.",
      "What are the full names and cities of employees who have the letter Z in their first names?",
      "display the full name (first and last name ) of employee with ID and name of the country presently where (s)he is working.",
      "What the full names, ids of each employee and the name of the country they are in?",
      "display the department name and number of employees in each of the department.",
      "What are the department names and how many employees work in each of them?",
      "display the full name (first and last name), and salary of those employees who working in any department located in London.",
      "What are full names and salaries of employees working in the city of London?"
    ],
    "col_names": [
      "EMPLOYEE_ID",
      "FIRST_NAME",
      "LAST_NAME",
      "EMAIL",
      "PHONE_NUMBER",
      "HIRE_DATE",
      "JOB_ID",
      "SALARY",
      "COMMISSION_PCT",
      "MANAGER_ID",
      "DEPARTMENT_ID"
    ],
    "standard_answer": [
      "SELECT T1.first_name ,  T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id",
      "SELECT T1.first_name ,  T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id",
      "SELECT first_name ,  last_name ,  salary FROM employees WHERE salary  <  6000",
      "SELECT first_name ,  last_name ,  salary FROM employees WHERE salary  <  6000",
      "SELECT first_name ,  department_id FROM employees WHERE last_name  =  'McEwen'",
      "SELECT first_name ,  department_id FROM employees WHERE last_name  =  'McEwen'",
      "SELECT * FROM employees WHERE department_id  =  \"null\"",
      "SELECT * FROM employees WHERE department_id  =  \"null\"",
      "SELECT hire_date FROM employees WHERE first_name NOT LIKE '%M%'",
      "SELECT hire_date FROM employees WHERE first_name NOT LIKE '%M%'",
      "SELECT first_name ,  last_name ,  hire_date ,  salary ,  department_id FROM employees WHERE first_name NOT LIKE '%M%'",
      "SELECT first_name ,  last_name ,  hire_date ,  salary ,  department_id FROM employees WHERE first_name NOT LIKE '%M%'",
      "SELECT first_name ,  last_name ,  hire_date ,  salary ,  department_id FROM employees WHERE first_name NOT LIKE '%M%' ORDER BY department_id",
      "SELECT first_name ,  last_name ,  hire_date ,  salary ,  department_id FROM employees WHERE first_name NOT LIKE '%M%' ORDER BY department_id",
      "SELECT phone_number FROM employees WHERE salary BETWEEN 8000 AND 12000",
      "SELECT phone_number FROM employees WHERE salary BETWEEN 8000 AND 12000",
      "SELECT * FROM employees WHERE salary BETWEEN 8000 AND 12000 AND commission_pct != \"null\" OR  department_id != 40",
      "SELECT * FROM employees WHERE salary BETWEEN 8000 AND 12000 AND commission_pct != \"null\" OR  department_id != 40",
      "SELECT first_name ,  last_name ,  salary FROM employees WHERE first_name LIKE '%m'",
      "SELECT first_name ,  last_name ,  salary FROM employees WHERE first_name LIKE '%m'",
      "SELECT job_id ,  hire_date FROM employees WHERE hire_date BETWEEN '2007-11-05' AND '2009-07-05'",
      "SELECT job_id ,  hire_date FROM employees WHERE hire_date BETWEEN '2007-11-05' AND '2009-07-05'",
      "SELECT first_name ,  last_name FROM employees WHERE department_id  =  70 OR department_id  =  90",
      "SELECT first_name ,  last_name FROM employees WHERE department_id  =  70 OR department_id  =  90",
      "SELECT salary ,  manager_id FROM employees WHERE manager_id != \"null\"",
      "SELECT salary ,  manager_id FROM employees WHERE manager_id != \"null\"",
      "SELECT * FROM employees WHERE hire_date  <  '2002-06-21'",
      "SELECT * FROM employees WHERE hire_date  <  '2002-06-21'",
      "SELECT * FROM employees WHERE first_name LIKE '%D%' OR first_name LIKE '%S%' ORDER BY salary DESC",
      "SELECT * FROM employees WHERE first_name LIKE '%D%' OR first_name LIKE '%S%' ORDER BY salary DESC",
      "SELECT * FROM employees WHERE hire_date  >  '1987-09-07'",
      "SELECT * FROM employees WHERE hire_date  >  '1987-09-07'",
      "SELECT email FROM employees WHERE commission_pct  =  \"null\" AND salary BETWEEN 7000 AND 12000 AND department_id = 50",
      "SELECT email FROM employees WHERE commission_pct  =  \"null\" AND salary BETWEEN 7000 AND 12000 AND department_id = 50",
      "SELECT department_id FROM employees GROUP BY department_id HAVING COUNT(commission_pct) > 10",
      "SELECT department_id FROM employees GROUP BY department_id HAVING COUNT(commission_pct) > 10",
      "SELECT DISTINCT department_id FROM employees GROUP BY department_id ,  manager_id HAVING COUNT(employee_id)  >= 4",
      "SELECT DISTINCT department_id FROM employees GROUP BY department_id ,  manager_id HAVING COUNT(employee_id)  >= 4",
      "SELECT department_id ,  AVG(salary) FROM employees WHERE commission_pct != \"null\" GROUP BY department_id",
      "SELECT department_id ,  AVG(salary) FROM employees WHERE commission_pct != \"null\" GROUP BY department_id",
      "SELECT T1.employee_id ,  T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id JOIN countries AS T4 ON T3.country_id  =  T4.country_id",
      "SELECT T1.employee_id ,  T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id JOIN countries AS T4 ON T3.country_id  =  T4.country_id",
      "SELECT T2.department_name ,  COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id GROUP BY T2.department_name",
      "SELECT T2.department_name ,  COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id GROUP BY T2.department_name",
      "SELECT job_title ,  AVG(salary) FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id  =  T2.job_id GROUP BY T2.job_title",
      "SELECT job_title ,  AVG(salary) FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id  =  T2.job_id GROUP BY T2.job_title",
      "SELECT first_name ,  last_name FROM employees WHERE salary  >  (SELECT salary FROM employees WHERE employee_id = 163 )",
      "SELECT first_name ,  last_name FROM employees WHERE salary  >  (SELECT salary FROM employees WHERE employee_id = 163 )",
      "SELECT MIN(salary) ,  department_id FROM employees GROUP BY department_id",
      "SELECT MIN(salary) ,  department_id FROM employees GROUP BY department_id",
      "SELECT first_name ,  last_name ,  department_id FROM employees WHERE salary IN (SELECT MIN(salary) FROM employees GROUP BY department_id)",
      "SELECT first_name ,  last_name ,  department_id FROM employees WHERE salary IN (SELECT MIN(salary) FROM employees GROUP BY department_id)",
      "SELECT employee_id FROM employees WHERE salary  >  (SELECT AVG(salary) FROM employees)",
      "SELECT employee_id FROM employees WHERE salary  >  (SELECT AVG(salary) FROM employees)",
      "SELECT employee_id ,  salary FROM employees WHERE manager_id  =  (SELECT employee_id FROM employees WHERE first_name  =  'Payam' )",
      "SELECT employee_id ,  salary FROM employees WHERE manager_id  =  (SELECT employee_id FROM employees WHERE first_name  =  'Payam' )",
      "SELECT DISTINCT T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id",
      "SELECT DISTINCT T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id",
      "SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id WHERE T1.employee_id  =  T2.manager_id",
      "SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id WHERE T1.employee_id  =  T2.manager_id",
      "SELECT DISTINCT department_id FROM employees GROUP BY department_id ,  manager_id HAVING COUNT(employee_id)  >= 4",
      "SELECT DISTINCT department_id FROM employees GROUP BY department_id ,  manager_id HAVING COUNT(employee_id)  >= 4",
      "SELECT job_id FROM employees GROUP BY job_id HAVING AVG(salary) > 8000",
      "SELECT job_id FROM employees GROUP BY job_id HAVING AVG(salary) > 8000",
      "SELECT T1.employee_id ,  T2.job_title FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id  =  T2.job_id WHERE T1.department_id = 80",
      "SELECT T1.employee_id ,  T2.job_title FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id  =  T2.job_id WHERE T1.department_id = 80",
      "SELECT T1.first_name ,  T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id WHERE T2.department_name  =  'Finance'",
      "SELECT T1.first_name ,  T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id WHERE T2.department_name  =  'Finance'",
      "SELECT * FROM employees WHERE salary BETWEEN (SELECT MIN(salary) FROM employees) AND 2500",
      "SELECT * FROM employees WHERE salary BETWEEN (SELECT MIN(salary) FROM employees) AND 2500",
      "SELECT * FROM employees WHERE department_id NOT IN (SELECT department_id FROM departments WHERE manager_id BETWEEN 100 AND 200)",
      "SELECT * FROM employees WHERE department_id NOT IN (SELECT department_id FROM departments WHERE manager_id BETWEEN 100 AND 200)",
      "SELECT first_name ,  last_name ,  hire_date FROM employees WHERE department_id  =  (SELECT department_id FROM employees WHERE first_name  =  \"Clara\")",
      "SELECT first_name ,  last_name ,  hire_date FROM employees WHERE department_id  =  (SELECT department_id FROM employees WHERE first_name  =  \"Clara\")",
      "SELECT first_name ,  last_name ,  hire_date FROM employees WHERE department_id  =  ( SELECT department_id FROM employees WHERE first_name  =  \"Clara\") AND first_name != \"Clara\"",
      "SELECT first_name ,  last_name ,  hire_date FROM employees WHERE department_id  =  ( SELECT department_id FROM employees WHERE first_name  =  \"Clara\") AND first_name != \"Clara\"",
      "SELECT employee_id ,  first_name ,  last_name FROM employees WHERE department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%T%' )",
      "SELECT employee_id ,  first_name ,  last_name FROM employees WHERE department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%T%' )",
      "SELECT employee_id ,  first_name ,  last_name ,  salary FROM employees WHERE salary  >  ( SELECT AVG (salary) FROM employees ) AND department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%J%')",
      "SELECT employee_id ,  first_name ,  last_name ,  salary FROM employees WHERE salary  >  ( SELECT AVG (salary) FROM employees ) AND department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%J%')",
      "SELECT employee_id ,  job_id FROM employees WHERE salary  <  ( SELECT min(salary) FROM employees WHERE job_id  =  'MK_MAN' )",
      "SELECT employee_id ,  job_id FROM employees WHERE salary  <  ( SELECT min(salary) FROM employees WHERE job_id  =  'MK_MAN' )",
      "SELECT employee_id ,  first_name ,  last_name ,  job_id FROM employees WHERE salary  >  ( SELECT max(salary) FROM employees WHERE job_id  =  'PU_MAN' )",
      "SELECT employee_id ,  first_name ,  last_name ,  job_id FROM employees WHERE salary  >  ( SELECT max(salary) FROM employees WHERE job_id  =  'PU_MAN' )",
      "SELECT department_id ,  SUM(salary) FROM employees GROUP BY department_id HAVING count(*)  >=  2",
      "SELECT department_id ,  SUM(salary) FROM employees GROUP BY department_id HAVING count(*)  >=  2",
      "SELECT * FROM employees WHERE employee_id NOT IN (SELECT employee_id FROM job_history)",
      "SELECT * FROM employees WHERE employee_id NOT IN (SELECT employee_id FROM job_history)",
      "SELECT first_name ,   last_name ,   salary ,  department_id ,  MAX(salary) FROM employees GROUP BY department_id",
      "SELECT first_name ,   last_name ,   salary ,  department_id ,  MAX(salary) FROM employees GROUP BY department_id",
      "SELECT T1.first_name ,  T1.last_name ,  T2.department_name ,  T3.city ,  T3.state_province FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id",
      "SELECT T1.first_name ,  T1.last_name ,  T2.department_name ,  T3.city ,  T3.state_province FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id",
      "SELECT T1.first_name ,  T1.last_name ,  T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id WHERE T1.first_name LIKE '%z%'",
      "SELECT T1.first_name ,  T1.last_name ,  T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id WHERE T1.first_name LIKE '%z%'",
      "SELECT T1.first_name ,  T1.last_name , T1.employee_id ,  T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id JOIN countries AS T4 ON T3.country_id  =  T4.country_id",
      "SELECT T1.first_name ,  T1.last_name , T1.employee_id ,  T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id JOIN countries AS T4 ON T3.country_id  =  T4.country_id",
      "SELECT department_name ,  COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id GROUP BY department_name",
      "SELECT department_name ,  COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id GROUP BY department_name",
      "SELECT first_name ,  last_name ,  salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN  locations AS T3 ON T2.location_id  =  T3.location_id WHERE  T3.city  =  'London'",
      "SELECT first_name ,  last_name ,  salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN  locations AS T3 ON T2.location_id  =  T3.location_id WHERE  T3.city  =  'London'"
    ]
  },
  {
    "database": "hr_1",
    "table": "job_history",
    "questions": [
      "display the employee ID for each employee and the date on which he ended his previous job.",
      "What are the employee ids for each employee and final dates of employment at their last job?",
      "display job ID for those jobs that were done by two or more for more than 300 days.",
      "What are the job ids for jobs done more than once for a period of more than 300 days?",
      "display the ID for those employees who did two or more jobs in the past.",
      "What are the employee ids for employees who have held two or more jobs?",
      "display the ID for those employees who did two or more jobs in the past.",
      "What are the employee ids for those who had two or more jobs."
    ],
    "col_names": [
      "EMPLOYEE_ID",
      "START_DATE",
      "END_DATE",
      "JOB_ID",
      "DEPARTMENT_ID"
    ],
    "standard_answer": [
      "SELECT employee_id ,  MAX(end_date) FROM job_history GROUP BY employee_id",
      "SELECT employee_id ,  MAX(end_date) FROM job_history GROUP BY employee_id",
      "SELECT job_id FROM job_history WHERE end_date - start_date  > 300 GROUP BY job_id HAVING COUNT(*) >= 2",
      "SELECT job_id FROM job_history WHERE end_date - start_date  > 300 GROUP BY job_id HAVING COUNT(*) >= 2",
      "SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*)  >= 2",
      "SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*)  >= 2",
      "SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*)  >= 2",
      "SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*)  >= 2"
    ]
  },
  {
    "database": "hr_1",
    "table": "locations",
    "questions": [
      "display the country ID and number of cities for each country.",
      "Give the country id and corresponding count of cities in each country."
    ],
    "col_names": [
      "LOCATION_ID",
      "STREET_ADDRESS",
      "POSTAL_CODE",
      "CITY",
      "STATE_PROVINCE",
      "COUNTRY_ID"
    ],
    "standard_answer": [
      "SELECT country_id ,  COUNT(*) FROM locations GROUP BY country_id",
      "SELECT country_id ,  COUNT(*) FROM locations GROUP BY country_id"
    ]
  },
  {
    "database": "soccer_1",
    "table": "Player_Attributes",
    "questions": [
      "What is the average rating for right-footed players and left-footed players?",
      "Of all players with an overall rating greater than 80, how many are right-footed and left-footed?"
    ],
    "col_names": [
      "id",
      "player_fifa_api_id",
      "player_api_id",
      "date",
      "overall_rating",
      "potential",
      "preferred_foot",
      "attacking_work_rate",
      "defensive_work_rate",
      "crossing",
      "finishing",
      "heading_accuracy",
      "short_passing",
      "volleys",
      "dribbling",
      "curve",
      "free_kick_accuracy",
      "long_passing",
      "ball_control",
      "acceleration",
      "sprint_speed",
      "agility",
      "reactions",
      "balance",
      "shot_power",
      "jumping",
      "stamina",
      "strength",
      "long_shots",
      "aggression",
      "interceptions",
      "positioning",
      "vision",
      "penalties",
      "marking",
      "standing_tackle",
      "sliding_tackle",
      "gk_diving",
      "gk_handling",
      "gk_kicking",
      "gk_positioning",
      "gk_reflexes"
    ],
    "standard_answer": [
      "SELECT preferred_foot ,  avg(overall_rating) FROM Player_Attributes GROUP BY preferred_foot",
      "SELECT preferred_foot ,  count(*) FROM Player_Attributes WHERE overall_rating  >  80 GROUP BY preferred_foot"
    ]
  },
  {
    "database": "soccer_1",
    "table": "sqlite_sequence",
    "questions": [],
    "col_names": [
      "name",
      "seq"
    ],
    "standard_answer": []
  },
  {
    "database": "soccer_1",
    "table": "Player",
    "questions": [
      "What is the average weight of all players?",
      "What is the maximum and minimum height of all players?",
      "List all player names who have an overall rating higher than the average.",
      "What are the names of players who have the best dribbling?",
      "List the names of all players who have a crossing score higher than 90 and prefer their right foot.",
      "List the names of all left-footed players who have overall rating between 85 and 90.",
      "List all of the player ids with a height of at least 180cm and an overall rating higher than 85.",
      "List all of the ids for left-footed players with a height between 180cm and 190cm.",
      "Who are the top 3 players in terms of overall rating?",
      "List the names and birthdays of the top five players in terms of potential."
    ],
    "col_names": [
      "id",
      "player_api_id",
      "player_name",
      "player_fifa_api_id",
      "birthday",
      "height",
      "weight"
    ],
    "standard_answer": [
      "SELECT avg(weight) FROM Player",
      "SELECT max(weight) ,  min(weight) FROM Player",
      "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating  >  ( SELECT avg(overall_rating) FROM Player_Attributes )",
      "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.dribbling  =  ( SELECT max(overall_rating) FROM Player_Attributes)",
      "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.crossing  >  90 AND T2.preferred_foot  =  \"right\"",
      "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.preferred_foot  =  \"left\" AND T2.overall_rating  >=  85 AND T2.overall_rating  <=  90",
      "SELECT player_api_id FROM Player WHERE height  >=  180 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE overall_rating  >  85",
      "SELECT player_api_id FROM Player WHERE height  >=  180 AND height  <=  190 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE preferred_foot  =  \"left\"",
      "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id  =  T2.player_api_id ORDER BY overall_rating DESC LIMIT 3",
      "SELECT DISTINCT T1.player_name ,  T1.birthday FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id  =  T2.player_api_id ORDER BY potential DESC LIMIT 5"
    ]
  },
  {
    "database": "soccer_1",
    "table": "League",
    "questions": [],
    "col_names": [
      "id",
      "country_id",
      "name"
    ],
    "standard_answer": []
  },
  {
    "database": "soccer_1",
    "table": "Country",
    "questions": [
      "List all country and league names.",
      "How many leagues are there in England?"
    ],
    "col_names": [
      "id",
      "name"
    ],
    "standard_answer": [
      "SELECT T1.name ,  T2.name FROM Country AS T1 JOIN League AS T2 ON T1.id  =  T2.country_id",
      "SELECT count(*) FROM Country AS T1 JOIN League AS T2 ON T1.id  =  T2.country_id WHERE T1.name  =  \"England\""
    ]
  },
  {
    "database": "soccer_1",
    "table": "Team",
    "questions": [],
    "col_names": [
      "id",
      "team_api_id",
      "team_fifa_api_id",
      "team_long_name",
      "team_short_name"
    ],
    "standard_answer": []
  },
  {
    "database": "soccer_1",
    "table": "Team_Attributes",
    "questions": [],
    "col_names": [
      "id",
      "team_fifa_api_id",
      "team_api_id",
      "date",
      "buildUpPlaySpeed",
      "buildUpPlaySpeedClass",
      "buildUpPlayDribbling",
      "buildUpPlayDribblingClass",
      "buildUpPlayPassing",
      "buildUpPlayPassingClass",
      "buildUpPlayPositioningClass",
      "chanceCreationPassing",
      "chanceCreationPassingClass",
      "chanceCreationCrossing",
      "chanceCreationCrossingClass",
      "chanceCreationShooting",
      "chanceCreationShootingClass",
      "chanceCreationPositioningClass",
      "defencePressure",
      "defencePressureClass",
      "defenceAggression",
      "defenceAggressionClass",
      "defenceTeamWidth",
      "defenceTeamWidthClass",
      "defenceDefenderLineClass"
    ],
    "standard_answer": []
  },
  {
    "database": "sakila_1",
    "table": "actor",
    "questions": [
      "How many different last names do the actors and actresses have?",
      "Count the number of different last names actors have.",
      "What is the most popular first name of the actors?",
      "Return the most common first name among all actors.",
      "What is the most popular full name of the actors?",
      "Return the most common full name among all actors."
    ],
    "col_names": [
      "actor_id",
      "first_name",
      "last_name",
      "last_update"
    ],
    "standard_answer": [
      "SELECT count(DISTINCT last_name) FROM actor",
      "SELECT count(DISTINCT last_name) FROM actor",
      "SELECT first_name FROM actor GROUP BY first_name ORDER BY count(*) DESC LIMIT 1",
      "SELECT first_name FROM actor GROUP BY first_name ORDER BY count(*) DESC LIMIT 1",
      "SELECT first_name ,  last_name FROM actor GROUP BY first_name ,  last_name ORDER BY count(*) DESC LIMIT 1",
      "SELECT first_name ,  last_name FROM actor GROUP BY first_name ,  last_name ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "sakila_1",
    "table": "address",
    "questions": [
      "Which districts have at least two addresses?",
      "Give the districts which have two or more addresses.",
      "What is the phone number and postal code of the address 1031 Daugavpils Parkway?",
      "Give the phone and postal code corresponding to the address '1031 Daugavpils Parkway'.",
      "Which city has the most addresses? List the city name, number of addresses, and city id.",
      "What are the city name, id, and number of addresses corresponding to the city with the most addressed?",
      "How many addresses are in the district of California?",
      "Count the number of addressed in the California district."
    ],
    "col_names": [
      "address_id",
      "address",
      "address2",
      "district",
      "city_id",
      "postal_code",
      "phone",
      "last_update"
    ],
    "standard_answer": [
      "SELECT district FROM address GROUP BY district HAVING count(*)  >=  2",
      "SELECT district FROM address GROUP BY district HAVING count(*)  >=  2",
      "SELECT phone ,  postal_code FROM address WHERE address  =  '1031 Daugavpils Parkway'",
      "SELECT phone ,  postal_code FROM address WHERE address  =  '1031 Daugavpils Parkway'",
      "SELECT T2.city ,  count(*) ,  T1.city_id FROM address AS T1 JOIN city AS T2 ON T1.city_id  =  T2.city_id GROUP BY T1.city_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T2.city ,  count(*) ,  T1.city_id FROM address AS T1 JOIN city AS T2 ON T1.city_id  =  T2.city_id GROUP BY T1.city_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT count(*) FROM address WHERE district  =  'California'",
      "SELECT count(*) FROM address WHERE district  =  'California'"
    ]
  },
  {
    "database": "sakila_1",
    "table": "category",
    "questions": [
      "What is the genre name of the film HUNGER ROOF?",
      "Return the name of the category to which the film 'HUNGER ROOF' belongs."
    ],
    "col_names": [
      "category_id",
      "name",
      "last_update"
    ],
    "standard_answer": [
      "SELECT T1.name FROM category AS T1 JOIN film_category AS T2 ON T1.category_id  =  T2.category_id JOIN film AS T3 ON T2.film_id  =  T3.film_id WHERE T3.title  =  'HUNGER ROOF'",
      "SELECT T1.name FROM category AS T1 JOIN film_category AS T2 ON T1.category_id  =  T2.category_id JOIN film AS T3 ON T2.film_id  =  T3.film_id WHERE T3.title  =  'HUNGER ROOF'"
    ]
  },
  {
    "database": "sakila_1",
    "table": "city",
    "questions": [
      "How many cities are in Australia?",
      "Count the number of cities in Australia.",
      "Which countries have at least 3 cities?",
      "What are the countries that contain 3 or more cities?"
    ],
    "col_names": [
      "city_id",
      "city",
      "country_id",
      "last_update"
    ],
    "standard_answer": [
      "SELECT count(*) FROM city AS T1 JOIN country AS T2 ON T1.country_id  =  T2.country_id WHERE T2.country  =  'Australia'",
      "SELECT count(*) FROM city AS T1 JOIN country AS T2 ON T1.country_id  =  T2.country_id WHERE T2.country  =  'Australia'",
      "SELECT T2.country FROM city AS T1 JOIN country AS T2 ON T1.country_id  =  T2.country_id GROUP BY T2.country_id HAVING count(*)  >=  3",
      "SELECT T2.country FROM city AS T1 JOIN country AS T2 ON T1.country_id  =  T2.country_id GROUP BY T2.country_id HAVING count(*)  >=  3"
    ]
  },
  {
    "database": "sakila_1",
    "table": "country",
    "questions": [],
    "col_names": [
      "country_id",
      "country",
      "last_update"
    ],
    "standard_answer": []
  },
  {
    "database": "sakila_1",
    "table": "customer",
    "questions": [
      "How many customers have an active value of 1?",
      "Count the number of customers who are active.",
      "Which customer, who has made at least one payment, has spent the least money? List his or her first name, last name, and the id.",
      "What is the full name and id of the customer who has the lowest total amount of payment?",
      "Where does the customer with the first name Linda live? And what is her email?",
      "Return the address and email of the customer with the first name Linda.",
      "What is the first name and the last name of the customer who made the earliest rental?",
      "Return the full name of the customer who made the first rental.",
      "Which store has most the customers?",
      "Return the id of the store with the most customers.",
      "What are the first names of customers who have not rented any films after '2005-08-23 02:06:01'?",
      "Return the first names of customers who did not rented a film after the date '2005-08-23 02:06:01'."
    ],
    "col_names": [
      "customer_id",
      "store_id",
      "first_name",
      "last_name",
      "email",
      "address_id",
      "active",
      "create_date",
      "last_update"
    ],
    "standard_answer": [
      "SELECT count(*) FROM customer WHERE active = '1'",
      "SELECT count(*) FROM customer WHERE active = '1'",
      "SELECT T1.first_name ,  T1.last_name ,  T1.customer_id FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY sum(amount) ASC LIMIT 1",
      "SELECT T1.first_name ,  T1.last_name ,  T1.customer_id FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY sum(amount) ASC LIMIT 1",
      "SELECT T2.address ,  T1.email FROM customer AS T1 JOIN address AS T2 ON T2.address_id  =  T1.address_id WHERE T1.first_name  =  'LINDA'",
      "SELECT T2.address ,  T1.email FROM customer AS T1 JOIN address AS T2 ON T2.address_id  =  T1.address_id WHERE T1.first_name  =  'LINDA'",
      "SELECT T1.first_name ,  T1.last_name FROM customer AS T1 JOIN rental AS T2 ON T1.customer_id  =  T2.customer_id ORDER BY T2.rental_date ASC LIMIT 1",
      "SELECT T1.first_name ,  T1.last_name FROM customer AS T1 JOIN rental AS T2 ON T1.customer_id  =  T2.customer_id ORDER BY T2.rental_date ASC LIMIT 1",
      "SELECT store_id FROM customer GROUP BY store_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT store_id FROM customer GROUP BY store_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT first_name FROM customer WHERE customer_id NOT IN( SELECT customer_id FROM rental WHERE rental_date  >  '2005-08-23 02:06:01' )",
      "SELECT first_name FROM customer WHERE customer_id NOT IN( SELECT customer_id FROM rental WHERE rental_date  >  '2005-08-23 02:06:01' )"
    ]
  },
  {
    "database": "sakila_1",
    "table": "film",
    "questions": [
      "Which film is rented at a fee of 0.99 and has less than 3 in the inventory? List the film title and id.",
      "What are the title and id of the film which has a rental rate of 0.99 and an inventory of below 3?",
      "Which film has the highest rental rate? And what is the rate?",
      "What are the title and rental rate of the film with the highest rental rate?",
      "Which film has the most copies in the inventory? List both title and id.",
      "What is the title and id of the film that has the greatest number of copies in inventory?",
      "What is the film title and inventory id of the item in the inventory which was rented most frequently?",
      "Return the title and inventory id of the film that is rented most often.",
      "How many languages are in these films?",
      "Count the number of different languages in these films.",
      "What are all the movies rated as R? List the titles.",
      "Return the titles of any movies with an R rating.",
      "Which language does the film AIRPORT POLLOCK use? List the language name.",
      "What is the name of the language that the film 'AIRPORT POLLOCK' is in?",
      "How many kinds of different ratings are listed?",
      "Count the number of different film ratings.",
      "Which movies have 'Deleted Scenes' as a substring in the special feature?",
      "Return the titles of films that include 'Deleted Scenes' in their special feature section.",
      "Find all the films longer than 100 minutes, or rated PG, except those who cost more than 200 for replacement. List the titles.",
      "What are the titles of films that are either longer than 100 minutes or rated PG other than those that cost more than 200 to replace?"
    ],
    "col_names": [
      "film_id",
      "title",
      "description",
      "release_year",
      "language_id",
      "original_language_id",
      "rental_duration",
      "rental_rate",
      "length",
      "replacement_cost",
      "rating",
      "special_features",
      "last_update"
    ],
    "standard_answer": [
      "SELECT title ,  film_id FROM film WHERE rental_rate  =  0.99 INTERSECT SELECT T1.title ,  T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id  =  T2.film_id GROUP BY T1.film_id HAVING count(*)  <  3",
      "SELECT title ,  film_id FROM film WHERE rental_rate  =  0.99 INTERSECT SELECT T1.title ,  T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id  =  T2.film_id GROUP BY T1.film_id HAVING count(*)  <  3",
      "SELECT title ,  rental_rate FROM film ORDER BY rental_rate DESC LIMIT 1",
      "SELECT title ,  rental_rate FROM film ORDER BY rental_rate DESC LIMIT 1",
      "SELECT T1.title ,  T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id  =  T2.film_id GROUP BY T1.film_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.title ,  T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id  =  T2.film_id GROUP BY T1.film_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.title ,  T2.inventory_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id  =  T2.film_id JOIN rental AS T3 ON T2.inventory_id  =  T3.inventory_id GROUP BY T2.inventory_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.title ,  T2.inventory_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id  =  T2.film_id JOIN rental AS T3 ON T2.inventory_id  =  T3.inventory_id GROUP BY T2.inventory_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT count(DISTINCT language_id) FROM film",
      "SELECT count(DISTINCT language_id) FROM film",
      "SELECT title FROM film WHERE rating  =  'R'",
      "SELECT title FROM film WHERE rating  =  'R'",
      "SELECT T2.name FROM film AS T1 JOIN LANGUAGE AS T2 ON T1.language_id  =  T2.language_id WHERE T1.title  =  'AIRPORT POLLOCK'",
      "SELECT T2.name FROM film AS T1 JOIN LANGUAGE AS T2 ON T1.language_id  =  T2.language_id WHERE T1.title  =  'AIRPORT POLLOCK'",
      "SELECT count(DISTINCT rating) FROM film",
      "SELECT count(DISTINCT rating) FROM film",
      "SELECT title FROM film WHERE special_features LIKE '%Deleted Scenes%'",
      "SELECT title FROM film WHERE special_features LIKE '%Deleted Scenes%'",
      "SELECT title FROM film WHERE LENGTH  >  100 OR rating  =  'PG' EXCEPT SELECT title FROM film WHERE replacement_cost  >  200",
      "SELECT title FROM film WHERE LENGTH  >  100 OR rating  =  'PG' EXCEPT SELECT title FROM film WHERE replacement_cost  >  200"
    ]
  },
  {
    "database": "sakila_1",
    "table": "film_actor",
    "questions": [
      "Which film has the most number of actors or actresses? List the film name, film id and description.",
      "What are the title, id, and description of the movie with the greatest number of actors?",
      "Which film actor (actress) starred the most films? List his or her first name, last name and actor id.",
      "Return the full name and id of the actor or actress who starred in the greatest number of films.",
      "Which film actors (actresses) played a role in more than 30 films? List his or her first name and last name.",
      "What are the full names of actors who had roles in more than 30 films?"
    ],
    "col_names": [
      "actor_id",
      "film_id",
      "last_update"
    ],
    "standard_answer": [
      "SELECT T2.title ,  T2.film_id ,  T2.description FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id GROUP BY T2.film_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T2.title ,  T2.film_id ,  T2.description FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id GROUP BY T2.film_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T2.first_name ,  T2.last_name ,  T2.actor_id FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id  =  T2.actor_id GROUP BY T2.actor_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T2.first_name ,  T2.last_name ,  T2.actor_id FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id  =  T2.actor_id GROUP BY T2.actor_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T2.first_name ,  T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id  =  T2.actor_id GROUP BY T2.actor_id HAVING count(*)  >  30",
      "SELECT T2.first_name ,  T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id  =  T2.actor_id GROUP BY T2.actor_id HAVING count(*)  >  30"
    ]
  },
  {
    "database": "sakila_1",
    "table": "film_category",
    "questions": [
      "How many films are there in each category? List the genre name, genre id and the count.",
      "What are the names and ids of the different categories, and how many films are in each?"
    ],
    "col_names": [
      "film_id",
      "category_id",
      "last_update"
    ],
    "standard_answer": [
      "SELECT T2.name ,  T1.category_id ,  count(*) FROM film_category AS T1 JOIN category AS T2 ON T1.category_id  =  T2.category_id GROUP BY T1.category_id",
      "SELECT T2.name ,  T1.category_id ,  count(*) FROM film_category AS T1 JOIN category AS T2 ON T1.category_id  =  T2.category_id GROUP BY T1.category_id"
    ]
  },
  {
    "database": "sakila_1",
    "table": "film_text",
    "questions": [],
    "col_names": [
      "film_id",
      "title",
      "description"
    ],
    "standard_answer": []
  },
  {
    "database": "sakila_1",
    "table": "inventory",
    "questions": [
      "Which store owns most items?",
      "What is the id of the store that has the most items in inventory?",
      "How many items in inventory does store 1 have?",
      "Count the number of items store 1 has in stock."
    ],
    "col_names": [
      "inventory_id",
      "film_id",
      "store_id",
      "last_update"
    ],
    "standard_answer": [
      "SELECT store_id FROM inventory GROUP BY store_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT store_id FROM inventory GROUP BY store_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT count(*) FROM inventory WHERE store_id  =  1",
      "SELECT count(*) FROM inventory WHERE store_id  =  1"
    ]
  },
  {
    "database": "sakila_1",
    "table": "language",
    "questions": [],
    "col_names": [
      "language_id",
      "name",
      "last_update"
    ],
    "standard_answer": []
  },
  {
    "database": "sakila_1",
    "table": "payment",
    "questions": [
      "Find all the payment dates for the payments with an amount larger than 10 and the payments handled by a staff person with the first name Elsa.",
      "What are the payment dates for any payments that have an amount greater than 10 or were handled by a staff member with the first name Elsa?",
      "What is the total amount of all payments?",
      "Return the sum of all payment amounts.",
      "When did the first payment happen?",
      "What was the date of the earliest payment?",
      "What is the largest payment amount?",
      "Return the amount of the largest payment."
    ],
    "col_names": [
      "payment_id",
      "customer_id",
      "staff_id",
      "rental_id",
      "amount",
      "payment_date",
      "last_update"
    ],
    "standard_answer": [
      "SELECT payment_date FROM payment WHERE amount  >  10 UNION SELECT T1.payment_date FROM payment AS T1 JOIN staff AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.first_name  =  'Elsa'",
      "SELECT payment_date FROM payment WHERE amount  >  10 UNION SELECT T1.payment_date FROM payment AS T1 JOIN staff AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.first_name  =  'Elsa'",
      "SELECT sum(amount) FROM payment",
      "SELECT sum(amount) FROM payment",
      "SELECT payment_date FROM payment ORDER BY payment_date ASC LIMIT 1",
      "SELECT payment_date FROM payment ORDER BY payment_date ASC LIMIT 1",
      "SELECT amount FROM payment ORDER BY amount DESC LIMIT 1",
      "SELECT amount FROM payment ORDER BY amount DESC LIMIT 1"
    ]
  },
  {
    "database": "sakila_1",
    "table": "rental",
    "questions": [],
    "col_names": [
      "rental_id",
      "rental_date",
      "inventory_id",
      "customer_id",
      "return_date",
      "staff_id",
      "last_update"
    ],
    "standard_answer": []
  },
  {
    "database": "sakila_1",
    "table": "staff",
    "questions": [
      "Which staff handled least number of payments? List the full name and the id.",
      "Give the full name and staff id of the staff who has handled the fewest payments.",
      "What is the full name of the staff member who has rented a film to a customer with the first name April and the last name Burns?",
      "Return the full name of the staff who provided a customer with the first name April and the last name Burns with a film rental.",
      "Where does the staff member with the first name Elsa live?",
      "Give the address of the staff member who has the first name Elsa."
    ],
    "col_names": [
      "staff_id",
      "first_name",
      "last_name",
      "address_id",
      "picture",
      "email",
      "store_id",
      "active",
      "username",
      "password",
      "last_update"
    ],
    "standard_answer": [
      "SELECT T1.first_name ,  T1.last_name ,  T1.staff_id FROM staff AS T1 JOIN payment AS T2 ON T1.staff_id  =  T2.staff_id GROUP BY T1.staff_id ORDER BY count(*) ASC LIMIT 1",
      "SELECT T1.first_name ,  T1.last_name ,  T1.staff_id FROM staff AS T1 JOIN payment AS T2 ON T1.staff_id  =  T2.staff_id GROUP BY T1.staff_id ORDER BY count(*) ASC LIMIT 1",
      "SELECT DISTINCT T1.first_name ,  T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id  =  T2.staff_id JOIN customer AS T3 ON T2.customer_id  =  T3.customer_id WHERE T3.first_name  =  'APRIL' AND T3.last_name  =  'BURNS'",
      "SELECT DISTINCT T1.first_name ,  T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id  =  T2.staff_id JOIN customer AS T3 ON T2.customer_id  =  T3.customer_id WHERE T3.first_name  =  'APRIL' AND T3.last_name  =  'BURNS'",
      "SELECT T2.address FROM staff AS T1 JOIN address AS T2 ON T1.address_id  =  T2.address_id WHERE T1.first_name  =  'Elsa'",
      "SELECT T2.address FROM staff AS T1 JOIN address AS T2 ON T1.address_id  =  T2.address_id WHERE T1.first_name  =  'Elsa'"
    ]
  },
  {
    "database": "sakila_1",
    "table": "store",
    "questions": [
      "Where is store 1 located?",
      "Return the address of store 1.",
      "How many stores are there?",
      "Count the number of stores."
    ],
    "col_names": [
      "store_id",
      "manager_staff_id",
      "address_id",
      "last_update"
    ],
    "standard_answer": [
      "SELECT T2.address FROM store AS T1 JOIN address AS T2 ON T1.address_id  =  T2.address_id WHERE store_id  =  1",
      "SELECT T2.address FROM store AS T1 JOIN address AS T2 ON T1.address_id  =  T2.address_id WHERE store_id  =  1",
      "SELECT count(*) FROM store",
      "SELECT count(*) FROM store"
    ]
  },
  {
    "database": "real_estate_properties",
    "table": "Ref_Feature_Types",
    "questions": [],
    "col_names": [
      "feature_type_code",
      "feature_type_name"
    ],
    "standard_answer": []
  },
  {
    "database": "real_estate_properties",
    "table": "Ref_Property_Types",
    "questions": [],
    "col_names": [
      "property_type_code",
      "property_type_description"
    ],
    "standard_answer": []
  },
  {
    "database": "real_estate_properties",
    "table": "Other_Available_Features",
    "questions": [],
    "col_names": [
      "feature_id",
      "feature_type_code",
      "feature_name",
      "feature_description"
    ],
    "standard_answer": []
  },
  {
    "database": "real_estate_properties",
    "table": "Properties",
    "questions": [],
    "col_names": [
      "property_id",
      "property_type_code",
      "date_on_market",
      "date_sold",
      "property_name",
      "property_address",
      "room_count",
      "vendor_requested_price",
      "buyer_offered_price",
      "agreed_selling_price",
      "apt_feature_1",
      "apt_feature_2",
      "apt_feature_3",
      "fld_feature_1",
      "fld_feature_2",
      "fld_feature_3",
      "hse_feature_1",
      "hse_feature_2",
      "hse_feature_3",
      "oth_feature_1",
      "oth_feature_2",
      "oth_feature_3",
      "shp_feature_1",
      "shp_feature_2",
      "shp_feature_3",
      "other_property_details"
    ],
    "standard_answer": []
  },
  {
    "database": "real_estate_properties",
    "table": "Other_Property_Features",
    "questions": [],
    "col_names": [
      "property_id",
      "feature_id",
      "property_feature_description"
    ],
    "standard_answer": []
  },
  {
    "database": "college_3",
    "table": "Student",
    "questions": [],
    "col_names": [
      "StuID",
      "LName",
      "Fname",
      "Age",
      "Sex",
      "Major",
      "Advisor",
      "city_code"
    ],
    "standard_answer": []
  },
  {
    "database": "college_3",
    "table": "Faculty",
    "questions": [],
    "col_names": [
      "FacID",
      "Lname",
      "Fname",
      "Rank",
      "Sex",
      "Phone",
      "Room",
      "Building"
    ],
    "standard_answer": []
  },
  {
    "database": "college_3",
    "table": "Department",
    "questions": [],
    "col_names": [
      "DNO",
      "Division",
      "DName",
      "Room",
      "Building",
      "DPhone"
    ],
    "standard_answer": []
  },
  {
    "database": "college_3",
    "table": "Member_of",
    "questions": [],
    "col_names": [
      "FacID",
      "DNO",
      "Appt_Type"
    ],
    "standard_answer": []
  },
  {
    "database": "college_3",
    "table": "Course",
    "questions": [],
    "col_names": [
      "CID",
      "CName",
      "Credits",
      "Instructor",
      "Days",
      "Hours",
      "DNO"
    ],
    "standard_answer": []
  },
  {
    "database": "college_3",
    "table": "Minor_in",
    "questions": [],
    "col_names": [
      "StuID",
      "DNO"
    ],
    "standard_answer": []
  },
  {
    "database": "college_3",
    "table": "Enrolled_in",
    "questions": [],
    "col_names": [
      "StuID",
      "CID",
      "Grade"
    ],
    "standard_answer": []
  },
  {
    "database": "college_3",
    "table": "Gradeconversion",
    "questions": [],
    "col_names": [
      "lettergrade",
      "gradepoint"
    ],
    "standard_answer": []
  },
  {
    "database": "course_teach",
    "table": "course",
    "questions": [],
    "col_names": [
      "Course_ID",
      "Staring_Date",
      "Course"
    ],
    "standard_answer": []
  },
  {
    "database": "course_teach",
    "table": "teacher",
    "questions": [],
    "col_names": [
      "Teacher_ID",
      "Name",
      "Age",
      "Hometown"
    ],
    "standard_answer": []
  },
  {
    "database": "course_teach",
    "table": "course_arrange",
    "questions": [],
    "col_names": [
      "Course_ID",
      "Teacher_ID",
      "Grade"
    ],
    "standard_answer": []
  },
  {
    "database": "roller_coaster",
    "table": "roller_coaster",
    "questions": [
      "How many roller coasters are there?",
      "List the names of roller coasters by ascending order of length.",
      "What are the lengths and heights of roller coasters?",
      "Show the statuses of roller coasters longer than 3300 or higher than 100.",
      "What are the speeds of the longest roller coaster?",
      "What is the average speed of roller coasters?",
      "Show the different statuses and the numbers of roller coasters for each status.",
      "Please show the most common status of roller coasters.",
      "List the status shared by more than two roller coaster.",
      "Show the park of the roller coaster with the highest speed."
    ],
    "col_names": [
      "Roller_Coaster_ID",
      "Name",
      "Park",
      "Country_ID",
      "Length",
      "Height",
      "Speed",
      "Opened",
      "Status"
    ],
    "standard_answer": [
      "SELECT count(*) FROM roller_coaster",
      "SELECT Name FROM roller_coaster ORDER BY LENGTH ASC",
      "SELECT LENGTH ,  Height FROM roller_coaster",
      "SELECT Status FROM roller_coaster WHERE LENGTH  >  3300 OR Height  >  100",
      "SELECT Speed FROM roller_coaster ORDER BY LENGTH DESC LIMIT 1",
      "SELECT avg(Speed) FROM roller_coaster",
      "SELECT Status ,  COUNT(*) FROM roller_coaster GROUP BY Status",
      "SELECT Status FROM roller_coaster GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Status FROM roller_coaster GROUP BY Status HAVING COUNT(*)  >  2",
      "SELECT Park FROM roller_coaster ORDER BY Speed DESC LIMIT 1"
    ]
  },
  {
    "database": "roller_coaster",
    "table": "country",
    "questions": [
      "List the names of countries whose language is not \"German\".",
      "Show the names of roller coasters and names of country they are in.",
      "Show the names of countries that have more than one roller coaster.",
      "Show the name and population of the country that has the highest roller coaster.",
      "Show the names of countries and the average speed of roller coasters from each country.",
      "How many countries do not have an roller coaster longer than 3000?",
      "What are the country names, area and population which has both roller coasters with speed higher"
    ],
    "col_names": [
      "Country_ID",
      "Name",
      "Population",
      "Area",
      "Languages"
    ],
    "standard_answer": [
      "SELECT Name FROM country WHERE Languages != \"German\"",
      "SELECT T2.Name ,  T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID",
      "SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID GROUP BY T1.Name HAVING COUNT(*)  >  1",
      "SELECT T1.Name ,  T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID ORDER BY T2.Height DESC LIMIT 1",
      "SELECT T1.Name ,  avg(T2.Speed) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID GROUP BY T1.Name",
      "SELECT count(*) FROM country WHERE country_id NOT IN ( SELECT country_id FROM roller_coaster WHERE LENGTH  >  3000 )",
      "SELECT T1.name ,  T1.area ,  T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID WHERE T2.speed  >  60 INTERSECT SELECT T1.name ,  T1.area ,  T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID WHERE T2.speed  <  55"
    ]
  },
  {
    "database": "customer_deliveries",
    "table": "Products",
    "questions": [],
    "col_names": [
      "product_id",
      "product_name",
      "product_price",
      "product_description"
    ],
    "standard_answer": []
  },
  {
    "database": "customer_deliveries",
    "table": "Addresses",
    "questions": [],
    "col_names": [
      "address_id",
      "address_details",
      "city",
      "zip_postcode",
      "state_province_county",
      "country"
    ],
    "standard_answer": []
  },
  {
    "database": "customer_deliveries",
    "table": "Customers",
    "questions": [
      "List the names, phone numbers, and emails of all customers sorted by their dates of becoming customers.",
      "Find the name of the first 5 customers.",
      "Find the payment method that is used most frequently."
    ],
    "col_names": [
      "customer_id",
      "payment_method",
      "customer_name",
      "customer_phone",
      "customer_email",
      "date_became_customer"
    ],
    "standard_answer": [
      "SELECT customer_name ,  customer_phone ,  customer_email FROM Customers ORDER BY date_became_customer",
      "SELECT customer_name FROM Customers ORDER BY date_became_customer LIMIT 5",
      "SELECT payment_method FROM Customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "customer_deliveries",
    "table": "Regular_Orders",
    "questions": [],
    "col_names": [
      "regular_order_id",
      "distributer_id"
    ],
    "standard_answer": []
  },
  {
    "database": "customer_deliveries",
    "table": "Regular_Order_Products",
    "questions": [],
    "col_names": [
      "regular_order_id",
      "product_id"
    ],
    "standard_answer": []
  },
  {
    "database": "customer_deliveries",
    "table": "Actual_Orders",
    "questions": [],
    "col_names": [
      "actual_order_id",
      "order_status_code",
      "regular_order_id",
      "actual_order_date"
    ],
    "standard_answer": []
  },
  {
    "database": "customer_deliveries",
    "table": "Actual_Order_Products",
    "questions": [],
    "col_names": [
      "actual_order_id",
      "product_id"
    ],
    "standard_answer": []
  },
  {
    "database": "customer_deliveries",
    "table": "Customer_Addresses",
    "questions": [],
    "col_names": [
      "customer_id",
      "address_id",
      "date_from",
      "address_type",
      "date_to"
    ],
    "standard_answer": []
  },
  {
    "database": "customer_deliveries",
    "table": "Delivery_Routes",
    "questions": [
      "List the names of all routes in alphabetic order.",
      "Find the name of route that has the highest number of deliveries."
    ],
    "col_names": [
      "route_id",
      "route_name",
      "other_route_details"
    ],
    "standard_answer": [
      "SELECT route_name FROM Delivery_Routes ORDER BY route_name",
      "SELECT t1.route_name FROM Delivery_Routes AS t1 JOIN Delivery_Route_Locations AS t2 ON t1.route_id  =  t2.route_id GROUP BY t1.route_id ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "customer_deliveries",
    "table": "Delivery_Route_Locations",
    "questions": [],
    "col_names": [
      "location_code",
      "route_id",
      "location_address_id",
      "location_name"
    ],
    "standard_answer": []
  },
  {
    "database": "customer_deliveries",
    "table": "Trucks",
    "questions": [],
    "col_names": [
      "truck_id",
      "truck_licence_number",
      "truck_details"
    ],
    "standard_answer": []
  },
  {
    "database": "customer_deliveries",
    "table": "Employees",
    "questions": [],
    "col_names": [
      "employee_id",
      "employee_address_id",
      "employee_name",
      "employee_phone"
    ],
    "standard_answer": []
  },
  {
    "database": "customer_deliveries",
    "table": "Order_Deliveries",
    "questions": [],
    "col_names": [
      "location_code",
      "actual_order_id",
      "delivery_status_code",
      "driver_employee_id",
      "truck_id",
      "delivery_date"
    ],
    "standard_answer": []
  },
  {
    "database": "game_injury",
    "table": "stadium",
    "questions": [
      "What are the maximum, minimum and average home games each stadium held?",
      "What is the average attendance of stadiums with capacity percentage higher than 100%?",
      "What are the id and name of the stadium where the most injury accidents happened?",
      "Find the id and name of the stadium where the largest number of injury accidents occurred.",
      "Show the name, average attendance, total attendance for stadiums where no accidents happened.",
      "Which stadium name contains the substring \"Bank\"?",
      "How many games has each stadium held?"
    ],
    "col_names": [
      "id",
      "name",
      "Home_Games",
      "Average_Attendance",
      "Total_Attendance",
      "Capacity_Percentage"
    ],
    "standard_answer": [
      "SELECT max(home_games) ,  min(home_games) ,  avg(home_games) FROM stadium",
      "SELECT average_attendance FROM stadium WHERE capacity_percentage  >  100",
      "SELECT T1.id ,  T1.name FROM stadium AS T1 JOIN game AS T2 ON T1.id  =  T2.stadium_id JOIN injury_accident AS T3 ON T2.id  =  T3.game_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.id ,  T1.name FROM stadium AS T1 JOIN game AS T2 ON T1.id  =  T2.stadium_id JOIN injury_accident AS T3 ON T2.id  =  T3.game_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1",
      "SELECT name ,  average_attendance ,  total_attendance FROM stadium EXCEPT SELECT T2.name ,  T2.average_attendance ,  T2.total_attendance FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id",
      "SELECT name FROM stadium WHERE name LIKE \"%Bank%\"",
      "SELECT T1.id ,  count(*) FROM stadium AS T1 JOIN game AS T2 ON T1.id  =  T2.stadium_id GROUP BY T1.id"
    ]
  },
  {
    "database": "game_injury",
    "table": "game",
    "questions": [
      "How many games are held after season 2007?",
      "List the dates of games by the home team name in descending order.",
      "List the season, home team, away team of all the games.",
      "What is the season of the game which causes the player 'Walter Samuel' to get injured?",
      "What are the ids, scores, and dates of the games which caused at least two injury accidents?",
      "In which season and which stadium did any player have an injury of 'Foot injury' or 'Knee problem'?",
      "How many games are free of injury accidents?",
      "List the name of the stadium where both the player 'Walter Samuel' and the player 'Thiago Motta' got injured.",
      "For each injury accident, find the date of the game and the name of the injured player in the game, and sort the results in descending order of game season."
    ],
    "col_names": [
      "stadium_id",
      "id",
      "Season",
      "Date",
      "Home_team",
      "Away_team",
      "Score",
      "Competition"
    ],
    "standard_answer": [
      "SELECT count(*) FROM game WHERE season  >  2007",
      "SELECT Date FROM game ORDER BY home_team DESC",
      "SELECT season ,  home_team ,  away_team FROM game",
      "SELECT T1.season FROM game AS T1 JOIN injury_accident AS T2 ON T1.id  =  T2.game_id WHERE T2.player  =  'Walter Samuel'",
      "SELECT T1.id ,  T1.score ,  T1.date FROM game AS T1 JOIN injury_accident AS T2 ON T2.game_id  =  T1.id GROUP BY T1.id HAVING count(*)  >=  2",
      "SELECT T1.season ,  T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id WHERE T3.injury  =  'Foot injury' OR T3.injury  =  'Knee problem'",
      "SELECT count(*) FROM game WHERE id NOT IN ( SELECT game_id FROM injury_accident )",
      "SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id WHERE T3.player  =  'Walter Samuel' INTERSECT SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id WHERE T3.player  =  'Thiago Motta'",
      "SELECT T1.date ,  T2.player FROM game AS T1 JOIN injury_accident AS T2 ON T1.id  =  T2.game_id ORDER BY T1.season DESC"
    ]
  },
  {
    "database": "game_injury",
    "table": "injury_accident",
    "questions": [
      "What are the player name, number of matches, and information source for players who do not suffer from injury of 'Knee problem'?",
      "How many different kinds of information sources are there for injury accidents?",
      "How many distinct kinds of injuries happened after season 2010?"
    ],
    "col_names": [
      "game_id",
      "id",
      "Player",
      "Injury",
      "Number_of_matches",
      "Source"
    ],
    "standard_answer": [
      "SELECT player ,  number_of_matches ,  SOURCE FROM injury_accident WHERE injury != 'Knee problem'",
      "SELECT count(DISTINCT SOURCE) FROM injury_accident",
      "SELECT count(DISTINCT T1.injury) FROM injury_accident AS T1 JOIN game AS T2 ON T1.game_id  =  T2.id WHERE T2.season  >  2010"
    ]
  },
  {
    "database": "school_finance",
    "table": "School",
    "questions": [],
    "col_names": [
      "School_id",
      "School_name",
      "Location",
      "Mascot",
      "Enrollment",
      "IHSAA_Class",
      "IHSAA_Football_Class",
      "County"
    ],
    "standard_answer": []
  },
  {
    "database": "school_finance",
    "table": "budget",
    "questions": [
      "How many budgets are above 3000 in year 2001 or before?",
      "Count the number of budgets in year 2001 or before whose budgeted amount is greater than 3000",
      "Show each school name, its budgeted amount, and invested amount in year 2002 or after.",
      "How many budget record has a budget amount smaller than the invested amount?",
      "What is the total budget amount for school \"Glenn\" in all years?",
      "Show the names of schools with a total budget amount greater than 100 or a total endowment greater than 10."
    ],
    "col_names": [
      "School_id",
      "Year",
      "Budgeted",
      "total_budget_percent_budgeted",
      "Invested",
      "total_budget_percent_invested",
      "Budget_invested_percent"
    ],
    "standard_answer": [
      "SELECT count(*) FROM budget WHERE budgeted  >  3000 AND YEAR  <=  2001",
      "SELECT count(*) FROM budget WHERE budgeted  >  3000 AND YEAR  <=  2001",
      "SELECT T2.school_name ,  T1.budgeted ,  T1.invested FROM budget AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T1.year  >=  2002",
      "SELECT count(*) FROM budget WHERE budgeted  <  invested",
      "SELECT sum(T1.budgeted) FROM budget AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T2.school_name  =  'Glenn'",
      "SELECT T2.school_name FROM budget AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id JOIN endowment AS T3 ON T2.school_id  =  T3.school_id GROUP BY T2.school_name HAVING sum(T1.budgeted)  >  100 OR sum(T3.amount)  >  10"
    ]
  },
  {
    "database": "school_finance",
    "table": "endowment",
    "questions": [
      "How many donors have endowment for school named \"Glenn\"?",
      "List each donator name and the amount of endowment in descending order of the amount of endowment.",
      "List all the names of schools with an endowment amount smaller than or equal to 10.",
      "Show the names of donors who donated to both school \"Glenn\" and \"Triton.\"",
      "Show the names of all the donors except those whose donation amount less than 9.",
      "List the amount and donor name for the largest amount of donation.",
      "Show all donor names.",
      "Find the names of schools that have more than one donator with donation amount above 8.5."
    ],
    "col_names": [
      "endowment_id",
      "School_id",
      "donator_name",
      "amount"
    ],
    "standard_answer": [
      "SELECT count(DISTINCT T1.donator_name) FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T2.school_name  =  \"Glenn\"",
      "SELECT donator_name ,  sum(amount) FROM endowment GROUP BY donator_name ORDER BY sum(amount) DESC",
      "SELECT T2.school_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id GROUP BY T1.school_id HAVING sum(T1.amount)  <=  10",
      "SELECT T1.donator_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T2.school_name  =  'Glenn' INTERSECT SELECT T1.donator_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T2.school_name  =  'Triton'",
      "SELECT donator_name FROM endowment EXCEPT SELECT donator_name FROM endowment WHERE amount  <  9",
      "SELECT amount ,  donator_name FROM endowment ORDER BY amount DESC LIMIT 1",
      "SELECT DISTINCT donator_name FROM endowment",
      "SELECT T2.School_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T1.amount  >  8.5 GROUP BY T1.school_id HAVING count(*)  >  1"
    ]
  },
  {
    "database": "scholar",
    "table": "venue",
    "questions": [],
    "col_names": [
      "venueId",
      "venueName"
    ],
    "standard_answer": []
  },
  {
    "database": "scholar",
    "table": "author",
    "questions": [],
    "col_names": [
      "authorId",
      "authorName"
    ],
    "standard_answer": []
  },
  {
    "database": "scholar",
    "table": "dataset",
    "questions": [],
    "col_names": [
      "datasetId",
      "datasetName"
    ],
    "standard_answer": []
  },
  {
    "database": "scholar",
    "table": "journal",
    "questions": [],
    "col_names": [
      "journalId",
      "journalName"
    ],
    "standard_answer": []
  },
  {
    "database": "scholar",
    "table": "keyphrase",
    "questions": [],
    "col_names": [
      "keyphraseId",
      "keyphraseName"
    ],
    "standard_answer": []
  },
  {
    "database": "scholar",
    "table": "paper",
    "questions": [],
    "col_names": [
      "paperId",
      "title",
      "venueId",
      "year",
      "numCiting",
      "numCitedBy",
      "journalId"
    ],
    "standard_answer": []
  },
  {
    "database": "scholar",
    "table": "cite",
    "questions": [],
    "col_names": [
      "citingPaperId",
      "citedPaperId"
    ],
    "standard_answer": []
  },
  {
    "database": "scholar",
    "table": "paperDataset",
    "questions": [],
    "col_names": [
      "paperId",
      "datasetId"
    ],
    "standard_answer": []
  },
  {
    "database": "scholar",
    "table": "paperKeyphrase",
    "questions": [],
    "col_names": [
      "paperId",
      "keyphraseId"
    ],
    "standard_answer": []
  },
  {
    "database": "scholar",
    "table": "writes",
    "questions": [],
    "col_names": [
      "paperId",
      "authorId"
    ],
    "standard_answer": []
  },
  {
    "database": "voter_1",
    "table": "AREA_CODE_STATE",
    "questions": [],
    "col_names": [
      "area_code",
      "state"
    ],
    "standard_answer": []
  },
  {
    "database": "voter_1",
    "table": "CONTESTANTS",
    "questions": [],
    "col_names": [
      "contestant_number",
      "contestant_name"
    ],
    "standard_answer": []
  },
  {
    "database": "voter_1",
    "table": "VOTES",
    "questions": [],
    "col_names": [
      "vote_id",
      "phone_number",
      "state",
      "contestant_number",
      "created"
    ],
    "standard_answer": []
  },
  {
    "database": "match_season",
    "table": "country",
    "questions": [
      "How many countries are there in total?",
      "Count the number of countries.",
      "Show the country name and capital of all countries.",
      "What are the names and capitals of each country?",
      "Show all official native languages that contain the word \"English\".",
      "What are the official native languages that contain the string \"English\".",
      "Show the season, the player, and the name of the country that player belongs to.",
      "For each player, what are their name, season, and country that they belong to?",
      "Which players are from Indonesia?",
      "Who are the players from Indonesia?",
      "What are the distinct positions of the players from a country whose capital is Dublin?",
      "Give the different positions of players who play for the country with the capital Dublin.",
      "What are the official languages of the countries of players from Maryland or Duke college?",
      "Return the official native languages of countries who have players from Maryland or Duke colleges.",
      "How many distinct official languages are there among countries of players whose positions are defenders.",
      "Count the number of different official languages corresponding to countries that players who play Defender are from.",
      "Show the country names and the corresponding number of players.",
      "How many players are from each country?",
      "What are the names of countries that have both players with position forward and players with position defender?",
      "Return the names of countries that have players that play the Forward position, as well as players who play the Defender position."
    ],
    "col_names": [
      "Country_id",
      "Country_name",
      "Capital",
      "Official_native_language"
    ],
    "standard_answer": [
      "SELECT count(*) FROM country",
      "SELECT count(*) FROM country",
      "SELECT Country_name ,  Capital FROM country",
      "SELECT Country_name ,  Capital FROM country",
      "SELECT Official_native_language FROM country WHERE Official_native_language LIKE \"%English%\"",
      "SELECT Official_native_language FROM country WHERE Official_native_language LIKE \"%English%\"",
      "SELECT T2.Season ,  T2.Player ,  T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country",
      "SELECT T2.Season ,  T2.Player ,  T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country",
      "SELECT T2.Player FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T1.Country_name  =  \"Indonesia\"",
      "SELECT T2.Player FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T1.Country_name  =  \"Indonesia\"",
      "SELECT DISTINCT T2.Position FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T1.Capital  =  \"Dublin\"",
      "SELECT DISTINCT T2.Position FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T1.Capital  =  \"Dublin\"",
      "SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T2.College  =  \"Maryland\" OR T2.College  =  \"Duke\"",
      "SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T2.College  =  \"Maryland\" OR T2.College  =  \"Duke\"",
      "SELECT count(DISTINCT T1.Official_native_language) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T2.Position  =  \"Defender\"",
      "SELECT count(DISTINCT T1.Official_native_language) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T2.Position  =  \"Defender\"",
      "SELECT Country_name ,  COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country GROUP BY T1.Country_name",
      "SELECT Country_name ,  COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country GROUP BY T1.Country_name",
      "SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T2.Position  =  \"Forward\" INTERSECT SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T2.Position  =  \"Defender\"",
      "SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T2.Position  =  \"Forward\" INTERSECT SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id  =  T2.Country WHERE T2.Position  =  \"Defender\""
    ]
  },
  {
    "database": "match_season",
    "table": "team",
    "questions": [
      "What are the names of teams that do no have match season record?",
      "Return the names of teams that have no match season record."
    ],
    "col_names": [
      "Team_id",
      "Name"
    ],
    "standard_answer": [
      "SELECT Name FROM team WHERE Team_id NOT IN (SELECT Team FROM match_season)",
      "SELECT Name FROM team WHERE Team_id NOT IN (SELECT Team FROM match_season)"
    ]
  },
  {
    "database": "match_season",
    "table": "match_season",
    "questions": [
      "Show all distinct positions of matches.",
      "What are the different positions for match season?",
      "Show the players from college UCLA.",
      "Who are the players from UCLA?",
      "Show the distinct position of players from college UCLA or Duke.",
      "What are the different positions of players from UCLA or Duke colleges?",
      "Show the draft pick numbers and draft classes of players whose positions are defenders.",
      "What are the draft pick numbers and draft classes for players who play the Defender position?",
      "How many distinct teams are involved in match seasons?",
      "Count the number of different teams involved in match season.",
      "Show the season, the player, and the name of the team that players belong to.",
      "Who are the different players, what season do they play in, and what is the name of the team they are on?",
      "Show the positions of the players from the team with name \"Ryley Goldner\".",
      "Return the positions of players on the team Ryley Goldner.",
      "How many distinct colleges are associated with players from the team with name \"Columbus Crew\".",
      "Count the number of different colleges that players who play for Columbus Crew are from.",
      "Show the position of players and the corresponding number of players.",
      "How many players played each position?",
      "Return all players sorted by college in ascending alphabetical order.",
      "What are all the players who played in match season, sorted by college in ascending alphabetical order?",
      "Show the most common position of players in match seasons.",
      "What is the position that is most common among players in match seasons?",
      "Show the top 3 most common colleges of players in match seasons.",
      "What are the three colleges from which the most players are from?",
      "Show the name of colleges that have at least two players.",
      "What are the names of all colleges that have two or more players?",
      "Show the name of colleges that have at least two players in descending alphabetical order.",
      "What are the names of colleges that have two or more players, listed in descending alphabetical order?",
      "Which college have both players with position midfielder and players with position defender?",
      "Return the colleges that have players who play the Midfielder position, as well as players who play the Defender position."
    ],
    "col_names": [
      "Season",
      "Player",
      "Position",
      "Country",
      "Team",
      "Draft_Pick_Number",
      "Draft_Class",
      "College"
    ],
    "standard_answer": [
      "SELECT DISTINCT POSITION FROM match_season",
      "SELECT DISTINCT POSITION FROM match_season",
      "SELECT Player FROM match_season WHERE College  =  \"UCLA\"",
      "SELECT Player FROM match_season WHERE College  =  \"UCLA\"",
      "SELECT DISTINCT POSITION FROM match_season WHERE College  =  \"UCLA\" OR College  =  \"Duke\"",
      "SELECT DISTINCT POSITION FROM match_season WHERE College  =  \"UCLA\" OR College  =  \"Duke\"",
      "SELECT Draft_Pick_Number ,  Draft_Class FROM match_season WHERE POSITION  =  \"Defender\"",
      "SELECT Draft_Pick_Number ,  Draft_Class FROM match_season WHERE POSITION  =  \"Defender\"",
      "SELECT count(DISTINCT Team) FROM match_season",
      "SELECT count(DISTINCT Team) FROM match_season",
      "SELECT T1.Season ,  T1.Player ,  T2.Name FROM match_season AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id",
      "SELECT T1.Season ,  T1.Player ,  T2.Name FROM match_season AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id",
      "SELECT T1.Position FROM match_season AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id WHERE T2.Name  =  \"Ryley Goldner\"",
      "SELECT T1.Position FROM match_season AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id WHERE T2.Name  =  \"Ryley Goldner\"",
      "SELECT count(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id WHERE T2.Name  =  \"Columbus Crew\"",
      "SELECT count(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id WHERE T2.Name  =  \"Columbus Crew\"",
      "SELECT POSITION ,  COUNT(*) FROM match_season GROUP BY POSITION",
      "SELECT POSITION ,  COUNT(*) FROM match_season GROUP BY POSITION",
      "SELECT player FROM match_season ORDER BY College ASC",
      "SELECT player FROM match_season ORDER BY College ASC",
      "SELECT POSITION FROM match_season GROUP BY POSITION ORDER BY count(*) DESC LIMIT 1",
      "SELECT POSITION FROM match_season GROUP BY POSITION ORDER BY count(*) DESC LIMIT 1",
      "SELECT College FROM match_season GROUP BY College ORDER BY count(*) DESC LIMIT 3",
      "SELECT College FROM match_season GROUP BY College ORDER BY count(*) DESC LIMIT 3",
      "SELECT College FROM match_season GROUP BY College HAVING count(*)  >=  2",
      "SELECT College FROM match_season GROUP BY College HAVING count(*)  >=  2",
      "SELECT College FROM match_season GROUP BY College HAVING count(*)  >=  2 ORDER BY College DESC",
      "SELECT College FROM match_season GROUP BY College HAVING count(*)  >=  2 ORDER BY College DESC",
      "SELECT College FROM match_season WHERE POSITION  =  \"Midfielder\" INTERSECT SELECT College FROM match_season WHERE POSITION  =  \"Defender\"",
      "SELECT College FROM match_season WHERE POSITION  =  \"Midfielder\" INTERSECT SELECT College FROM match_season WHERE POSITION  =  \"Defender\""
    ]
  },
  {
    "database": "match_season",
    "table": "player",
    "questions": [
      "Show the players and the years played.",
      "Who are the different players and how many years has each played?",
      "Show the players and years played for players from team \"Columbus Crew\".",
      "What are the players who played for Columbus Crew, and how many years did each play for?"
    ],
    "col_names": [
      "Player_ID",
      "Player",
      "Years_Played",
      "Total_WL",
      "Singles_WL",
      "Doubles_WL",
      "Team"
    ],
    "standard_answer": [
      "SELECT Player ,  Years_Played FROM player",
      "SELECT Player ,  Years_Played FROM player",
      "SELECT T1.Player , T1.Years_Played FROM player AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id WHERE T2.Name  =  \"Columbus Crew\"",
      "SELECT T1.Player , T1.Years_Played FROM player AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id WHERE T2.Name  =  \"Columbus Crew\""
    ]
  },
  {
    "database": "small_bank_1",
    "table": "ACCOUNTS",
    "questions": [],
    "col_names": [
      "custid",
      "name"
    ],
    "standard_answer": []
  },
  {
    "database": "small_bank_1",
    "table": "SAVINGS",
    "questions": [],
    "col_names": [
      "custid",
      "balance"
    ],
    "standard_answer": []
  },
  {
    "database": "small_bank_1",
    "table": "CHECKING",
    "questions": [],
    "col_names": [
      "custid",
      "balance"
    ],
    "standard_answer": []
  },
  {
    "database": "wta_1",
    "table": "players",
    "questions": [],
    "col_names": [
      "player_id",
      "first_name",
      "last_name",
      "hand",
      "birth_date",
      "country_code"
    ],
    "standard_answer": []
  },
  {
    "database": "wta_1",
    "table": "matches",
    "questions": [],
    "col_names": [
      "best_of",
      "draw_size",
      "loser_age",
      "loser_entry",
      "loser_hand",
      "loser_ht",
      "loser_id",
      "loser_ioc",
      "loser_name",
      "loser_rank",
      "loser_rank_points",
      "loser_seed",
      "match_num",
      "minutes",
      "round",
      "score",
      "surface",
      "tourney_date",
      "tourney_id",
      "tourney_level",
      "tourney_name",
      "winner_age",
      "winner_entry",
      "winner_hand",
      "winner_ht",
      "winner_id",
      "winner_ioc",
      "winner_name",
      "winner_rank",
      "winner_rank_points",
      "winner_seed",
      "year"
    ],
    "standard_answer": []
  },
  {
    "database": "wta_1",
    "table": "rankings",
    "questions": [],
    "col_names": [
      "ranking_date",
      "ranking",
      "player_id",
      "ranking_points",
      "tours"
    ],
    "standard_answer": []
  },
  {
    "database": "yelp",
    "table": "business",
    "questions": [],
    "col_names": [
      "bid",
      "business_id",
      "name",
      "full_address",
      "city",
      "latitude",
      "longitude",
      "review_count",
      "is_open",
      "rating",
      "state"
    ],
    "standard_answer": []
  },
  {
    "database": "yelp",
    "table": "category",
    "questions": [],
    "col_names": [
      "id",
      "business_id",
      "category_name"
    ],
    "standard_answer": []
  },
  {
    "database": "yelp",
    "table": "user",
    "questions": [],
    "col_names": [
      "uid",
      "user_id",
      "name"
    ],
    "standard_answer": []
  },
  {
    "database": "yelp",
    "table": "checkin",
    "questions": [],
    "col_names": [
      "cid",
      "business_id",
      "count",
      "day"
    ],
    "standard_answer": []
  },
  {
    "database": "yelp",
    "table": "neighbourhood",
    "questions": [],
    "col_names": [
      "id",
      "business_id",
      "neighbourhood_name"
    ],
    "standard_answer": []
  },
  {
    "database": "yelp",
    "table": "review",
    "questions": [],
    "col_names": [
      "rid",
      "business_id",
      "user_id",
      "rating",
      "text",
      "year",
      "month"
    ],
    "standard_answer": []
  },
  {
    "database": "yelp",
    "table": "tip",
    "questions": [],
    "col_names": [
      "tip_id",
      "business_id",
      "text",
      "user_id",
      "likes",
      "year",
      "month"
    ],
    "standard_answer": []
  },
  {
    "database": "student_1",
    "table": "list",
    "questions": [
      "Find the number of students in total.",
      "How many students are there?",
      "Find the last names of students studying in room 111.",
      "What are the last names of students in room 111?",
      "Find the first names of students studying in room 108.",
      "What are the first names of students in room 108?",
      "What are the first names of students studying in room 107?",
      "List the first names of all the students in room 107.",
      "For each classroom report the grade that is taught in it. Report just the classroom number and the grade number.",
      "What are the grade number and classroom number of each class in the list?",
      "Which grade is studying in classroom 103?",
      "Find the grade taught in classroom 103.",
      "Find the grade studying in room 105.",
      "Which grade is studying in room 105?",
      "Which classrooms are used by grade 4?",
      "Find the classrooms in which grade 4 is studying.",
      "Which classrooms are used by grade 5?",
      "Show me the classrooms grade 5 is using.",
      "Find the last names of the teachers that teach fifth grade.",
      "what are the last names of the teachers who teach grade 5?",
      "Find the first names of the teachers that teach first grade.",
      "What are the first names of the teachers who teach grade 1?",
      "Report the first name and last name of all the students.",
      "Show each student's first name and last name.",
      "Find all students taught by OTHA MOYER. Output the first and last names of the students.",
      "Which students study under the teacher named OTHA MOYER? Give me the first and last names of the students.",
      "Find all students taught by MARROTTE KIRK. Output first and last names of students.",
      "Which are the first and last names of the students taught by MARROTTE KIRK?",
      "Find the first and last name of all the teachers that teach EVELINA BROMLEY.",
      "Which teachers teach the student named EVELINA BROMLEY? Give me the first and last name  of the teachers.",
      "Find the last names of all the teachers that teach GELL TAMI.",
      "What are the last names of the teachers who teach the student called GELL TAMI?",
      "How many students does LORIA ONDERSMA teaches?",
      "Count the number of students the teacher LORIA ONDERSMA teaches.",
      "How many students does KAWA GORDON teaches?",
      "Find the number of students taught by the teacher KAWA GORDON.",
      "Find the number of students taught by TARRING LEIA.",
      "How many students are taught by teacher TARRING LEIA?",
      "How many teachers does the student named CHRISSY NABOZNY have?",
      "Find the number of teachers who teach the student called CHRISSY NABOZNY.",
      "How many teachers does the student named MADLOCK RAY have?",
      "Find the number of teachers who teach the student called MADLOCK RAY.",
      "Find all first-grade students who are NOT taught by OTHA MOYER. Report their first and last names.",
      "What are the first and last names of the first-grade students who are NOT taught by teacher OTHA MOYER?",
      "Find the last names of the students in third grade that are not taught by COVIN JEROME.",
      "Which students in third grade are not taught by teacher COVIN JEROME? Give me the last names of the students.",
      "For each grade, report the grade, the number of classrooms in which it is taught and the total number of students in the grade.",
      "For each grade, return the grade number, the number of classrooms used for the grade, and the total number of students enrolled in the grade.",
      "For each classroom, report the classroom number and the number of grades using it.",
      "For each classroom, show the classroom number and count the number of distinct grades that use the room.",
      "Which classroom has the most students?",
      "Find the classroom that the most students use.",
      "Report the number of students in each classroom.",
      "For each classroom, show the classroom number and find how many students are using it.",
      "For each grade 0 classroom, report the total number of students.",
      "For each grade 0 classroom, return the classroom number and the count of students.",
      "Report the total number of students for each fourth-grade classroom.",
      "For each fourth-grade classroom, show the classroom number and the total number of students using it.",
      "Find the name of the teacher who teaches the largest number of students.",
      "Which teacher teaches the most students? Give me the first name and last name of the teacher.",
      "Find the number of students in one classroom.",
      "How many students does one classroom have?"
    ],
    "col_names": [
      "LastName",
      "FirstName",
      "Grade",
      "Classroom"
    ],
    "standard_answer": [
      "SELECT count(*) FROM list",
      "SELECT count(*) FROM list",
      "SELECT lastname FROM list WHERE classroom  =  111",
      "SELECT lastname FROM list WHERE classroom  =  111",
      "SELECT firstname FROM list WHERE classroom  =  108",
      "SELECT firstname FROM list WHERE classroom  =  108",
      "SELECT DISTINCT firstname FROM list WHERE classroom  =  107",
      "SELECT DISTINCT firstname FROM list WHERE classroom  =  107",
      "SELECT DISTINCT classroom ,  grade FROM list",
      "SELECT DISTINCT classroom ,  grade FROM list",
      "SELECT DISTINCT grade FROM list WHERE classroom  =  103",
      "SELECT DISTINCT grade FROM list WHERE classroom  =  103",
      "SELECT DISTINCT grade FROM list WHERE classroom  =  105",
      "SELECT DISTINCT grade FROM list WHERE classroom  =  105",
      "SELECT DISTINCT classroom FROM list WHERE grade  =  4",
      "SELECT DISTINCT classroom FROM list WHERE grade  =  4",
      "SELECT DISTINCT classroom FROM list WHERE grade  =  5",
      "SELECT DISTINCT classroom FROM list WHERE grade  =  5",
      "SELECT DISTINCT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE grade  =  5",
      "SELECT DISTINCT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE grade  =  5",
      "SELECT DISTINCT T2.firstname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE grade  =  1",
      "SELECT DISTINCT T2.firstname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE grade  =  1",
      "SELECT DISTINCT firstname ,  lastname FROM list",
      "SELECT DISTINCT firstname ,  lastname FROM list",
      "SELECT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"OTHA\" AND T2.lastname  =  \"MOYER\"",
      "SELECT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"OTHA\" AND T2.lastname  =  \"MOYER\"",
      "SELECT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"MARROTTE\" AND T2.lastname  =  \"KIRK\"",
      "SELECT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"MARROTTE\" AND T2.lastname  =  \"KIRK\"",
      "SELECT T2.firstname ,  T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  \"EVELINA\" AND T1.lastname  =  \"BROMLEY\"",
      "SELECT T2.firstname ,  T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  \"EVELINA\" AND T1.lastname  =  \"BROMLEY\"",
      "SELECT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  \"GELL\" AND T1.lastname  =  \"TAMI\"",
      "SELECT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  \"GELL\" AND T1.lastname  =  \"TAMI\"",
      "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"LORIA\" AND T2.lastname  =  \"ONDERSMA\"",
      "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"LORIA\" AND T2.lastname  =  \"ONDERSMA\"",
      "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"KAWA\" AND T2.lastname  =  \"GORDON\"",
      "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"KAWA\" AND T2.lastname  =  \"GORDON\"",
      "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"TARRING\" AND T2.lastname  =  \"LEIA\"",
      "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"TARRING\" AND T2.lastname  =  \"LEIA\"",
      "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  \"CHRISSY\" AND T1.lastname  =  \"NABOZNY\"",
      "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  \"CHRISSY\" AND T1.lastname  =  \"NABOZNY\"",
      "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  \"MADLOCK\" AND T1.lastname  =  \"RAY\"",
      "SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  \"MADLOCK\" AND T1.lastname  =  \"RAY\"",
      "SELECT DISTINCT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.grade  =  1 EXCEPT SELECT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"OTHA\" AND T2.lastname  =  \"MOYER\"",
      "SELECT DISTINCT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.grade  =  1 EXCEPT SELECT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  \"OTHA\" AND T2.lastname  =  \"MOYER\"",
      "SELECT DISTINCT T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.grade  =  3 AND T2.firstname != \"COVIN\" AND T2.lastname != \"JEROME\"",
      "SELECT DISTINCT T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.grade  =  3 AND T2.firstname != \"COVIN\" AND T2.lastname != \"JEROME\"",
      "SELECT grade ,  count(DISTINCT classroom) ,  count(*) FROM list GROUP BY grade",
      "SELECT grade ,  count(DISTINCT classroom) ,  count(*) FROM list GROUP BY grade",
      "SELECT classroom ,  count(DISTINCT grade) FROM list GROUP BY classroom",
      "SELECT classroom ,  count(DISTINCT grade) FROM list GROUP BY classroom",
      "SELECT classroom FROM list GROUP BY classroom ORDER BY count(*) DESC LIMIT 1",
      "SELECT classroom FROM list GROUP BY classroom ORDER BY count(*) DESC LIMIT 1",
      "SELECT classroom ,  count(*) FROM list GROUP BY classroom",
      "SELECT classroom ,  count(*) FROM list GROUP BY classroom",
      "SELECT classroom ,  count(*) FROM list WHERE grade  =  \"0\" GROUP BY classroom",
      "SELECT classroom ,  count(*) FROM list WHERE grade  =  \"0\" GROUP BY classroom",
      "SELECT classroom ,  count(*) FROM list WHERE grade  =  \"4\" GROUP BY classroom",
      "SELECT classroom ,  count(*) FROM list WHERE grade  =  \"4\" GROUP BY classroom",
      "SELECT T2.firstname ,  T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom GROUP BY T2.firstname ,  T2.lastname ORDER BY count(*) DESC LIMIT 1",
      "SELECT T2.firstname ,  T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom GROUP BY T2.firstname ,  T2.lastname ORDER BY count(*) DESC LIMIT 1",
      "SELECT count(*) ,  classroom FROM list GROUP BY classroom",
      "SELECT count(*) ,  classroom FROM list GROUP BY classroom"
    ]
  },
  {
    "database": "student_1",
    "table": "teachers",
    "questions": [
      "Find the first names of all the teachers that teach in classroom 110.",
      "Which teachers teach in classroom 110? Give me their first names.",
      "Find the last names of teachers teaching in classroom 109.",
      "Which teachers teach in classroom 109? Give me their last names.",
      "Report the first name and last name of all the teachers.",
      "What are the first name and last name of all the teachers?"
    ],
    "col_names": [
      "LastName",
      "FirstName",
      "Classroom"
    ],
    "standard_answer": [
      "SELECT firstname FROM teachers WHERE classroom  =  110",
      "SELECT firstname FROM teachers WHERE classroom  =  110",
      "SELECT lastname FROM teachers WHERE classroom  =  109",
      "SELECT lastname FROM teachers WHERE classroom  =  109",
      "SELECT DISTINCT firstname ,  lastname FROM teachers",
      "SELECT DISTINCT firstname ,  lastname FROM teachers"
    ]
  },
  {
    "database": "manufacturer",
    "table": "manufacturer",
    "questions": [
      "Which manufacturer has the most number of shops? List its name and year of opening.",
      "Find the average number of factories for the manufacturers that have more than 20 shops.",
      "List all manufacturer names and ids ordered by their opening year.",
      "Give me the name and year of opening of the manufacturers that have either less than 10 factories or more than 10 shops.",
      "what is the average number of factories and maximum number of shops for manufacturers that opened before 1990.",
      "Find the id and number of shops for the company that produces the most expensive furniture.",
      "Find the number of funiture types produced by each manufacturer as well as the company names."
    ],
    "col_names": [
      "Manufacturer_ID",
      "Open_Year",
      "Name",
      "Num_of_Factories",
      "Num_of_Shops"
    ],
    "standard_answer": [
      "SELECT open_year ,  name FROM manufacturer ORDER BY num_of_shops DESC LIMIT 1",
      "SELECT avg(Num_of_Factories) FROM manufacturer WHERE num_of_shops  >  20",
      "SELECT name ,  manufacturer_id FROM manufacturer ORDER BY open_year",
      "SELECT name ,  open_year FROM manufacturer WHERE num_of_shops  >  10 OR Num_of_Factories  <  10",
      "SELECT max(num_of_shops) ,  avg(Num_of_Factories) FROM manufacturer WHERE open_year  <  1990",
      "SELECT t1.manufacturer_id ,  t1.num_of_shops FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id  =  t2.manufacturer_id ORDER BY t2.Price_in_Dollar DESC LIMIT 1",
      "SELECT count(*) ,  t1.name FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id  =  t2.manufacturer_id GROUP BY t1.manufacturer_id"
    ]
  },
  {
    "database": "manufacturer",
    "table": "furniture",
    "questions": [
      "How many furniture components are there in total?",
      "Return the name and id of the furniture with the highest market rate.",
      "find the total market rate of the furnitures that have the top 2 market shares.",
      "Find the component amounts and names of all furnitures that have more than 10 components.",
      "Find the name and component amount of the least popular furniture.",
      "Find the names of furnitures whose prices are lower than the highest price.",
      "Give me the names and prices of furnitures which some companies are manufacturing.",
      "Find the market shares and names of furnitures which no any company is producing in our records.",
      "Find the name of the company that produces both furnitures with less than 6 components and furnitures with more than 10 components."
    ],
    "col_names": [
      "Furniture_ID",
      "Name",
      "Num_of_Component",
      "Market_Rate"
    ],
    "standard_answer": [
      "SELECT sum(num_of_component) FROM furniture",
      "SELECT name ,  furniture_id FROM furniture ORDER BY market_rate DESC LIMIT 1",
      "SELECT sum(market_rate) FROM furniture ORDER BY market_rate DESC LIMIT 2",
      "SELECT Num_of_Component ,  name FROM furniture WHERE Num_of_Component  >  10",
      "SELECT name ,  Num_of_Component FROM furniture ORDER BY market_rate LIMIT 1",
      "SELECT t1.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID  =  t2.Furniture_ID WHERE t2.Price_in_Dollar  <  (SELECT max(Price_in_Dollar) FROM furniture_manufacte)",
      "SELECT t1.name ,  t2.price_in_dollar FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID  =  t2.Furniture_ID",
      "SELECT Market_Rate ,  name FROM furniture WHERE Furniture_ID NOT IN (SELECT Furniture_ID FROM furniture_manufacte)",
      "SELECT t3.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID  =  t2.Furniture_ID JOIN manufacturer AS t3 ON t2.manufacturer_id  =  t3.manufacturer_id WHERE t1.num_of_component  <  6 INTERSECT SELECT t3.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID  =  t2.Furniture_ID JOIN manufacturer AS t3 ON t2.manufacturer_id  =  t3.manufacturer_id WHERE t1.num_of_component  >  10"
    ]
  },
  {
    "database": "manufacturer",
    "table": "furniture_manufacte",
    "questions": [],
    "col_names": [
      "Manufacturer_ID",
      "Furniture_ID",
      "Price_in_Dollar"
    ],
    "standard_answer": []
  },
  {
    "database": "store_1",
    "table": "artists",
    "questions": [
      "List the name of albums that are released by aritist whose name has 'Led'",
      "What is the title of the album that was released by the artist whose name has the phrase 'Led'?"
    ],
    "col_names": [
      "id",
      "name"
    ],
    "standard_answer": [
      "SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id  =  T2.artist_id WHERE T1.name LIKE '%Led%'",
      "SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id  =  T2.artist_id WHERE T1.name LIKE '%Led%'"
    ]
  },
  {
    "database": "store_1",
    "table": "sqlite_sequence",
    "questions": [],
    "col_names": [
      "name",
      "seq"
    ],
    "standard_answer": []
  },
  {
    "database": "store_1",
    "table": "albums",
    "questions": [
      "List every album ordered by album title in ascending order.",
      "What are the titles of all the albums alphabetically ascending?",
      "List every album whose title starts with A in alphabetical order.",
      "What are the titles of all albums that start with A in alphabetical order?",
      "List Aerosmith's albums.",
      "What are the titles of all the Aerosmith albums?",
      "How many albums does Billy Cobham has?",
      "How many albums has Billy Cobam released?",
      "What is title of album which track Balls to the Wall belongs to?",
      "What is the name of the album that has the track Ball to the Wall?",
      "List name of all tracks in Balls to the Wall.",
      "What is the name of all tracks in the album named Balls to the Wall?",
      "List title of albums have the number of tracks greater than 10.",
      "What are the names of the albums that have more than 10 tracks?"
    ],
    "col_names": [
      "id",
      "title",
      "artist_id"
    ],
    "standard_answer": [
      "SELECT title FROM albums ORDER BY title;",
      "SELECT title FROM albums ORDER BY title;",
      "SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title;",
      "SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title;",
      "SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON  T1.artist_id = T2.id WHERE T2.name = \"Aerosmith\";",
      "SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON  T1.artist_id = T2.id WHERE T2.name = \"Aerosmith\";",
      "SELECT count(*) FROM albums AS T1 JOIN artists AS T2 ON  T1.artist_id = T2.id WHERE T2.name = \"Billy Cobham\";",
      "SELECT count(*) FROM albums AS T1 JOIN artists AS T2 ON  T1.artist_id = T2.id WHERE T2.name = \"Billy Cobham\";",
      "SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T2.name = \"Balls to the Wall\";",
      "SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T2.name = \"Balls to the Wall\";",
      "SELECT T2.name FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.title = \"Balls to the Wall\";",
      "SELECT T2.name FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.title = \"Balls to the Wall\";",
      "SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING count(T1.id)  >  10;",
      "SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING count(T1.id)  >  10;"
    ]
  },
  {
    "database": "store_1",
    "table": "employees",
    "questions": [
      "How many customers does Steve Johnson support?",
      "What is the count of customers that Steve Johnson supports?",
      "What is the title, phone and hire date of Nancy Edwards?",
      "What is the title, phone number and hire date for the employee named Nancy Edwards?",
      "find the full name of employees who report to Nancy Edwards?",
      "What is the first and last name of the employee who reports to Nancy Edwards?",
      "What is the address of employee Nancy Edwards?",
      "What is Nancy Edwards's address?",
      "Find the full name of employee who supported the most number of customers.",
      "What is the full name of the employee who has the most customers?",
      "How many employees are living in Canada?",
      "How many employees live in Canada?",
      "What is employee Nancy Edwards's phone number?",
      "What is the the phone number of Nancy Edwards?",
      "Who is the youngest employee in the company? List employee's first and last name.",
      "What si the youngest employee's first and last name?",
      "List top 10 employee work longest in the company. List employee's first and last name.",
      "What are the first and last names of the top 10 longest-serving employees?",
      "Find the number of employees whose title is IT Staff from each city?",
      "How many employees who are IT staff are from each city?",
      "Which employee manage most number of peoples? List employee's first and last name, and number of people report to that employee.",
      "What are the first and last names of all the employees and how many people report to them?"
    ],
    "col_names": [
      "id",
      "last_name",
      "first_name",
      "title",
      "reports_to",
      "birth_date",
      "hire_date",
      "address",
      "city",
      "state",
      "country",
      "postal_code",
      "phone",
      "fax",
      "email"
    ],
    "standard_answer": [
      "SELECT count(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = \"Steve\" AND T1.last_name = \"Johnson\";",
      "SELECT count(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = \"Steve\" AND T1.last_name = \"Johnson\";",
      "SELECT title ,  phone ,  hire_date FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";",
      "SELECT title ,  phone ,  hire_date FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";",
      "SELECT T2.first_name , T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = \"Nancy\" AND T1.last_name = \"Edwards\";",
      "SELECT T2.first_name , T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = \"Nancy\" AND T1.last_name = \"Edwards\";",
      "SELECT address FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";",
      "SELECT address FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";",
      "SELECT T1.first_name , T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id  =  T2.support_rep_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.first_name , T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id  =  T2.support_rep_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1",
      "SELECT count(*) FROM employees WHERE country = \"Canada\";",
      "SELECT count(*) FROM employees WHERE country = \"Canada\";",
      "SELECT phone FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";",
      "SELECT phone FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";",
      "SELECT first_name , last_name FROM employees ORDER BY birth_date DESC LIMIT 1;",
      "SELECT first_name , last_name FROM employees ORDER BY birth_date DESC LIMIT 1;",
      "SELECT first_name , last_name FROM employees ORDER BY hire_date ASC LIMIT 10;",
      "SELECT first_name , last_name FROM employees ORDER BY hire_date ASC LIMIT 10;",
      "SELECT count(*) ,  city FROM employees WHERE title  =  'IT Staff' GROUP BY city",
      "SELECT count(*) ,  city FROM employees WHERE title  =  'IT Staff' GROUP BY city",
      "SELECT T2.first_name , T2.last_name ,  count(T1.reports_to) FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id GROUP BY T1.reports_to ORDER BY count(T1.reports_to) DESC LIMIT 1;",
      "SELECT T2.first_name , T2.last_name ,  count(T1.reports_to) FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id GROUP BY T1.reports_to ORDER BY count(T1.reports_to) DESC LIMIT 1;"
    ]
  },
  {
    "database": "store_1",
    "table": "customers",
    "questions": [
      "Find out 5 customers who most recently purchased something. List customers' first and last name.",
      "What are the first and last names of the 5 customers who purchased something most recently?",
      "Find out the top 10 customers by total number of orders. List customers' first and last name and the number of total orders.",
      "What are the top 10 customers' first and last names by total number of orders and how many orders did they make?",
      "List the top 10 customers by total gross sales. List customers' first and last name and total gross sales.",
      "What are the top 10 customers' first and last names with the highest gross sales, and also what are the sales?",
      "List the customers first and last name of 10 least expensive invoices.",
      "What are the first and last names of the customers with the 10 cheapest invoices?",
      "Eduardo Martins is a customer at which company?",
      "What is the company where Eduardo Martins is a customer?",
      "What is Astrid Gruber's email and phone number?",
      "What is the email and phone number of Astrid Gruber the customer?",
      "How many customers live in Prague city?",
      "How many customers live in the city of Prague?",
      "How many customers in state of CA?",
      "How many customers are from California?",
      "What country does Roberto Almeida live?",
      "In which country does Roberto Almeida?",
      "How many orders does Lucas Mancini has?",
      "How many orders does Luca Mancini have in his invoices?",
      "What is the total amount of money spent by Lucas Mancini?",
      "How much money did Lucas Mancini spend?"
    ],
    "col_names": [
      "id",
      "first_name",
      "last_name",
      "company",
      "address",
      "city",
      "state",
      "country",
      "postal_code",
      "phone",
      "fax",
      "email",
      "support_rep_id"
    ],
    "standard_answer": [
      "SELECT T1.first_name ,  T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id ORDER BY T2.invoice_date DESC LIMIT 5;",
      "SELECT T1.first_name ,  T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id ORDER BY T2.invoice_date DESC LIMIT 5;",
      "SELECT T1.first_name ,  T1.last_name ,  COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10;",
      "SELECT T1.first_name ,  T1.last_name ,  COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10;",
      "SELECT T1.first_name ,  T1.last_name ,  SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10;",
      "SELECT T1.first_name ,  T1.last_name ,  SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10;",
      "SELECT T1.first_name ,  T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id ORDER BY total LIMIT 10;",
      "SELECT T1.first_name ,  T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id ORDER BY total LIMIT 10;",
      "SELECT company FROM customers WHERE first_name = \"Eduardo\" AND last_name = \"Martins\";",
      "SELECT company FROM customers WHERE first_name = \"Eduardo\" AND last_name = \"Martins\";",
      "SELECT email ,  phone FROM customers WHERE first_name = \"Astrid\" AND last_name = \"Gruber\";",
      "SELECT email ,  phone FROM customers WHERE first_name = \"Astrid\" AND last_name = \"Gruber\";",
      "SELECT count(*) FROM customers WHERE city = \"Prague\";",
      "SELECT count(*) FROM customers WHERE city = \"Prague\";",
      "SELECT count(*) FROM customers WHERE state = \"CA\";",
      "SELECT count(*) FROM customers WHERE state = \"CA\";",
      "SELECT country FROM customers WHERE first_name = \"Roberto\" AND last_name = \"Almeida\";",
      "SELECT country FROM customers WHERE first_name = \"Roberto\" AND last_name = \"Almeida\";",
      "SELECT count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = \"Lucas\" AND T1.last_name = \"Mancini\";",
      "SELECT count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = \"Lucas\" AND T1.last_name = \"Mancini\";",
      "SELECT sum(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = \"Lucas\" AND T1.last_name = \"Mancini\";",
      "SELECT sum(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = \"Lucas\" AND T1.last_name = \"Mancini\";"
    ]
  },
  {
    "database": "store_1",
    "table": "genres",
    "questions": [
      "List the top 5 genres by number of tracks. List genres name and total tracks.",
      "How many tracks does each genre have and what are the names of the top 5?",
      "What is the name of tracks whose genre is Rock?",
      "What is the name of all tracks in the Rock genre?",
      "List the name of tracks belongs to genre Rock and whose media type is MPEG audio file.",
      "What are the names of all Rock tracks that are stored on MPEG audio files?",
      "List the name of tracks belongs to genre Rock or media type is MPEG audio file.",
      "What are the names of all tracks that belong to the Rock genre and whose media type is MPEG?",
      "List the name of tracks belongs to genre Rock or genre Jazz.",
      "What are the names of the tracks that are Rock or Jazz songs?",
      "Find number of tracks in each genre?",
      "How many tracks are in each genre?"
    ],
    "col_names": [
      "id",
      "name"
    ],
    "standard_answer": [
      "SELECT T1.name ,  COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id  =  T1.id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 5;",
      "SELECT T1.name ,  COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id  =  T1.id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 5;",
      "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = \"Rock\";",
      "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = \"Rock\";",
      "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = \"Rock\" AND T3.name = \"MPEG audio file\";",
      "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = \"Rock\" AND T3.name = \"MPEG audio file\";",
      "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = \"Rock\" OR T3.name = \"MPEG audio file\";",
      "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = \"Rock\" OR T3.name = \"MPEG audio file\";",
      "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = \"Rock\" OR T1.name = \"Jazz\"",
      "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = \"Rock\" OR T1.name = \"Jazz\"",
      "SELECT count(*) ,  T1.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name;",
      "SELECT count(*) ,  T1.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name;"
    ]
  },
  {
    "database": "store_1",
    "table": "invoices",
    "questions": [
      "A list of the top 5 countries by number of invoices. List country name and number of invoices.",
      "What are the top 5 countries by number of invoices and how many do they have?",
      "A list of the top 8 countries by gross/total invoice size. List country name and gross invoice size.",
      "What are the names of the top 8 countries by total invoice size and what are those sizes?",
      "A list of the top 10 countries by average invoice size. List country name and average invoice size.",
      "What are the names of the countries and average invoice size of the top countries by size?",
      "List total amount of  invoice from Chicago, IL.",
      "What are the total amount of money in the invoices billed from Chicago, Illinois?",
      "List the number of invoices from Chicago, IL.",
      "How many invoices were billed from Chicago, IL?",
      "List the number of invoices from the US, grouped by state.",
      "How many invoices were billed from each state?",
      "List the state in the US with the most invoices.",
      "What are the states with the most invoices?",
      "List the number of invoices and the invoice total from California.",
      "What is the number of invoices and total money billed in them from CA?"
    ],
    "col_names": [
      "id",
      "customer_id",
      "invoice_date",
      "billing_address",
      "billing_city",
      "billing_state",
      "billing_country",
      "billing_postal_code",
      "total"
    ],
    "standard_answer": [
      "SELECT billing_country ,  COUNT(*) FROM invoices GROUP BY billing_country ORDER BY count(*) DESC LIMIT 5;",
      "SELECT billing_country ,  COUNT(*) FROM invoices GROUP BY billing_country ORDER BY count(*) DESC LIMIT 5;",
      "SELECT billing_country ,  SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8;",
      "SELECT billing_country ,  SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8;",
      "SELECT billing_country ,  AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 10;",
      "SELECT billing_country ,  AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 10;",
      "SELECT sum(total) FROM invoices WHERE billing_city  =  \"Chicago\" AND billing_state  =  \"IL\";",
      "SELECT sum(total) FROM invoices WHERE billing_city  =  \"Chicago\" AND billing_state  =  \"IL\";",
      "SELECT COUNT(*) FROM invoices WHERE billing_city  =  \"Chicago\" AND billing_state  =  \"IL\";",
      "SELECT COUNT(*) FROM invoices WHERE billing_city  =  \"Chicago\" AND billing_state  =  \"IL\";",
      "SELECT billing_state ,  COUNT(*) FROM invoices WHERE billing_country  =  \"USA\" GROUP BY billing_state;",
      "SELECT billing_state ,  COUNT(*) FROM invoices WHERE billing_country  =  \"USA\" GROUP BY billing_state;",
      "SELECT billing_state ,  COUNT(*) FROM invoices WHERE billing_country  =  \"USA\" GROUP BY billing_state ORDER BY COUNT(*) DESC LIMIT 1;",
      "SELECT billing_state ,  COUNT(*) FROM invoices WHERE billing_country  =  \"USA\" GROUP BY billing_state ORDER BY COUNT(*) DESC LIMIT 1;",
      "SELECT billing_state ,  COUNT(*) ,  SUM(total) FROM invoices WHERE billing_state  =  \"CA\";",
      "SELECT billing_state ,  COUNT(*) ,  SUM(total) FROM invoices WHERE billing_state  =  \"CA\";"
    ]
  },
  {
    "database": "store_1",
    "table": "media_types",
    "questions": [],
    "col_names": [
      "id",
      "name"
    ],
    "standard_answer": []
  },
  {
    "database": "store_1",
    "table": "tracks",
    "questions": [
      "Who is the composer of track Fast As a Shark?",
      "What is the composer who created the track \"Fast As a Shark\"?",
      "How long does track Fast As a Shark has?",
      "How many milliseconds long is Fast As a Shark?",
      "List the name of all tracks in the playlists of Movies.",
      "What are the names of all tracks that are on playlists titled Movies?",
      "List all tracks bought by customer Daan Peeters.",
      "What are the tracks that Dean Peeters bought?",
      "How much is the track Fast As a Shark?",
      "What is the unit price of the tune \"Fast As a Shark\"?",
      "Find the name of tracks which are in Movies playlist but not in music playlist.",
      "What are the names of all tracks that are on the Movies playlist but not in the music playlist?",
      "Find the name of tracks which are in both Movies and music playlists.",
      "What are the names of all the tracks that are in both the Movies and music playlists?"
    ],
    "col_names": [
      "id",
      "name",
      "album_id",
      "media_type_id",
      "genre_id",
      "composer",
      "milliseconds",
      "bytes",
      "unit_price"
    ],
    "standard_answer": [
      "SELECT composer FROM tracks WHERE name = \"Fast As a Shark\";",
      "SELECT composer FROM tracks WHERE name = \"Fast As a Shark\";",
      "SELECT milliseconds FROM tracks WHERE name = \"Fast As a Shark\";",
      "SELECT milliseconds FROM tracks WHERE name = \"Fast As a Shark\";",
      "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = \"Movies\";",
      "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = \"Movies\";",
      "SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = \"Daan\" AND T4.last_name = \"Peeters\";",
      "SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = \"Daan\" AND T4.last_name = \"Peeters\";",
      "SELECT unit_price FROM tracks WHERE name = \"Fast As a Shark\";",
      "SELECT unit_price FROM tracks WHERE name = \"Fast As a Shark\";",
      "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Movies' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Music'",
      "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Movies' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Music'",
      "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Music'",
      "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Music'"
    ]
  },
  {
    "database": "store_1",
    "table": "invoice_lines",
    "questions": [],
    "col_names": [
      "id",
      "invoice_id",
      "track_id",
      "unit_price",
      "quantity"
    ],
    "standard_answer": []
  },
  {
    "database": "store_1",
    "table": "playlists",
    "questions": [],
    "col_names": [
      "id",
      "name"
    ],
    "standard_answer": []
  },
  {
    "database": "store_1",
    "table": "playlist_tracks",
    "questions": [
      "List the name of playlist which has number of tracks greater than 100.",
      "What are the names of all playlists that have more than 100 tracks?"
    ],
    "col_names": [
      "playlist_id",
      "track_id"
    ],
    "standard_answer": [
      "SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING count(T1.track_id)  >  100;",
      "SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING count(T1.track_id)  >  100;"
    ]
  },
  {
    "database": "train_station",
    "table": "station",
    "questions": [
      "How many train stations are there?",
      "Show the name, location, and number of platforms for all stations.",
      "What are all locations of train stations?",
      "Show the names and total passengers for all train stations not in London.",
      "Show the names and main services for train stations that have the top three total number of passengers.",
      "What is the average and maximum number of total passengers for train stations in London or Glasgow?",
      "Show all locations and the total number of platforms and passengers for all train stations in each location.",
      "Show all locations that have train stations with at least 15 platforms and train stations with more than 25 total passengers.",
      "Show all locations which don't have a train station with at least 15 platforms.",
      "Show the location with most number of train stations.",
      "Show all locations with only 1 station.",
      "Show station names without any trains.",
      "List the names and locations of all stations ordered by their yearly entry exit and interchange amounts."
    ],
    "col_names": [
      "Station_ID",
      "Name",
      "Annual_entry_exit",
      "Annual_interchanges",
      "Total_Passengers",
      "Location",
      "Main_Services",
      "Number_of_Platforms"
    ],
    "standard_answer": [
      "SELECT count(*) FROM station",
      "SELECT name ,  LOCATION ,  number_of_platforms FROM station",
      "SELECT DISTINCT LOCATION FROM station",
      "SELECT name ,  total_passengers FROM station WHERE LOCATION != 'London'",
      "SELECT name ,  main_services FROM station ORDER BY total_passengers DESC LIMIT 3",
      "SELECT avg(total_passengers) ,  max(total_passengers) FROM station WHERE LOCATION  =  'London' OR LOCATION  =  'Glasgow'",
      "SELECT LOCATION ,  sum(number_of_platforms) ,  sum(total_passengers) FROM station GROUP BY LOCATION",
      "SELECT DISTINCT LOCATION FROM station WHERE number_of_platforms  >=  15 AND total_passengers  >  25",
      "SELECT LOCATION FROM station EXCEPT SELECT LOCATION FROM station WHERE number_of_platforms  >=  15",
      "SELECT LOCATION FROM station GROUP BY LOCATION ORDER BY count(*) DESC LIMIT 1",
      "SELECT LOCATION FROM station GROUP BY LOCATION HAVING count(*)  =  1",
      "SELECT name FROM station WHERE station_id NOT IN (SELECT station_id FROM train_station)",
      "SELECT name ,  LOCATION FROM station ORDER BY Annual_entry_exit ,  Annual_interchanges"
    ]
  },
  {
    "database": "train_station",
    "table": "train",
    "questions": [
      "Show the name, time, and service for all trains.",
      "Show the number of trains",
      "Show the name and service for all trains in order by time."
    ],
    "col_names": [
      "Train_ID",
      "Name",
      "Time",
      "Service"
    ],
    "standard_answer": [
      "SELECT name ,  TIME ,  service FROM train",
      "SELECT count(*) FROM train",
      "SELECT name ,  service FROM train ORDER BY TIME"
    ]
  },
  {
    "database": "train_station",
    "table": "train_station",
    "questions": [
      "Show the station name and number of trains in each station.",
      "show the train name and station name for each train.",
      "Show all train names and times in stations in London in descending order by train time.",
      "Show the station name with greatest number of trains.",
      "Show the station name with at least two trains.",
      "What are the names of the stations which serve both \"Ananthapuri Express\" and \"Guruvayur Express\" trains?",
      "Find the names of the trains that do not pass any station located in London."
    ],
    "col_names": [
      "Train_ID",
      "Station_ID"
    ],
    "standard_answer": [
      "SELECT T2.name ,  count(*) FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id GROUP BY T1.station_id",
      "SELECT T2.name ,  T3.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id",
      "SELECT T3.name ,  T3.time FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T2.location  =  'London' ORDER BY T3.time DESC",
      "SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id GROUP BY T1.station_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id GROUP BY T1.station_id HAVING count(*)  >=  2",
      "SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T3.Name  =  \"Ananthapuri Express\" INTERSECT SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T3.Name  =  \"Guruvayur Express\"",
      "SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id  =  T2.train_id WHERE T1.station_id NOT IN (SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id  =  T4.station_id WHERE t4.location  =  \"London\")"
    ]
  },
  {
    "database": "document_management",
    "table": "Roles",
    "questions": [],
    "col_names": [
      "role_code",
      "role_description"
    ],
    "standard_answer": []
  },
  {
    "database": "document_management",
    "table": "Users",
    "questions": [],
    "col_names": [
      "user_id",
      "role_code",
      "user_name",
      "user_login",
      "password"
    ],
    "standard_answer": []
  },
  {
    "database": "document_management",
    "table": "Document_Structures",
    "questions": [],
    "col_names": [
      "document_structure_code",
      "parent_document_structure_code",
      "document_structure_description"
    ],
    "standard_answer": []
  },
  {
    "database": "document_management",
    "table": "Functional_Areas",
    "questions": [],
    "col_names": [
      "functional_area_code",
      "parent_functional_area_code",
      "functional_area_description"
    ],
    "standard_answer": []
  },
  {
    "database": "document_management",
    "table": "Images",
    "questions": [],
    "col_names": [
      "image_id",
      "image_alt_text",
      "image_name",
      "image_url"
    ],
    "standard_answer": []
  },
  {
    "database": "document_management",
    "table": "Documents",
    "questions": [],
    "col_names": [
      "document_code",
      "document_structure_code",
      "document_type_code",
      "access_count",
      "document_name"
    ],
    "standard_answer": []
  },
  {
    "database": "document_management",
    "table": "Document_Functional_Areas",
    "questions": [],
    "col_names": [
      "document_code",
      "functional_area_code"
    ],
    "standard_answer": []
  },
  {
    "database": "document_management",
    "table": "Document_Sections",
    "questions": [],
    "col_names": [
      "section_id",
      "document_code",
      "section_sequence",
      "section_code",
      "section_title"
    ],
    "standard_answer": []
  },
  {
    "database": "document_management",
    "table": "Document_Sections_Images",
    "questions": [],
    "col_names": [
      "section_id",
      "image_id"
    ],
    "standard_answer": []
  },
  {
    "database": "formula_1",
    "table": "circuits",
    "questions": [
      "What are the names of circuits that belong to UK or Malaysia?",
      "What are the names of all the circuits that are in the UK or Malaysia?",
      "Find the id and location of circuits that belong to France or Belgium?",
      "What are the ids and locations of all circuits in France or Belgium?"
    ],
    "col_names": [
      "circuitId",
      "circuitRef",
      "name",
      "location",
      "country",
      "lat",
      "lng",
      "alt",
      "url"
    ],
    "standard_answer": [
      "SELECT name FROM circuits WHERE country = \"UK\" OR country = \"Malaysia\"",
      "SELECT name FROM circuits WHERE country = \"UK\" OR country = \"Malaysia\"",
      "SELECT circuitid ,  LOCATION FROM circuits WHERE country = \"France\" OR country = \"Belgium\"",
      "SELECT circuitid ,  LOCATION FROM circuits WHERE country = \"France\" OR country = \"Belgium\""
    ]
  },
  {
    "database": "formula_1",
    "table": "races",
    "questions": [
      "What is the name of the race held most recently?",
      "What is the name of the race that occurred most recently?",
      "What is the name and date of the most recent race?",
      "What is the name and date of the race that occurred most recently?",
      "Find the names of all races held in 2017.",
      "What are the names of all the races that occurred in the year 2017?",
      "Find the distinct names of all races held between 2014 and 2017?",
      "What are the unique names of all race held between 2014 and 2017?",
      "Find the id and forenames of drivers who participated both the races with name Australian Grand Prix and the races with name Chinese Grand Prix?",
      "What is the id and first name of all the drivers who participated in the Australian Grand Prix and the Chinese Grand Prix?",
      "What are the forenames and surnames of drivers who participated in the races named Australian Grand Prix but not the races named Chinese Grand Prix?",
      "What are the first and last names of all drivers who participated in the Australian Grand Prix but not the Chinese Grand Prix?",
      "What are the names of races that were held after 2017 and the circuits were in the country of Spain?",
      "What are the names of the races held after 2017 in Spain?",
      "What are the unique names of races that held after 2000 and the circuits were in Spain?",
      "What are the names of all races held after 2000 in Spain?",
      "List the names of all distinct races in reversed  lexicographic order?",
      "What are the different names of all the races in reverse alphabetical order?",
      "What are the names of races held between 2009 and 2011?",
      "What are the names of all races held between 2009 and 2011?",
      "What are the names of races held after 12:00:00 or before 09:00:00?",
      "What are the names of all races that occurred after 12:00:00 or before 09:00:00?",
      "What is the average fastest lap speed in race named 'Monaco Grand Prix' in 2008 ?",
      "What is the average fastest lap speed for the Monaco Grand Prix in 2008?",
      "What is the maximum fastest lap speed in race named 'Monaco Grand Prix' in 2008 ?",
      "What is the maximum fastest lap speed in the Monaco Grand Prix in 2008?",
      "What are the maximum fastest lap speed in races held after 2004 grouped by race name and ordered by year?",
      "For each race name, What is the maximum fastest lap speed for races after 2004 ordered by year?",
      "What are the average fastest lap speed in races held after 2004 grouped by race name and ordered by year?",
      "What is the average fastest lap speed for races held after 2004, for each race, ordered by year?"
    ],
    "col_names": [
      "raceId",
      "year",
      "round",
      "circuitId",
      "name",
      "date",
      "time",
      "url"
    ],
    "standard_answer": [
      "SELECT name FROM races ORDER BY date DESC LIMIT 1",
      "SELECT name FROM races ORDER BY date DESC LIMIT 1",
      "SELECT name ,  date FROM races ORDER BY date DESC LIMIT 1",
      "SELECT name ,  date FROM races ORDER BY date DESC LIMIT 1",
      "SELECT name FROM races WHERE YEAR = 2017",
      "SELECT name FROM races WHERE YEAR = 2017",
      "SELECT DISTINCT name FROM races WHERE YEAR BETWEEN 2014 AND 2017",
      "SELECT DISTINCT name FROM races WHERE YEAR BETWEEN 2014 AND 2017",
      "SELECT T2.driverid ,  T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid  =  T3.driverid WHERE T1.name = \"Australian Grand Prix\" INTERSECT SELECT T2.driverid ,  T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid  =  T3.driverid WHERE T1.name = \"Chinese Grand Prix\"",
      "SELECT T2.driverid ,  T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid  =  T3.driverid WHERE T1.name = \"Australian Grand Prix\" INTERSECT SELECT T2.driverid ,  T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid  =  T3.driverid WHERE T1.name = \"Chinese Grand Prix\"",
      "SELECT T3.forename ,  T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Australian Grand Prix\" EXCEPT SELECT T3.forename ,  T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Chinese Grand Prix\"",
      "SELECT T3.forename ,  T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Australian Grand Prix\" EXCEPT SELECT T3.forename ,  T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Chinese Grand Prix\"",
      "SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = \"Spain\" AND T1.year > 2017",
      "SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = \"Spain\" AND T1.year > 2017",
      "SELECT DISTINCT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = \"Spain\" AND T1.year > 2000",
      "SELECT DISTINCT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = \"Spain\" AND T1.year > 2000",
      "SELECT DISTINCT name FROM races ORDER BY name DESC",
      "SELECT DISTINCT name FROM races ORDER BY name DESC",
      "SELECT name FROM races WHERE YEAR BETWEEN 2009 AND 2011",
      "SELECT name FROM races WHERE YEAR BETWEEN 2009 AND 2011",
      "SELECT name FROM races WHERE TIME > \"12:00:00\" OR TIME < \"09:00:00\"",
      "SELECT name FROM races WHERE TIME > \"12:00:00\" OR TIME < \"09:00:00\"",
      "SELECT avg(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = \"Monaco Grand Prix\"",
      "SELECT avg(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = \"Monaco Grand Prix\"",
      "SELECT max(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = \"Monaco Grand Prix\"",
      "SELECT max(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = \"Monaco Grand Prix\"",
      "SELECT max(T2.fastestlapspeed) ,  T1.name ,  T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year",
      "SELECT max(T2.fastestlapspeed) ,  T1.name ,  T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year",
      "SELECT avg(T2.fastestlapspeed) ,  T1.name ,  T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year",
      "SELECT avg(T2.fastestlapspeed) ,  T1.name ,  T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year"
    ]
  },
  {
    "database": "formula_1",
    "table": "drivers",
    "questions": [
      "List the forename and surname of all distinct drivers who once had laptime less than 93000 milliseconds?",
      "What are the forenames and surnames of all unique drivers who had a lap time of less than 93000 milliseconds?",
      "Find all the distinct id and nationality of drivers who have had laptime more than 100000 milliseconds?",
      "What are the different driver ids and nationalities of all drivers who had a laptime of more than 100000 milliseconds?",
      "What are the forename and surname of the driver who has the smallest laptime?",
      "What is the forename and surname of the driver with the shortest laptime?",
      "What is the id and family name of the driver who has the longest laptime?",
      "What is the id and last name of the driver with the longest laptime?",
      "What is the id, forname and surname of the driver who had the first position in terms of laptime at least twice?",
      "What is the id, first name, and last name of the driver who was in the first position for laptime at least twice?",
      "Find the forename and surname of drivers whose nationality is German?",
      "What is the first and last name of all the German drivers?",
      "Find all the forenames of distinct drivers who was in position 1 as standing and won?",
      "What are all the different first names of the drivers who are in position as standing and won?",
      "Find all the forenames of distinct drivers who won in position 1 as driver standing and had more than 20 points?",
      "What are the first names of the different drivers who won in position 1 as driver standing and had more than 20 points?",
      "List the forenames of all distinct drivers in alphabetical order?",
      "What are the first names of all the different drivers in alphabetical order?",
      "What are the drivers' first, last names and id who had more than 8 pit stops or participated in more than 5 race results?",
      "What are the drivers' first names,last names, and ids for all those that had more than 8 stops or participated in more than 5 races?",
      "What are the drivers' last names and id who had 11 pit stops and participated in more than 5 race results?",
      "What are the last names and ids of all drivers who had 11 pit stops and participated in more than 5 races?",
      "What is the id and last name of the driver who participated in the most races after 2010?",
      "What is the id and last name of the driver who participated in the most races after 2010?",
      "Find the id, forename and number of races of all drivers who have at least participated in two races?",
      "What is the id, forename, and number of races for all drivers that have participated in at least 2 races?",
      "Find the driver id and number of races of all drivers who have at most participated in 30 races?",
      "For each id of a driver who participated in at most 30 races, how many races did they participate in?",
      "Find the id and surname of the driver who participated the most number of races?",
      "What are the ids and last names of all drivers who participated in the most races?"
    ],
    "col_names": [
      "driverId",
      "driverRef",
      "number",
      "code",
      "forename",
      "surname",
      "dob",
      "nationality",
      "url"
    ],
    "standard_answer": [
      "SELECT DISTINCT T1.forename ,  T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000",
      "SELECT DISTINCT T1.forename ,  T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000",
      "SELECT DISTINCT T1.driverid ,  T1.nationality FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds >  100000",
      "SELECT DISTINCT T1.driverid ,  T1.nationality FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds >  100000",
      "SELECT T1.forename ,  T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds LIMIT 1",
      "SELECT T1.forename ,  T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds LIMIT 1",
      "SELECT T1.driverid ,  T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1",
      "SELECT T1.driverid ,  T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1",
      "SELECT T1.driverid ,  T1.forename ,  T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE POSITION  =  '1' GROUP BY T1.driverid HAVING count(*)  >=  2",
      "SELECT T1.driverid ,  T1.forename ,  T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE POSITION  =  '1' GROUP BY T1.driverid HAVING count(*)  >=  2",
      "SELECT forename ,  surname FROM drivers WHERE nationality = \"German\"",
      "SELECT forename ,  surname FROM drivers WHERE nationality = \"German\"",
      "SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1",
      "SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1",
      "SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 AND T2.points > 20",
      "SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 AND T2.points > 20",
      "SELECT DISTINCT forename FROM drivers ORDER BY forename ASC",
      "SELECT DISTINCT forename FROM drivers ORDER BY forename ASC",
      "SELECT T1.forename ,  T1.surname ,  T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid  =  T2.driverid GROUP BY T1.driverid HAVING count(*)  >  8 UNION SELECT T1.forename ,  T1.surname ,  T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid  =  T2.driverid GROUP BY T1.driverid HAVING count(*)  >  5",
      "SELECT T1.forename ,  T1.surname ,  T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid  =  T2.driverid GROUP BY T1.driverid HAVING count(*)  >  8 UNION SELECT T1.forename ,  T1.surname ,  T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid  =  T2.driverid GROUP BY T1.driverid HAVING count(*)  >  5",
      "SELECT T1.surname ,  T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid  =  T2.driverid GROUP BY T1.driverid HAVING count(*)  =  11 INTERSECT SELECT T1.surname ,  T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid  =  T2.driverid GROUP BY T1.driverid HAVING count(*)  >  5",
      "SELECT T1.surname ,  T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid  =  T2.driverid GROUP BY T1.driverid HAVING count(*)  =  11 INTERSECT SELECT T1.surname ,  T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid  =  T2.driverid GROUP BY T1.driverid HAVING count(*)  >  5",
      "SELECT T1.driverid ,  T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid  =  T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.driverid ,  T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid  =  T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.driverid ,  T1.forename ,  count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*)  >=  2",
      "SELECT T1.driverid ,  T1.forename ,  count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*)  >=  2",
      "SELECT T1.driverid ,  count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*)  <=  30",
      "SELECT T1.driverid ,  count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*)  <=  30",
      "SELECT T1.driverid ,  T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.driverid ,  T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "formula_1",
    "table": "status",
    "questions": [],
    "col_names": [
      "statusId",
      "status"
    ],
    "standard_answer": []
  },
  {
    "database": "formula_1",
    "table": "seasons",
    "questions": [],
    "col_names": [
      "year",
      "url"
    ],
    "standard_answer": []
  },
  {
    "database": "formula_1",
    "table": "constructors",
    "questions": [
      "What are the numbers of constructors for different nationalities?",
      "For each nationality, how many different constructors are there?",
      "Find the names of Japanese constructors that have once earned more than 5 points?",
      "What are the names of all the Japanese constructors that have earned more than 5 points?"
    ],
    "col_names": [
      "constructorId",
      "constructorRef",
      "name",
      "nationality",
      "url"
    ],
    "standard_answer": [
      "SELECT count(*) ,  nationality FROM constructors GROUP BY nationality",
      "SELECT count(*) ,  nationality FROM constructors GROUP BY nationality",
      "SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = \"Japanese\" AND T2.points > 5",
      "SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = \"Japanese\" AND T2.points > 5"
    ]
  },
  {
    "database": "formula_1",
    "table": "constructorStandings",
    "questions": [
      "What are the numbers of races for each constructor id?",
      "For each constructor id, how many races are there?"
    ],
    "col_names": [
      "constructorStandingsId",
      "raceId",
      "constructorId",
      "points",
      "position",
      "positionText",
      "wins"
    ],
    "standard_answer": [
      "SELECT count(*) ,  constructorid FROM constructorStandings GROUP BY constructorid",
      "SELECT count(*) ,  constructorid FROM constructorStandings GROUP BY constructorid"
    ]
  },
  {
    "database": "formula_1",
    "table": "results",
    "questions": [
      "How many drivers participated in the race Australian Grand Prix held in 2009?",
      "How many drivers were in the Australian Grand Prix held in 2009?",
      "How many drivers did not participate in the races held in 2009?",
      "How many drivers did not race in 2009?",
      "Give me a list of names and years of races that had any driver whose forename is Lewis?",
      "What are the names and years of all races that had a driver with the last name Lewis?"
    ],
    "col_names": [
      "resultId",
      "raceId",
      "driverId",
      "constructorId",
      "number",
      "grid",
      "position",
      "positionText",
      "positionOrder",
      "points",
      "laps",
      "time",
      "milliseconds",
      "fastestLap",
      "rank",
      "fastestLapTime",
      "fastestLapSpeed",
      "statusId"
    ],
    "standard_answer": [
      "SELECT count(*) FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid WHERE T2.name = \"Australian Grand Prix\" AND YEAR = 2009",
      "SELECT count(*) FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid WHERE T2.name = \"Australian Grand Prix\" AND YEAR = 2009",
      "SELECT count(DISTINCT driverId) FROM results WHERE raceId NOT IN( SELECT raceId FROM races WHERE YEAR != 2009 )",
      "SELECT count(DISTINCT driverId) FROM results WHERE raceId NOT IN( SELECT raceId FROM races WHERE YEAR != 2009 )",
      "SELECT T2.name ,  T2.year FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T1.driverid = T3.driverid WHERE T3.forename = \"Lewis\"",
      "SELECT T2.name ,  T2.year FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T1.driverid = T3.driverid WHERE T3.forename = \"Lewis\""
    ]
  },
  {
    "database": "formula_1",
    "table": "driverStandings",
    "questions": [],
    "col_names": [
      "driverStandingsId",
      "raceId",
      "driverId",
      "points",
      "position",
      "positionText",
      "wins"
    ],
    "standard_answer": []
  },
  {
    "database": "formula_1",
    "table": "constructorResults",
    "questions": [],
    "col_names": [
      "constructorResultsId",
      "raceId",
      "constructorId",
      "points",
      "status"
    ],
    "standard_answer": []
  },
  {
    "database": "formula_1",
    "table": "qualifying",
    "questions": [],
    "col_names": [
      "qualifyId",
      "raceId",
      "driverId",
      "constructorId",
      "number",
      "position",
      "q1",
      "q2",
      "q3"
    ],
    "standard_answer": []
  },
  {
    "database": "formula_1",
    "table": "pitStops",
    "questions": [],
    "col_names": [
      "raceId",
      "driverId",
      "stop",
      "lap",
      "time",
      "duration",
      "milliseconds"
    ],
    "standard_answer": []
  },
  {
    "database": "formula_1",
    "table": "lapTimes",
    "questions": [],
    "col_names": [
      "raceId",
      "driverId",
      "lap",
      "position",
      "time",
      "milliseconds"
    ],
    "standard_answer": []
  },
  {
    "database": "game_1",
    "table": "Student",
    "questions": [
      "Show ids for all students who live in CHI.",
      "What are the ids of all students who live in CHI?",
      "Show ids for all students who have advisor 1121.",
      "What are the ids of all students who have advisor number 1121?",
      "Show first name for all students with major 600.",
      "What are the first names for all students who are from the major numbered 600?",
      "Show the average, minimum, and maximum age for different majors.",
      "What are the average, minimum, and max ages for each of the different majors?",
      "Show all advisors who have at least two students.",
      "What are the advisors",
      "Show student ids who don't have any sports.",
      "What are the ids of all students who don't play sports?",
      "Show student ids who are on scholarship and have major 600.",
      "What are the student ids for those on scholarship in major number 600?",
      "Show student ids who are female and play football.",
      "What are the ids of all female students who play football?",
      "Show all male student ids who don't play football.",
      "What are the ids of all male students who do not play football?",
      "Show ids of students who don't play video game.",
      "What are the ids of all students who are not video game players?",
      "Find the first name and age of the students who are playing both Football and Lacrosse.",
      "What are the first names and ages of all students who are playing both Football and Lacrosse?",
      "Find the last name and gender of the students who are playing both Call of Destiny and Works of Widenius games.",
      "what is the last name and gender of all students who played both Call of Destiny and Works of Widenius?"
    ],
    "col_names": [
      "StuID",
      "LName",
      "Fname",
      "Age",
      "Sex",
      "Major",
      "Advisor",
      "city_code"
    ],
    "standard_answer": [
      "SELECT StuID FROM Student WHERE city_code  =  \"CHI\"",
      "SELECT StuID FROM Student WHERE city_code  =  \"CHI\"",
      "SELECT StuID FROM Student WHERE Advisor  =  1121",
      "SELECT StuID FROM Student WHERE Advisor  =  1121",
      "SELECT Fname FROM Student WHERE Major  =  600",
      "SELECT Fname FROM Student WHERE Major  =  600",
      "SELECT major ,  avg(age) ,  min(age) ,  max(age) FROM Student GROUP BY major",
      "SELECT major ,  avg(age) ,  min(age) ,  max(age) FROM Student GROUP BY major",
      "SELECT advisor FROM Student GROUP BY advisor HAVING count(*)  >=  2",
      "SELECT advisor FROM Student GROUP BY advisor HAVING count(*)  >=  2",
      "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Sportsinfo",
      "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Sportsinfo",
      "SELECT StuID FROM Student WHERE major  =  600 INTERSECT SELECT StuID FROM Sportsinfo WHERE onscholarship  =  'Y'",
      "SELECT StuID FROM Student WHERE major  =  600 INTERSECT SELECT StuID FROM Sportsinfo WHERE onscholarship  =  'Y'",
      "SELECT StuID FROM Student WHERE sex  =  'F' INTERSECT SELECT StuID FROM Sportsinfo WHERE sportname  =  \"Football\"",
      "SELECT StuID FROM Student WHERE sex  =  'F' INTERSECT SELECT StuID FROM Sportsinfo WHERE sportname  =  \"Football\"",
      "SELECT StuID FROM Student WHERE sex  =  'M' EXCEPT SELECT StuID FROM Sportsinfo WHERE sportname  =  \"Football\"",
      "SELECT StuID FROM Student WHERE sex  =  'M' EXCEPT SELECT StuID FROM Sportsinfo WHERE sportname  =  \"Football\"",
      "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Plays_games",
      "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Plays_games",
      "SELECT fname ,  age FROM Student WHERE StuID IN (SELECT StuID FROM Sportsinfo WHERE SportName  =  \"Football\" INTERSECT SELECT StuID FROM Sportsinfo WHERE SportName  =  \"Lacrosse\")",
      "SELECT fname ,  age FROM Student WHERE StuID IN (SELECT StuID FROM Sportsinfo WHERE SportName  =  \"Football\" INTERSECT SELECT StuID FROM Sportsinfo WHERE SportName  =  \"Lacrosse\")",
      "SELECT lname ,  sex FROM Student WHERE StuID IN (SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID  =  T2.GameID WHERE T2.Gname  =  \"Call of Destiny\" INTERSECT SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID  =  T2.GameID WHERE T2.Gname  =  \"Works of Widenius\")",
      "SELECT lname ,  sex FROM Student WHERE StuID IN (SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID  =  T2.GameID WHERE T2.Gname  =  \"Call of Destiny\" INTERSECT SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID  =  T2.GameID WHERE T2.Gname  =  \"Works of Widenius\")"
    ]
  },
  {
    "database": "game_1",
    "table": "Video_Games",
    "questions": [],
    "col_names": [
      "GameID",
      "GName",
      "GType"
    ],
    "standard_answer": []
  },
  {
    "database": "game_1",
    "table": "Plays_Games",
    "questions": [],
    "col_names": [
      "StuID",
      "GameID",
      "Hours_Played"
    ],
    "standard_answer": []
  },
  {
    "database": "game_1",
    "table": "SportsInfo",
    "questions": [
      "Find the last and first name of students who are playing Football or Lacrosse.",
      "What is the first and last name of all students who play Football or Lacrosse?"
    ],
    "col_names": [
      "StuID",
      "SportName",
      "HoursPerWeek",
      "GamesPlayed",
      "OnScholarship"
    ],
    "standard_answer": [
      "SELECT T2.lname ,  T2.fname FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID WHERE T1.SportName  =  \"Football\" OR T1.SportName  =  \"Lacrosse\"",
      "SELECT T2.lname ,  T2.fname FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID WHERE T1.SportName  =  \"Football\" OR T1.SportName  =  \"Lacrosse\""
    ]
  },
  {
    "database": "loan_1",
    "table": "bank",
    "questions": [
      "How many bank branches are there?",
      "Count the number of bank branches.",
      "How many customers are there?",
      "What is the total number of customers across banks?",
      "Find the number of customers in the banks at New York City.",
      "What is the total number of customers who use banks in New York City?",
      "Find the average number of customers in all banks of Utah state.",
      "What is the average number of customers across banks in the state of Utah?",
      "Find the average number of customers cross all banks.",
      "What is the average number of bank customers?",
      "Find the city and state of the bank branch named morningside.",
      "What city and state is the bank with the name morningside in?",
      "Find the branch names of banks in the New York state.",
      "What are the names of banks in the state of New York?",
      "Find the number of different cities which banks are located at.",
      "In how many different cities are banks located?",
      "Find the number of different states which banks are located at.",
      "In how many different states are banks located?",
      "Find the branch name of the bank that has the most number of customers.",
      "What is the name of the bank branch with the greatest number of customers?",
      "Find the state which has the most number of customers.",
      "Which state has the greatest total number of bank customers?",
      "Find the total amount of loans offered by each bank branch.",
      "What are the names of the different bank branches, and what are their total loan amounts?",
      "Find the name of bank branch that provided the greatest total amount of loans.",
      "What is the name of the bank branch that has lent the greatest amount?",
      "Find the name of bank branches that provided some loans.",
      "What are the names of the different banks that have provided loans?",
      "Find the city and name of bank branches that provide business loans.",
      "What are the names and cities of bank branches that offer loans for business?",
      "Find the total amount of loans provided by bank branches in the state of New York.",
      "What is the total amount of money loaned by banks in New York state?"
    ],
    "col_names": [
      "branch_ID",
      "bname",
      "no_of_customers",
      "city",
      "state"
    ],
    "standard_answer": [
      "SELECT count(*) FROM bank",
      "SELECT count(*) FROM bank",
      "SELECT sum(no_of_customers) FROM bank",
      "SELECT sum(no_of_customers) FROM bank",
      "SELECT sum(no_of_customers) FROM bank WHERE city  =  'New York City'",
      "SELECT sum(no_of_customers) FROM bank WHERE city  =  'New York City'",
      "SELECT avg(no_of_customers) FROM bank WHERE state  =  'Utah'",
      "SELECT avg(no_of_customers) FROM bank WHERE state  =  'Utah'",
      "SELECT avg(no_of_customers) FROM bank",
      "SELECT avg(no_of_customers) FROM bank",
      "SELECT city ,  state FROM bank WHERE bname  =  'morningside'",
      "SELECT city ,  state FROM bank WHERE bname  =  'morningside'",
      "SELECT bname FROM bank WHERE state  =  'New York'",
      "SELECT bname FROM bank WHERE state  =  'New York'",
      "SELECT count(DISTINCT city) FROM bank",
      "SELECT count(DISTINCT city) FROM bank",
      "SELECT count(DISTINCT state) FROM bank",
      "SELECT count(DISTINCT state) FROM bank",
      "SELECT bname FROM bank ORDER BY no_of_customers DESC LIMIT 1",
      "SELECT bname FROM bank ORDER BY no_of_customers DESC LIMIT 1",
      "SELECT state FROM bank GROUP BY state ORDER BY sum(no_of_customers) DESC LIMIT 1",
      "SELECT state FROM bank GROUP BY state ORDER BY sum(no_of_customers) DESC LIMIT 1",
      "SELECT sum(amount) ,  T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id GROUP BY T1.bname",
      "SELECT sum(amount) ,  T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id GROUP BY T1.bname",
      "SELECT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id GROUP BY T1.bname ORDER BY sum(T2.amount) DESC LIMIT 1",
      "SELECT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id GROUP BY T1.bname ORDER BY sum(T2.amount) DESC LIMIT 1",
      "SELECT DISTINCT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id",
      "SELECT DISTINCT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id",
      "SELECT T1.bname ,  T1.city FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id WHERE T2.loan_type  =  'Business'",
      "SELECT T1.bname ,  T1.city FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id WHERE T2.loan_type  =  'Business'",
      "SELECT sum(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id WHERE T1.state  =  'New York'",
      "SELECT sum(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id WHERE T1.state  =  'New York'"
    ]
  },
  {
    "database": "loan_1",
    "table": "customer",
    "questions": [
      "List the name of all customers sorted by their account balance in ascending order.",
      "What are the names of all customers, ordered by account balance?",
      "List the name of all different customers who have some loan sorted by their total loan amount.",
      "What are the names of the different customers who have taken out a loan, ordered by the total amount that they have taken?",
      "Find the state, account type, and credit score of the customer whose number of loan is 0.",
      "What are the states, account types, and credit scores for customers who have 0 loans?",
      "How many distinct types of accounts are there?",
      "Count the number of different account types.",
      "Find the name and account balance of the customer whose name includes the letter \u2018a\u2019.",
      "What are the names and account balances of customers with the letter a in their names?",
      "Find the total account balance of each customer from Utah or Texas.",
      "What are the total account balances for each customer from Utah or Texas?",
      "Find the name of customers who have both saving and checking account types.",
      "What are the names of customers who have both savings and checking accounts?",
      "Find the name of customers who do not have an saving account.",
      "What are the names of customers who do not have saving accounts?",
      "Find the name of customers who do not have a loan with a type of Mortgages.",
      "What are the names of customers who have not taken a Mortage loan?",
      "Find the name of customers who have loans of both Mortgages and Auto.",
      "What are the names of customers who have taken both Mortgage and Auto loans?",
      "Find the name of customers whose credit score is below the average credit scores of all customers.",
      "What are the names of customers with credit score less than the average credit score across customers?",
      "Find the name of customer who has the lowest credit score.",
      "What is the name of the customer with the worst credit score?",
      "Find the name, account type, and account balance of the customer who has the highest credit score.",
      "What is the name, account type, and account balance corresponding to the customer with the highest credit score?",
      "Find the name of customer who has the highest amount of loans.",
      "What is the name of the customer who has greatest total loan amount?",
      "For each account type, find the average account balance of customers with credit score lower than 50.",
      "What is the average account balance of customers with credit score below 50 for the different account types?",
      "For each state, find the total account balance of customers whose credit score is above 100.",
      "What is the total account balance for customers with a credit score of above 100 for the different states?",
      "Find the name of customers who have more than one loan.",
      "What are the names of customers who have taken out more than one loan?",
      "Find the name and account balance of the customers who have loans with a total amount of more than 5000.",
      "What are the names and account balances for customers who have taken a total amount of more than 5000 in loans?",
      "Find the name and credit score of the customers who have some loans.",
      "What are the different names and credit scores of customers who have taken a loan?",
      "Find the the name of the customers who have a loan with amount more than 3000.",
      "What are the names of customers who have a loan of more than 3000 in amount?",
      "Find the average credit score of the customers who have some loan.",
      "What is the average credit score for customers who have taken a loan?",
      "Find the average credit score of the customers who do not have any loan.",
      "What is the average credit score for customers who have never taken a loan?"
    ],
    "col_names": [
      "cust_ID",
      "cust_name",
      "acc_type",
      "acc_bal",
      "no_of_loans",
      "credit_score",
      "branch_ID",
      "state"
    ],
    "standard_answer": [
      "SELECT cust_name FROM customer ORDER BY acc_bal",
      "SELECT cust_name FROM customer ORDER BY acc_bal",
      "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount)",
      "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount)",
      "SELECT state ,  acc_type ,  credit_score FROM customer WHERE no_of_loans  =  0",
      "SELECT state ,  acc_type ,  credit_score FROM customer WHERE no_of_loans  =  0",
      "SELECT count(DISTINCT acc_type) FROM customer",
      "SELECT count(DISTINCT acc_type) FROM customer",
      "SELECT cust_name ,  acc_bal FROM customer WHERE cust_name LIKE '%a%'",
      "SELECT cust_name ,  acc_bal FROM customer WHERE cust_name LIKE '%a%'",
      "SELECT sum(acc_bal) FROM customer WHERE state  =  'Utah' OR state  =  'Texas'",
      "SELECT sum(acc_bal) FROM customer WHERE state  =  'Utah' OR state  =  'Texas'",
      "SELECT cust_name FROM customer WHERE acc_type  =  'saving' INTERSECT SELECT cust_name FROM customer WHERE acc_type  =  'checking'",
      "SELECT cust_name FROM customer WHERE acc_type  =  'saving' INTERSECT SELECT cust_name FROM customer WHERE acc_type  =  'checking'",
      "SELECT cust_name FROM customer EXCEPT SELECT cust_name FROM customer WHERE acc_type  =  'saving'",
      "SELECT cust_name FROM customer EXCEPT SELECT cust_name FROM customer WHERE acc_type  =  'saving'",
      "SELECT cust_name FROM customer EXCEPT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id WHERE T2.loan_type  =  'Mortgages'",
      "SELECT cust_name FROM customer EXCEPT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id WHERE T2.loan_type  =  'Mortgages'",
      "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id WHERE loan_type  =  'Mortgages' INTERSECT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id WHERE loan_type  =  'Auto'",
      "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id WHERE loan_type  =  'Mortgages' INTERSECT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id WHERE loan_type  =  'Auto'",
      "SELECT cust_name FROM customer WHERE credit_score  <  (SELECT avg(credit_score) FROM customer)",
      "SELECT cust_name FROM customer WHERE credit_score  <  (SELECT avg(credit_score) FROM customer)",
      "SELECT cust_name FROM customer ORDER BY credit_score LIMIT 1",
      "SELECT cust_name FROM customer ORDER BY credit_score LIMIT 1",
      "SELECT cust_name ,  acc_type ,  acc_bal FROM customer ORDER BY credit_score DESC LIMIT 1",
      "SELECT cust_name ,  acc_type ,  acc_bal FROM customer ORDER BY credit_score DESC LIMIT 1",
      "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount) DESC LIMIT 1",
      "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount) DESC LIMIT 1",
      "SELECT avg(acc_bal) ,  acc_type FROM customer WHERE credit_score  <  50 GROUP BY acc_type",
      "SELECT avg(acc_bal) ,  acc_type FROM customer WHERE credit_score  <  50 GROUP BY acc_type",
      "SELECT sum(acc_bal) ,  state FROM customer WHERE credit_score  >  100 GROUP BY state",
      "SELECT sum(acc_bal) ,  state FROM customer WHERE credit_score  >  100 GROUP BY state",
      "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name HAVING count(*)  >  1",
      "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name HAVING count(*)  >  1",
      "SELECT T1.cust_name ,  T1.acc_type FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name HAVING sum(T2.amount)  >  5000",
      "SELECT T1.cust_name ,  T1.acc_type FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name HAVING sum(T2.amount)  >  5000",
      "SELECT DISTINCT T1.cust_name ,  T1.credit_score FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id",
      "SELECT DISTINCT T1.cust_name ,  T1.credit_score FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id",
      "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id WHERE amount  >  3000",
      "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id WHERE amount  >  3000",
      "SELECT avg(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan)",
      "SELECT avg(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan)",
      "SELECT avg(credit_score) FROM customer WHERE cust_id NOT IN (SELECT cust_id FROM loan)",
      "SELECT avg(credit_score) FROM customer WHERE cust_id NOT IN (SELECT cust_id FROM loan)"
    ]
  },
  {
    "database": "loan_1",
    "table": "loan",
    "questions": [
      "Find the name of bank branch that provided the greatest total amount of loans to customers with credit score is less than 100.",
      "What is the name of the bank branch that has lended the largest total amount in loans, specifically to customers with credit scores below 100?",
      "Find the names of bank branches that have provided a loan to any customer whose credit score is below 100.",
      "What are the names of banks that have loaned money to customers with credit scores below 100?"
    ],
    "col_names": [
      "loan_ID",
      "loan_type",
      "cust_ID",
      "branch_ID",
      "amount"
    ],
    "standard_answer": [
      "SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id  =  T2.branch_id JOIN customer AS T3 ON T1.cust_id  =  T3.cust_id WHERE T3.credit_score  <  100 GROUP BY T2.bname ORDER BY sum(T1.amount) DESC LIMIT 1",
      "SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id  =  T2.branch_id JOIN customer AS T3 ON T1.cust_id  =  T3.cust_id WHERE T3.credit_score  <  100 GROUP BY T2.bname ORDER BY sum(T1.amount) DESC LIMIT 1",
      "SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id  =  T2.branch_id JOIN customer AS T3 ON T1.cust_id  =  T3.cust_id WHERE T3.credit_score  <  100",
      "SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id  =  T2.branch_id JOIN customer AS T3 ON T1.cust_id  =  T3.cust_id WHERE T3.credit_score  <  100"
    ]
  },
  {
    "database": "bike_1",
    "table": "station",
    "questions": [
      "What are the names of stations that have latitude lower than 37.5?",
      "What are the names of all stations with a latitude smaller than 37.5?",
      "For each city, return the highest latitude among its stations.",
      "For each city, what is the highest latitude for its stations?",
      "What is the average latitude and longitude of stations located in San Jose city?",
      "What is the average latitude and longitude in San Jose?",
      "What is the number of distinct cities the stations are located at?",
      "How many different cities have these stations?",
      "How many stations does Mountain View city has?",
      "How many stations are in Mountain View?",
      "Return the unique name for stations that have ever had 7 bikes available.",
      "What are the different names for each station that has ever had 7 bikes available?",
      "What is the latitude, longitude, city of the station from which the shortest trip started?",
      "What is the latitude, longitude, and city of the station from which the trip with smallest duration started?",
      "What are the ids of stations that are located in San Francisco and have average bike availability above 10.",
      "What are the ids of the stations in San Francisco that normally have more than 10 bikes available?",
      "What are the names and ids of stations that had more than 14 bikes available on average or were installed in December?",
      "What are the names and ids of all stations that have more than 14 bikes available on average or had bikes installed in December?",
      "What is the average longitude of stations that never had bike availability more than 10?",
      "What is the mean longitude for all stations that have never had more than 10 bikes available?",
      "What are the ids of stations that have latitude above 37.4 and never had bike availability below 7?",
      "What are the ids of all stations that have a latitude above 37.4 and have never had less than 7 bikes available?",
      "What are names of stations that have average bike availability above 10 and are not located in San Jose city?",
      "What are the names of all stations that have more than 10 bikes available and are not located in San Jose?",
      "What are the name, latitude, and city of the station with the lowest latitude?",
      "What is the name, latitude, and city of the station that is located the furthest South?",
      "List the name and the number of stations for all the cities that have at least 15 stations.",
      "What is the name of every city that has at least 15 stations and how many stations does it have?",
      "List all the cities in a decreasing order of each city's stations' highest latitude.",
      "For each city, list their names in decreasing order by their highest station latitude.",
      "For each station, return its longitude and the average duration of trips that started from the station.",
      "For each start station id, what is its name, longitude and average duration of trips started there?",
      "For each station, find its latitude and the minimum duration of trips that ended at the station.",
      "For each end station id, what is its name, latitude, and minimum duration for trips ended there?",
      "What are the id and name of the stations that have ever had more than 12 bikes available?",
      "What are the different ids and names of the stations that have had more than 12 bikes available?",
      "What are the names of stations that are located in Palo Alto city but have never been the ending point of trips more than 100 times?",
      "What are the names of the stations that are located in Palo Alto but have never been the ending point of the trips",
      "How many trips started from Mountain View city and ended at Palo Alto city?",
      "How many trips stated from  a station in Mountain View and ended at one in Palo Alto?",
      "What is the average latitude and longitude of the starting points of all trips?",
      "What is the average latitude and longitude of all starting stations for the trips?"
    ],
    "col_names": [
      "id",
      "name",
      "lat",
      "long",
      "dock_count",
      "city",
      "installation_date"
    ],
    "standard_answer": [
      "SELECT name FROM station WHERE lat  <  37.5",
      "SELECT name FROM station WHERE lat  <  37.5",
      "SELECT city ,  max(lat) FROM station GROUP BY city",
      "SELECT city ,  max(lat) FROM station GROUP BY city",
      "SELECT avg(lat) ,  avg(long) FROM station WHERE city  =  \"San Jose\"",
      "SELECT avg(lat) ,  avg(long) FROM station WHERE city  =  \"San Jose\"",
      "SELECT count(DISTINCT city) FROM station",
      "SELECT count(DISTINCT city) FROM station",
      "SELECT COUNT(*) FROM station WHERE city  =  \"Mountain View\"",
      "SELECT COUNT(*) FROM station WHERE city  =  \"Mountain View\"",
      "SELECT DISTINCT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id  =  T2.station_id WHERE T2.bikes_available  =  7",
      "SELECT DISTINCT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id  =  T2.station_id WHERE T2.bikes_available  =  7",
      "SELECT T1.lat ,  T1.long ,  T1.city FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.start_station_id ORDER BY T2.duration LIMIT 1",
      "SELECT T1.lat ,  T1.long ,  T1.city FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.start_station_id ORDER BY T2.duration LIMIT 1",
      "SELECT id FROM station WHERE city  =  \"San Francisco\" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING avg(bikes_available)  >  10",
      "SELECT id FROM station WHERE city  =  \"San Francisco\" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING avg(bikes_available)  >  10",
      "SELECT T1.name ,  T1.id FROM station AS T1 JOIN status AS T2 ON T1.id  =  T2.station_id GROUP BY T2.station_id HAVING avg(T2.bikes_available)  >  14 UNION SELECT name ,  id FROM station WHERE installation_date LIKE \"12/%\"",
      "SELECT T1.name ,  T1.id FROM station AS T1 JOIN status AS T2 ON T1.id  =  T2.station_id GROUP BY T2.station_id HAVING avg(T2.bikes_available)  >  14 UNION SELECT name ,  id FROM station WHERE installation_date LIKE \"12/%\"",
      "SELECT avg(long) FROM station WHERE id NOT IN (SELECT station_id FROM status GROUP BY station_id HAVING max(bikes_available)  >  10)",
      "SELECT avg(long) FROM station WHERE id NOT IN (SELECT station_id FROM status GROUP BY station_id HAVING max(bikes_available)  >  10)",
      "SELECT id FROM station WHERE lat  >  37.4 EXCEPT SELECT station_id FROM status GROUP BY station_id HAVING min(bikes_available)  <  7",
      "SELECT id FROM station WHERE lat  >  37.4 EXCEPT SELECT station_id FROM status GROUP BY station_id HAVING min(bikes_available)  <  7",
      "SELECT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id  =  T2.station_id GROUP BY T2.station_id HAVING avg(bikes_available)  >  10 EXCEPT SELECT name FROM station WHERE city  =  \"San Jose\"",
      "SELECT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id  =  T2.station_id GROUP BY T2.station_id HAVING avg(bikes_available)  >  10 EXCEPT SELECT name FROM station WHERE city  =  \"San Jose\"",
      "SELECT name ,  lat ,  city FROM station ORDER BY lat LIMIT 1",
      "SELECT name ,  lat ,  city FROM station ORDER BY lat LIMIT 1",
      "SELECT city ,  COUNT(*) FROM station GROUP BY city HAVING COUNT(*)  >=  15",
      "SELECT city ,  COUNT(*) FROM station GROUP BY city HAVING COUNT(*)  >=  15",
      "SELECT city FROM station GROUP BY city ORDER BY max(lat) DESC",
      "SELECT city FROM station GROUP BY city ORDER BY max(lat) DESC",
      "SELECT T1.name ,  T1.long ,  avg(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.start_station_id GROUP BY T2.start_station_id",
      "SELECT T1.name ,  T1.long ,  avg(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.start_station_id GROUP BY T2.start_station_id",
      "SELECT T1.name ,  T1.lat ,  min(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.end_station_id GROUP BY T2.end_station_id",
      "SELECT T1.name ,  T1.lat ,  min(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.end_station_id GROUP BY T2.end_station_id",
      "SELECT DISTINCT T1.id ,  T1.name FROM station AS T1 JOIN status AS T2 ON T1.id  =  T2.station_id WHERE T2.bikes_available  >  12",
      "SELECT DISTINCT T1.id ,  T1.name FROM station AS T1 JOIN status AS T2 ON T1.id  =  T2.station_id WHERE T2.bikes_available  >  12",
      "SELECT name FROM station WHERE city  =  \"Palo Alto\" EXCEPT SELECT end_station_name FROM trip GROUP BY end_station_name HAVING count(*)  >  100",
      "SELECT name FROM station WHERE city  =  \"Palo Alto\" EXCEPT SELECT end_station_name FROM trip GROUP BY end_station_name HAVING count(*)  >  100",
      "SELECT count(*) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id  =  T2.start_station_id AND T2.id  =  T4.id AND T3.id  =  T4.end_station_id WHERE T1.city  =  \"Mountain View\" AND T3.city  =  \"Palo Alto\"",
      "SELECT count(*) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id  =  T2.start_station_id AND T2.id  =  T4.id AND T3.id  =  T4.end_station_id WHERE T1.city  =  \"Mountain View\" AND T3.city  =  \"Palo Alto\"",
      "SELECT avg(T1.lat) ,  avg(T1.long) FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.start_station_id",
      "SELECT avg(T1.lat) ,  avg(T1.long) FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.start_station_id"
    ]
  },
  {
    "database": "bike_1",
    "table": "status",
    "questions": [
      "What is the average bike availability in stations that are not located in Palo Alto?",
      "What is the average bike availablility for stations not in Palo Alto?"
    ],
    "col_names": [
      "station_id",
      "bikes_available",
      "docks_available",
      "time"
    ],
    "standard_answer": [
      "SELECT avg(bikes_available) FROM status WHERE station_id NOT IN (SELECT id FROM station WHERE city  =  \"Palo Alto\")",
      "SELECT avg(bikes_available) FROM status WHERE station_id NOT IN (SELECT id FROM station WHERE city  =  \"Palo Alto\")"
    ]
  },
  {
    "database": "bike_1",
    "table": "trip",
    "questions": [
      "Give me the start station and end station for the trips with the three oldest id.",
      "What is the station station and end station for the trips with the three smallest ids?",
      "What is the id of the trip that has the shortest duration?",
      "What is the id of the shortest trip?",
      "What is the total and maximum duration of trips with bike id 636?",
      "What is the total and maximum duration for all trips with the bike id 636?",
      "From the trip record, find the number of unique bikes.",
      "How many different bike ids are there?",
      "Which start station had the most trips starting from August? Give me the name and id of the station.",
      "What are the start station's name and id for the one that had the most start trips in August?",
      "Which bike traveled the most often in zip code 94002?",
      "What is the id of the bike that traveled the most in 94002?",
      "Give me ids for all the trip that took place in a zip code area with average mean temperature above 60.",
      "For each zip code, find the ids of all trips that have a higher average mean temperature above 60?",
      "For each trip, return its ending station's installation date.",
      "What is the installation date for each ending station on all the trips?",
      "Which trip started from the station with the largest dock count? Give me the trip id.",
      "What is the id of the trip that started from the station with the highest dock count?",
      "Count the number of trips that did not end in San Francisco city.",
      "How many trips did not end in San Francisco?",
      "Find the ids and names of stations from which at least 200 trips started.",
      "What are the ids and names of all start stations that were the beginning of at least 200 trips?",
      "What are the ids and durations of the trips with the top 3 durations?",
      "What are the ids of the trips that lasted the longest and how long did they last?",
      "List all the distinct stations from which a trip of duration below 100 started.",
      "What are all the different start station names for a trip that lasted less than 100?",
      "Find the id for the trips that lasted at least as long as the average duration of trips in zip code 94103.",
      "What are the ids of all trips that had a duration as long as the average trip duration in the zip code 94103?"
    ],
    "col_names": [
      "id",
      "duration",
      "start_date",
      "start_station_name",
      "start_station_id",
      "end_date",
      "end_station_name",
      "end_station_id",
      "bike_id",
      "subscription_type",
      "zip_code"
    ],
    "standard_answer": [
      "SELECT start_station_name ,  end_station_name FROM trip ORDER BY id LIMIT 3",
      "SELECT start_station_name ,  end_station_name FROM trip ORDER BY id LIMIT 3",
      "SELECT id FROM trip ORDER BY duration LIMIT 1",
      "SELECT id FROM trip ORDER BY duration LIMIT 1",
      "SELECT sum(duration) ,  max(duration) FROM trip WHERE bike_id  =  636",
      "SELECT sum(duration) ,  max(duration) FROM trip WHERE bike_id  =  636",
      "SELECT count(DISTINCT bike_id) FROM trip",
      "SELECT count(DISTINCT bike_id) FROM trip",
      "SELECT start_station_name ,  start_station_id FROM trip WHERE start_date LIKE \"8/%\" GROUP BY start_station_name ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT start_station_name ,  start_station_id FROM trip WHERE start_date LIKE \"8/%\" GROUP BY start_station_name ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT bike_id FROM trip WHERE zip_code  =  94002 GROUP BY bike_id ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT bike_id FROM trip WHERE zip_code  =  94002 GROUP BY bike_id ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T1.id FROM trip AS T1 JOIN weather AS T2 ON T1.zip_code  =  T2.zip_code GROUP BY T2.zip_code HAVING avg(T2.mean_temperature_f)  >  60",
      "SELECT T1.id FROM trip AS T1 JOIN weather AS T2 ON T1.zip_code  =  T2.zip_code GROUP BY T2.zip_code HAVING avg(T2.mean_temperature_f)  >  60",
      "SELECT T1.id ,  T2.installation_date FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id  =  T2.id",
      "SELECT T1.id ,  T2.installation_date FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id  =  T2.id",
      "SELECT T1.id FROM trip AS T1 JOIN station AS T2 ON T1.start_station_id  =  T2.id ORDER BY T2.dock_count DESC LIMIT 1",
      "SELECT T1.id FROM trip AS T1 JOIN station AS T2 ON T1.start_station_id  =  T2.id ORDER BY T2.dock_count DESC LIMIT 1",
      "SELECT count(*) FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id  =  T2.id WHERE T2.city !=  \"San Francisco\"",
      "SELECT count(*) FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id  =  T2.id WHERE T2.city != \"San Francisco\"",
      "SELECT start_station_id ,  start_station_name FROM trip GROUP BY start_station_name HAVING COUNT(*)  >=  200",
      "SELECT start_station_id ,  start_station_name FROM trip GROUP BY start_station_name HAVING COUNT(*)  >=  200",
      "SELECT id ,  duration FROM trip ORDER BY duration DESC LIMIT 3",
      "SELECT id ,  duration FROM trip ORDER BY duration DESC LIMIT 3",
      "SELECT DISTINCT start_station_name FROM trip WHERE duration  <  100",
      "SELECT DISTINCT start_station_name FROM trip WHERE duration  <  100",
      "SELECT id FROM trip WHERE duration  >=  (SELECT avg(duration) FROM trip WHERE zip_code  =  94103)",
      "SELECT id FROM trip WHERE duration  >=  (SELECT avg(duration) FROM trip WHERE zip_code  =  94103)"
    ]
  },
  {
    "database": "bike_1",
    "table": "weather",
    "questions": [
      "Give me the dates when the max temperature was higher than 85.",
      "What are the dates with a maximum temperature higher than 85?",
      "For each zip code, return the average mean temperature of August there.",
      "For each zip code, what is the average mean temperature for all dates that start with '8'?",
      "How many days had both mean humidity above 50 and mean visibility above 8?",
      "What is the number of days that had an average humity above 50 and an average visibility above 8?",
      "What is the 3 most common cloud cover rates in the region of zip code 94107?",
      "What are the 3 most common cloud covers in the zip code of 94107?",
      "What is the zip code in which the average mean sea level pressure is the lowest?",
      "What is the zip code that has the lowest average mean sea level pressure?",
      "When and in what zip code did max temperature reach 80?",
      "What zip codes have a station with a max temperature greater than or equal to 80 and when did it reach that temperature?",
      "For each zip code, return how many times max wind speed reached 25?",
      "For each zip code, how many times has the maximum wind speed reached 25 mph?",
      "On which day and in which zip code was the min dew point lower than any day in zip code 94107?",
      "Which days had a minimum dew point smaller than any day in zip code 94107, and in which zip codes were those measurements taken?",
      "In zip code 94107, on which day neither Fog nor Rain was not observed?",
      "On which day has it neither been foggy nor rained in the zip code of 94107?",
      "What are the date, mean temperature and mean humidity for the top 3 days with the largest max gust speeds?",
      "What is the date, average temperature and mean humidity for the days with the 3 largest maximum gust speeds?",
      "Find the zip code in which the average mean visibility is lower than 10.",
      "For each zip code, select all those that have an average mean visiblity below 10.",
      "What are the dates that had the top 5 cloud cover rates? Also tell me the cloud cover rate.",
      "What are the dates that have the 5 highest cloud cover rates and what are the rates?",
      "Find all the zip codes in which the max dew point have never reached 70.",
      "What are all the different zip codes that have a maximum dew point that was always below 70?",
      "What are the dates in which the mean sea level pressure was between 30.3 and 31?",
      "What are the dates that have an average sea level pressure between 30.3 and 31?",
      "Find the day in which the difference between the max temperature and min temperature was the smallest. Also report the difference.",
      "What are the days that had the smallest temperature range, and what was that range?",
      "Give me the zip code where the average mean humidity is below 70 and at least 100 trips took place.",
      "What are the zip codes that have an average mean humidity below 70 and had at least 100 trips come through there?"
    ],
    "col_names": [
      "date",
      "max_temperature_f",
      "mean_temperature_f",
      "min_temperature_f",
      "max_dew_point_f",
      "mean_dew_point_f",
      "min_dew_point_f",
      "max_humidity",
      "mean_humidity",
      "min_humidity",
      "max_sea_level_pressure_inches",
      "mean_sea_level_pressure_inches",
      "min_sea_level_pressure_inches",
      "max_visibility_miles",
      "mean_visibility_miles",
      "min_visibility_miles",
      "max_wind_Speed_mph",
      "mean_wind_speed_mph",
      "max_gust_speed_mph",
      "precipitation_inches",
      "cloud_cover",
      "events",
      "wind_dir_degrees",
      "zip_code"
    ],
    "standard_answer": [
      "SELECT date FROM weather WHERE max_temperature_f  >  85",
      "SELECT date FROM weather WHERE max_temperature_f  >  85",
      "SELECT zip_code  ,  avg(mean_temperature_f) FROM weather WHERE date LIKE \"8/%\" GROUP BY zip_code",
      "SELECT zip_code  ,  avg(mean_temperature_f) FROM weather WHERE date LIKE \"8/%\" GROUP BY zip_code",
      "SELECT COUNT(*) FROM weather WHERE mean_humidity  >  50 AND mean_visibility_miles  >  8",
      "SELECT COUNT(*) FROM weather WHERE mean_humidity  >  50 AND mean_visibility_miles  >  8",
      "SELECT cloud_cover FROM weather WHERE zip_code  =  94107 GROUP BY cloud_cover ORDER BY COUNT (*) DESC LIMIT 3",
      "SELECT cloud_cover FROM weather WHERE zip_code  =  94107 GROUP BY cloud_cover ORDER BY COUNT (*) DESC LIMIT 3",
      "SELECT zip_code FROM weather GROUP BY zip_code ORDER BY avg(mean_sea_level_pressure_inches) LIMIT 1",
      "SELECT zip_code FROM weather GROUP BY zip_code ORDER BY avg(mean_sea_level_pressure_inches) LIMIT 1",
      "SELECT date ,  zip_code FROM weather WHERE max_temperature_f  >=  80",
      "SELECT date ,  zip_code FROM weather WHERE max_temperature_f  >=  80",
      "SELECT zip_code , count(*) FROM weather WHERE max_wind_Speed_mph  >=  25 GROUP BY zip_code",
      "SELECT zip_code , count(*) FROM weather WHERE max_wind_Speed_mph  >=  25 GROUP BY zip_code",
      "SELECT date ,  zip_code FROM weather WHERE min_dew_point_f  <  (SELECT min(min_dew_point_f) FROM weather WHERE zip_code  =  94107)",
      "SELECT date ,  zip_code FROM weather WHERE min_dew_point_f  <  (SELECT min(min_dew_point_f) FROM weather WHERE zip_code  =  94107)",
      "SELECT date FROM weather WHERE zip_code  =  94107 AND EVENTS != \"Fog\" AND EVENTS != \"Rain\"",
      "SELECT date FROM weather WHERE zip_code  =  94107 AND EVENTS != \"Fog\" AND EVENTS != \"Rain\"",
      "SELECT date ,  mean_temperature_f ,  mean_humidity FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 3",
      "SELECT date ,  mean_temperature_f ,  mean_humidity FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 3",
      "SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_visibility_miles)  <  10",
      "SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_visibility_miles)  <  10",
      "SELECT date ,  cloud_cover FROM weather ORDER BY cloud_cover DESC LIMIT 5",
      "SELECT date ,  cloud_cover FROM weather ORDER BY cloud_cover DESC LIMIT 5",
      "SELECT DISTINCT zip_code FROM weather EXCEPT SELECT DISTINCT zip_code FROM weather WHERE max_dew_point_f  >=  70",
      "SELECT DISTINCT zip_code FROM weather EXCEPT SELECT DISTINCT zip_code FROM weather WHERE max_dew_point_f  >=  70",
      "SELECT date FROM weather WHERE mean_sea_level_pressure_inches BETWEEN 30.3 AND 31",
      "SELECT date FROM weather WHERE mean_sea_level_pressure_inches BETWEEN 30.3 AND 31",
      "SELECT date ,  max_temperature_f - min_temperature_f FROM weather ORDER BY max_temperature_f - min_temperature_f LIMIT 1",
      "SELECT date ,  max_temperature_f - min_temperature_f FROM weather ORDER BY max_temperature_f - min_temperature_f LIMIT 1",
      "SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_humidity)  <  70 INTERSECT SELECT zip_code FROM trip GROUP BY zip_code HAVING count(*)  >=  100",
      "SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_humidity)  <  70 INTERSECT SELECT zip_code FROM trip GROUP BY zip_code HAVING count(*)  >=  100"
    ]
  },
  {
    "database": "entrepreneur",
    "table": "entrepreneur",
    "questions": [
      "How many entrepreneurs are there?",
      "Count the number of entrepreneurs.",
      "List the companies of entrepreneurs in descending order of money requested.",
      "What are the companies of entrepreneurs, ordered descending by amount of money requested?",
      "List the companies and the investors of entrepreneurs.",
      "What are the companies and investors that correspond to each entrepreneur?",
      "What is the average money requested by all entrepreneurs?",
      "Return the average money requested across all entrepreneurs.",
      "What are the names of entrepreneurs?",
      "Return the names of entrepreneurs.",
      "What are the names of entrepreneurs whose investor is not \"Rachel Elnaugh\"?",
      "Return the names of entrepreneurs do no not have the investor Rachel Elnaugh.",
      "What is the name of the entrepreneur with the greatest weight?",
      "Return the name of the heaviest entrepreneur.",
      "What is the total money requested by entrepreneurs with height more than 1.85?",
      "Give the total money requested by entrepreneurs who are taller than 1.85.",
      "What are the dates of birth of entrepreneurs with investor \"Simon Woodroffe\" or \"Peter Jones\"?",
      "Return the dates of birth for entrepreneurs who have either the investor Simon Woodroffe or Peter Jones.",
      "What are the weights of entrepreneurs in descending order of money requested?",
      "Return the weights of entrepreneurs, ordered descending by amount of money requested.",
      "What are the investors of entrepreneurs and the corresponding number of entrepreneurs invested by each investor?",
      "How many entrepreneurs correspond to each investor?",
      "What is the investor that has invested in the most number of entrepreneurs?",
      "Return the investor who have invested in the greatest number of entrepreneurs.",
      "What are the investors that have invested in at least two entrepreneurs?",
      "Return the investors who have invested in two or more entrepreneurs.",
      "List the names of entrepreneurs and their companies in descending order of money requested?",
      "What are the names of entrepreneurs and their corresponding investors, ordered descending by the amount of money requested?",
      "Show the investors shared by entrepreneurs that requested more than 140000 and entrepreneurs that requested less than 120000.",
      "What are the investors who have invested in both entrepreneurs who requested more than 140000 and entrepreneurs who requested less than 120000?",
      "How many distinct companies are there?",
      "Count the number of different companies.",
      "Show the company of the tallest entrepreneur.",
      "Which company was started by the entrepreneur with the greatest height?"
    ],
    "col_names": [
      "Entrepreneur_ID",
      "People_ID",
      "Company",
      "Money_Requested",
      "Investor"
    ],
    "standard_answer": [
      "SELECT count(*) FROM entrepreneur",
      "SELECT count(*) FROM entrepreneur",
      "SELECT Company FROM entrepreneur ORDER BY Money_Requested DESC",
      "SELECT Company FROM entrepreneur ORDER BY Money_Requested DESC",
      "SELECT Company ,  Investor FROM entrepreneur",
      "SELECT Company ,  Investor FROM entrepreneur",
      "SELECT avg(Money_Requested) FROM entrepreneur",
      "SELECT avg(Money_Requested) FROM entrepreneur",
      "SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID",
      "SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID",
      "SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Investor != \"Rachel Elnaugh\"",
      "SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Investor != \"Rachel Elnaugh\"",
      "SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Weight DESC LIMIT 1",
      "SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Weight DESC LIMIT 1",
      "SELECT sum(T1.Money_Requested) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Height  >  1.85",
      "SELECT sum(T1.Money_Requested) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Height  >  1.85",
      "SELECT T2.Date_of_Birth FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Investor  =  \"Simon Woodroffe\" OR T1.Investor  =  \"Peter Jones\"",
      "SELECT T2.Date_of_Birth FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Investor  =  \"Simon Woodroffe\" OR T1.Investor  =  \"Peter Jones\"",
      "SELECT T2.Weight FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Money_Requested DESC",
      "SELECT T2.Weight FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Money_Requested DESC",
      "SELECT Investor ,  COUNT(*) FROM entrepreneur GROUP BY Investor",
      "SELECT Investor ,  COUNT(*) FROM entrepreneur GROUP BY Investor",
      "SELECT Investor FROM entrepreneur GROUP BY Investor ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Investor FROM entrepreneur GROUP BY Investor ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Investor FROM entrepreneur GROUP BY Investor HAVING COUNT(*)  >=  2",
      "SELECT Investor FROM entrepreneur GROUP BY Investor HAVING COUNT(*)  >=  2",
      "SELECT T2.Name ,  T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Money_Requested",
      "SELECT T2.Name ,  T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Money_Requested",
      "SELECT Investor FROM entrepreneur WHERE Money_Requested  >  140000 INTERSECT SELECT Investor FROM entrepreneur WHERE Money_Requested  <  120000",
      "SELECT Investor FROM entrepreneur WHERE Money_Requested  >  140000 INTERSECT SELECT Investor FROM entrepreneur WHERE Money_Requested  <  120000",
      "SELECT count(DISTINCT Company) FROM entrepreneur",
      "SELECT count(DISTINCT Company) FROM entrepreneur",
      "SELECT T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Height DESC LIMIT 1",
      "SELECT T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Height DESC LIMIT 1"
    ]
  },
  {
    "database": "entrepreneur",
    "table": "people",
    "questions": [
      "What is the weight of the shortest person?",
      "Return the weight of the shortest person.",
      "List the names of people that are not entrepreneurs.",
      "What are the names of people who are not entrepreneurs?"
    ],
    "col_names": [
      "People_ID",
      "Name",
      "Height",
      "Weight",
      "Date_of_Birth"
    ],
    "standard_answer": [
      "SELECT Weight FROM people ORDER BY Height ASC LIMIT 1",
      "SELECT Weight FROM people ORDER BY Height ASC LIMIT 1",
      "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM entrepreneur)",
      "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM entrepreneur)"
    ]
  },
  {
    "database": "orchestra",
    "table": "conductor",
    "questions": [],
    "col_names": [
      "Conductor_ID",
      "Name",
      "Age",
      "Nationality",
      "Year_of_Work"
    ],
    "standard_answer": []
  },
  {
    "database": "orchestra",
    "table": "orchestra",
    "questions": [],
    "col_names": [
      "Orchestra_ID",
      "Orchestra",
      "Conductor_ID",
      "Record_Company",
      "Year_of_Founded",
      "Major_Record_Format"
    ],
    "standard_answer": []
  },
  {
    "database": "orchestra",
    "table": "performance",
    "questions": [],
    "col_names": [
      "Performance_ID",
      "Orchestra_ID",
      "Type",
      "Date",
      "Official_ratings_(millions)",
      "Weekly_rank",
      "Share"
    ],
    "standard_answer": []
  },
  {
    "database": "orchestra",
    "table": "show",
    "questions": [],
    "col_names": [
      "Show_ID",
      "Performance_ID",
      "If_first_show",
      "Result",
      "Attendance"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Drama_Workshop_Groups",
    "table": "Ref_Payment_Methods",
    "questions": [],
    "col_names": [
      "payment_method_code",
      "payment_method_description"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Drama_Workshop_Groups",
    "table": "Ref_Service_Types",
    "questions": [
      "What are the descriptions of the service types with product price above 100?",
      "Give me the descriptions of the service types that cost more than 100.",
      "What is the description, code and the corresponding count of each service type?",
      "List the description, code and the number of services for each service type.",
      "What is the description and code of the type of service that is performed the most often?",
      "Find the description and code of the service type that is performed the most times.",
      "What is the description of the service type which offers both the photo product and the film product?",
      "Give me the description of the service type that offers not only the photo product but also the film product."
    ],
    "col_names": [
      "Service_Type_Code",
      "Parent_Service_Type_Code",
      "Service_Type_Description"
    ],
    "standard_answer": [
      "SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code WHERE T2.Product_Price  >  100",
      "SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code WHERE T2.Product_Price  >  100",
      "SELECT T1.Service_Type_Description ,  T2.Service_Type_Code ,  COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T2.Service_Type_Code",
      "SELECT T1.Service_Type_Description ,  T2.Service_Type_Code ,  COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T2.Service_Type_Code",
      "SELECT T1.Service_Type_Description , T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T1.Service_Type_Description , T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code WHERE T2.Product_Name  =  'photo' INTERSECT SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code WHERE T2.Product_Name  =  'film'",
      "SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code WHERE T2.Product_Name  =  'photo' INTERSECT SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code WHERE T2.Product_Name  =  'film'"
    ]
  },
  {
    "database": "cre_Drama_Workshop_Groups",
    "table": "Addresses",
    "questions": [
      "Which city is the address of the store named \"FJA Filming\" located in?",
      "Find the city the store named \"FJA Filming\" is in.",
      "What are the states or counties of the address of the stores with marketing region code \"CA\"?",
      "Find the states or counties where the stores with marketing region code \"CA\" are located.",
      "What are the names of the drama workshop groups with address in Feliciaberg city?",
      "Return the the names of the drama workshop groups that are located in Feliciaberg city.",
      "What are the email addresses of the drama workshop groups with address in Alaska state?",
      "List the email addresses of the drama workshop groups located in Alaska state.",
      "Show all cities along with the number of drama workshop groups in each city.",
      "How many drama workshop groups are there in each city? Return both the city and the count.",
      "Show all cities where at least one customer lives in but no performer lives in.",
      "Which cities have at least one customer but no performer?"
    ],
    "col_names": [
      "Address_ID",
      "Line_1",
      "Line_2",
      "City_Town",
      "State_County",
      "Other_Details"
    ],
    "standard_answer": [
      "SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T2.Store_Name  =  \"FJA Filming\"",
      "SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T2.Store_Name  =  \"FJA Filming\"",
      "SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T2.Marketing_Region_Code  =  \"CA\"",
      "SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T2.Marketing_Region_Code  =  \"CA\"",
      "SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T1.City_Town  =  \"Feliciaberg\"",
      "SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T1.City_Town  =  \"Feliciaberg\"",
      "SELECT T2.Store_Email_Address FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T1.State_County  =  \"Alaska\"",
      "SELECT T2.Store_Email_Address FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T1.State_County  =  \"Alaska\"",
      "SELECT T1.City_Town ,  count(*) FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID  =  T2.Address_ID GROUP BY T1.City_Town",
      "SELECT T1.City_Town ,  count(*) FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID  =  T2.Address_ID GROUP BY T1.City_Town",
      "SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID  =  T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID  =  T2.Address_ID",
      "SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID  =  T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID  =  T2.Address_ID"
    ]
  },
  {
    "database": "cre_Drama_Workshop_Groups",
    "table": "Products",
    "questions": [
      "List all product names in ascending order of price.",
      "Sort the names of products in ascending order of their price."
    ],
    "col_names": [
      "Product_ID",
      "Product_Name",
      "Product_Price",
      "Product_Description",
      "Other_Product_Service_Details"
    ],
    "standard_answer": [
      "SELECT Product_Name FROM Products ORDER BY Product_Price ASC",
      "SELECT Product_Name FROM Products ORDER BY Product_Price ASC"
    ]
  },
  {
    "database": "cre_Drama_Workshop_Groups",
    "table": "Marketing_Regions",
    "questions": [
      "What is the description of the marketing region China?",
      "Find the marketing region description of China?",
      "What is the name of the marketing region that the store Rob Dinning belongs to?",
      "Return the name of the marketing region the store Rob Dinning is located in."
    ],
    "col_names": [
      "Marketing_Region_Code",
      "Marketing_Region_Name",
      "Marketing_Region_Descriptrion",
      "Other_Details"
    ],
    "standard_answer": [
      "SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name  =  \"China\"",
      "SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name  =  \"China\"",
      "SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code  =  T2.Marketing_Region_Code WHERE T2.Store_Name  =  \"Rob Dinning\"",
      "SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code  =  T2.Marketing_Region_Code WHERE T2.Store_Name  =  \"Rob Dinning\""
    ]
  },
  {
    "database": "cre_Drama_Workshop_Groups",
    "table": "Clients",
    "questions": [
      "Show the names of all the clients with no booking.",
      "What are the names of the clients who do not have any booking?"
    ],
    "col_names": [
      "Client_ID",
      "Address_ID",
      "Customer_Email_Address",
      "Customer_Name",
      "Customer_Phone",
      "Other_Details"
    ],
    "standard_answer": [
      "SELECT Customer_Name FROM Clients EXCEPT SELECT T2.Customer_Name FROM Bookings AS T1 JOIN Clients AS T2 ON T1.Customer_ID  =  T2.Client_ID",
      "SELECT Customer_Name FROM Clients EXCEPT SELECT T2.Customer_Name FROM Bookings AS T1 JOIN Clients AS T2 ON T1.Customer_ID  =  T2.Client_ID"
    ]
  },
  {
    "database": "cre_Drama_Workshop_Groups",
    "table": "Drama_Workshop_Groups",
    "questions": [
      "Show all the Store_Name of drama workshop groups.",
      "What are the store names of drama workshop groups?",
      "What are the phones and emails of workshop groups in which services are performed?",
      "Give me all the phone numbers and email addresses of the workshop groups where services are performed.",
      "What are the names of workshop groups in which services with product name \"film\" are performed?",
      "Find the names of the workshop groups where services with product name \"film\" are performed.",
      "How many distinct currency codes are there for all drama workshop groups?",
      "Find the number of distinct currency codes used in drama workshop groups.",
      "What is the marketing region code that has the most drama workshop groups?",
      "Which marketing region has the most drama workshop groups? Give me the region code."
    ],
    "col_names": [
      "Workshop_Group_ID",
      "Address_ID",
      "Currency_Code",
      "Marketing_Region_Code",
      "Store_Name",
      "Store_Phone",
      "Store_Email_Address",
      "Other_Details"
    ],
    "standard_answer": [
      "SELECT Store_Name FROM Drama_Workshop_Groups",
      "SELECT Store_Name FROM Drama_Workshop_Groups",
      "SELECT T1.Store_Phone ,  T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID",
      "SELECT T1.Store_Phone ,  T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID",
      "SELECT T1.Store_Phone ,  T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID WHERE T2.Product_Name  =  \"film\"",
      "SELECT T1.Store_Phone ,  T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID WHERE T2.Product_Name  =  \"film\"",
      "SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups",
      "SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups",
      "SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY count(*) DESC LIMIT 1",
      "SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "cre_Drama_Workshop_Groups",
    "table": "Performers",
    "questions": [],
    "col_names": [
      "Performer_ID",
      "Address_ID",
      "Customer_Name",
      "Customer_Phone",
      "Customer_Email_Address",
      "Other_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Drama_Workshop_Groups",
    "table": "Customers",
    "questions": [],
    "col_names": [
      "Customer_ID",
      "Address_ID",
      "Customer_Name",
      "Customer_Phone",
      "Customer_Email_Address",
      "Other_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Drama_Workshop_Groups",
    "table": "Stores",
    "questions": [],
    "col_names": [
      "Store_ID",
      "Address_ID",
      "Marketing_Region_Code",
      "Store_Name",
      "Store_Phone",
      "Store_Email_Address",
      "Other_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Drama_Workshop_Groups",
    "table": "Bookings",
    "questions": [
      "What are the names of the workshop groups that have bookings with status code \"stop\"?",
      "Which workshop groups have bookings with status code \"stop\"? Give me the names."
    ],
    "col_names": [
      "Booking_ID",
      "Customer_ID",
      "Workshop_Group_ID",
      "Status_Code",
      "Store_ID",
      "Order_Date",
      "Planned_Delivery_Date",
      "Actual_Delivery_Date",
      "Other_Order_Details"
    ],
    "standard_answer": [
      "SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID WHERE T1.Status_Code  =  \"stop\"",
      "SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID WHERE T1.Status_Code  =  \"stop\""
    ]
  },
  {
    "database": "cre_Drama_Workshop_Groups",
    "table": "Performers_in_Bookings",
    "questions": [],
    "col_names": [
      "Order_ID",
      "Performer_ID"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Drama_Workshop_Groups",
    "table": "Customer_Orders",
    "questions": [
      "What are the actual delivery dates of orders with quantity 1?",
      "List the actual delivery date for all the orders with quantity 1",
      "What are the order dates of orders with price higher than 1000?",
      "Find the order dates of the orders with price above 1000."
    ],
    "col_names": [
      "Order_ID",
      "Customer_ID",
      "Store_ID",
      "Order_Date",
      "Planned_Delivery_Date",
      "Actual_Delivery_Date",
      "Other_Order_Details"
    ],
    "standard_answer": [
      "SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID  =  T2.Order_ID WHERE T2.Order_Quantity  =  1",
      "SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID  =  T2.Order_ID WHERE T2.Order_Quantity  =  1",
      "SELECT T1.Order_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID  =  T2.Order_ID JOIN Products AS T3 ON T2.Product_ID  =  T3.Product_ID WHERE T3.Product_price  >  1000",
      "SELECT T1.Order_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID  =  T2.Order_ID JOIN Products AS T3 ON T2.Product_ID  =  T3.Product_ID WHERE T3.Product_price  >  1000"
    ]
  },
  {
    "database": "cre_Drama_Workshop_Groups",
    "table": "Order_Items",
    "questions": [],
    "col_names": [
      "Order_Item_ID",
      "Order_ID",
      "Product_ID",
      "Order_Quantity",
      "Other_Item_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Drama_Workshop_Groups",
    "table": "Invoices",
    "questions": [
      "What is the average quantities ordered with payment method code \"MasterCard\" on invoices?",
      "Check the invoices record and compute the average quantities ordered with the payment method \"MasterCard\"."
    ],
    "col_names": [
      "Invoice_ID",
      "Order_ID",
      "payment_method_code",
      "Product_ID",
      "Order_Quantity",
      "Other_Item_Details",
      "Order_Item_ID"
    ],
    "standard_answer": [
      "SELECT avg(Order_Quantity) FROM Invoices WHERE payment_method_code  =  \"MasterCard\"",
      "SELECT avg(Order_Quantity) FROM Invoices WHERE payment_method_code  =  \"MasterCard\""
    ]
  },
  {
    "database": "cre_Drama_Workshop_Groups",
    "table": "Services",
    "questions": [],
    "col_names": [
      "Service_ID",
      "Service_Type_Code",
      "Workshop_Group_ID",
      "Product_Description",
      "Product_Name",
      "Product_Price",
      "Other_Product_Service_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Drama_Workshop_Groups",
    "table": "Bookings_Services",
    "questions": [],
    "col_names": [
      "Order_ID",
      "Product_ID"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Drama_Workshop_Groups",
    "table": "Invoice_Items",
    "questions": [],
    "col_names": [
      "Invoice_Item_ID",
      "Invoice_ID",
      "Order_ID",
      "Order_Item_ID",
      "Product_ID",
      "Order_Quantity",
      "Other_Item_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "car_1",
    "table": "continents",
    "questions": [],
    "col_names": [
      "ContId",
      "Continent"
    ],
    "standard_answer": []
  },
  {
    "database": "car_1",
    "table": "countries",
    "questions": [],
    "col_names": [
      "CountryId",
      "CountryName",
      "Continent"
    ],
    "standard_answer": []
  },
  {
    "database": "car_1",
    "table": "car_makers",
    "questions": [],
    "col_names": [
      "Id",
      "Maker",
      "FullName",
      "Country"
    ],
    "standard_answer": []
  },
  {
    "database": "car_1",
    "table": "model_list",
    "questions": [],
    "col_names": [
      "ModelId",
      "Maker",
      "Model"
    ],
    "standard_answer": []
  },
  {
    "database": "car_1",
    "table": "car_names",
    "questions": [],
    "col_names": [
      "MakeId",
      "Model",
      "Make"
    ],
    "standard_answer": []
  },
  {
    "database": "car_1",
    "table": "cars_data",
    "questions": [],
    "col_names": [
      "Id",
      "MPG",
      "Cylinders",
      "Edispl",
      "Horsepower",
      "Weight",
      "Accelerate",
      "Year"
    ],
    "standard_answer": []
  },
  {
    "database": "geo",
    "table": "state",
    "questions": [],
    "col_names": [
      "state_name",
      "population",
      "area",
      "country_name",
      "capital",
      "density"
    ],
    "standard_answer": []
  },
  {
    "database": "geo",
    "table": "city",
    "questions": [],
    "col_names": [
      "city_name",
      "population",
      "country_name",
      "state_name"
    ],
    "standard_answer": []
  },
  {
    "database": "geo",
    "table": "border_info",
    "questions": [],
    "col_names": [
      "state_name",
      "border"
    ],
    "standard_answer": []
  },
  {
    "database": "geo",
    "table": "highlow",
    "questions": [],
    "col_names": [
      "state_name",
      "highest_elevation",
      "lowest_point",
      "highest_point",
      "lowest_elevation"
    ],
    "standard_answer": []
  },
  {
    "database": "geo",
    "table": "lake",
    "questions": [],
    "col_names": [
      "lake_name",
      "area",
      "country_name",
      "state_name"
    ],
    "standard_answer": []
  },
  {
    "database": "geo",
    "table": "mountain",
    "questions": [],
    "col_names": [
      "mountain_name",
      "mountain_altitude",
      "country_name",
      "state_name"
    ],
    "standard_answer": []
  },
  {
    "database": "geo",
    "table": "river",
    "questions": [],
    "col_names": [
      "river_name",
      "length",
      "country_name",
      "traverse"
    ],
    "standard_answer": []
  },
  {
    "database": "behavior_monitoring",
    "table": "Ref_Address_Types",
    "questions": [],
    "col_names": [
      "address_type_code",
      "address_type_description"
    ],
    "standard_answer": []
  },
  {
    "database": "behavior_monitoring",
    "table": "Ref_Detention_Type",
    "questions": [],
    "col_names": [
      "detention_type_code",
      "detention_type_description"
    ],
    "standard_answer": []
  },
  {
    "database": "behavior_monitoring",
    "table": "Ref_Incident_Type",
    "questions": [
      "What is the incident type description for the incident type with code \"VIOLENCE\"?"
    ],
    "col_names": [
      "incident_type_code",
      "incident_type_description"
    ],
    "standard_answer": [
      "SELECT incident_type_description FROM Ref_Incident_Type WHERE incident_type_code  =  \"VIOLENCE\""
    ]
  },
  {
    "database": "behavior_monitoring",
    "table": "Addresses",
    "questions": [
      "List all cities of addresses in alphabetical order.",
      "Find the id and city of the student address with the highest average monthly rental.",
      "What are the id and zip code of the address with the highest monthly rental?",
      "What are the monthly rentals of student addresses in Texas state?",
      "What are the first names and last names of students with address in Wisconsin state?",
      "What are the line 1 and average monthly rentals of all student addresses?",
      "What is the zip code of the address where the teacher with first name \"Lyla\" lives?",
      "What are the email addresses of teachers whose address has zip code \"918\"?",
      "What are the line 1 of addresses shared by some students and some teachers?"
    ],
    "col_names": [
      "address_id",
      "line_1",
      "line_2",
      "line_3",
      "city",
      "zip_postcode",
      "state_province_county",
      "country",
      "other_address_details"
    ],
    "standard_answer": [
      "SELECT city FROM Addresses ORDER BY city",
      "SELECT T2.address_id ,  T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id  =  T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1",
      "SELECT T2.address_id ,  T1.zip_postcode FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id  =  T2.address_id ORDER BY monthly_rental DESC LIMIT 1",
      "SELECT T2.monthly_rental FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id  =  T2.address_id WHERE T1.state_province_county  =  \"Texas\"",
      "SELECT T2.first_name ,  T2.last_name FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id  =  T2.address_id WHERE T1.state_province_county  =  \"Wisconsin\"",
      "SELECT T1.line_1 ,  avg(T2.monthly_rental) FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id  =  T2.address_id GROUP BY T2.address_id",
      "SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id  =  T2.address_id WHERE T2.first_name  =  \"Lyla\"",
      "SELECT T2.email_address FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id  =  T2.address_id WHERE T1.zip_postcode  =  \"918\"",
      "SELECT T1.line_1 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id  =  T2.address_id INTERSECT SELECT T1.line_1 FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id  =  T2.address_id"
    ]
  },
  {
    "database": "behavior_monitoring",
    "table": "Students",
    "questions": [
      "What is the email of the student with first name \"Emma\" and last name \"Rohan\"?"
    ],
    "col_names": [
      "student_id",
      "address_id",
      "first_name",
      "middle_name",
      "last_name",
      "cell_mobile_number",
      "email_address",
      "date_first_rental",
      "date_left_university",
      "other_student_details"
    ],
    "standard_answer": [
      "SELECT email_address FROM Students WHERE first_name  =  \"Emma\" AND last_name  =  \"Rohan\""
    ]
  },
  {
    "database": "behavior_monitoring",
    "table": "Teachers",
    "questions": [
      "Find the first names of teachers whose email address contains the word \"man\".",
      "Find the first names and last names of teachers in alphabetical order of last name.",
      "Find the last names of teachers who are not involved in any detention."
    ],
    "col_names": [
      "teacher_id",
      "address_id",
      "first_name",
      "middle_name",
      "last_name",
      "gender",
      "cell_mobile_number",
      "email_address",
      "other_details"
    ],
    "standard_answer": [
      "SELECT first_name FROM Teachers WHERE email_address LIKE '%man%'",
      "SELECT first_name ,  last_name FROM Teachers ORDER BY last_name",
      "SELECT last_name FROM Teachers EXCEPT SELECT T1.last_name FROM Teachers AS T1 JOIN Detention AS T2 ON T1.teacher_id  =  T2.teacher_id"
    ]
  },
  {
    "database": "behavior_monitoring",
    "table": "Assessment_Notes",
    "questions": [
      "What are the dates of the assessment notes?",
      "List all information about the assessment notes sorted by date in ascending order.",
      "Find the id and first name of the student that has the most number of assessment notes?",
      "Find the ids and first names of the 3 teachers that have the most number of assessment notes?",
      "Find the dates of assessment notes for students with first name \"Fanny\".",
      "Find the texts of assessment notes for teachers with last name \"Schuster\"."
    ],
    "col_names": [
      "notes_id",
      "student_id",
      "teacher_id",
      "date_of_notes",
      "text_of_notes",
      "other_details"
    ],
    "standard_answer": [
      "SELECT date_of_notes FROM Assessment_Notes",
      "SELECT * FROM Assessment_Notes ORDER BY date_of_notes ASC",
      "SELECT T1.student_id ,  T2.first_name FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.teacher_id ,  T2.first_name FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id  =  T2.teacher_id GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 3",
      "SELECT T1.date_of_notes FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.first_name  =  \"Fanny\"",
      "SELECT T1.text_of_notes FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id  =  T2.teacher_id WHERE T2.last_name  =  \"Schuster\""
    ]
  },
  {
    "database": "behavior_monitoring",
    "table": "Behavior_Incident",
    "questions": [
      "How many distinct incident type codes are there?",
      "What are the start and end dates for incidents with incident type code \"NOISE\"?",
      "Find the id and last name of the student that has the most behavior incidents?",
      "What are the code and description of the most frequent behavior incident type?",
      "Find the start and end dates of behavior incidents of students with last name \"Fahey\"."
    ],
    "col_names": [
      "incident_id",
      "incident_type_code",
      "student_id",
      "date_incident_start",
      "date_incident_end",
      "incident_summary",
      "recommendations",
      "other_details"
    ],
    "standard_answer": [
      "SELECT count(DISTINCT incident_type_code) FROM Behavior_Incident",
      "SELECT date_incident_start ,  date_incident_end FROM Behavior_Incident WHERE incident_type_code  =  \"NOISE\"",
      "SELECT T1.student_id ,  T2.last_name FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.incident_type_code ,  T2.incident_type_description FROM Behavior_Incident AS T1 JOIN Ref_Incident_Type AS T2 ON T1.incident_type_code  =  T2.incident_type_code GROUP BY T1.incident_type_code ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.date_incident_start ,  date_incident_end FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.last_name  =  \"Fahey\""
    ]
  },
  {
    "database": "behavior_monitoring",
    "table": "Detention",
    "questions": [
      "Return all distinct detention type codes.",
      "Return all detention summaries.",
      "Find the id and last name of the teacher that has the most detentions with detention type code \"AFTER\"?",
      "What are the code and description of the least frequent detention type ?",
      "Find the start and end dates of detentions of teachers with last name \"Schultz\"."
    ],
    "col_names": [
      "detention_id",
      "detention_type_code",
      "teacher_id",
      "datetime_detention_start",
      "datetime_detention_end",
      "detention_summary",
      "other_details"
    ],
    "standard_answer": [
      "SELECT DISTINCT detention_type_code FROM Detention",
      "SELECT detention_summary FROM Detention",
      "SELECT T1.teacher_id ,  T2.last_name FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id  =  T2.teacher_id WHERE T1.detention_type_code  =  \"AFTER\" GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.detention_type_code ,  T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code  =  T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY count(*) ASC LIMIT 1",
      "SELECT T1.datetime_detention_start ,  datetime_detention_end FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id  =  T2.teacher_id WHERE T2.last_name  =  \"Schultz\""
    ]
  },
  {
    "database": "behavior_monitoring",
    "table": "Student_Addresses",
    "questions": [
      "Find the maximum and minimum monthly rental for all student addresses.",
      "Find all information about student addresses, and sort by monthly rental in descending order.",
      "What are the id and first name of the student whose addresses have the highest average monthly rental?",
      "What is the cell phone number of the student whose address has the lowest monthly rental?"
    ],
    "col_names": [
      "student_id",
      "address_id",
      "date_address_from",
      "date_address_to",
      "monthly_rental",
      "other_details"
    ],
    "standard_answer": [
      "SELECT max(monthly_rental) ,  min(monthly_rental) FROM Student_Addresses",
      "SELECT * FROM Student_Addresses ORDER BY monthly_rental DESC",
      "SELECT T1.student_id ,  T2.first_name FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id ORDER BY AVG(monthly_rental) DESC LIMIT 1",
      "SELECT T2.cell_mobile_number FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id ORDER BY T1.monthly_rental ASC LIMIT 1"
    ]
  },
  {
    "database": "behavior_monitoring",
    "table": "Students_in_Detention",
    "questions": [
      "How many distinct students have been in detention?"
    ],
    "col_names": [
      "student_id",
      "detention_id",
      "incident_id"
    ],
    "standard_answer": [
      "SELECT count(DISTINCT student_id) FROM Students_in_Detention"
    ]
  },
  {
    "database": "cre_Doc_Tracking_DB",
    "table": "Ref_Document_Types",
    "questions": [],
    "col_names": [
      "Document_Type_Code",
      "Document_Type_Name",
      "Document_Type_Description"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Doc_Tracking_DB",
    "table": "Ref_Calendar",
    "questions": [],
    "col_names": [
      "Calendar_Date",
      "Day_Number"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Doc_Tracking_DB",
    "table": "Ref_Locations",
    "questions": [],
    "col_names": [
      "Location_Code",
      "Location_Name",
      "Location_Description"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Doc_Tracking_DB",
    "table": "Roles",
    "questions": [],
    "col_names": [
      "Role_Code",
      "Role_Name",
      "Role_Description"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Doc_Tracking_DB",
    "table": "All_Documents",
    "questions": [],
    "col_names": [
      "Document_ID",
      "Date_Stored",
      "Document_Type_Code",
      "Document_Name",
      "Document_Description",
      "Other_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Doc_Tracking_DB",
    "table": "Employees",
    "questions": [
      "How many employees do we have?",
      "Find the number of employees we have.",
      "Show the name, role code, and date of birth for the employee with name 'Armani'.",
      "What are the name, role code, and date of birth of the employee named 'Armani'?",
      "What is the id for the employee called Ebba?",
      "Show the id of the employee named Ebba.",
      "Show the names of all the employees with role \"HR\".",
      "Which employees have the role with code \"HR\"? Find their names.",
      "Show all role codes and the number of employees in each role.",
      "What is the code of each role and the number of employees in each role?",
      "What is the role code with the largest number of employees?",
      "Find the code of the role that have the most employees.",
      "Show all role codes with at least 3 employees.",
      "What are the roles with three or more employees? Give me the role codes.",
      "Show the role code with the least employees.",
      "What is the role with the smallest number of employees? Find the role codes.",
      "What is the role name and role description for employee called Ebba?",
      "Show the name and description of the role played by the employee named Ebba.",
      "Show the names of employees with role name Editor.",
      "Find the names of all the employees whose the role name is \"Editor\".",
      "Show the employee ids for all employees with role name \"Human Resource\" or \"Manager\".",
      "What are the employee ids of the employees whose role name is \"Human Resource\" or \"Manager\"?",
      "Show the ids of the employees who don't authorize destruction for any document.",
      "Which employees do not authorize destruction for any document? Give me their employee ids.",
      "Show the ids of all employees who don't destroy any document.",
      "Which employees do not destroy any document? Find their employee ids."
    ],
    "col_names": [
      "Employee_ID",
      "Role_Code",
      "Employee_Name",
      "Gender_MFU",
      "Date_of_Birth",
      "Other_Details"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Employees",
      "SELECT count(*) FROM Employees",
      "SELECT employee_name ,  role_code ,  date_of_birth FROM Employees WHERE employee_Name  =  'Armani'",
      "SELECT employee_name ,  role_code ,  date_of_birth FROM Employees WHERE employee_Name  =  'Armani'",
      "SELECT employee_ID FROM Employees WHERE employee_name  =  \"Ebba\"",
      "SELECT employee_ID FROM Employees WHERE employee_name  =  \"Ebba\"",
      "SELECT employee_name FROM Employees WHERE role_code  =  \"HR\"",
      "SELECT employee_name FROM Employees WHERE role_code  =  \"HR\"",
      "SELECT role_code ,  count(*) FROM Employees GROUP BY role_code",
      "SELECT role_code ,  count(*) FROM Employees GROUP BY role_code",
      "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) DESC LIMIT 1",
      "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) DESC LIMIT 1",
      "SELECT role_code FROM Employees GROUP BY role_code HAVING count(*)  >=  3",
      "SELECT role_code FROM Employees GROUP BY role_code HAVING count(*)  >=  3",
      "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC LIMIT 1",
      "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC LIMIT 1",
      "SELECT T2.role_name ,  T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code WHERE T1.employee_name  =  \"Ebba\"",
      "SELECT T2.role_name ,  T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code WHERE T1.employee_name  =  \"Ebba\"",
      "SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code WHERE T2.role_name  =  \"Editor\"",
      "SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code WHERE T2.role_name  =  \"Editor\"",
      "SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code WHERE T2.role_name  =  \"Human Resource\" OR T2.role_name  =  \"Manager\"",
      "SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code WHERE T2.role_name  =  \"Human Resource\" OR T2.role_name  =  \"Manager\"",
      "SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed",
      "SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed",
      "SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed",
      "SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed"
    ]
  },
  {
    "database": "cre_Doc_Tracking_DB",
    "table": "Document_Locations",
    "questions": [],
    "col_names": [
      "Document_ID",
      "Location_Code",
      "Date_in_Location_From",
      "Date_in_Locaton_To"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Doc_Tracking_DB",
    "table": "Documents_to_be_Destroyed",
    "questions": [],
    "col_names": [
      "Document_ID",
      "Destruction_Authorised_by_Employee_ID",
      "Destroyed_by_Employee_ID",
      "Planned_Destruction_Date",
      "Actual_Destruction_Date",
      "Other_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "university_basketball",
    "table": "basketball_match",
    "questions": [
      "How many schools are in the basketball match?",
      "Count the number of schools that have had basketball matches.",
      "What is the highest acc percent score in the competition?",
      "Return the highest acc percent across all basketball matches.",
      "List all information regarding the basketball match.",
      "What is all the information about the basketball match?",
      "List names of all teams in the basketball competition, ordered by all home scores in descending order.",
      "What are the names of all the teams in the basketball competition, sorted by all home scores in descending order?"
    ],
    "col_names": [
      "Team_ID",
      "School_ID",
      "Team_Name",
      "ACC_Regular_Season",
      "ACC_Percent",
      "ACC_Home",
      "ACC_Road",
      "All_Games",
      "All_Games_Percent",
      "All_Home",
      "All_Road",
      "All_Neutral"
    ],
    "standard_answer": [
      "SELECT count(DISTINCT school_id) FROM basketball_match",
      "SELECT count(DISTINCT school_id) FROM basketball_match",
      "SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1",
      "SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1",
      "SELECT * FROM basketball_match",
      "SELECT * FROM basketball_match",
      "SELECT team_name FROM basketball_match ORDER BY All_Home DESC",
      "SELECT team_name FROM basketball_match ORDER BY All_Home DESC"
    ]
  },
  {
    "database": "university_basketball",
    "table": "university",
    "questions": [
      "List all schools and their nicknames in the order of founded year.",
      "What are the different schools and their nicknames, ordered by their founding years?",
      "List all public schools and their locations.",
      "What are the public schools and what are their locations?",
      "When was the school with the largest enrollment founded?",
      "Return the founded year for the school with the largest enrollment.",
      "Find the founded year of the newest non public school.",
      "What is the founded year of the non public school that was founded most recently?",
      "What is the primary conference of the school that has the lowest acc percent score in the competition?",
      "Return the primary conference of the school with the lowest acc percentage score.",
      "What is the team name and acc regular season score of the school that was founded for the longest time?",
      "Return the name of the team and the acc during the regular season for the school that was founded the earliest.",
      "Find the location and all games score of the school that has Clemson as its team name.",
      "What are the all games score and location of the school called Clemson?",
      "What are the average enrollment size of the universities that are founded before 1850?",
      "Return the average enrollment of universities founded before 1850.",
      "Show the enrollment and primary_conference of the oldest college.",
      "What are the enrollment and primary conference for the university which was founded the earliest?",
      "What is the total and minimum enrollment of all schools?",
      "Return the total and minimum enrollments across all schools.",
      "Find the total student enrollment for different affiliation type schools.",
      "What are the total enrollments of universities of each affiliation type?",
      "How many schools do not participate in the basketball match?",
      "Count the number of universities that do not participate in the baketball match.",
      "Find the schools that were either founded after 1850 or public.",
      "What are the schools that were either founded before 1850 or are public?",
      "Find how many different affiliation types there are.",
      "Count the number of different affiliation types.",
      "Find how many school locations have the word 'NY'.",
      "How many universities have a location that contains NY?",
      "Find the team names of the universities whose enrollments are smaller than the average enrollment size.",
      "What are the names of teams from universities that have a below average enrollment?",
      "Find the number of universities that have over a 20000 enrollment size for each affiliation type.",
      "What are the different affiliations, and how many schools with each have an enrollment size of above 20000?",
      "Find the total number of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type.",
      "What are the different affiliations, and what is the total enrollment of schools founded after 1850 for each enrollment type?",
      "What is the maximum enrollment across all schools?",
      "Return the maximum enrollment across all schools."
    ],
    "col_names": [
      "School_ID",
      "School",
      "Location",
      "Founded",
      "Affiliation",
      "Enrollment",
      "Nickname",
      "Primary_conference"
    ],
    "standard_answer": [
      "SELECT school ,  nickname FROM university ORDER BY founded",
      "SELECT school ,  nickname FROM university ORDER BY founded",
      "SELECT school ,  LOCATION FROM university WHERE affiliation  =  'Public'",
      "SELECT school ,  LOCATION FROM university WHERE affiliation  =  'Public'",
      "SELECT founded FROM university ORDER BY enrollment DESC LIMIT 1",
      "SELECT founded FROM university ORDER BY enrollment DESC LIMIT 1",
      "SELECT founded FROM university WHERE affiliation != 'Public' ORDER BY founded DESC LIMIT 1",
      "SELECT founded FROM university WHERE affiliation != 'Public' ORDER BY founded DESC LIMIT 1",
      "SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id ORDER BY t2.acc_percent LIMIT 1",
      "SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id ORDER BY t2.acc_percent LIMIT 1",
      "SELECT t2.team_name ,  t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id ORDER BY t1.founded LIMIT 1",
      "SELECT t2.team_name ,  t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id ORDER BY t1.founded LIMIT 1",
      "SELECT t2.All_Games ,  t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id WHERE team_name  =  'Clemson'",
      "SELECT t2.All_Games ,  t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id WHERE team_name  =  'Clemson'",
      "SELECT avg(enrollment) FROM university WHERE founded  <  1850",
      "SELECT avg(enrollment) FROM university WHERE founded  <  1850",
      "SELECT enrollment ,  primary_conference FROM university ORDER BY founded LIMIT 1",
      "SELECT enrollment ,  primary_conference FROM university ORDER BY founded LIMIT 1",
      "SELECT sum(enrollment) ,  min(enrollment) FROM university",
      "SELECT sum(enrollment) ,  min(enrollment) FROM university",
      "SELECT sum(enrollment) ,  affiliation FROM university GROUP BY affiliation",
      "SELECT sum(enrollment) ,  affiliation FROM university GROUP BY affiliation",
      "SELECT count(*) FROM university WHERE school_id NOT IN (SELECT school_id FROM basketball_match)",
      "SELECT count(*) FROM university WHERE school_id NOT IN (SELECT school_id FROM basketball_match)",
      "SELECT school FROM university WHERE founded  >  1850 OR affiliation  =  'Public'",
      "SELECT school FROM university WHERE founded  >  1850 OR affiliation  =  'Public'",
      "SELECT count(DISTINCT affiliation) FROM university",
      "SELECT count(DISTINCT affiliation) FROM university",
      "SELECT count(*) FROM university WHERE LOCATION LIKE \"%NY%\"",
      "SELECT count(*) FROM university WHERE LOCATION LIKE \"%NY%\"",
      "SELECT t2.team_name FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id WHERE enrollment  <  (SELECT avg(enrollment) FROM university)",
      "SELECT t2.team_name FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id WHERE enrollment  <  (SELECT avg(enrollment) FROM university)",
      "SELECT count(*) ,  affiliation FROM university WHERE enrollment  >  20000 GROUP BY affiliation",
      "SELECT count(*) ,  affiliation FROM university WHERE enrollment  >  20000 GROUP BY affiliation",
      "SELECT sum(Enrollment) ,  affiliation FROM university WHERE founded  >  1850 GROUP BY affiliation",
      "SELECT sum(Enrollment) ,  affiliation FROM university WHERE founded  >  1850 GROUP BY affiliation",
      "SELECT max(Enrollment) FROM university",
      "SELECT max(Enrollment) FROM university"
    ]
  },
  {
    "database": "soccer_2",
    "table": "College",
    "questions": [
      "What is the total enrollment number of all colleges?",
      "How many students are enrolled in college?",
      "What is the average enrollment number?",
      "How many students, on average, does each college have enrolled?",
      "How many colleges in total?",
      "How many different colleges are there?",
      "How many colleges has more than 15000 students?",
      "What is the number of colleges with a student population greater than 15000?",
      "What is average enrollment of colleges in the state FL?",
      "What is average number of students enrolled in Florida colleges?",
      "Find the name, enrollment of the colleges whose size is bigger than 10000 and location is in state LA.",
      "What are the names and enrollment numbers for colleges that have more than 10000 enrolled and are located in Louisiana?",
      "List all information about college sorted by enrollment number in the ascending order.",
      "What information do you have on colleges sorted by increasing enrollment numbers?",
      "List the name of the colleges whose enrollment is greater 18000 sorted by the college's name.",
      "What is the name of every college in alphabetical order that has more than 18000 students enrolled?",
      "Find the names of either colleges in LA with greater than 15000 size or in state AZ with less than 13000 enrollment.",
      "What are the names of colleges in LA that have more than 15,000 students and of colleges in AZ with less than 13,000 students?"
    ],
    "col_names": [
      "cName",
      "state",
      "enr"
    ],
    "standard_answer": [
      "SELECT sum(enr) FROM College",
      "SELECT sum(enr) FROM College",
      "SELECT avg(enr) FROM College",
      "SELECT avg(enr) FROM College",
      "SELECT count(*) FROM College",
      "SELECT count(*) FROM College",
      "SELECT count(*) FROM College WHERE enr  >  15000",
      "SELECT count(*) FROM College WHERE enr  >  15000",
      "SELECT avg(enr) FROM College WHERE state  =  'FL'",
      "SELECT avg(enr) FROM College WHERE state  =  'FL'",
      "SELECT cName ,  enr FROM College WHERE enr  >  10000 AND state = \"LA\"",
      "SELECT cName ,  enr FROM College WHERE enr  >  10000 AND state = \"LA\"",
      "SELECT * FROM College ORDER BY enr",
      "SELECT * FROM College ORDER BY enr",
      "SELECT cName FROM College WHERE enr  >  18000 ORDER BY cName",
      "SELECT cName FROM College WHERE enr  >  18000 ORDER BY cName",
      "SELECT cName FROM College WHERE enr  <  13000 AND state = \"AZ\" UNION SELECT cName FROM College WHERE enr  >  15000 AND state = \"LA\"",
      "SELECT cName FROM College WHERE enr  <  13000 AND state = \"AZ\" UNION SELECT cName FROM College WHERE enr  >  15000 AND state = \"LA\""
    ]
  },
  {
    "database": "soccer_2",
    "table": "Player",
    "questions": [
      "How many players have more than 1000 hours of training?",
      "How many different players trained for more than 1000 hours?",
      "What is the average training hours of all players?",
      "How many hours do the players train on average?",
      "Find the name and training hours of players whose hours are below 1500.",
      "What are the names and number of hours spent training for each player who trains for less than 1500 hours?",
      "Find the max, average and min training hours of all players.",
      "What is the average, maximum, and minimum for the number of hours spent training?",
      "What are the names of players whose training hours is between 500 and 1500?",
      "What are the names of players who train between 500 and 1500 hours?",
      "Find the players whose names contain letter 'a'.",
      "Who are the players that have names containing the letter a?",
      "Find the name of players whose card is yes in the descending order of training hours.",
      "What are the name of the players who received a card in descending order of the hours of training?"
    ],
    "col_names": [
      "pID",
      "pName",
      "yCard",
      "HS"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Player WHERE HS  >  1000",
      "SELECT count(*) FROM Player WHERE HS  >  1000",
      "SELECT avg(HS) FROM Player",
      "SELECT avg(HS) FROM Player",
      "SELECT pName ,  HS FROM Player WHERE HS  <  1500",
      "SELECT pName ,  HS FROM Player WHERE HS  <  1500",
      "SELECT avg(HS) ,  max(HS) ,  min(HS) FROM Player",
      "SELECT avg(HS) ,  max(HS) ,  min(HS) FROM Player",
      "SELECT pName FROM Player WHERE HS BETWEEN 500 AND 1500",
      "SELECT pName FROM Player WHERE HS BETWEEN 500 AND 1500",
      "SELECT DISTINCT pName FROM Player WHERE pName LIKE '%a%'",
      "SELECT DISTINCT pName FROM Player WHERE pName LIKE '%a%'",
      "SELECT pName FROM Player WHERE yCard  =  'yes' ORDER BY HS DESC",
      "SELECT pName FROM Player WHERE yCard  =  'yes' ORDER BY HS DESC"
    ]
  },
  {
    "database": "soccer_2",
    "table": "Tryout",
    "questions": [],
    "col_names": [
      "pID",
      "cName",
      "pPos",
      "decision"
    ],
    "standard_answer": []
  },
  {
    "database": "activity_1",
    "table": "Activity",
    "questions": [
      "What activities do we have?",
      "List all the activities we have.",
      "How many activities do we have?",
      "Find the number of activities available.",
      "Show all the activity names and the number of faculty involved in each activity.",
      "How many faculty members participate in each activity? Return the activity names and the number of faculty members.",
      "What is the name of the activity that has the most faculty members involved in?",
      "Which activity has the most faculty members participating in? Find the activity name.",
      "What is the name of the activity with the most students?",
      "Find the name of the activity that has the largest number of student participants."
    ],
    "col_names": [
      "actid",
      "activity_name"
    ],
    "standard_answer": [
      "SELECT activity_name FROM Activity",
      "SELECT activity_name FROM Activity",
      "SELECT count(*) FROM Activity",
      "SELECT count(*) FROM Activity",
      "SELECT T1.activity_name ,  count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID",
      "SELECT T1.activity_name ,  count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID",
      "SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "activity_1",
    "table": "Participates_in",
    "questions": [
      "Show the ids for all the students who participate in an activity and are under 20.",
      "What are the ids of the students who are under 20 years old and are involved in at least one activity."
    ],
    "col_names": [
      "stuid",
      "actid"
    ],
    "standard_answer": [
      "SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age  <  20",
      "SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age  <  20"
    ]
  },
  {
    "database": "activity_1",
    "table": "Faculty_Participates_in",
    "questions": [],
    "col_names": [
      "FacID",
      "actid"
    ],
    "standard_answer": []
  },
  {
    "database": "activity_1",
    "table": "Student",
    "questions": [
      "Show the ids of the students who don't participate in any activity.",
      "What are the ids of the students who are not involved in any activity",
      "What is the first and last name of the student participating in the most activities?",
      "Tell me the first and last name of the student who has the most activities."
    ],
    "col_names": [
      "StuID",
      "LName",
      "Fname",
      "Age",
      "Sex",
      "Major",
      "Advisor",
      "city_code"
    ],
    "standard_answer": [
      "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Participates_in",
      "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Participates_in",
      "SELECT T1.fname ,  T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID  =  T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.fname ,  T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID  =  T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "activity_1",
    "table": "Faculty",
    "questions": [
      "How many faculty do we have?",
      "What is the total number of faculty members?",
      "What ranks do we have for faculty?",
      "Find the list of distinct ranks for faculty.",
      "Show all the distinct buildings that have faculty rooms.",
      "What buildings have faculty offices?",
      "Show the rank, first name, and last name for all the faculty.",
      "What are the rank, first name, and last name of the faculty members?",
      "Show the first name, last name, and phone number for all female faculty members.",
      "What are the first name, last name, and phone number of all the female faculty members?",
      "Show ids for all the male faculty.",
      "What are the faculty ids of all the male faculty members?",
      "How many female Professors do we have?",
      "Count the number of female Professors we have.",
      "Show the phone, room, and building for the faculty named Jerry Prince.",
      "What are the phone, room, and building of the faculty member called Jerry Prince?",
      "How many Professors are in building NEB?",
      "Count the number of Professors who have office in building NEB.",
      "Show the first name and last name for all the instructors.",
      "What are the first name and last name of all the instructors?",
      "Show all the buildings along with the number of faculty members the buildings have.",
      "How many faculty members does each building have? List the result with the name of the building.",
      "Which building has most faculty members?",
      "Find the building that has the largest number of faculty members.",
      "Show all the buildings that have at least 10 professors.",
      "In which buildings are there at least ten professors?",
      "For each faculty rank, show the number of faculty members who have it.",
      "How many faculty members do we have for each faculty rank?",
      "Show all the ranks and the number of male and female faculty for each rank.",
      "How many faculty members do we have for each rank and gender?",
      "Which rank has the smallest number of faculty members?",
      "Find the faculty rank that has the least members.",
      "Show the number of male and female assistant professors.",
      "How many male and female assistant professors do we have?",
      "What are the first name and last name of Linda Smith's advisor?",
      "Who is the advisor of Linda Smith? Give me the first name and last name.",
      "Show the ids of students whose advisors are professors.",
      "Which students have professors as their advisors? Find their student ids.",
      "Show first name and last name for all the students advised by Michael Goodrich.",
      "Which students are advised by Michael Goodrich? Give me their first and last names.",
      "Show the faculty id of each faculty member, along with the number of students he or she advises.",
      "What are the faculty id and the number of students each faculty has?",
      "Show all the faculty ranks and the number of students advised by each rank.",
      "How many students are advised by each rank of faculty? List the rank and the number of students.",
      "What are the first and last name of the faculty who has the most students?",
      "Give me the the first and last name of the faculty who advises the most students.",
      "Show the ids for all the faculty members who have at least 2 students.",
      "Which faculty members advise two ore more students? Give me their faculty ids.",
      "Show ids for the faculty members who don't advise any student.",
      "What are the ids of the faculty members who do not advise any student.",
      "Show the ids of the faculty who don't participate in any activity.",
      "Which faculty do not participate in any activity? Find their faculty ids.",
      "How many activities does Mark Giuliano participate in?",
      "Find the number of activities Mark Giuliano is involved in.",
      "Show the names of all the activities Mark Giuliano participates in.",
      "What are the names of the activities Mark Giuliano is involved in",
      "Show the first and last name of all the faculty members who participated in some activity, together with the number of activities they participated in.",
      "What is the first and last name of the faculty members who participated in at least one activity? For each of them, also show the number of activities they participated in.",
      "What is the first and last name of the faculty participating in the most activities?",
      "Find the first and last name of the faculty who is involved in the largest number of activities.",
      "Find the first names of the faculty members who are playing Canoeing or Kayaking.",
      "Which faculty members are playing either Canoeing or Kayaking? Tell me their first names.",
      "Find the first names of the faculty members who participate in Canoeing and Kayaking.",
      "What are the first names of the faculty members playing both Canoeing and Kayaking?"
    ],
    "col_names": [
      "FacID",
      "Lname",
      "Fname",
      "Rank",
      "Sex",
      "Phone",
      "Room",
      "Building"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Faculty",
      "SELECT count(*) FROM Faculty",
      "SELECT DISTINCT rank FROM Faculty",
      "SELECT DISTINCT rank FROM Faculty",
      "SELECT DISTINCT building FROM Faculty",
      "SELECT DISTINCT building FROM Faculty",
      "SELECT rank ,  Fname ,  Lname FROM Faculty",
      "SELECT rank ,  Fname ,  Lname FROM Faculty",
      "SELECT Fname ,  Lname ,  phone FROM Faculty WHERE Sex  =  'F'",
      "SELECT Fname ,  Lname ,  phone FROM Faculty WHERE Sex  =  'F'",
      "SELECT FacID FROM Faculty WHERE Sex  =  'M'",
      "SELECT FacID FROM Faculty WHERE Sex  =  'M'",
      "SELECT count(*) FROM Faculty WHERE Sex  =  'F' AND Rank  =  \"Professor\"",
      "SELECT count(*) FROM Faculty WHERE Sex  =  'F' AND Rank  =  \"Professor\"",
      "SELECT phone ,  room ,  building FROM Faculty WHERE Fname  =  \"Jerry\" AND Lname  =  \"Prince\"",
      "SELECT phone ,  room ,  building FROM Faculty WHERE Fname  =  \"Jerry\" AND Lname  =  \"Prince\"",
      "SELECT count(*) FROM Faculty WHERE Rank  =  \"Professor\" AND building  =  \"NEB\"",
      "SELECT count(*) FROM Faculty WHERE Rank  =  \"Professor\" AND building  =  \"NEB\"",
      "SELECT fname ,  lname FROM Faculty WHERE Rank  =  \"Instructor\"",
      "SELECT fname ,  lname FROM Faculty WHERE Rank  =  \"Instructor\"",
      "SELECT building ,  count(*) FROM Faculty GROUP BY building",
      "SELECT building ,  count(*) FROM Faculty GROUP BY building",
      "SELECT building FROM Faculty GROUP BY building ORDER BY count(*) DESC LIMIT 1",
      "SELECT building FROM Faculty GROUP BY building ORDER BY count(*) DESC LIMIT 1",
      "SELECT building FROM Faculty WHERE rank  =  \"Professor\" GROUP BY building HAVING count(*)  >=  10",
      "SELECT building FROM Faculty WHERE rank  =  \"Professor\" GROUP BY building HAVING count(*)  >=  10",
      "SELECT rank ,  count(*) FROM Faculty GROUP BY rank",
      "SELECT rank ,  count(*) FROM Faculty GROUP BY rank",
      "SELECT rank ,  sex ,  count(*) FROM Faculty GROUP BY rank ,  sex",
      "SELECT rank ,  sex ,  count(*) FROM Faculty GROUP BY rank ,  sex",
      "SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*) ASC LIMIT 1",
      "SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*) ASC LIMIT 1",
      "SELECT sex ,  count(*) FROM Faculty WHERE rank  =  \"AsstProf\" GROUP BY sex",
      "SELECT sex ,  count(*) FROM Faculty WHERE rank  =  \"AsstProf\" GROUP BY sex",
      "SELECT T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T2.fname  =  \"Linda\" AND T2.lname  =  \"Smith\"",
      "SELECT T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T2.fname  =  \"Linda\" AND T2.lname  =  \"Smith\"",
      "SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T1.rank  =  \"Professor\"",
      "SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T1.rank  =  \"Professor\"",
      "SELECT T2.fname ,  T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T1.fname  =  \"Michael\" AND T1.lname  =  \"Goodrich\"",
      "SELECT T2.fname ,  T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T1.fname  =  \"Michael\" AND T1.lname  =  \"Goodrich\"",
      "SELECT T1.FacID ,  count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID",
      "SELECT T1.FacID ,  count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID",
      "SELECT T1.rank ,  count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.rank",
      "SELECT T1.rank ,  count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.rank",
      "SELECT T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID HAVING count(*)  >=  2",
      "SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID HAVING count(*)  >=  2",
      "SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student",
      "SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student",
      "SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in",
      "SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in",
      "SELECT count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID WHERE T1.fname  =  \"Mark\" AND T1.lname  =  \"Giuliano\"",
      "SELECT count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID WHERE T1.fname  =  \"Mark\" AND T1.lname  =  \"Giuliano\"",
      "SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN Activity AS T3 ON T3.actid  =  T2.actid WHERE T1.fname  =  \"Mark\" AND T1.lname  =  \"Giuliano\"",
      "SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN Activity AS T3 ON T3.actid  =  T2.actid WHERE T1.fname  =  \"Mark\" AND T1.lname  =  \"Giuliano\"",
      "SELECT  T1.fname ,  T1.lname ,  count(*) ,  T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID GROUP BY T1.FacID",
      "SELECT  T1.fname ,  T1.lname ,  count(*) ,  T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID GROUP BY T1.FacID",
      "SELECT  T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1",
      "SELECT  T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1",
      "SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' OR T3.activity_name  =  'Kayaking'",
      "SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' OR T3.activity_name  =  'Kayaking'",
      "SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Kayaking'",
      "SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Kayaking'"
    ]
  },
  {
    "database": "cre_Theme_park",
    "table": "Ref_Hotel_Star_Ratings",
    "questions": [],
    "col_names": [
      "star_rating_code",
      "star_rating_description"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Theme_park",
    "table": "Locations",
    "questions": [
      "What are the names of tourist attractions that can be reached by walk or is at address 660 Shea Crescent?",
      "Find the names of the tourist attractions that is either accessible by walk or at address 660 Shea Crescent.",
      "What are the names of tourist attractions that can be reached by bus or is at address 254 Ottilie Junction?",
      "Find the names of the tourist attractions that is either accessible by bus or at address 254 Ottilie Junction."
    ],
    "col_names": [
      "Location_ID",
      "Location_Name",
      "Address",
      "Other_Details"
    ],
    "standard_answer": [
      "SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID  =  T2.Location_ID WHERE T1.Address  =  \"660 Shea Crescent\" OR T2.How_to_Get_There  =  \"walk\"",
      "SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID  =  T2.Location_ID WHERE T1.Address  =  \"660 Shea Crescent\" OR T2.How_to_Get_There  =  \"walk\"",
      "SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID  =  T2.Location_ID WHERE T1.Address  =  \"254 Ottilie Junction\" OR T2.How_to_Get_There  =  \"bus\"",
      "SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID  =  T2.Location_ID WHERE T1.Address  =  \"254 Ottilie Junction\" OR T2.How_to_Get_There  =  \"bus\""
    ]
  },
  {
    "database": "cre_Theme_park",
    "table": "Ref_Attraction_Types",
    "questions": [
      "Show the description and code of the attraction type most tourist attractions belong to.",
      "Which attraction type does the most tourist attractions belong to? Tell me its  attraction type description and code."
    ],
    "col_names": [
      "Attraction_Type_Code",
      "Attraction_Type_Description"
    ],
    "standard_answer": [
      "SELECT T1.Attraction_Type_Description ,  T2.Attraction_Type_Code FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code  =  T2.Attraction_Type_Code GROUP BY T2.Attraction_Type_Code ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T1.Attraction_Type_Description ,  T2.Attraction_Type_Code FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code  =  T2.Attraction_Type_Code GROUP BY T2.Attraction_Type_Code ORDER BY COUNT(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "cre_Theme_park",
    "table": "Visitors",
    "questions": [
      "How many tourists did not make any visit?",
      "Count the number of tourists who did not visit any place."
    ],
    "col_names": [
      "Tourist_ID",
      "Tourist_Details"
    ],
    "standard_answer": [
      "SELECT count(*) FROM Visitors WHERE Tourist_ID NOT IN ( SELECT Tourist_ID FROM Visits )",
      "SELECT count(*) FROM Visitors WHERE Tourist_ID NOT IN ( SELECT Tourist_ID FROM Visits )"
    ]
  },
  {
    "database": "cre_Theme_park",
    "table": "Features",
    "questions": [],
    "col_names": [
      "Feature_ID",
      "Feature_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Theme_park",
    "table": "Hotels",
    "questions": [],
    "col_names": [
      "hotel_id",
      "star_rating_code",
      "pets_allowed_yn",
      "price_range",
      "other_hotel_details"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Theme_park",
    "table": "Tourist_Attractions",
    "questions": [
      "Which tourist attractions does the visitor with detail 'Vincent' visit?",
      "Show the tourist attractions visited by the tourist whose detail is 'Vincent'.",
      "What are the names of the tourist attractions and the dates when the tourists named Vincent or Vivian visited there?",
      "For each tourist attraction, return its name and the date when the tourists named Vincent or Vivian visited there.",
      "Show the transportation method most people choose to get to tourist attractions.",
      "Which transportation method is used the most often to get to tourist attractions?",
      "Show different ways to get to attractions and the number of attractions that can be accessed in the corresponding way.",
      "List all the possible ways to get to attractions, together with the number of attractions accessible by these methods.",
      "Show different tourist attractions' names, ids, and the corresponding number of visits.",
      "What are the name, id and the corresponding number of visits for each  tourist attraction?",
      "Show the names and ids of tourist attractions that are visited at least two times.",
      "Which tourist attractions are visited at least twice? Give me their names and ids.",
      "Show the names and ids of tourist attractions that are visited at most once.",
      "What are the names and ids of the tourist attractions that are visited at most once?",
      "What are the names of the tourist attractions that have parking or shopping as their feature details?",
      "Find the tourist attractions that have parking or shopping as their feature details. What are the names of the attractions?",
      "What are the names of the tourist attractions Vincent and Marcelle visit?",
      "Which tourist attractions do the tourists Vincent and Marcelle visit? Tell me the names of the attractions.",
      "What are the names of tourist attraction that Alison visited but Rosalind did not visit?",
      "Find the the names of the tourist attractions that the tourist named Alison visited but Rosalind did not visit."
    ],
    "col_names": [
      "Tourist_Attraction_ID",
      "Attraction_Type_Code",
      "Location_ID",
      "How_to_Get_There",
      "Name",
      "Description",
      "Opening_Hours",
      "Other_Details"
    ],
    "standard_answer": [
      "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID JOIN VISITORS AS T3 ON T2.Tourist_ID  =  T3.Tourist_ID WHERE T3.Tourist_Details  =  \"Vincent\"",
      "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID JOIN VISITORS AS T3 ON T2.Tourist_ID  =  T3.Tourist_ID WHERE T3.Tourist_Details  =  \"Vincent\"",
      "SELECT T1.Name ,  T3.Visit_Date FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  \"Vincent\" OR T2.Tourist_Details  =  \"Vivian\"",
      "SELECT T1.Name ,  T3.Visit_Date FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  \"Vincent\" OR T2.Tourist_Details  =  \"Vivian\"",
      "SELECT How_to_Get_There FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT How_to_Get_There FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT How_to_Get_There ,  COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There",
      "SELECT How_to_Get_There ,  COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There",
      "SELECT T1.Name ,  T2.Tourist_Attraction_ID ,   COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID",
      "SELECT T1.Name ,  T2.Tourist_Attraction_ID ,   COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID",
      "SELECT T1.Name ,  T2.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*)  >=  2",
      "SELECT T1.Name ,  T2.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*)  >=  2",
      "SELECT T1.Name ,  T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*)  <=  1",
      "SELECT T1.Name ,  T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*)  <=  1",
      "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id  =  T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID  =  T3.Feature_ID WHERE T3.feature_Details  =  'park' UNION SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id  =  T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID  =  T3.Feature_ID WHERE T3.feature_Details  =  'shopping'",
      "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id  =  T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID  =  T3.Feature_ID WHERE T3.feature_Details  =  'park' UNION SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id  =  T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID  =  T3.Feature_ID WHERE T3.feature_Details  =  'shopping'",
      "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  \"Vincent\" INTERSECT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  \"Marcelle\"",
      "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  \"Vincent\" INTERSECT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  \"Marcelle\"",
      "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  \"Alison\" EXCEPT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  \"Rosalind\"",
      "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  \"Alison\" EXCEPT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  \"Rosalind\""
    ]
  },
  {
    "database": "cre_Theme_park",
    "table": "Street_Markets",
    "questions": [
      "What are the details of the markets that can be accessed by walk or bus?",
      "Find the details of all the markets that are accessible by walk or bus."
    ],
    "col_names": [
      "Market_ID",
      "Market_Details"
    ],
    "standard_answer": [
      "SELECT T1.Market_Details FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  \"walk\" OR  T2.How_to_Get_There  =  \"bus\"",
      "SELECT T1.Market_Details FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  \"walk\" OR  T2.How_to_Get_There  =  \"bus\""
    ]
  },
  {
    "database": "cre_Theme_park",
    "table": "Shops",
    "questions": [],
    "col_names": [
      "Shop_ID",
      "Shop_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Theme_park",
    "table": "Museums",
    "questions": [],
    "col_names": [
      "Museum_ID",
      "Museum_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Theme_park",
    "table": "Royal_Family",
    "questions": [],
    "col_names": [
      "Royal_Family_ID",
      "Royal_Family_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Theme_park",
    "table": "Theme_Parks",
    "questions": [],
    "col_names": [
      "Theme_Park_ID",
      "Theme_Park_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Theme_park",
    "table": "Visits",
    "questions": [],
    "col_names": [
      "Visit_ID",
      "Tourist_Attraction_ID",
      "Tourist_ID",
      "Visit_Date",
      "Visit_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Theme_park",
    "table": "Photos",
    "questions": [],
    "col_names": [
      "Photo_ID",
      "Tourist_Attraction_ID",
      "Name",
      "Description",
      "Filename",
      "Other_Details"
    ],
    "standard_answer": []
  },
  {
    "database": "cre_Theme_park",
    "table": "Staff",
    "questions": [
      "Show the names and details of all the staff members.",
      "What is the name and detail of each staff member?"
    ],
    "col_names": [
      "Staff_ID",
      "Tourist_Attraction_ID",
      "Name",
      "Other_Details"
    ],
    "standard_answer": [
      "SELECT Name ,  Other_Details FROM Staff",
      "SELECT Name ,  Other_Details FROM Staff"
    ]
  },
  {
    "database": "cre_Theme_park",
    "table": "Tourist_Attraction_Features",
    "questions": [],
    "col_names": [
      "Tourist_Attraction_ID",
      "Feature_ID"
    ],
    "standard_answer": []
  },
  {
    "database": "twitter_1",
    "table": "follows",
    "questions": [
      "How many followers does each user have?",
      "Find the number of followers for each user."
    ],
    "col_names": [
      "f1",
      "f2"
    ],
    "standard_answer": [
      "SELECT count(*) FROM follows",
      "SELECT count(*) FROM follows GROUP BY f1"
    ]
  },
  {
    "database": "twitter_1",
    "table": "tweets",
    "questions": [
      "Find the number of tweets in record.",
      "Find the number of users who posted some tweets.",
      "Return the text of tweets about the topic 'intern'.",
      "List the text of all tweets in the order of date."
    ],
    "col_names": [
      "id",
      "uid",
      "text",
      "createdate"
    ],
    "standard_answer": [
      "SELECT count(*) FROM tweets",
      "SELECT count(DISTINCT UID) FROM tweets",
      "SELECT text FROM tweets WHERE text LIKE '%intern%'",
      "SELECT text FROM tweets ORDER BY createdate"
    ]
  },
  {
    "database": "twitter_1",
    "table": "user_profiles",
    "questions": [
      "Find the emails of the user named \"Mary\".",
      "What is the partition id of the user named \"Iron Man\".",
      "How many users are there?",
      "Find the name and email of the user whose name contains the word \u2018Swift\u2019.",
      "Find the names of users whose emails contain \u2018superstar\u2019 or \u2018edu\u2019.",
      "Find the name and email of the users who have more than 1000 followers.",
      "Find the names of the users whose number of followers is greater than that of the user named \"Tyler Swift\".",
      "Find the name and email for the users who have more than one follower.",
      "Find the names of users who have more than one tweet.",
      "Find the id of users who are followed by Mary and Susan.",
      "Find the id of users who are followed by Mary or Susan.",
      "Find the name of the user who has the largest number of followers.",
      "Find the name and email of the user followed by the least number of people.",
      "List the name and number of followers for each user, and sort the results by the number of followers in descending order.",
      "List the names of 5 users followed by the largest number of other users.",
      "Find the name of each user and number of tweets tweeted by each of them.",
      "Find the name and partition id for users who tweeted less than twice.",
      "Find the name of the user who tweeted more than once, and number of tweets tweeted by them.",
      "Find the average number of followers for the users who do not have any tweet.",
      "Find the average number of followers for the users who had some tweets.",
      "Find the maximum and total number of followers of all users."
    ],
    "col_names": [
      "uid",
      "name",
      "email",
      "partitionid",
      "followers"
    ],
    "standard_answer": [
      "SELECT email FROM user_profiles WHERE name  =  'Mary'",
      "SELECT partitionid FROM user_profiles WHERE name  =  'Iron Man'",
      "SELECT count(*) FROM user_profiles",
      "SELECT name ,  email FROM user_profiles WHERE name LIKE '%Swift%'",
      "SELECT name FROM user_profiles WHERE email LIKE '%superstar%' OR email LIKE '%edu%'",
      "SELECT name ,  email FROM user_profiles WHERE followers  >  1000",
      "SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f1 GROUP BY T2.f1 HAVING count(*)  >  (SELECT count(*) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f1 WHERE T1.name  =  'Tyler Swift')",
      "SELECT T1.name ,  T1.email FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f1 GROUP BY T2.f1 HAVING count(*)  >  1",
      "SELECT T1.name FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid  =  T2.uid GROUP BY T2.uid HAVING count(*)  >  1",
      "SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f2 WHERE T1.name  =  \"Mary\" INTERSECT SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f2 WHERE T1.name  =  \"Susan\"",
      "SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f2 WHERE T1.name  =  \"Mary\" OR T1.name  =  \"Susan\"",
      "SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 1",
      "SELECT name ,  email FROM user_profiles ORDER BY followers LIMIT 1",
      "SELECT name ,  followers FROM user_profiles ORDER BY followers DESC",
      "SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 5",
      "SELECT T1.name ,  count(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid  =  T2.uid GROUP BY T2.uid",
      "SELECT T1.name ,  T1.partitionid FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid  =  T2.uid GROUP BY T2.uid HAVING count(*)  <  2",
      "SELECT T1.name ,  count(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid  =  T2.uid GROUP BY T2.uid HAVING count(*)  >  1",
      "SELECT avg(followers) FROM user_profiles WHERE UID NOT IN (SELECT UID FROM tweets)",
      "SELECT avg(followers) FROM user_profiles WHERE UID IN (SELECT UID FROM tweets)",
      "SELECT max(followers) ,  sum(followers) FROM user_profiles"
    ]
  },
  {
    "database": "election_representative",
    "table": "election",
    "questions": [
      "How many elections are there?",
      "List the votes of elections in descending order.",
      "List the dates and vote percents of elections.",
      "What are the minimum and maximum vote percents of elections?",
      "What are the names of representatives and the dates of elections they participated in.",
      "What are the names of representatives with more than 10000 votes in election?",
      "What are the names of representatives in descending order of votes?",
      "What is the party of the representative that has the smallest number of votes.",
      "What are the lifespans of representatives in descending order of vote percent?",
      "What is the average number of votes of representatives from party \"Republican\"?"
    ],
    "col_names": [
      "Election_ID",
      "Representative_ID",
      "Date",
      "Votes",
      "Vote_Percent",
      "Seats",
      "Place"
    ],
    "standard_answer": [
      "SELECT count(*) FROM election",
      "SELECT Votes FROM election ORDER BY Votes DESC",
      "SELECT Date ,  Vote_Percent FROM election",
      "SELECT min(Vote_Percent) ,  max(Vote_Percent) FROM election",
      "SELECT T2.Name ,  T1.Date FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID",
      "SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID WHERE Votes  >  10000",
      "SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID ORDER BY votes DESC",
      "SELECT T2.Party FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID ORDER BY votes ASC LIMIT 1",
      "SELECT T2.Lifespan FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID ORDER BY Vote_Percent DESC",
      "SELECT avg(T1.Votes) FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID WHERE T2.Party  =  \"Republican\""
    ]
  },
  {
    "database": "election_representative",
    "table": "representative",
    "questions": [
      "What are the names and parties of representatives?",
      "What are the life spans of representatives from New York state or Indiana state?",
      "What are the different parties of representative? Show the party name and the number of representatives in each party.",
      "What is the party that has the largest number of representatives?",
      "What parties have at least three representatives?",
      "What states have at least two representatives?",
      "List the names of representatives that have not participated in elections listed here.",
      "Show the parties that have both representatives in New York state and representatives in Pennsylvania state.",
      "How many distinct parties are there for representatives?"
    ],
    "col_names": [
      "Representative_ID",
      "Name",
      "State",
      "Party",
      "Lifespan"
    ],
    "standard_answer": [
      "SELECT Name ,  Party FROM representative",
      "SELECT Lifespan FROM representative WHERE State  =  \"New York\" OR State  =  \"Indiana\"",
      "SELECT Party ,  COUNT(*) FROM representative GROUP BY Party",
      "SELECT Party ,  COUNT(*) FROM representative GROUP BY Party ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Party FROM representative GROUP BY Party HAVING COUNT(*)  >=  3",
      "SELECT State FROM representative GROUP BY State HAVING COUNT(*)  >=  2",
      "SELECT Name FROM representative WHERE Representative_ID NOT IN (SELECT Representative_ID FROM election)",
      "SELECT Party FROM representative WHERE State  =  \"New York\" INTERSECT SELECT Party FROM representative WHERE State  =  \"Pennsylvania\"",
      "SELECT count(DISTINCT Party) FROM representative"
    ]
  },
  {
    "database": "voter_2",
    "table": "Student",
    "questions": [],
    "col_names": [
      "StuID",
      "LName",
      "Fname",
      "Age",
      "Sex",
      "Major",
      "Advisor",
      "city_code"
    ],
    "standard_answer": []
  },
  {
    "database": "voter_2",
    "table": "Voting_record",
    "questions": [],
    "col_names": [
      "StuID",
      "Registration_Date",
      "Election_Cycle",
      "President_Vote",
      "Vice_President_Vote",
      "Secretary_Vote",
      "Treasurer_Vote",
      "Class_President_Vote",
      "Class_Senator_Vote"
    ],
    "standard_answer": []
  },
  {
    "database": "wedding",
    "table": "people",
    "questions": [
      "How many female people are older than 30 in our record?",
      "Show the country where people older than 30 and younger than 25 are from.",
      "Show the minimum, maximum, and average age for all people.",
      "Show the name and country for all people whose age is smaller than the average.",
      "Show the name and age for all male people who don't have a wedding.",
      "Show all countries and the number of people from each country."
    ],
    "col_names": [
      "People_ID",
      "Name",
      "Country",
      "Is_Male",
      "Age"
    ],
    "standard_answer": [
      "SELECT count(*) FROM people WHERE is_male  =  'F' AND age  >  30",
      "SELECT country FROM people WHERE age  <  25 INTERSECT SELECT country FROM people WHERE age  >  30",
      "SELECT min(age) ,  max(age) ,  avg(age) FROM people",
      "SELECT name ,  country FROM people WHERE age  <  (SELECT avg(age) FROM people)",
      "SELECT name ,  age FROM people WHERE is_male  =  'T' AND people_id NOT IN (SELECT male_id FROM wedding)",
      "SELECT country ,  count(*) FROM people GROUP BY country"
    ]
  },
  {
    "database": "wedding",
    "table": "church",
    "questions": [
      "List all church names in descending order of opening date.",
      "Show the opening year in whcih at least two churches opened.",
      "Show the organizer and name for churches that opened between 1830 and 1840.",
      "Show all opening years and the number of churches that opened in that year.",
      "Show the name and opening year for three churches that opened most recently.",
      "Show all church names except for those that had a wedding in year 2015.",
      "Show all church names that have hosted least two weddings."
    ],
    "col_names": [
      "Church_ID",
      "Name",
      "Organized_by",
      "Open_Date",
      "Continuation_of"
    ],
    "standard_answer": [
      "SELECT name FROM church ORDER BY open_date DESC",
      "SELECT open_date FROM church GROUP BY open_date HAVING count(*)  >=  2",
      "SELECT organized_by ,  name FROM church WHERE open_date BETWEEN 1830 AND 1840",
      "SELECT open_date ,  count(*) FROM church GROUP BY open_date",
      "SELECT name ,  open_date FROM church ORDER BY open_date DESC LIMIT 3",
      "SELECT name FROM church EXCEPT SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id  =  T2.church_id WHERE T2.year  =  2015",
      "SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id  =  T2.church_id GROUP BY T1.church_id HAVING count(*)  >=  2"
    ]
  },
  {
    "database": "wedding",
    "table": "wedding",
    "questions": [
      "Show the pair of male and female names in all weddings after year 2014",
      "Show the names for all females from Canada having a wedding in year 2016.",
      "How many weddings are there in year 2016?",
      "Show the church names for the weddings of all people older than 30.",
      "How many churches have a wedding in year 2016?"
    ],
    "col_names": [
      "Church_ID",
      "Male_ID",
      "Female_ID",
      "Year"
    ],
    "standard_answer": [
      "SELECT T2.name ,  T3.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id  =  T2.people_id JOIN people AS T3 ON T1.female_id  =  T3.people_id WHERE T1.year  >  2014",
      "SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id  =  T2.people_id WHERE T1.year  =  2016 AND T2.is_male  =  'F' AND T2.country  =  'Canada'",
      "SELECT count(*) FROM wedding WHERE YEAR  =  2016",
      "SELECT T4.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id  =  T2.people_id JOIN people AS T3 ON T1.female_id  =  T3.people_id JOIN church AS T4 ON T4.church_id  =  T1.church_id WHERE T2.age  >  30 OR T3.age  >  30",
      "SELECT COUNT (DISTINCT church_id) FROM wedding WHERE YEAR  =  2016"
    ]
  },
  {
    "database": "news_report",
    "table": "event",
    "questions": [
      "Show the dates, places, and names of events in descending order of the attendance.",
      "what are the average and maximum attendances of all events?",
      "List the event venues and names that have the top 2 most number of people attended."
    ],
    "col_names": [
      "Event_ID",
      "Date",
      "Venue",
      "Name",
      "Event_Attendance"
    ],
    "standard_answer": [
      "SELECT Date ,  Name ,  venue FROM event ORDER BY Event_Attendance DESC",
      "SELECT avg(Event_Attendance) ,  max(Event_Attendance) FROM event",
      "SELECT venue ,  name FROM event ORDER BY Event_Attendance DESC LIMIT 2"
    ]
  },
  {
    "database": "news_report",
    "table": "journalist",
    "questions": [
      "How many journalists are there?",
      "List the names of journalists in ascending order of years working.",
      "What are the nationalities and ages of journalists?",
      "Show the names of journalists from \"England\" or \"Wales\".",
      "What is the average number of years spent working as a journalist?",
      "What is the nationality of the journalist with the largest number of years working?",
      "Show the different nationalities and the number of journalists of each nationality.",
      "Show the most common nationality for journalists.",
      "Show the nations that have both journalists with more than 10 years of working and journalists with less than 3 years of working.",
      "List the names of journalists who have not reported any event.",
      "Find the average age and experience working length of journalists working on different role type."
    ],
    "col_names": [
      "journalist_ID",
      "Name",
      "Nationality",
      "Age",
      "Years_working"
    ],
    "standard_answer": [
      "SELECT count(*) FROM journalist",
      "SELECT Name FROM journalist ORDER BY Years_working ASC",
      "SELECT Nationality ,  Age FROM journalist",
      "SELECT Name FROM journalist WHERE Nationality  =  \"England\" OR Nationality  =  \"Wales\"",
      "SELECT avg(Years_working) FROM journalist",
      "SELECT Nationality FROM journalist ORDER BY Years_working DESC LIMIT 1",
      "SELECT Nationality ,  COUNT(*) FROM journalist GROUP BY Nationality",
      "SELECT Nationality FROM journalist GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Nationality FROM journalist WHERE Years_working  >  10 INTERSECT SELECT Nationality FROM journalist WHERE Years_working  <  3",
      "SELECT Name FROM journalist WHERE journalist_ID NOT IN (SELECT journalist_ID FROM news_report)",
      "SELECT avg(t1.age) ,  avg(Years_working) ,  t2.work_type FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_id  =  t2.journalist_id GROUP BY t2.work_type"
    ]
  },
  {
    "database": "news_report",
    "table": "news_report",
    "questions": [
      "Show the names of journalists and the dates of the events they reported.",
      "Show the names of journalists and the names of the events they reported in ascending order",
      "Show the names of journalists and the number of events they reported.",
      "Show the names of journalists that have reported more than one event."
    ],
    "col_names": [
      "journalist_ID",
      "Event_ID",
      "Work_Type"
    ],
    "standard_answer": [
      "SELECT T3.Name ,  T2.Date FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID",
      "SELECT T3.Name ,  T2.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID ORDER BY T2.Event_Attendance ASC",
      "SELECT T3.Name ,  COUNT(*) FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID GROUP BY T3.Name",
      "SELECT T3.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID  =  T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID  =  T3.journalist_ID GROUP BY T3.Name HAVING COUNT(*)  >  1"
    ]
  },
  {
    "database": "wine_1",
    "table": "grapes",
    "questions": [],
    "col_names": [
      "ID",
      "Grape",
      "Color"
    ],
    "standard_answer": []
  },
  {
    "database": "wine_1",
    "table": "appellations",
    "questions": [],
    "col_names": [
      "No",
      "Appelation",
      "County",
      "State",
      "Area",
      "isAVA"
    ],
    "standard_answer": []
  },
  {
    "database": "wine_1",
    "table": "wine",
    "questions": [
      "Find the average price of wines that are not produced from Sonoma county.",
      "What is the average price for wines not produced in Sonoma county?"
    ],
    "col_names": [
      "No",
      "Grape",
      "Winery",
      "Appelation",
      "State",
      "Name",
      "Year",
      "Price",
      "Score",
      "Cases",
      "Drink"
    ],
    "standard_answer": [
      "SELECT avg(price) FROM wine WHERE Appelation NOT IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  'Sonoma')",
      "SELECT avg(price) FROM wine WHERE Appelation NOT IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  'Sonoma')"
    ]
  },
  {
    "database": "customers_and_addresses",
    "table": "Addresses",
    "questions": [],
    "col_names": [
      "address_id",
      "address_content",
      "city",
      "zip_postcode",
      "state_province_county",
      "country",
      "other_address_details"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_and_addresses",
    "table": "Products",
    "questions": [],
    "col_names": [
      "product_id",
      "product_details"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_and_addresses",
    "table": "Customers",
    "questions": [],
    "col_names": [
      "customer_id",
      "payment_method",
      "customer_name",
      "date_became_customer",
      "other_customer_details"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_and_addresses",
    "table": "Customer_Addresses",
    "questions": [],
    "col_names": [
      "customer_id",
      "address_id",
      "date_address_from",
      "address_type",
      "date_address_to"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_and_addresses",
    "table": "Customer_Contact_Channels",
    "questions": [],
    "col_names": [
      "customer_id",
      "channel_code",
      "active_from_date",
      "active_to_date",
      "contact_number"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_and_addresses",
    "table": "Customer_Orders",
    "questions": [],
    "col_names": [
      "order_id",
      "customer_id",
      "order_status",
      "order_date",
      "order_details"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_and_addresses",
    "table": "Order_Items",
    "questions": [],
    "col_names": [
      "order_id",
      "product_id",
      "order_quantity"
    ],
    "standard_answer": []
  },
  {
    "database": "protein_institute",
    "table": "building",
    "questions": [
      "How many buildings are there?",
      "Show the name, street address, and number of floors for all buildings ordered by the number of floors.",
      "What is the name of the tallest building?",
      "What are the average, maximum, and minimum number of floors for all buildings?",
      "Show the number of buildings with a height above the average or a number of floors above the average.",
      "List the names of buildings with at least 200 feet of height and with at least 20 floors.",
      "Show the name of buildings that do not have any institution.",
      "Show the names of buildings except for those having an institution founded in 2003.",
      "For each building, show the name of the building and the number of institutions in it.",
      "Show the names and heights of buildings with at least two institutions founded after 1880."
    ],
    "col_names": [
      "building_id",
      "Name",
      "Street_address",
      "Years_as_tallest",
      "Height_feet",
      "Floors"
    ],
    "standard_answer": [
      "SELECT count(*) FROM building",
      "SELECT name ,  street_address ,  floors FROM building ORDER BY floors",
      "SELECT name FROM building ORDER BY height_feet DESC LIMIT 1",
      "SELECT avg(floors) ,  max(floors) ,  min(floors) FROM building",
      "SELECT count(*) FROM building WHERE height_feet  >  (SELECT avg(height_feet) FROM building) OR floors  >  (SELECT avg(floors) FROM building)",
      "SELECT name FROM building WHERE height_feet  >=  200 AND floors  >=  20",
      "SELECT name FROM building WHERE building_id NOT IN (SELECT building_id FROM institution)",
      "SELECT name FROM building EXCEPT SELECT T1.name FROM building AS T1 JOIN institution AS T2 ON T1.building_id  =  T2.building_id WHERE T2.founded  =  2003",
      "SELECT T1.name ,  count(*) FROM building AS T1 JOIN institution AS T2 ON T1.building_id  =  T2.building_id GROUP BY T1.building_id",
      "SELECT T1.name ,  T1.height_feet FROM building AS T1 JOIN institution AS T2 ON T1.building_id  =  T2.building_id WHERE T2.founded  >  1880 GROUP BY T1.building_id HAVING count(*)  >=  2"
    ]
  },
  {
    "database": "protein_institute",
    "table": "Institution",
    "questions": [],
    "col_names": [
      "Institution_id",
      "Institution",
      "Location",
      "Founded",
      "Type",
      "Enrollment",
      "Team",
      "Primary_Conference",
      "building_id"
    ],
    "standard_answer": []
  },
  {
    "database": "protein_institute",
    "table": "protein",
    "questions": [],
    "col_names": [
      "common_name",
      "protein_name",
      "divergence_from_human_lineage",
      "accession_number",
      "sequence_length",
      "sequence_identity_to_human_protein",
      "Institution_id"
    ],
    "standard_answer": []
  },
  {
    "database": "school_player",
    "table": "school",
    "questions": [
      "How many schools are there?",
      "Count the number of schools.",
      "List the locations of schools in ascending order of enrollment.",
      "What is the list of school locations sorted in ascending order of school enrollment?",
      "List the locations of schools in descending order of founded year.",
      "What is the list of school locations sorted in descending order of school foundation year?",
      "What are the enrollments of schools whose denomination is not \"Catholic\"?",
      "List the enrollment for each school that does not have \"Catholic\" as denomination.",
      "What is the average enrollment of schools?",
      "Take the average of the school enrollment.",
      "Show locations and nicknames of schools.",
      "What are the location and nickname of each school?",
      "Please show different denominations and the corresponding number of schools.",
      "For each denomination, return the denomination and the count of schools with that denomination.",
      "Please show different denominations and the corresponding number of schools in descending order.",
      "Order denominations in descending order of the count of schools with the denomination. Return each denomination with the count of schools.",
      "List the school color of the school that has the largest enrollment.",
      "What is the school color of the school with the largest enrollment?",
      "List the locations of schools that do not have any player.",
      "Which schools do not have any player? Give me the school locations.",
      "Show the denomination shared by schools founded before 1890 and schools founded after 1900",
      "What are the denominations used by both schools founded before 1890 and schools founded  after 1900?",
      "Show the denomination shared by more than one school.",
      "What are the denomination more than one school have?"
    ],
    "col_names": [
      "School_ID",
      "School",
      "Location",
      "Enrollment",
      "Founded",
      "Denomination",
      "Boys_or_Girls",
      "Day_or_Boarding",
      "Year_Entered_Competition",
      "School_Colors"
    ],
    "standard_answer": [
      "SELECT count(*) FROM school",
      "SELECT count(*) FROM school",
      "SELECT LOCATION FROM school ORDER BY Enrollment ASC",
      "SELECT LOCATION FROM school ORDER BY Enrollment ASC",
      "SELECT LOCATION FROM school ORDER BY Founded DESC",
      "SELECT LOCATION FROM school ORDER BY Founded DESC",
      "SELECT Enrollment FROM school WHERE Denomination != \"Catholic\"",
      "SELECT Enrollment FROM school WHERE Denomination != \"Catholic\"",
      "SELECT avg(Enrollment) FROM school",
      "SELECT avg(Enrollment) FROM school",
      "SELECT T1.Location ,  T2.Nickname FROM school AS T1 JOIN school_details AS T2 ON T1.School_ID  =  T2.School_ID",
      "SELECT T1.Location ,  T2.Nickname FROM school AS T1 JOIN school_details AS T2 ON T1.School_ID  =  T2.School_ID",
      "SELECT Denomination ,  COUNT(*) FROM school GROUP BY Denomination",
      "SELECT Denomination ,  COUNT(*) FROM school GROUP BY Denomination",
      "SELECT Denomination ,  COUNT(*) FROM school GROUP BY Denomination ORDER BY COUNT(*) DESC",
      "SELECT Denomination ,  COUNT(*) FROM school GROUP BY Denomination ORDER BY COUNT(*) DESC",
      "SELECT School_Colors FROM school ORDER BY Enrollment DESC LIMIT 1",
      "SELECT School_Colors FROM school ORDER BY Enrollment DESC LIMIT 1",
      "SELECT LOCATION FROM school WHERE School_ID NOT IN (SELECT School_ID FROM Player)",
      "SELECT LOCATION FROM school WHERE School_ID NOT IN (SELECT School_ID FROM Player)",
      "SELECT Denomination FROM school WHERE Founded  <  1890 INTERSECT SELECT Denomination FROM school WHERE Founded  >  1900",
      "SELECT Denomination FROM school WHERE Founded  <  1890 INTERSECT SELECT Denomination FROM school WHERE Founded  >  1900",
      "SELECT Denomination FROM school GROUP BY Denomination HAVING COUNT(*)  >  1",
      "SELECT Denomination FROM school GROUP BY Denomination HAVING COUNT(*)  >  1"
    ]
  },
  {
    "database": "school_player",
    "table": "school_details",
    "questions": [
      "Show the nicknames of schools that are not in division 1.",
      "What are the nicknames of schools whose division is not 1?"
    ],
    "col_names": [
      "School_ID",
      "Nickname",
      "Colors",
      "League",
      "Class",
      "Division"
    ],
    "standard_answer": [
      "SELECT Nickname FROM school_details WHERE Division != \"Division 1\"",
      "SELECT Nickname FROM school_details WHERE Division != \"Division 1\""
    ]
  },
  {
    "database": "school_player",
    "table": "school_performance",
    "questions": [],
    "col_names": [
      "School_Id",
      "School_Year",
      "Class_A",
      "Class_AA"
    ],
    "standard_answer": []
  },
  {
    "database": "school_player",
    "table": "player",
    "questions": [
      "What are the teams of the players, sorted in ascending alphabetical order?",
      "Find the team of each player and sort them in ascending alphabetical order.",
      "How many different positions of players are there?",
      "Count the number of distinct player positions.",
      "Find the team of the player of the highest age.",
      "Which team has the oldest player?",
      "List the teams of the players with the top 5 largest ages.",
      "What are the teams that have the 5 oldest players?",
      "For each player, show the team and the location of school they belong to.",
      "What are the team and the location of school each player belongs to?",
      "Show the locations of schools that have more than 1 player.",
      "Which schools have more than 1 player? Give me the school locations.",
      "Show the denomination of the school that has the most players.",
      "What is the denomination of the school the most players belong to?"
    ],
    "col_names": [
      "Player_ID",
      "Player",
      "Team",
      "Age",
      "Position",
      "School_ID"
    ],
    "standard_answer": [
      "SELECT Team FROM player ORDER BY Team ASC",
      "SELECT Team FROM player ORDER BY Team ASC",
      "SELECT count(DISTINCT POSITION) FROM player",
      "SELECT count(DISTINCT POSITION) FROM player",
      "SELECT Team FROM player ORDER BY Age DESC LIMIT 1",
      "SELECT Team FROM player ORDER BY Age DESC LIMIT 1",
      "SELECT Team FROM player ORDER BY Age DESC LIMIT 5",
      "SELECT Team FROM player ORDER BY Age DESC LIMIT 5",
      "SELECT T1.Team ,  T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID  =  T2.School_ID",
      "SELECT T1.Team ,  T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID  =  T2.School_ID",
      "SELECT T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID  =  T2.School_ID GROUP BY T1.School_ID HAVING COUNT(*)  >  1",
      "SELECT T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID  =  T2.School_ID GROUP BY T1.School_ID HAVING COUNT(*)  >  1",
      "SELECT T2.Denomination FROM player AS T1 JOIN school AS T2 ON T1.School_ID  =  T2.School_ID GROUP BY T1.School_ID ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT T2.Denomination FROM player AS T1 JOIN school AS T2 ON T1.School_ID  =  T2.School_ID GROUP BY T1.School_ID ORDER BY COUNT(*) DESC LIMIT 1"
    ]
  },
  {
    "database": "phone_1",
    "table": "chip_model",
    "questions": [
      "the names of models that launched between 2002 and 2004.",
      "Which model has the least amount of RAM? List the model name and the amount of RAM.",
      "What is maximum and minimum RAM size of phone produced by company named \"Nokia Corporation\"?",
      "What is the average ROM size of phones produced by the company named \"Nokia Corporation\"?",
      "List the hardware model name and company name for all the phones that were launched in year 2002 or have RAM size greater than 32.",
      "List the name of the phone model launched in year 2002 and with the highest RAM size.",
      "What are the wifi and screen mode type of the hardware model named \"LG-P760\"?",
      "List the hardware model name for the phones that have screen mode type \"Text\" or RAM size greater than 32.",
      "Find the details for all chip models.",
      "How many models do not have the wifi function?",
      "Count the number of chip model that do not have wifi.",
      "List all the model names sorted by their launch year.",
      "Find the average ram mib size of the chip models that are never used by any phone.",
      "Find the names of the chip models that are not used by any phone with full accreditation type."
    ],
    "col_names": [
      "Model_name",
      "Launch_year",
      "RAM_MiB",
      "ROM_MiB",
      "Slots",
      "WiFi",
      "Bluetooth"
    ],
    "standard_answer": [
      "SELECT Model_name FROM chip_model WHERE Launch_year BETWEEN 2002 AND 2004;",
      "SELECT Model_name ,  RAM_MiB FROM chip_model ORDER BY RAM_MiB ASC LIMIT 1;",
      "SELECT max(T1.RAM_MiB) ,  min(T1.RAM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T2.Company_name = \"Nokia Corporation\";",
      "SELECT avg(T1.ROM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T2.Company_name = \"Nokia Corporation\";",
      "SELECT T2.Hardware_Model_name ,  T2.Company_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T1.Launch_year = 2002 OR T1.RAM_MiB  >  32;",
      "SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T1.Launch_year = 2002 ORDER BY T1.RAM_MiB DESC LIMIT 1;",
      "SELECT T1.WiFi , T3.Type FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T2.Hardware_Model_name = \"LG-P760\";",
      "SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T3.Type = \"Text\" OR T1.RAM_MiB  >  32;",
      "SELECT * FROM chip_model",
      "SELECT count(*) FROM chip_model WHERE wifi  =  'No'",
      "SELECT count(*) FROM chip_model WHERE wifi  =  'No'",
      "SELECT model_name FROM chip_model ORDER BY launch_year",
      "SELECT avg(RAM_MiB) FROM chip_model WHERE model_name NOT IN (SELECT chip_model FROM phone)",
      "SELECT model_name FROM chip_model EXCEPT SELECT chip_model FROM phone WHERE Accreditation_type  =  'Full'"
    ]
  },
  {
    "database": "phone_1",
    "table": "screen_mode",
    "questions": [
      "Find the Char cells, Pixels and Hardware colours for the screen of the phone whose hardware model name is \"LG-P760\".",
      "List the hardware model name and company name for the phone whose screen mode type is \"Graphics.\"",
      "List the hardware model name for the phones that were produced by \"Nokia Corporation\" or whose screen mode type is \"Graphics.\"",
      "List the hardware model name for the phons that were produced by \"Nokia Corporation\" but whose screen mode type is not Text.",
      "List the phone hardware model and company name for the phones whose screen usage in kb is between 10 and 15.",
      "Find the pixels of the screen modes that are used by both phones with full accreditation types and phones with Provisional accreditation types."
    ],
    "col_names": [
      "Graphics_mode",
      "Char_cells",
      "Pixels",
      "Hardware_colours",
      "used_kb",
      "map",
      "Type"
    ],
    "standard_answer": [
      "SELECT T1.Char_cells ,  T1.Pixels ,  T1.Hardware_colours FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T2.Hardware_Model_name = \"LG-P760\";",
      "SELECT T2.Hardware_Model_name ,  T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type  =  \"Graphics\";",
      "SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type  =  \"Graphics\" OR t2.Company_name  =  \"Nokia Corporation\"",
      "SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE t2.Company_name  =  \"Nokia Corporation\" AND T1.Type != \"Text\";",
      "SELECT DISTINCT T2.Hardware_Model_name , T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.used_kb BETWEEN 10 AND 15;",
      "SELECT t1.pixels FROM screen_mode AS t1 JOIN phone AS t2 ON t1.Graphics_mode  =  t2.screen_mode WHERE t2.Accreditation_type  =  'Provisional' INTERSECT SELECT t1.pixels FROM screen_mode AS t1 JOIN phone AS t2 ON t1.Graphics_mode  =  t2.screen_mode WHERE t2.Accreditation_type  =  'Full'"
    ]
  },
  {
    "database": "phone_1",
    "table": "phone",
    "questions": [
      "What are the chip model and screen mode of the phone with hardware model name \"LG-P760\"?",
      "How many phone hardware models are produced by the company named \"Nokia Corporation\"?",
      "Find all phones that have word 'Full' in their accreditation types. List the Hardware Model name and Company name.",
      "Find the name of the company that has the least number of phone models. List the company name and the number of phone model produced by that company.",
      "List the name of the company that produced more than one phone model.",
      "Find the number of phones for each accreditation type.",
      "How many phones belongs to each accreditation type?",
      "Find the accreditation level that more than 3 phones use."
    ],
    "col_names": [
      "Company_name",
      "Hardware_Model_name",
      "Accreditation_type",
      "Accreditation_level",
      "Date",
      "chip_model",
      "screen_mode"
    ],
    "standard_answer": [
      "SELECT chip_model ,  screen_mode FROM phone WHERE Hardware_Model_name = \"LG-P760\";",
      "SELECT count(*) FROM phone WHERE Company_name = \"Nokia Corporation\";",
      "SELECT Hardware_Model_name ,  Company_name FROM phone WHERE Accreditation_type LIKE 'Full';",
      "SELECT Company_name ,  count(*) FROM phone GROUP BY Company_name ORDER BY count(*) ASC LIMIT 1;",
      "SELECT Company_name FROM phone GROUP BY Company_name HAVING count(*)  >  1;",
      "SELECT Accreditation_type ,  count(*) FROM phone GROUP BY Accreditation_type",
      "SELECT Accreditation_type ,  count(*) FROM phone GROUP BY Accreditation_type",
      "SELECT Accreditation_level FROM phone GROUP BY Accreditation_level HAVING count(*)  >  3"
    ]
  },
  {
    "database": "tvshow",
    "table": "TV_Channel",
    "questions": [],
    "col_names": [
      "id",
      "series_name",
      "Country",
      "Language",
      "Content",
      "Pixel_aspect_ratio_PAR",
      "Hight_definition_TV",
      "Pay_per_view_PPV",
      "Package_Option"
    ],
    "standard_answer": []
  },
  {
    "database": "tvshow",
    "table": "TV_series",
    "questions": [],
    "col_names": [
      "id",
      "Episode",
      "Air_Date",
      "Rating",
      "Share",
      "18_49_Rating_Share",
      "Viewers_m",
      "Weekly_Rank",
      "Channel"
    ],
    "standard_answer": []
  },
  {
    "database": "tvshow",
    "table": "Cartoon",
    "questions": [],
    "col_names": [
      "id",
      "Title",
      "Directed_by",
      "Written_by",
      "Original_air_date",
      "Production_code",
      "Channel"
    ],
    "standard_answer": []
  },
  {
    "database": "wrestler",
    "table": "wrestler",
    "questions": [
      "How many wrestlers are there?",
      "Count the number of wrestlers.",
      "List the names of wrestlers in descending order of days held.",
      "What are the names of the wrestlers, ordered descending by days held?",
      "What is the name of the wrestler with the fewest days held?",
      "Return the name of the wrestler who had the lowest number of days held.",
      "What are the distinct reigns of wrestlers whose location is not \"Tokyo,Japan\" ?",
      "Give the different reigns of wrestlers who are not located in Tokyo, Japan.",
      "What are the names and location of the wrestlers?",
      "Give the names and locations of all wrestlers.",
      "Show the reign and days held of wrestlers.",
      "What are the reigns and days held of all wrestlers?",
      "What are the names of wrestlers days held less than 100?",
      "Return the names of wrestlers with fewer than 100 days held.",
      "Please show the most common reigns of wrestlers.",
      "Which reign is the most common among wrestlers?",
      "List the locations that are shared by more than two wrestlers.",
      "Which locations are shared by more than two wrestlers?",
      "List the names of wrestlers that have not been eliminated.",
      "What are the names of wrestlers who have never been eliminated?"
    ],
    "col_names": [
      "Wrestler_ID",
      "Name",
      "Reign",
      "Days_held",
      "Location",
      "Event"
    ],
    "standard_answer": [
      "SELECT count(*) FROM wrestler",
      "SELECT count(*) FROM wrestler",
      "SELECT Name FROM wrestler ORDER BY Days_held DESC",
      "SELECT Name FROM wrestler ORDER BY Days_held DESC",
      "SELECT Name FROM wrestler ORDER BY Days_held ASC LIMIT 1",
      "SELECT Name FROM wrestler ORDER BY Days_held ASC LIMIT 1",
      "SELECT DISTINCT Reign FROM wrestler WHERE LOCATION != \"Tokyo , Japan\"",
      "SELECT DISTINCT Reign FROM wrestler WHERE LOCATION != \"Tokyo , Japan\"",
      "SELECT Name ,  LOCATION FROM wrestler",
      "SELECT Name ,  LOCATION FROM wrestler",
      "SELECT Reign ,  Days_held FROM wrestler",
      "SELECT Reign ,  Days_held FROM wrestler",
      "SELECT Name FROM wrestler WHERE Days_held  <  100",
      "SELECT Name FROM wrestler WHERE Days_held  <  100",
      "SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT LOCATION FROM wrestler GROUP BY LOCATION HAVING COUNT(*)  >  2",
      "SELECT LOCATION FROM wrestler GROUP BY LOCATION HAVING COUNT(*)  >  2",
      "SELECT Name FROM wrestler WHERE Wrestler_ID NOT IN (SELECT Wrestler_ID FROM elimination)",
      "SELECT Name FROM wrestler WHERE Wrestler_ID NOT IN (SELECT Wrestler_ID FROM elimination)"
    ]
  },
  {
    "database": "wrestler",
    "table": "Elimination",
    "questions": [
      "What are the elimination moves of wrestlers whose team is \"Team Orton\"?",
      "Return the elimination movies of wrestlers on Team Orton.",
      "Show the teams that have both wrestlers eliminated by \"Orton\" and wrestlers eliminated by \"Benjamin\".",
      "What are the teams that have both wrestlers eliminated by Orton and wrestlers eliminated by Benjamin?"
    ],
    "col_names": [
      "Elimination_ID",
      "Wrestler_ID",
      "Team",
      "Eliminated_By",
      "Elimination_Move",
      "Time"
    ],
    "standard_answer": [
      "SELECT Elimination_Move FROM Elimination WHERE Team  =  \"Team Orton\"",
      "SELECT Elimination_Move FROM Elimination WHERE Team  =  \"Team Orton\"",
      "SELECT Team FROM Elimination WHERE Eliminated_By  =  \"Orton\" INTERSECT SELECT Team FROM Elimination WHERE Eliminated_By  =  \"Benjamin\"",
      "SELECT Team FROM Elimination WHERE Eliminated_By  =  \"Orton\" INTERSECT SELECT Team FROM Elimination WHERE Eliminated_By  =  \"Benjamin\""
    ]
  },
  {
    "database": "customer_complaints",
    "table": "Staff",
    "questions": [],
    "col_names": [
      "staff_id",
      "gender",
      "first_name",
      "last_name",
      "email_address",
      "phone_number"
    ],
    "standard_answer": []
  },
  {
    "database": "customer_complaints",
    "table": "Customers",
    "questions": [],
    "col_names": [
      "customer_id",
      "customer_type_code",
      "address_line_1",
      "address_line_2",
      "town_city",
      "state",
      "email_address",
      "phone_number"
    ],
    "standard_answer": []
  },
  {
    "database": "customer_complaints",
    "table": "Products",
    "questions": [],
    "col_names": [
      "product_id",
      "parent_product_id",
      "product_category_code",
      "date_product_first_available",
      "date_product_discontinued",
      "product_name",
      "product_description",
      "product_price"
    ],
    "standard_answer": []
  },
  {
    "database": "customer_complaints",
    "table": "Complaints",
    "questions": [],
    "col_names": [
      "complaint_id",
      "product_id",
      "customer_id",
      "complaint_outcome_code",
      "complaint_status_code",
      "complaint_type_code",
      "date_complaint_raised",
      "date_complaint_closed",
      "staff_id"
    ],
    "standard_answer": []
  },
  {
    "database": "department_management",
    "table": "department",
    "questions": [
      "List the creation year, name and budget of each department.",
      "What are the maximum and minimum budget of the departments?",
      "What is the average number of employees of the departments whose rank is between 10 and 15?",
      "What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'?",
      "In which year were most departments established?",
      "Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes'?",
      "How many departments are led by heads who are not mentioned?",
      "List the states where both the secretary of 'Treasury' department and the secretary of 'Homeland Security' were born."
    ],
    "col_names": [
      "Department_ID",
      "Name",
      "Creation",
      "Ranking",
      "Budget_in_Billions",
      "Num_Employees"
    ],
    "standard_answer": [
      "SELECT creation ,  name ,  budget_in_billions FROM department",
      "SELECT max(budget_in_billions) ,  min(budget_in_billions) FROM department",
      "SELECT avg(num_employees) FROM department WHERE ranking BETWEEN 10 AND 15",
      "SELECT DISTINCT T1.creation FROM department AS T1 JOIN management AS T2 ON T1.department_id  =  T2.department_id JOIN head AS T3 ON T2.head_id  =  T3.head_id WHERE T3.born_state  =  'Alabama'",
      "SELECT creation FROM department GROUP BY creation ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.name ,  T1.num_employees FROM department AS T1 JOIN management AS T2 ON T1.department_id  =  T2.department_id WHERE T2.temporary_acting  =  'Yes'",
      "SELECT count(*) FROM department WHERE department_id NOT IN (SELECT department_id FROM management);",
      "SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id  =  T2.department_id JOIN head AS T3 ON T2.head_id  =  T3.head_id WHERE T1.name  =  'Treasury' INTERSECT SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id  =  T2.department_id JOIN head AS T3 ON T2.head_id  =  T3.head_id WHERE T1.name  =  'Homeland Security'"
    ]
  },
  {
    "database": "department_management",
    "table": "head",
    "questions": [
      "How many heads of the departments are older than 56 ?",
      "List the name, born state and age of the heads of departments ordered by age.",
      "What are the names of the heads who are born outside the California state?",
      "What are the names of the states where at least 3 heads were born?",
      "Which head's name has the substring 'Ha'? List the id and name."
    ],
    "col_names": [
      "head_ID",
      "name",
      "born_state",
      "age"
    ],
    "standard_answer": [
      "SELECT count(*) FROM head WHERE age  >  56",
      "SELECT name ,  born_state ,  age FROM head ORDER BY age",
      "SELECT name FROM head WHERE born_state != 'California'",
      "SELECT born_state FROM head GROUP BY born_state HAVING count(*)  >=  3",
      "SELECT head_id ,  name FROM head WHERE name LIKE '%Ha%'"
    ]
  },
  {
    "database": "department_management",
    "table": "management",
    "questions": [
      "How many acting statuses are there?",
      "What are the distinct ages of the heads who are acting?",
      "Which department has more than 1 head at a time? List the id, name and the number of heads."
    ],
    "col_names": [
      "department_ID",
      "head_ID",
      "temporary_acting"
    ],
    "standard_answer": [
      "SELECT count(DISTINCT temporary_acting) FROM management",
      "SELECT DISTINCT T1.age FROM management AS T2 JOIN head AS T1 ON T1.head_id  =  T2.head_id WHERE T2.temporary_acting  =  'Yes'",
      "SELECT T1.department_id ,  T1.name ,  count(*) FROM management AS T2 JOIN department AS T1 ON T1.department_id  =  T2.department_id GROUP BY T1.department_id HAVING count(*)  >  1"
    ]
  },
  {
    "database": "customers_and_products_contacts",
    "table": "Addresses",
    "questions": [],
    "col_names": [
      "address_id",
      "line_1_number_building",
      "city",
      "zip_postcode",
      "state_province_county",
      "country"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_and_products_contacts",
    "table": "Products",
    "questions": [],
    "col_names": [
      "product_id",
      "product_type_code",
      "product_name",
      "product_price"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_and_products_contacts",
    "table": "Customers",
    "questions": [],
    "col_names": [
      "customer_id",
      "payment_method_code",
      "customer_number",
      "customer_name",
      "customer_address",
      "customer_phone",
      "customer_email"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_and_products_contacts",
    "table": "Contacts",
    "questions": [],
    "col_names": [
      "contact_id",
      "customer_id",
      "gender",
      "first_name",
      "last_name",
      "contact_phone"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_and_products_contacts",
    "table": "Customer_Address_History",
    "questions": [],
    "col_names": [
      "customer_id",
      "address_id",
      "date_from",
      "date_to"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_and_products_contacts",
    "table": "Customer_Orders",
    "questions": [],
    "col_names": [
      "order_id",
      "customer_id",
      "order_date",
      "order_status_code"
    ],
    "standard_answer": []
  },
  {
    "database": "customers_and_products_contacts",
    "table": "Order_Items",
    "questions": [],
    "col_names": [
      "order_item_id",
      "order_id",
      "product_id",
      "order_quantity"
    ],
    "standard_answer": []
  },
  {
    "database": "company_1",
    "table": "works_on",
    "questions": [],
    "col_names": [
      "Essn",
      "Pno",
      "Hours"
    ],
    "standard_answer": []
  },
  {
    "database": "company_1",
    "table": "employee",
    "questions": [
      "Return the first names and last names of employees who earn more than 30000 in salary.",
      "Find the number of employees of each gender whose salary is lower than 50000.",
      "list the first and last names, and the addresses of all employees in the ascending order of their birth date."
    ],
    "col_names": [
      "Fname",
      "Minit",
      "Lname",
      "Ssn",
      "Bdate",
      "Address",
      "Sex",
      "Salary",
      "Super_ssn",
      "Dno"
    ],
    "standard_answer": [
      "SELECT fname ,  lname FROM employee WHERE salary  >  30000",
      "SELECT count(*) ,  sex FROM employee WHERE salary  <  50000 GROUP BY sex",
      "SELECT fname ,  lname ,  address FROM employee ORDER BY Bdate"
    ]
  },
  {
    "database": "company_1",
    "table": "department",
    "questions": [
      "List all department names ordered by their starting date.",
      "Find the names of departments that are located in Houston."
    ],
    "col_names": [
      "Dname",
      "Dnumber",
      "Mgr_ssn",
      "Mgr_start_date"
    ],
    "standard_answer": [
      "SELECT dname FROM department ORDER BY mgr_start_date",
      "SELECT t1.dname FROM department AS t1 JOIN dept_locations AS t2 ON t1.dnumber  =  t2.dnumber WHERE t2.dlocation  =  'Houston'"
    ]
  },
  {
    "database": "company_1",
    "table": "project",
    "questions": [],
    "col_names": [
      "Pname",
      "Pnumber",
      "Plocation",
      "Dnum"
    ],
    "standard_answer": []
  },
  {
    "database": "company_1",
    "table": "dependent",
    "questions": [
      "find all dependent names who have a spouse relation with some employee.",
      "how many female dependents are there?"
    ],
    "col_names": [
      "Essn",
      "Dependent_name",
      "Sex",
      "Bdate",
      "Relationship"
    ],
    "standard_answer": [
      "SELECT Dependent_name FROM dependent WHERE relationship  =  'Spouse'",
      "SELECT count(*) FROM dependent WHERE sex  =  'F'"
    ]
  },
  {
    "database": "company_1",
    "table": "dept_locations",
    "questions": [],
    "col_names": [
      "Dnumber",
      "Dlocation"
    ],
    "standard_answer": []
  },
  {
    "database": "workshop_paper",
    "table": "workshop",
    "questions": [
      "Show the date and venue of each workshop in ascending alphabetical order of the venue.",
      "Sort the each workshop in alphabetical order of the venue. Return the date and venue of each workshop."
    ],
    "col_names": [
      "Workshop_ID",
      "Date",
      "Venue",
      "Name"
    ],
    "standard_answer": [
      "SELECT Date ,  Venue FROM workshop ORDER BY Venue",
      "SELECT Date ,  Venue FROM workshop ORDER BY Venue"
    ]
  },
  {
    "database": "workshop_paper",
    "table": "submission",
    "questions": [
      "How many submissions are there?",
      "Count the number of submissions.",
      "List the authors of submissions in ascending order of scores.",
      "Find the author for each submission and list them in ascending order of submission score.",
      "What are the authors of submissions and their colleges?",
      "For each submission, show the author and their affiliated college.",
      "Show the names of authors from college \"Florida\" or \"Temple\"",
      "Which authors with submissions are from college \"Florida\" or \"Temple\"?",
      "What is the average score of submissions?",
      "Compute the average score of submissions.",
      "What is the author of the submission with the highest score?",
      "Find the author who achieved the highest score in a submission.",
      "Show different colleges along with the number of authors of submission from each college.",
      "For each college, return the college name and the count of authors with submissions from that college.",
      "Show the most common college of authors of submissions.",
      "Which college has the most authors with submissions?",
      "Show the colleges that have both authors with submission score larger than 90 and authors with submission score smaller than 80.",
      "Which colleges have both authors with submission score above 90 and authors with submission score below 80?",
      "List the authors who do not have submission to any workshop.",
      "Which authors did not submit to any workshop?"
    ],
    "col_names": [
      "Submission_ID",
      "Scores",
      "Author",
      "College"
    ],
    "standard_answer": [
      "SELECT count(*) FROM submission",
      "SELECT count(*) FROM submission",
      "SELECT Author FROM submission ORDER BY Scores ASC",
      "SELECT Author FROM submission ORDER BY Scores ASC",
      "SELECT Author ,  College FROM submission",
      "SELECT Author ,  College FROM submission",
      "SELECT Author FROM submission WHERE College  =  \"Florida\" OR College  =  \"Temple\"",
      "SELECT Author FROM submission WHERE College  =  \"Florida\" OR College  =  \"Temple\"",
      "SELECT avg(Scores) FROM submission",
      "SELECT avg(Scores) FROM submission",
      "SELECT Author FROM submission ORDER BY Scores DESC LIMIT 1",
      "SELECT Author FROM submission ORDER BY Scores DESC LIMIT 1",
      "SELECT College ,  COUNT(*) FROM submission GROUP BY College",
      "SELECT College ,  COUNT(*) FROM submission GROUP BY College",
      "SELECT College FROM submission GROUP BY College ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT College FROM submission GROUP BY College ORDER BY COUNT(*) DESC LIMIT 1",
      "SELECT College FROM submission WHERE Scores  >  90 INTERSECT SELECT College FROM submission WHERE Scores  <  80",
      "SELECT College FROM submission WHERE Scores  >  90 INTERSECT SELECT College FROM submission WHERE Scores  <  80",
      "SELECT Author FROM submission WHERE Submission_ID NOT IN (SELECT Submission_ID FROM acceptance)",
      "SELECT Author FROM submission WHERE Submission_ID NOT IN (SELECT Submission_ID FROM acceptance)"
    ]
  },
  {
    "database": "workshop_paper",
    "table": "Acceptance",
    "questions": [],
    "col_names": [
      "Submission_ID",
      "Workshop_ID",
      "Result"
    ],
    "standard_answer": []
  },
  {
    "database": "epinions_1",
    "table": "item",
    "questions": [
      "Find the id of the item whose title is \"orange\".",
      "List all information in the item table.",
      "Find the number of items that did not receive any review.",
      "Find the names of goods that receive a rating of 10.",
      "Find the titles of items whose rating is higher than the average review rating of all items.",
      "Find the titles of items that received any rating below 5.",
      "Find the titles of items that received both a rating higher than 8 and a rating below 5.",
      "Find the names of items whose rank is higher than 3 and whose average rating is above 5.",
      "Find the name of the item with the lowest average rating.",
      "List the titles of all items in alphabetic order .",
      "Find the name and id of the item with the highest average rating.",
      "Find the name and id of the good with the highest average rank.",
      "Find the names of the items that did not receive any review.",
      "Find the number of items without any review."
    ],
    "col_names": [
      "i_id",
      "title"
    ],
    "standard_answer": [
      "SELECT i_id FROM item WHERE title  =  \"orange\"",
      "SELECT * FROM item",
      "SELECT count(*) FROM item WHERE i_id NOT IN (SELECT i_id FROM review)",
      "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  =  10",
      "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  >  (SELECT avg(rating) FROM review)",
      "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  <  5",
      "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  >  8 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  <  5",
      "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rank  >  3 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id HAVING avg(T2.rating)  >  5",
      "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id ORDER BY avg(T2.rating) LIMIT 1",
      "SELECT title FROM item ORDER BY title",
      "SELECT T1.title ,  T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id ORDER BY avg(T2.rating) DESC LIMIT 1",
      "SELECT T1.title ,  T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id ORDER BY avg(T2.rank) DESC LIMIT 1",
      "SELECT title FROM item WHERE i_id NOT IN (SELECT i_id FROM review)",
      "SELECT count(*) FROM item WHERE i_id NOT IN (SELECT i_id FROM review)"
    ]
  },
  {
    "database": "epinions_1",
    "table": "review",
    "questions": [
      "Find the number of reviews.",
      "Find the average and maximum rating of all reviews.",
      "Find the highest rank of all reviews.",
      "How many different users wrote some reviews?",
      "How many different items were reviewed by some users?"
    ],
    "col_names": [
      "a_id",
      "u_id",
      "i_id",
      "rating",
      "rank"
    ],
    "standard_answer": [
      "SELECT count(*) FROM review",
      "SELECT avg(rating) ,  max(rating) FROM review",
      "SELECT min(rank) FROM review",
      "SELECT count(DISTINCT u_id) FROM review",
      "SELECT count(DISTINCT i_id) FROM review"
    ]
  },
  {
    "database": "epinions_1",
    "table": "useracct",
    "questions": [
      "How many users are there?",
      "Find the names of users who did not leave any review.",
      "Find the name of the user who gives the most reviews.",
      "For each user, return the name and the average rating of reviews given by them.",
      "For each user, find their name and the number of reviews written by them.",
      "Find the name of the user who gave the highest rating.",
      "Find the name of the source user with the highest average trust score.",
      "Find each target user's name and average trust score.",
      "Find the name of the target user with the lowest trust score.",
      "Find the names of users who did not leave any review.",
      "Find the number of users who did not write any review."
    ],
    "col_names": [
      "u_id",
      "name"
    ],
    "standard_answer": [
      "SELECT count(*) FROM useracct",
      "SELECT name FROM useracct WHERE u_id NOT IN (SELECT u_id FROM review)",
      "SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id GROUP BY T2.u_id ORDER BY count(*) DESC LIMIT 1",
      "SELECT T1.name ,  avg(T2.rating) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id GROUP BY T2.u_id",
      "SELECT T1.name ,  count(*) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id GROUP BY T2.u_id",
      "SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id ORDER BY T2.rating DESC LIMIT 1",
      "SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id  =  T2.source_u_id GROUP BY T2.source_u_id ORDER BY avg(trust) DESC LIMIT 1",
      "SELECT T1.name ,  avg(trust) FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id  =  T2.target_u_id GROUP BY T2.target_u_id",
      "SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id  =  T2.target_u_id ORDER BY trust LIMIT 1",
      "SELECT name FROM useracct WHERE u_id NOT IN (SELECT u_id FROM review)",
      "SELECT count(*) FROM useracct WHERE u_id NOT IN (SELECT u_id FROM review)"
    ]
  },
  {
    "database": "epinions_1",
    "table": "trust",
    "questions": [],
    "col_names": [
      "source_u_id",
      "target_u_id",
      "trust"
    ],
    "standard_answer": []
  },
  {
    "database": "party_host",
    "table": "party",
    "questions": [
      "How many parties are there?",
      "Count the number of parties.",
      "List the themes of parties in ascending order of number of hosts.",
      "What are the themes of parties ordered by the number of hosts in ascending manner?",
      "What are the themes and locations of parties?",
      "Give me the theme and location of each party.",
      "Show the first year and last year of parties with theme \"Spring\" or \"Teqnology\".",
      "What are the first year and last year of the parties whose theme is \"Spring\" or \"Teqnology\"?",
      "What is the average number of hosts for parties?",
      "Compute the average number of hosts for parties.",
      "What is the location of the party with the most hosts?",
      "Which party had the most hosts? Give me the party location."
    ],
    "col_names": [
      "Party_ID",
      "Party_Theme",
      "Location",
      "First_year",
      "Last_year",
      "Number_of_hosts"
    ],
    "standard_answer": [
      "SELECT count(*) FROM party",
      "SELECT count(*) FROM party",
      "SELECT Party_Theme FROM party ORDER BY Number_of_hosts ASC",
      "SELECT Party_Theme FROM party ORDER BY Number_of_hosts ASC",
      "SELECT Party_Theme ,  LOCATION FROM party",
      "SELECT Party_Theme ,  LOCATION FROM party",
      "SELECT First_year ,  Last_year FROM party WHERE Party_Theme  =  \"Spring\" OR Party_Theme  =  \"Teqnology\"",
      "SELECT First_year ,  Last_year FROM party WHERE Party_Theme  =  \"Spring\" OR Party_Theme  =  \"Teqnology\"",
      "SELECT avg(Number_of_hosts) FROM party",
      "SELECT avg(Number_of_hosts) FROM party",
      "SELECT LOCATION FROM party ORDER BY Number_of_hosts DESC LIMIT 1",
      "SELECT LOCATION FROM party ORDER BY Number_of_hosts DESC LIMIT 1"
    ]
  },
  {
    "database": "party_host",
    "table": "host",
    "questions": [],
    "col_names": [
      "Host_ID",
      "Name",
      "Nationality",
      "Age"
    ],
    "standard_answer": []
  },
  {
    "database": "party_host",
    "table": "party_host",
    "questions": [
      "Show the themes of parties and the names of the party hosts.",
      "For each party, return its theme and the name of its host.",
      "Show the locations of parties and the names of the party hosts in ascending order of the age of the host.",
      "For each party, find its location and the name of its host. Sort the result in ascending order of the age of the host.",
      "Show the locations of parties with hosts older than 50.",
      "Which parties have hosts of age above 50? Give me the party locations.",
      "Show the host names for parties with number of hosts greater than 20.",
      "Which parties have more than 20 hosts? Give me the host names for these parties."
    ],
    "col_names": [
      "Party_ID",
      "Host_ID",
      "Is_Main_in_Charge"
    ],
    "standard_answer": [
      "SELECT T3.Party_Theme ,  T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID",
      "SELECT T3.Party_Theme ,  T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID",
      "SELECT T3.Location ,  T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID ORDER BY T2.Age",
      "SELECT T3.Location ,  T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID ORDER BY T2.Age",
      "SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID WHERE T2.Age  >  50",
      "SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID WHERE T2.Age  >  50",
      "SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID WHERE T3.Number_of_hosts  >  20",
      "SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID WHERE T3.Number_of_hosts  >  20"
    ]
  },
  {
    "database": "product_catalog",
    "table": "Attribute_Definitions",
    "questions": [
      "Find the list of attribute data types possessed by more than 3 attribute definitions.",
      "What are the attribute data types with more than 3 attribute definitions?",
      "What is the attribute data type of the attribute with name \"Green\"?",
      "Find the attribute data type for the attribute named \"Green\".",
      "Find the name and attribute ID of the attribute definitions with attribute value 0.",
      "Which attribute definitions have attribute value 0? Give me the attribute name and attribute ID."
    ],
    "col_names": [
      "attribute_id",
      "attribute_name",
      "attribute_data_type"
    ],
    "standard_answer": [
      "SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING count(*)  >  3",
      "SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING count(*)  >  3",
      "SELECT attribute_data_type FROM Attribute_Definitions WHERE attribute_name  =  \"Green\"",
      "SELECT attribute_data_type FROM Attribute_Definitions WHERE attribute_name  =  \"Green\"",
      "SELECT t1.attribute_name ,  t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id  =  t2.attribute_id WHERE t2.attribute_value  =  0",
      "SELECT t1.attribute_name ,  t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id  =  t2.attribute_id WHERE t2.attribute_value  =  0"
    ]
  },
  {
    "database": "product_catalog",
    "table": "Catalogs",
    "questions": [
      "Find the dates on which more than one revisions were made.",
      "On which days more than one revisions were made on catalogs."
    ],
    "col_names": [
      "catalog_id",
      "catalog_name",
      "catalog_publisher",
      "date_of_publication",
      "date_of_latest_revision"
    ],
    "standard_answer": [
      "SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count(*)  >  1",
      "SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count(*)  >  1"
    ]
  },
  {
    "database": "product_catalog",
    "table": "Catalog_Structure",
    "questions": [
      "Find the name and level of catalog structure with level between 5 and 10.",
      "What are the name and level of catalog structure with level number between 5 and 10"
    ],
    "col_names": [
      "catalog_level_number",
      "catalog_id",
      "catalog_level_name"
    ],
    "standard_answer": [
      "SELECT catalog_level_name ,  catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10",
      "SELECT catalog_level_name ,  catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10"
    ]
  },
  {
    "database": "product_catalog",
    "table": "Catalog_Contents",
    "questions": [
      "What are the entry names of catalog with the attribute possessed by most entries.",
      "Find the entry names of the catalog with the attribute that have the most entries.",
      "Find the names of catalog entries with level number 8.",
      "What are the names of catalog entries with level number 8?",
      "Find the name and capacity of products with price greater than 700 (in USD).",
      "Which catalog contents has price above 700 dollars? Show their catalog entry names and capacities."
    ],
    "col_names": [
      "catalog_entry_id",
      "catalog_level_number",
      "parent_entry_id",
      "previous_entry_id",
      "next_entry_id",
      "catalog_entry_name",
      "product_stock_number",
      "price_in_dollars",
      "price_in_euros",
      "price_in_pounds",
      "capacity",
      "length",
      "height",
      "width"
    ],
    "standard_answer": [
      "SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id  =  t2.catalog_entry_id WHERE t2.attribute_value  =  (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY count(*) DESC LIMIT 1)",
      "SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id  =  t2.catalog_entry_id WHERE t2.attribute_value  =  (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY count(*) DESC LIMIT 1)",
      "SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id  =  t2.catalog_entry_id WHERE t2.catalog_level_number  =  \"8\"",
      "SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id  =  t2.catalog_entry_id WHERE t2.catalog_level_number  =  \"8\"",
      "SELECT catalog_entry_name ,  capacity FROM Catalog_Contents WHERE price_in_dollars  >  700",
      "SELECT catalog_entry_name ,  capacity FROM Catalog_Contents WHERE price_in_dollars  >  700"
    ]
  },
  {
    "database": "product_catalog",
    "table": "Catalog_Contents_Additional_Attributes",
    "questions": [],
    "col_names": [
      "catalog_entry_id",
      "catalog_level_number",
      "attribute_id",
      "attribute_value"
    ],
    "standard_answer": []
  }
]