diff --git "a/valid.jsonl" "b/valid.jsonl" --- "a/valid.jsonl" +++ "b/valid.jsonl" @@ -1,1045 +1,1045 @@ -{"text": "Q: SELECT COUNT(*) FROM singer \nA: How many singers do we have? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT COUNT(*) FROM singer \nA: What is the total number of singers? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT name, country, age FROM singer ORDER BY age DESC \nA: Show name, country, age for all singers ordered by age from the oldest to the youngest. \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT name, country, age FROM singer ORDER BY age DESC \nA: What are the names, countries, and ages for every singer in descending order of age? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT AVG(age), MIN(age), MAX(age) FROM singer WHERE country = 'France' \nA: What is the average, minimum, and maximum age of all singers from France? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT AVG(age), MIN(age), MAX(age) FROM singer WHERE country = 'France' \nA: What is the average, minimum, and maximum age for all French singers? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT song_name, song_release_year FROM singer ORDER BY age NULLS FIRST LIMIT 1 \nA: Show the name and the release year of the song by the youngest singer. \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT song_name, song_release_year FROM singer ORDER BY age NULLS FIRST LIMIT 1 \nA: What are the names and release years for all the songs of the youngest singer? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT DISTINCT country FROM singer WHERE age > 20 \nA: What are all distinct countries where singers above age 20 are from? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT DISTINCT country FROM singer WHERE age > 20 \nA: What are the different countries with singers above age 20? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT country, COUNT(*) FROM singer GROUP BY country \nA: Show all countries and the number of singers in each country. \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT country, COUNT(*) FROM singer GROUP BY country \nA: How many singers are from each country? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT song_name FROM singer WHERE age > (SELECT AVG(age) FROM singer) \nA: List all song names by singers above the average age. \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT song_name FROM singer WHERE age > (SELECT AVG(age) FROM singer) \nA: What are all the song names by singers who are older than average? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT LOCATION, name FROM stadium WHERE capacity BETWEEN 5000 AND 10000 \nA: Show location and name for all stadiums with a capacity between 5000 and 10000. \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT LOCATION, name FROM stadium WHERE capacity BETWEEN 5000 AND 10000 \nA: What are the locations and names of all stations with capacity between 5000 and 10000? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT MAX(capacity), average FROM stadium \nA: What is the maximum capacity and the average of all stadiums ? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT AVG(capacity), MAX(capacity) FROM stadium \nA: What is the average and maximum capacities for all stadiums ? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT name, capacity FROM stadium ORDER BY average DESC LIMIT 1 \nA: What is the name and capacity for the stadium with highest average attendance? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT name, capacity FROM stadium ORDER BY average DESC LIMIT 1 \nA: What is the name and capacity for the stadium with the highest average attendance? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT COUNT(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015 \nA: How many concerts are there in year 2014 or 2015? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT COUNT(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015 \nA: How many concerts occurred in 2014 or 2015? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT T2.name, COUNT(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id \nA: Show the stadium name and the number of concerts in each stadium. \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT T2.name, COUNT(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id \nA: For each stadium, how many concerts play there? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT T2.name, T2.capacity FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year >= 2014 GROUP BY T2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: Show the stadium name and capacity with most number of concerts in year 2014 or after. \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT t2.name, t2.capacity FROM concert AS t1 JOIN stadium AS t2 ON t1.stadium_id = t2.stadium_id WHERE t1.year > 2013 GROUP BY t2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the name and capacity of the stadium with the most concerts after 2013 ? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT YEAR FROM concert GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which year has most number of concerts? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT YEAR FROM concert GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the year that had the most concerts? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT name FROM stadium WHERE NOT stadium_id IN (SELECT stadium_id FROM concert) \nA: Show the stadium names without any concert. \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT name FROM stadium WHERE NOT stadium_id IN (SELECT stadium_id FROM concert) \nA: What are the names of the stadiums without any concerts? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT country FROM singer WHERE age > 40 INTERSECT SELECT country FROM singer WHERE age < 30 \nA: Show countries where a singer above age 40 and a singer below 30 are from. \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year = 2014 \nA: Show names for all stadiums except for stadiums having a concert in year 2014. \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year = 2014 \nA: What are the names of all stadiums that did not have a concert in 2014? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT T2.concert_name, T2.theme, COUNT(*) FROM singer_in_concert AS T1 JOIN concert AS T2 ON T1.concert_id = T2.concert_id GROUP BY T2.concert_id \nA: Show the name and theme for all concerts and the number of singers in each concert. \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT t2.concert_name, t2.theme, COUNT(*) FROM singer_in_concert AS t1 JOIN concert AS t2 ON t1.concert_id = t2.concert_id GROUP BY t2.concert_id \nA: What are the names , themes , and number of singers for every concert ? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT T2.name, COUNT(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id \nA: List singer names and number of concerts for each singer. \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT T2.name, COUNT(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id \nA: What are the names of the singers and number of concerts for each person? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014 \nA: List all singer names in concerts in year 2014. \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014 \nA: What are the names of the singers who performed in a concert in 2014? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT name, country FROM singer WHERE song_name LIKE '%Hey%' \nA: what is the name and nation of the singer who have a song having 'Hey' in its name? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT name, country FROM singer WHERE song_name LIKE '%Hey%' \nA: What is the name and country of origin of every singer who has a song with the word 'Hey' in its title? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015 \nA: Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015. \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015 \nA: What are the names and locations of the stadiums that had concerts that occurred in both 2014 and 2015? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT COUNT(*) FROM concert WHERE stadium_id = (SELECT stadium_id FROM stadium ORDER BY capacity DESC LIMIT 1) \nA: Find the number of concerts happened in the stadium with the highest capacity . \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT COUNT(*) FROM concert WHERE stadium_id = (SELECT stadium_id FROM stadium ORDER BY capacity DESC LIMIT 1) \nA: What are the number of concerts that occurred in the stadium with the largest capacity ? \n Additional table information: table: concert_singer"} -{"text": "Q: SELECT COUNT(*) FROM pets WHERE weight > 10 \nA: Find the number of pets whose weight is heavier than 10. \n Additional table information: table: pets_1"} -{"text": "Q: SELECT COUNT(*) FROM pets WHERE weight > 10 \nA: How many pets have a greater weight than 10? \n Additional table information: table: pets_1"} -{"text": "Q: SELECT weight FROM pets ORDER BY pet_age NULLS FIRST LIMIT 1 \nA: Find the weight of the youngest dog. \n Additional table information: table: pets_1"} -{"text": "Q: SELECT weight FROM pets ORDER BY pet_age NULLS FIRST LIMIT 1 \nA: How much does the youngest dog weigh? \n Additional table information: table: pets_1"} -{"text": "Q: SELECT MAX(weight), petType FROM pets GROUP BY petType \nA: Find the maximum weight for each type of pet. List the maximum weight and pet type. \n Additional table information: table: pets_1"} -{"text": "Q: SELECT MAX(weight), petType FROM pets GROUP BY petType \nA: List the maximum weight and type for each type of pet. \n Additional table information: table: pets_1"} -{"text": "Q: SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20 \nA: Find number of pets owned by students who are older than 20. \n Additional table information: table: pets_1"} -{"text": "Q: SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20 \nA: How many pets are owned by students that have an age greater than 20? \n Additional table information: table: pets_1"} -{"text": "Q: SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog' \nA: Find the number of dog pets that are raised by female students (with sex F). \n Additional table information: table: pets_1"} -{"text": "Q: SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog' \nA: How many dog pets are raised by female students? \n Additional table information: table: pets_1"} -{"text": "Q: SELECT COUNT(DISTINCT pettype) FROM pets \nA: Find the number of distinct type of pets. \n Additional table information: table: pets_1"} -{"text": "Q: SELECT COUNT(DISTINCT pettype) FROM pets \nA: How many different types of pet are there? \n Additional table information: table: pets_1"} -{"text": "Q: SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog' \nA: Find the first name of students who have cat or dog pet. \n Additional table information: table: pets_1"} -{"text": "Q: SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog' \nA: What are the first names of every student who has a cat or dog as a pet? \n Additional table information: table: pets_1"} -{"text": "Q: SELECT t1.fname FROM student AS t1 JOIN has_pet AS t2 ON t1.stuid = t2.stuid JOIN pets AS t3 ON t3.petid = t2.petid WHERE t3.pettype = 'cat' INTERSECT SELECT t1.fname FROM student AS t1 JOIN has_pet AS t2 ON t1.stuid = t2.stuid JOIN pets AS t3 ON t3.petid = t2.petid WHERE t3.pettype = 'dog' \nA: Find the first name of students who have both cat and dog pets . \n Additional table information: table: pets_1"} -{"text": "Q: SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' INTERSECT SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' \nA: What are the students' first names who have both cats and dogs as pets? \n Additional table information: table: pets_1"} -{"text": "Q: SELECT major, age FROM student WHERE NOT stuid IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat') \nA: Find the major and age of students who do not have a cat pet. \n Additional table information: table: pets_1"} -{"text": "Q: SELECT major, age FROM student WHERE NOT stuid IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat') \nA: What major is every student who does not own a cat as a pet, and also how old are they? \n Additional table information: table: pets_1"} -{"text": "Q: SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' \nA: Find the id of students who do not have a cat pet. \n Additional table information: table: pets_1"} -{"text": "Q: SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' \nA: What are the ids of the students who do not own cats as pets? \n Additional table information: table: pets_1"} -{"text": "Q: SELECT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND NOT T1.stuid IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat') \nA: Find the first name and age of students who have a dog but do not have a cat as a pet. \n Additional table information: table: pets_1"} -{"text": "Q: SELECT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND NOT T1.stuid IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat') \nA: What is the first name of every student who has a dog but does not have a cat? \n Additional table information: table: pets_1"} -{"text": "Q: SELECT pettype, weight FROM pets ORDER BY pet_age NULLS FIRST LIMIT 1 \nA: Find the type and weight of the youngest pet. \n Additional table information: table: pets_1"} -{"text": "Q: SELECT pettype, weight FROM pets ORDER BY pet_age NULLS FIRST LIMIT 1 \nA: What type of pet is the youngest animal, and how much does it weigh? \n Additional table information: table: pets_1"} -{"text": "Q: SELECT petid, weight FROM pets WHERE pet_age > 1 \nA: Find the id and weight of all pets whose age is older than 1. \n Additional table information: table: pets_1"} -{"text": "Q: SELECT petid, weight FROM pets WHERE pet_age > 1 \nA: What is the id and weight of every pet who is older than 1? \n Additional table information: table: pets_1"} -{"text": "Q: SELECT AVG(pet_age), MAX(pet_age), pettype FROM pets GROUP BY pettype \nA: Find the average and maximum age for each type of pet. \n Additional table information: table: pets_1"} -{"text": "Q: SELECT AVG(pet_age), MAX(pet_age), pettype FROM pets GROUP BY pettype \nA: What is the average and maximum age for each pet type? \n Additional table information: table: pets_1"} -{"text": "Q: SELECT AVG(weight), pettype FROM pets GROUP BY pettype \nA: Find the average weight for each pet type. \n Additional table information: table: pets_1"} -{"text": "Q: SELECT AVG(weight), pettype FROM pets GROUP BY pettype \nA: What is the average weight for each type of pet? \n Additional table information: table: pets_1"} -{"text": "Q: SELECT DISTINCT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid \nA: Find the first name and age of students who have a pet. \n Additional table information: table: pets_1"} -{"text": "Q: SELECT DISTINCT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid \nA: What are the different first names and ages of the students who do have pets? \n Additional table information: table: pets_1"} -{"text": "Q: SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith' \nA: Find the id of the pet owned by student whose last name is \u2018Smith\u2019. \n Additional table information: table: pets_1"} -{"text": "Q: SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith' \nA: What is the id of the pet owned by the student whose last name is 'Smith'? \n Additional table information: table: pets_1"} -{"text": "Q: SELECT COUNT(*), T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid \nA: Find the number of pets for each student who has any pet and student id. \n Additional table information: table: pets_1"} -{"text": "Q: SELECT COUNT(*), t1.stuid FROM student AS t1 JOIN has_pet AS t2 ON t1.stuid = t2.stuid GROUP BY t1.stuid \nA: For students who have pets , how many pets does each student have ? list their ids instead of names . \n Additional table information: table: pets_1"} -{"text": "Q: SELECT T1.fname, T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING COUNT(*) > 1 \nA: Find the first name and gender of student who have more than one pet. \n Additional table information: table: pets_1"} -{"text": "Q: SELECT T1.fname, T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING COUNT(*) > 1 \nA: What is the first name and gender of the all the students who have more than one pet? \n Additional table information: table: pets_1"} -{"text": "Q: SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat' \nA: Find the last name of the student who has a cat that is age 3. \n Additional table information: table: pets_1"} -{"text": "Q: SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat' \nA: What is the last name of the student who has a cat that is 3 years old? \n Additional table information: table: pets_1"} -{"text": "Q: SELECT AVG(age) FROM student WHERE NOT stuid IN (SELECT stuid FROM has_pet) \nA: Find the average age of students who do not have any pet . \n Additional table information: table: pets_1"} -{"text": "Q: SELECT AVG(age) FROM student WHERE NOT stuid IN (SELECT stuid FROM has_pet) \nA: What is the average age for all students who do not own any pets ? \n Additional table information: table: pets_1"} -{"text": "Q: SELECT COUNT(*) FROM CONTINENTS \nA: How many continents are there? \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*) FROM CONTINENTS \nA: What is the number of continents? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.ContId, T1.Continent, COUNT(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId \nA: How many countries does each continent have? List the continent id, continent name and the number of countries. \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.ContId, T1.Continent, COUNT(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId \nA: For each continent, list its id, name, and how many countries it has? \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*) FROM COUNTRIES \nA: How many countries are listed? \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*) FROM COUNTRIES \nA: How many countries exist? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.FullName, T1.Id, COUNT(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id \nA: How many models does each car maker produce? List maker full name, id and the number. \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.FullName, T1.Id, COUNT(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id \nA: What is the full name of each car maker, along with its id and how many models it produces? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC NULLS FIRST LIMIT 1 \nA: Which model of the car has the minimum horsepower? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC NULLS FIRST LIMIT 1 \nA: What is the model of the car with the smallest amount of horsepower? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT AVG(Weight) FROM CARS_DATA) \nA: Find the model of the car whose weight is below the average weight. \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT AVG(Weight) FROM CARS_DATA) \nA: What is the model for the car with a weight smaller than the average? \n Additional table information: table: car_1"} -{"text": "Q: SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970' \nA: Find the name of the makers that produced some cars in the year of 1970? \n Additional table information: table: car_1"} -{"text": "Q: SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970' \nA: What is the name of the different car makers who produced a car in 1970? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T2.Make, T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT MIN(YEAR) FROM CARS_DATA) \nA: Find the make and production time of the cars that were produced in the earliest year? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T2.Make, T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT MIN(YEAR) FROM CARS_DATA) \nA: What is the maker of the carr produced in the earliest year and what year was it? \n Additional table information: table: car_1"} -{"text": "Q: SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980 \nA: Which distinct car models are the produced after 1980? \n Additional table information: table: car_1"} -{"text": "Q: SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980 \nA: What are the different models for the cards produced after 1980? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.Continent, COUNT(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent \nA: How many car makers are there in each continents? List the continent name and the count. \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.Continent, COUNT(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent \nA: What is the name of each continent and how many car makers are there in each one? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which of the countries has the most car makers? List the country name. \n Additional table information: table: car_1"} -{"text": "Q: SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the name of the country with the most car makers? \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*), t2.fullname FROM model_list AS t1 JOIN car_makers AS t2 ON t1.maker = t2.id GROUP BY t2.id \nA: How many car models are produced by each maker ? Only list the count and the maker full name . \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*), T2.FullName, T2.id FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id GROUP BY T2.id \nA: What is the number of car models that are produced by each maker and what is the id and full name of each maker? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)' \nA: What is the accelerate of the car make amc hornet sportabout (sw)? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)' \nA: How much does the car accelerate that makes amc hornet sportabout (sw)? \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france' \nA: How many car makers are there in france? \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france' \nA: What is the number of makers of care in France? \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa' \nA: How many car models are produced in the usa? \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa' \nA: What is the count of the car models produced in the United States? \n Additional table information: table: car_1"} -{"text": "Q: SELECT AVG(mpg) FROM CARS_DATA WHERE Cylinders = 4 \nA: What is the average miles per gallon(mpg) of the cars with 4 cylinders? \n Additional table information: table: car_1"} -{"text": "Q: SELECT AVG(mpg) FROM CARS_DATA WHERE Cylinders = 4 \nA: What is the average miles per gallon of all the cards with 4 cylinders? \n Additional table information: table: car_1"} -{"text": "Q: SELECT MIN(weight) FROM cars_data WHERE cylinders = 8 AND year = 1974 \nA: What is the smallest weight of the car produced with 8 cylinders on 1974 ? \n Additional table information: table: car_1"} -{"text": "Q: SELECT MIN(weight) FROM cars_data WHERE cylinders = 8 AND year = 1974 \nA: What is the minimum weight of the car with 8 cylinders produced in 1974 ? \n Additional table information: table: car_1"} -{"text": "Q: SELECT Maker, Model FROM MODEL_LIST \nA: What are all the makers and models? \n Additional table information: table: car_1"} -{"text": "Q: SELECT Maker, Model FROM MODEL_LIST \nA: What are the makers and models? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.CountryName, T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING COUNT(*) >= 1 \nA: What are the countries having at least one car maker? List name and id. \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.CountryName, T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING COUNT(*) >= 1 \nA: What are the names and ids of all countries with at least one car maker? \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*) FROM CARS_DATA WHERE horsepower > 150 \nA: What is the number of the cars with horsepower more than 150? \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*) FROM CARS_DATA WHERE horsepower > 150 \nA: What is the number of cars with a horsepower greater than 150? \n Additional table information: table: car_1"} -{"text": "Q: SELECT AVG(Weight), YEAR FROM CARS_DATA GROUP BY YEAR \nA: What is the average weight of cars each year? \n Additional table information: table: car_1"} -{"text": "Q: SELECT AVG(Weight), YEAR FROM CARS_DATA GROUP BY YEAR \nA: What is the average weight and year for each year? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING COUNT(*) >= 3 \nA: Which countries in europe have at least 3 car manufacturers? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING COUNT(*) >= 3 \nA: What are the names of all European countries with at least 3 manufacturers? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T2.horsepower, T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1 \nA: What is the maximum horsepower and the make of the car models with 3 cylinders? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T2.horsepower, T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1 \nA: What is the largest amount of horsepower for the models with 3 cylinders and what make is it? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.mpg DESC LIMIT 1 \nA: Which model saves the most gasoline? That is to say, have the maximum miles per gallon. \n Additional table information: table: car_1"} -{"text": "Q: SELECT t1.model FROM car_names AS t1 JOIN cars_data AS t2 ON t1.makeid = t2.id ORDER BY t2.mpg DESC LIMIT 1 \nA: What is the car model with the highest mpg ? \n Additional table information: table: car_1"} -{"text": "Q: SELECT AVG(horsepower) FROM CARS_DATA WHERE YEAR < 1980 \nA: What is the average horsepower of the cars before 1980? \n Additional table information: table: car_1"} -{"text": "Q: SELECT AVG(horsepower) FROM cars_data WHERE year < 1980 \nA: What is the average horsepower for all cars produced before 1980 ? \n Additional table information: table: car_1"} -{"text": "Q: SELECT AVG(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo' \nA: What is the average edispl of the cars of model volvo? \n Additional table information: table: car_1"} -{"text": "Q: SELECT AVG(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo' \nA: What is the average edispl for all volvos? \n Additional table information: table: car_1"} -{"text": "Q: SELECT MAX(Accelerate), Cylinders FROM CARS_DATA GROUP BY Cylinders \nA: What is the maximum accelerate for different number of cylinders? \n Additional table information: table: car_1"} -{"text": "Q: SELECT MAX(Accelerate), Cylinders FROM CARS_DATA GROUP BY Cylinders \nA: What is the maximum accelerate for all the different cylinders? \n Additional table information: table: car_1"} -{"text": "Q: SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which model has the most version(make) of cars? \n Additional table information: table: car_1"} -{"text": "Q: SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY COUNT(*) DESC LIMIT 1 \nA: What model has the most different versions? \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 4 \nA: How many cars have more than 4 cylinders? \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 4 \nA: What is the number of cars with more than 4 cylinders? \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*) FROM CARS_DATA WHERE YEAR = 1980 \nA: how many cars were produced in 1980? \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*) FROM CARS_DATA WHERE YEAR = 1980 \nA: In 1980, how many cars were made? \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company' \nA: How many car models were produced by the maker with full name American Motor Company? \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company' \nA: What is the number of car models created by the car maker American Motor Company? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.FullName, T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING COUNT(*) > 3 \nA: Which makers designed more than 3 car models? List full name and the id. \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.FullName, T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING COUNT(*) > 3 \nA: What are the names and ids of all makers with more than 3 models? \n Additional table information: table: car_1"} -{"text": "Q: SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500 \nA: Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500? \n Additional table information: table: car_1"} -{"text": "Q: SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500 \nA: What are the different models created by either the car maker General Motors or weighed more than 3500? \n Additional table information: table: car_1"} -{"text": "Q: SELECT DISTINCT year FROM cars_data WHERE weight BETWEEN 3000 AND 4000 \nA: In which years cars were produced weighing no less than 3000 and no more than 4000 ? \n Additional table information: table: car_1"} -{"text": "Q: SELECT DISTINCT year FROM cars_data WHERE weight BETWEEN 3000 AND 4000 \nA: What are the different years in which there were cars produced that weighed less than 4000 and also cars that weighted more than 3000 ? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1 \nA: What is the horsepower of the car with the largest accelerate? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1 \nA: What is the horsepower of the car with the greatest accelerate? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC NULLS FIRST LIMIT 1 \nA: For model volvo, how many cylinders does the car with the least accelerate have? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC NULLS FIRST LIMIT 1 \nA: For a volvo model, how many cylinders does the version with least accelerate have? \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > (SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1) \nA: How many cars have a larger accelerate than the car with the largest horsepower? \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > (SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1) \nA: What is the number of cars with a greater accelerate than the one with the most horsepower? \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*) FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 2 \nA: How many countries has more than 2 car makers ? \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*) FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 2 \nA: What is the number of countries with more than 2 car makers ? \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6 \nA: How many cars has over 6 cylinders? \n Additional table information: table: car_1"} -{"text": "Q: SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6 \nA: What is the number of carsw ith over 6 cylinders? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1 \nA: For the cars with 4 cylinders, which model has the largest horsepower? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1 \nA: For all of the 4 cylinder cars, which model has the most horsepower? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T2.MakeId, T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT MIN(Horsepower) FROM CARS_DATA) AND T1.Cylinders <= 3 \nA: Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name. \n Additional table information: table: car_1"} -{"text": "Q: SELECT t2.makeid, t2.make FROM cars_data AS t1 JOIN car_names AS t2 ON t1.id = t2.makeid WHERE t1.horsepower > (SELECT MIN(horsepower) FROM cars_data) AND t1.cylinders < 4 \nA: Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ? \n Additional table information: table: car_1"} -{"text": "Q: SELECT MAX(mpg) FROM cars_data WHERE cylinders = 8 OR year < 1980 \nA: What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980 ? \n Additional table information: table: car_1"} -{"text": "Q: SELECT MAX(mpg) FROM cars_data WHERE cylinders = 8 OR year < 1980 \nA: What is the maximum mpg of the cars that had 8 cylinders or that were produced before 1980 ? \n Additional table information: table: car_1"} -{"text": "Q: SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName <> 'Ford Motor Company' \nA: Which models are lighter than 3500 but not built by the 'Ford Motor Company'? \n Additional table information: table: car_1"} -{"text": "Q: SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName <> 'Ford Motor Company' \nA: What are the different models wthat are lighter than 3500 but were not built by the Ford Motor Company? \n Additional table information: table: car_1"} -{"text": "Q: SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country \nA: What are the name of the countries where there is not a single car maker? \n Additional table information: table: car_1"} -{"text": "Q: SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country \nA: What are the names of the countries with no car makers? \n Additional table information: table: car_1"} -{"text": "Q: SELECT t1.id, t1.maker FROM car_makers AS t1 JOIN model_list AS t2 ON t1.id = t2.maker GROUP BY t1.id HAVING COUNT(*) >= 2 INTERSECT SELECT t1.id, t1.maker FROM car_makers AS t1 JOIN model_list AS t2 ON t1.id = t2.maker JOIN car_names AS t3 ON t2.model = t3.model GROUP BY t1.id HAVING COUNT(*) > 3 \nA: Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker . \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.Id, T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING COUNT(*) >= 2 INTERSECT SELECT T1.Id, T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model GROUP BY T1.Id HAVING COUNT(*) > 3 \nA: What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars? \n Additional table information: table: car_1"} -{"text": "Q: SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING COUNT(*) > 3 UNION SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model = 'fiat' \nA: What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model? \n Additional table information: table: car_1"} -{"text": "Q: SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 3 UNION SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country JOIN model_list AS t3 ON t2.id = t3.maker WHERE t3.model = 'fiat' \nA: What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ? \n Additional table information: table: car_1"} -{"text": "Q: SELECT Country FROM AIRLINES WHERE Airline = 'JetBlue Airways' \nA: Which country does Airline 'JetBlue Airways' belong to? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT Country FROM AIRLINES WHERE Airline = 'JetBlue Airways' \nA: What country is Jetblue Airways affiliated with? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT Abbreviation FROM AIRLINES WHERE Airline = 'JetBlue Airways' \nA: What is the abbreviation of Airline 'JetBlue Airways'? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT Abbreviation FROM AIRLINES WHERE Airline = 'JetBlue Airways' \nA: Which abbreviation corresponds to Jetblue Airways? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT Airline, Abbreviation FROM AIRLINES WHERE Country = 'USA' \nA: List all airline names and their abbreviations in 'USA'. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT Airline, Abbreviation FROM AIRLINES WHERE Country = 'USA' \nA: What are the airline names and abbreviations for airlines in the USA? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = 'Anthony' \nA: List the airport code and name in the city of Anthony. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = 'Anthony' \nA: Give the airport code and airport name corresonding to the city Anthony. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM AIRLINES \nA: How many airlines do we have? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM AIRLINES \nA: What is the total number of airlines? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM AIRPORTS \nA: How many airports do we have? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM AIRPORTS \nA: Return the number of airports. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM FLIGHTS \nA: How many flights do we have? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM FLIGHTS \nA: Return the number of flights. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT Airline FROM AIRLINES WHERE Abbreviation = 'UAL' \nA: Which airline has abbreviation 'UAL'? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT Airline FROM AIRLINES WHERE Abbreviation = 'UAL' \nA: Give the airline with abbreviation 'UAL'. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM AIRLINES WHERE Country = 'USA' \nA: How many airlines are from USA? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM AIRLINES WHERE Country = 'USA' \nA: Return the number of airlines in the USA. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT City, Country FROM AIRPORTS WHERE AirportName = 'Alton' \nA: Which city and country is the Alton airport at? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT City, Country FROM AIRPORTS WHERE AirportName = 'Alton' \nA: Give the city and country for the Alton airport. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT AirportName FROM AIRPORTS WHERE AirportCode = 'AKO' \nA: What is the airport name for airport 'AKO'? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT AirportName FROM AIRPORTS WHERE AirportCode = 'AKO' \nA: Return the name of the airport with code 'AKO'. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT AirportName FROM AIRPORTS WHERE City = 'Aberdeen' \nA: What are airport names at City 'Aberdeen'? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT AirportName FROM AIRPORTS WHERE City = 'Aberdeen' \nA: What are the names of airports in Aberdeen? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport = 'APG' \nA: How many flights depart from 'APG'? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport = 'APG' \nA: Count the number of flights departing from 'APG'. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM FLIGHTS WHERE DestAirport = 'ATO' \nA: How many flights have destination ATO? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM FLIGHTS WHERE DestAirport = 'ATO' \nA: Count the number of flights into ATO. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Aberdeen' \nA: How many flights depart from City Aberdeen? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Aberdeen' \nA: Return the number of flights departing from Aberdeen. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = 'Aberdeen' \nA: How many flights arriving in Aberdeen city? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = 'Aberdeen' \nA: Return the number of flights arriving in Aberdeen. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = 'Ashley' AND T3.City = 'Aberdeen' \nA: How many flights depart from City 'Aberdeen' and have destination City 'Ashley'? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = 'Ashley' AND T3.City = 'Aberdeen' \nA: How many flights fly from Aberdeen to Ashley? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = 'JetBlue Airways' \nA: How many flights does airline 'JetBlue Airways' have? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = 'JetBlue Airways' \nA: Give the number of Jetblue Airways flights. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = 'United Airlines' AND T2.DestAirport = 'ASY' \nA: How many 'United Airlines' flights go to Airport 'ASY'? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = 'United Airlines' AND T2.DestAirport = 'ASY' \nA: Count the number of United Airlines flights arriving in ASY Airport. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = 'United Airlines' AND T2.SourceAirport = 'AHD' \nA: How many 'United Airlines' flights depart from Airport 'AHD'? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = 'United Airlines' AND T2.SourceAirport = 'AHD' \nA: Return the number of United Airlines flights leaving from AHD Airport. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = 'Aberdeen' AND T3.Airline = 'United Airlines' \nA: How many United Airlines flights go to City 'Aberdeen'? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = 'Aberdeen' AND T3.Airline = 'United Airlines' \nA: Count the number of United Airlines flights that arrive in Aberdeen. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which city has most number of arriving flights? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which city has the most frequent destination airport? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which city has most number of departing flights? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which city is the most frequent source airport? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the code of airport that has the highest number of flights? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the airport code of the airport with the most flights? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) NULLS FIRST LIMIT 1 \nA: What is the code of airport that has fewest number of flights? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) NULLS FIRST LIMIT 1 \nA: Give the code of the airport with the least flights. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which airline has most number of flights? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) DESC LIMIT 1 \nA: What airline serves the most flights? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.Abbreviation, T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) NULLS FIRST LIMIT 1 \nA: Find the abbreviation and country of the airline that has fewest number of flights? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.Abbreviation, T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) NULLS FIRST LIMIT 1 \nA: What is the abbreviation of the airilne has the fewest flights and what country is it in? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'AHD' \nA: What are airlines that have some flight departing from airport 'AHD'? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'AHD' \nA: Which airlines have a flight with source airport AHD? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = 'AHD' \nA: What are airlines that have flights arriving at airport 'AHD'? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = 'AHD' \nA: Which airlines have a flight with destination airport AHD? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'APG' INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'CVO' \nA: Find all airlines that have flights from both airports 'APG' and 'CVO'. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'APG' INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'CVO' \nA: Which airlines have departing flights from both APG and CVO airports? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'CVO' EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'APG' \nA: Find all airlines that have flights from airport 'CVO' but not from 'APG'. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'CVO' EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'APG' \nA: Which airlines have departures from CVO but not from APG airports? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING COUNT(*) > 10 \nA: Find all airlines that have at least 10 flights. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING COUNT(*) > 10 \nA: Which airlines have at least 10 flights? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING COUNT(*) < 200 \nA: Find all airlines that have fewer than 200 flights. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING COUNT(*) < 200 \nA: Which airlines have less than 200 flights? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = 'United Airlines' \nA: What are flight numbers of Airline 'United Airlines'? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = 'United Airlines' \nA: Which flight numbers correspond to United Airlines flights? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = 'APG' \nA: What are flight numbers of flights departing from Airport 'APG'? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = 'APG' \nA: Give the flight numbers of flights leaving from APG. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT FlightNo FROM FLIGHTS WHERE DestAirport = 'APG' \nA: What are flight numbers of flights arriving at Airport 'APG'? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT FlightNo FROM FLIGHTS WHERE DestAirport = 'APG' \nA: Give the flight numbers of flights landing at APG. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Aberdeen' \nA: What are flight numbers of flights departing from City 'Aberdeen '? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Aberdeen' \nA: Give the flight numbers of flights leaving from Aberdeen. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = 'Aberdeen' \nA: What are flight numbers of flights arriving at City 'Aberdeen'? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = 'Aberdeen' \nA: Give the flight numbers of flights arriving in Aberdeen. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = 'Aberdeen' OR T2.city = 'Abilene' \nA: Find the number of flights landing in the city of Aberdeen or Abilene. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = 'Aberdeen' OR T2.city = 'Abilene' \nA: How many flights land in Aberdeen or Abilene? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT AirportName FROM Airports WHERE NOT AirportCode IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights) \nA: Find the name of airports which do not have any flight in and out. \n Additional table information: table: flight_2"} -{"text": "Q: SELECT AirportName FROM Airports WHERE NOT AirportCode IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights) \nA: Which airports do not have departing or arriving flights? \n Additional table information: table: flight_2"} -{"text": "Q: SELECT COUNT(*) FROM employee \nA: How many employees are there? \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT COUNT(*) FROM employee \nA: Count the number of employees \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT name FROM employee ORDER BY age NULLS FIRST \nA: Sort employee names by their age in ascending order. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT name FROM employee ORDER BY age NULLS FIRST \nA: List the names of employees and sort in ascending order of age. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT COUNT(*), city FROM employee GROUP BY city \nA: What is the number of employees from each city? \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT COUNT(*), city FROM employee GROUP BY city \nA: Count the number of employees for each city. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING COUNT(*) > 1 \nA: Which cities do more than one employee under age 30 come from? \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING COUNT(*) > 1 \nA: Find the cities that have more than one employee under age 30. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT COUNT(*), LOCATION FROM shop GROUP BY LOCATION \nA: Find the number of shops in each location. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT COUNT(*), LOCATION FROM shop GROUP BY LOCATION \nA: How many shops are there in each location? \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT manager_name, district FROM shop ORDER BY number_products DESC LIMIT 1 \nA: Find the manager name and district of the shop whose number of products is the largest. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT manager_name, district FROM shop ORDER BY number_products DESC LIMIT 1 \nA: What are the manager name and district of the shop that sells the largest number of products? \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT MIN(Number_products), MAX(Number_products) FROM shop \nA: find the minimum and maximum number of products of all stores. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT MIN(Number_products), MAX(Number_products) FROM shop \nA: What are the minimum and maximum number of products across all the shops? \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT name, LOCATION, district FROM shop ORDER BY number_products DESC \nA: Return the name, location and district of all shops in descending order of number of products. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT name, LOCATION, district FROM shop ORDER BY number_products DESC \nA: Sort all the shops by number products in descending order, and return the name, location and district of each shop. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT name FROM shop WHERE number_products > (SELECT AVG(number_products) FROM shop) \nA: Find the names of stores whose number products is more than the average number of products. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT name FROM shop WHERE number_products > (SELECT AVG(number_products) FROM shop) \nA: Which shops' number products is above the average? Give me the shop names. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY COUNT(*) DESC LIMIT 1 \nA: find the name of employee who was awarded the most times in the evaluation. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which employee received the most awards in evaluations? Give me the employee name. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1 \nA: Find the name of the employee who got the highest one time bonus. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1 \nA: Which employee received the biggest bonus? Give me the employee name. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT name FROM employee WHERE NOT Employee_ID IN (SELECT Employee_ID FROM evaluation) \nA: Find the names of employees who never won any award in the evaluation. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT name FROM employee WHERE NOT Employee_ID IN (SELECT Employee_ID FROM evaluation) \nA: What are the names of the employees who never received any evaluation? \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the name of the shop that is hiring the largest number of employees? \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which shop has the most employees? Give me the shop name. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT name FROM shop WHERE NOT shop_id IN (SELECT shop_id FROM hiring) \nA: Find the name of the shops that do not hire any employee. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT name FROM shop WHERE NOT shop_id IN (SELECT shop_id FROM hiring) \nA: Which shops run with no employees? Find the shop names \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT COUNT(*), t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name \nA: Find the number of employees hired in each shop; show the shop name as well. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT COUNT(*), t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name \nA: For each shop, return the number of employees working there and the name of the shop. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT SUM(bonus) FROM evaluation \nA: What is total bonus given in all evaluations? \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT SUM(bonus) FROM evaluation \nA: Find the total amount of bonus given in all the evaluations. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT * FROM hiring \nA: Give me all the information about hiring. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT * FROM hiring \nA: What is all the information about hiring? \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000 \nA: Which district has both stores with less than 3000 products and stores with more than 10000 products? \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000 \nA: Find the districts in which there are both shops selling less than 3000 products and shops selling more than 10000 products. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT COUNT(DISTINCT LOCATION) FROM shop \nA: How many different store locations are there? \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT COUNT(DISTINCT LOCATION) FROM shop \nA: Count the number of distinct store locations. \n Additional table information: table: employee_hire_evaluation"} -{"text": "Q: SELECT COUNT(*) FROM Documents \nA: How many documents do we have? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT COUNT(*) FROM Documents \nA: Count the number of documents. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT document_id, document_name, document_description FROM Documents \nA: List document IDs, document names, and document descriptions for all documents. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT document_id, document_name, document_description FROM Documents \nA: What are the ids, names, and descriptions for all documents? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT document_name, template_id FROM Documents WHERE Document_Description LIKE '%w%' \nA: What is the document name and template id for document with description with the letter 'w' in it? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT document_name, template_id FROM Documents WHERE Document_Description LIKE '%w%' \nA: Return the names and template ids for documents that contain the letter w in their description. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT document_id, template_id, Document_Description FROM Documents WHERE document_name = 'Robbin CV' \nA: What is the document id, template id and description for document named 'Robbin CV'? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT document_id, template_id, Document_Description FROM Documents WHERE document_name = 'Robbin CV' \nA: Return the document id, template id, and description for the document with the name Robbin CV. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT COUNT(DISTINCT template_id) FROM Documents \nA: How many different templates do all document use? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT COUNT(DISTINCT template_id) FROM Documents \nA: Count the number of different templates used for documents. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT COUNT(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT' \nA: How many documents are using the template with type code 'PPT'? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT COUNT(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT' \nA: Count the number of documents that use the PPT template type. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_id, COUNT(*) FROM Documents GROUP BY template_id \nA: Show all template ids and number of documents using each template. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_id, COUNT(*) FROM Documents GROUP BY template_id \nA: What are all different template ids used for documents, and how many times were each of them used? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT T1.template_id, T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the id and type code for the template used by the most documents? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT T1.template_id, T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: Return the id and type code of the template that is used for the greatest number of documents. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_id FROM Documents GROUP BY template_id HAVING COUNT(*) > 1 \nA: Show ids for all templates that are used by more than one document. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_id FROM Documents GROUP BY template_id HAVING COUNT(*) > 1 \nA: What are the template ids of any templates used in more than a single document? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents \nA: Show ids for all templates not used by any document. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents \nA: What are the ids for templates that are not used in any documents? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT COUNT(*) FROM Templates \nA: How many templates do we have? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT COUNT(*) FROM Templates \nA: Count the number of templates. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_id, version_number, template_type_code FROM Templates \nA: Show template ids, version numbers, and template type codes for all templates. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_id, version_number, template_type_code FROM Templates \nA: What are the ids, version numbers, and type codes for each template? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT DISTINCT template_type_code FROM Templates \nA: Show all distinct template type codes for all templates. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT DISTINCT template_type_code FROM Templates \nA: What are the different template type codes? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_id FROM Templates WHERE template_type_code = 'PP' OR template_type_code = 'PPT' \nA: What are the ids of templates with template type code PP or PPT? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_id FROM Templates WHERE template_type_code = 'PP' OR template_type_code = 'PPT' \nA: Return the ids of templates that have the code PP or PPT. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT COUNT(*) FROM Templates WHERE template_type_code = 'CV' \nA: How many templates have template type code CV? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT COUNT(*) FROM Templates WHERE template_type_code = 'CV' \nA: Count the number of templates of the type CV. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT version_number, template_type_code FROM Templates WHERE version_number > 5 \nA: What is the version number and template type code for the template with version number later than 5? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT version_number, template_type_code FROM Templates WHERE version_number > 5 \nA: Return the version numbers and template type codes of templates with a version number greater than 5. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_type_code, COUNT(*) FROM Templates GROUP BY template_type_code \nA: Show all template type codes and number of templates for each. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_type_code, COUNT(*) FROM Templates GROUP BY template_type_code \nA: What are the different template type codes, and how many templates correspond to each? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which template type code has most number of templates? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY COUNT(*) DESC LIMIT 1 \nA: Return the type code of the template type that the most templates belong to. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING COUNT(*) < 3 \nA: Show all template type codes with less than three templates. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING COUNT(*) < 3 \nA: What are the codes of template types that have fewer than 3 templates? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT MIN(Version_Number), template_type_code FROM Templates \nA: What the smallest version number and its template type code? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT MIN(Version_Number), template_type_code FROM Templates \nA: Return the lowest version number, along with its corresponding template type code. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = 'Data base' \nA: What is the template type code of the template used by document with the name 'Data base'? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = 'Data base' \nA: Return the template type code of the template that is used by a document named Data base. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = 'BK' \nA: Show all document names using templates with template type code BK. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = 'BK' \nA: What are the names of documents that use templates with the code BK? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT T1.template_type_code, COUNT(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code \nA: Show all template type codes and the number of documents using each type. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT T1.template_type_code, COUNT(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code \nA: What are the different template type codes, and how many documents use each type? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which template type code is used by most number of documents? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY COUNT(*) DESC LIMIT 1 \nA: Return the code of the template type that is most commonly used in documents. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id \nA: Show all template type codes that are not used by any document. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id \nA: What are the codes of template types that are not used for any document? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_type_code, template_type_description FROM Ref_template_types \nA: Show all template type codes and descriptions. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_type_code, template_type_description FROM Ref_template_types \nA: What are the type codes and descriptions for all template types? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_type_description FROM Ref_template_types WHERE template_type_code = 'AD' \nA: What is the template type descriptions for template type code 'AD'. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_type_description FROM Ref_template_types WHERE template_type_code = 'AD' \nA: Return the template type description of the template type with the code AD. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_type_code FROM Ref_template_types WHERE template_type_description = 'Book' \nA: What is the template type code for template type description 'Book'. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT template_type_code FROM Ref_template_types WHERE template_type_description = 'Book' \nA: Return the type code of the template type with the description 'Book'. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID \nA: What are the distinct template type descriptions for the templates ever used by any document? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID \nA: Return the different descriptions for templates that have been used in a document. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = 'Presentation' \nA: What are the template ids with template type description 'Presentation'. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = 'Presentation' \nA: Return the ids corresponding to templates with the description 'Presentation'. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT COUNT(*) FROM Paragraphs \nA: How many paragraphs in total? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT COUNT(*) FROM Paragraphs \nA: Count the number of paragraphs. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show' \nA: How many paragraphs for the document with name 'Summer Show'? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show' \nA: Count the number of paragraphs in the document named 'Summer Show'. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT other_details FROM paragraphs WHERE paragraph_text LIKE 'korea' \nA: Show paragraph details for paragraph with text 'Korea ' . \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT other_details FROM paragraphs WHERE paragraph_text LIKE 'korea' \nA: What are the details for the paragraph that includes the text 'Korea ' ? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT T1.paragraph_id, T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY' \nA: Show all paragraph ids and texts for the document with name 'Welcome to NY'. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT T1.paragraph_id, T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY' \nA: What are the ids and texts of paragraphs in the document titled 'Welcome to NY'? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = 'Customer reviews' \nA: Show all paragraph texts for the document 'Customer reviews'. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = 'Customer reviews' \nA: What are the paragraph texts for the document with the name 'Customer reviews'? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT document_id, COUNT(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id NULLS FIRST \nA: Show all document ids and the number of paragraphs in each document. Order by document id. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT document_id, COUNT(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id NULLS FIRST \nA: Return the different document ids along with the number of paragraphs corresponding to each, ordered by id. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT T1.document_id, T2.document_name, COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id \nA: Show all document ids, names and the number of paragraphs in each document. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT T1.document_id, T2.document_name, COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id \nA: What are the ids and names of each document, as well as the number of paragraphs in each? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) >= 2 \nA: List all document ids with at least two paragraphs. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) >= 2 \nA: What are the ids of documents that have 2 or more paragraphs? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT T1.document_id, T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the document id and name with greatest number of paragraphs? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT T1.document_id, T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: Return the id and name of the document with the most paragraphs. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY COUNT(*) ASC NULLS FIRST LIMIT 1 \nA: What is the document id with least number of paragraphs? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY COUNT(*) ASC NULLS FIRST LIMIT 1 \nA: Return the id of the document with the fewest paragraphs. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) BETWEEN 1 AND 2 \nA: What is the document id with 1 to 2 paragraphs? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) BETWEEN 1 AND 2 \nA: Give the ids of documents that have between one and two paragraphs. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland' \nA: Show the document id with paragraph text 'Brazil' and 'Ireland'. \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland' \nA: What are the ids of documents that contain the paragraph text 'Brazil' and 'Ireland'? \n Additional table information: table: cre_Doc_Template_Mgt"} -{"text": "Q: SELECT COUNT(*) FROM teacher \nA: How many teachers are there? \n Additional table information: table: course_teach"} -{"text": "Q: SELECT COUNT(*) FROM teacher \nA: What is the total count of teachers? \n Additional table information: table: course_teach"} -{"text": "Q: SELECT Name FROM teacher ORDER BY Age ASC NULLS FIRST \nA: List the names of teachers in ascending order of age. \n Additional table information: table: course_teach"} -{"text": "Q: SELECT Name FROM teacher ORDER BY Age ASC NULLS FIRST \nA: What are the names of the teachers ordered by ascending age? \n Additional table information: table: course_teach"} -{"text": "Q: SELECT Age, Hometown FROM teacher \nA: What are the age and hometown of teachers? \n Additional table information: table: course_teach"} -{"text": "Q: SELECT Age, Hometown FROM teacher \nA: What is the age and hometown of every teacher? \n Additional table information: table: course_teach"} -{"text": "Q: SELECT name FROM teacher WHERE hometown <> 'little lever urban district' \nA: List the name of teachers whose hometown is not `` Little Lever Urban District '' . \n Additional table information: table: course_teach"} -{"text": "Q: SELECT name FROM teacher WHERE hometown <> 'little lever urban district' \nA: What are the names of the teachers whose hometown is not `` Little Lever Urban District '' ? \n Additional table information: table: course_teach"} -{"text": "Q: SELECT Name FROM teacher WHERE Age = 32 OR Age = 33 \nA: Show the name of teachers aged either 32 or 33? \n Additional table information: table: course_teach"} -{"text": "Q: SELECT Name FROM teacher WHERE Age = 32 OR Age = 33 \nA: What are the names of the teachers who are aged either 32 or 33? \n Additional table information: table: course_teach"} -{"text": "Q: SELECT Hometown FROM teacher ORDER BY Age ASC NULLS FIRST LIMIT 1 \nA: What is the hometown of the youngest teacher? \n Additional table information: table: course_teach"} -{"text": "Q: SELECT Hometown FROM teacher ORDER BY Age ASC NULLS FIRST LIMIT 1 \nA: Where is the youngest teacher from? \n Additional table information: table: course_teach"} -{"text": "Q: SELECT Hometown, COUNT(*) FROM teacher GROUP BY Hometown \nA: Show different hometown of teachers and the number of teachers from each hometown. \n Additional table information: table: course_teach"} -{"text": "Q: SELECT Hometown, COUNT(*) FROM teacher GROUP BY Hometown \nA: For each hometown, how many teachers are there? \n Additional table information: table: course_teach"} -{"text": "Q: SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1 \nA: List the most common hometown of teachers. \n Additional table information: table: course_teach"} -{"text": "Q: SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the most commmon hometowns for teachers? \n Additional table information: table: course_teach"} -{"text": "Q: SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2 \nA: Show the hometowns shared by at least two teachers. \n Additional table information: table: course_teach"} -{"text": "Q: SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2 \nA: What are the towns from which at least two teachers come from? \n Additional table information: table: course_teach"} -{"text": "Q: SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID \nA: Show names of teachers and the courses they are arranged to teach. \n Additional table information: table: course_teach"} -{"text": "Q: SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID \nA: What is the name of each teacher and what course they teach? \n Additional table information: table: course_teach"} -{"text": "Q: SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name NULLS FIRST \nA: Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name. \n Additional table information: table: course_teach"} -{"text": "Q: SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name NULLS FIRST \nA: What are the names of the teachers and the courses they teach in ascending alphabetical order by the name of the teacher? \n Additional table information: table: course_teach"} -{"text": "Q: SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = 'Math' \nA: Show the name of the teacher for the math course. \n Additional table information: table: course_teach"} -{"text": "Q: SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = 'Math' \nA: What are the names of the people who teach math courses? \n Additional table information: table: course_teach"} -{"text": "Q: SELECT T2.Name, COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name \nA: Show names of teachers and the number of courses they teach. \n Additional table information: table: course_teach"} -{"text": "Q: SELECT T2.Name, COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name \nA: What are the names of the teachers and how many courses do they teach? \n Additional table information: table: course_teach"} -{"text": "Q: SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2 \nA: Show names of teachers that teach at least two courses. \n Additional table information: table: course_teach"} -{"text": "Q: SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2 \nA: What are the names of the teachers who teach at least two courses? \n Additional table information: table: course_teach"} -{"text": "Q: SELECT Name FROM teacher WHERE NOT Teacher_id IN (SELECT Teacher_id FROM course_arrange) \nA: List the names of teachers who have not been arranged to teach courses. \n Additional table information: table: course_teach"} -{"text": "Q: SELECT Name FROM teacher WHERE NOT Teacher_id IN (SELECT Teacher_id FROM course_arrange) \nA: What are the names of the teachers whose courses have not been arranged? \n Additional table information: table: course_teach"} -{"text": "Q: SELECT COUNT(*) FROM visitor WHERE age < 30 \nA: How many visitors below age 30 are there? \n Additional table information: table: museum_visit"} -{"text": "Q: SELECT name FROM visitor WHERE Level_of_membership > 4 ORDER BY Level_of_membership DESC \nA: Find the names of the visitors whose membership level is higher than 4, and order the results by the level from high to low. \n Additional table information: table: museum_visit"} -{"text": "Q: SELECT AVG(age) FROM visitor WHERE Level_of_membership <= 4 \nA: What is the average age of the visitors whose membership level is not higher than 4? \n Additional table information: table: museum_visit"} -{"text": "Q: SELECT name, Level_of_membership FROM visitor WHERE Level_of_membership > 4 ORDER BY age DESC \nA: Find the name and membership level of the visitors whose membership level is higher than 4, and sort by their age from old to young. \n Additional table information: table: museum_visit"} -{"text": "Q: SELECT museum_id, name FROM museum ORDER BY num_of_staff DESC LIMIT 1 \nA: Find the id and name of the museum that has the most staff members? \n Additional table information: table: museum_visit"} -{"text": "Q: SELECT AVG(num_of_staff) FROM museum WHERE open_year < 2009 \nA: Find the average number of staff working for the museums that were open before 2009. \n Additional table information: table: museum_visit"} -{"text": "Q: SELECT Num_of_Staff, Open_Year FROM museum WHERE name = 'Plaza Museum' \nA: What are the opening year and staff number of the museum named Plaza Museum? \n Additional table information: table: museum_visit"} -{"text": "Q: SELECT name FROM museum WHERE num_of_staff > (SELECT MIN(num_of_staff) FROM museum WHERE open_year > 2010) \nA: find the names of museums which have more staff than the minimum staff number of all museums opened after 2010. \n Additional table information: table: museum_visit"} -{"text": "Q: SELECT t1.id, t1.name, t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t1.id HAVING COUNT(*) > 1 \nA: find the id, name and age for visitors who visited some museums more than once. \n Additional table information: table: museum_visit"} -{"text": "Q: SELECT t2.visitor_id, t1.name, t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t2.visitor_id ORDER BY SUM(t2.Total_spent) DESC LIMIT 1 \nA: What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets? \n Additional table information: table: museum_visit"} -{"text": "Q: SELECT t2.Museum_ID, t1.name FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID GROUP BY t2.Museum_ID ORDER BY COUNT(*) DESC LIMIT 1 \nA: What are the id and name of the museum visited most times? \n Additional table information: table: museum_visit"} -{"text": "Q: SELECT name FROM museum WHERE NOT Museum_ID IN (SELECT museum_id FROM visit) \nA: What is the name of the museum that had no visitor yet? \n Additional table information: table: museum_visit"} -{"text": "Q: SELECT t1.name, t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id ORDER BY t2.num_of_ticket DESC LIMIT 1 \nA: Find the name and age of the visitor who bought the most tickets at once. \n Additional table information: table: museum_visit"} -{"text": "Q: SELECT AVG(num_of_ticket), MAX(num_of_ticket) FROM visit \nA: What are the average and maximum number of tickets bought in all visits? \n Additional table information: table: museum_visit"} -{"text": "Q: SELECT SUM(t2.Total_spent) FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id WHERE t1.Level_of_membership = 1 \nA: What is the total ticket expense of the visitors whose membership level is 1? \n Additional table information: table: museum_visit"} -{"text": "Q: SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year < 2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year > 2011 \nA: What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011? \n Additional table information: table: museum_visit"} -{"text": "Q: SELECT COUNT(*) FROM visitor WHERE NOT id IN (SELECT t2.visitor_id FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID WHERE t1.open_year > 2010) \nA: Find the number of visitors who did not visit any museum opened after 2010. \n Additional table information: table: museum_visit"} -{"text": "Q: SELECT COUNT(*) FROM museum WHERE open_year > 2013 OR open_year < 2008 \nA: How many museums were opened after 2013 or before 2008? \n Additional table information: table: museum_visit"} -{"text": "Q: SELECT COUNT(*) FROM players \nA: Find the total number of players. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT COUNT(*) FROM players \nA: How many players are there? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT COUNT(*) FROM matches \nA: Find the total number of matches. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT COUNT(*) FROM matches \nA: Count the number of matches. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT first_name, birth_date FROM players WHERE country_code = 'USA' \nA: List the first name and birth date of all players from the country with code USA. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT first_name, birth_date FROM players WHERE country_code = 'USA' \nA: What are the first names and birth dates of players from the USA? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT AVG(loser_age), AVG(winner_age) FROM matches \nA: Find the average age of losers and winners of all matches. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT AVG(loser_age), AVG(winner_age) FROM matches \nA: What are the average ages of losers and winners across matches? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT AVG(winner_rank) FROM matches \nA: Find the average rank of winners in all matches. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT AVG(winner_rank) FROM matches \nA: What is the average rank for winners in all matches? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT MIN(loser_rank) FROM matches \nA: Find the highest rank of losers in all matches. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT MIN(loser_rank) FROM matches \nA: What is the best rank of losers across all matches? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT COUNT(DISTINCT country_code) FROM players \nA: find the number of distinct country codes of all players. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT COUNT(DISTINCT country_code) FROM players \nA: How many distinct countries do players come from? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT COUNT(DISTINCT loser_name) FROM matches \nA: Find the number of distinct name of losers. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT COUNT(DISTINCT loser_name) FROM matches \nA: How many different loser names are there? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT tourney_name FROM matches GROUP BY tourney_name HAVING COUNT(*) > 10 \nA: Find the name of tourney that has more than 10 matches. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT tourney_name FROM matches GROUP BY tourney_name HAVING COUNT(*) > 10 \nA: What are the names of tournaments that have more than 10 matches? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016 \nA: List the names of all winners who played in both 2013 and 2016. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016 \nA: What are the names of players who won in both 2013 and 2016? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT COUNT(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016 \nA: List the number of all matches who played in years of 2013 or 2016. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT COUNT(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016 \nA: How many matches were played in 2013 or 2016? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open' \nA: What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open' \nA: What are the first names and country codes for players who won both the WTA Championships and the Australian Open? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT first_name, country_code FROM players ORDER BY birth_date NULLS FIRST LIMIT 1 \nA: Find the first name and country code of the oldest player. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT first_name, country_code FROM players ORDER BY birth_date NULLS FIRST LIMIT 1 \nA: What is the first name and country code of the oldest player? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT first_name, last_name FROM players ORDER BY birth_date NULLS FIRST \nA: List the first and last name of all players in the order of birth date. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT first_name, last_name FROM players ORDER BY birth_date NULLS FIRST \nA: What are the full names of all players, sorted by birth date? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT first_name, last_name FROM players WHERE hand = 'L' ORDER BY birth_date NULLS FIRST \nA: List the first and last name of all players who are left / L hand in the order of birth date. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT first_name, last_name FROM players WHERE hand = 'L' ORDER BY birth_date NULLS FIRST \nA: What are the full names of all left handed players, in order of birth date? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1 \nA: Find the first name and country code of the player who did the most number of tours. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1 \nA: What is the first name and country code of the player with the most tours? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT YEAR FROM matches GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1 \nA: Find the year that has the most number of matches. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT YEAR FROM matches GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which year had the most matches? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT winner_name, winner_rank_points FROM matches GROUP BY winner_name ORDER BY COUNT(*) DESC LIMIT 1 \nA: Find the name and rank points of the winner who won the most times. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT winner_name, winner_rank_points FROM matches GROUP BY winner_name ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the name of the winner who has won the most matches, and how many rank points does this player have? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1 \nA: Find the name of the winner who has the highest rank points and participated in the Australian Open tourney. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1 \nA: What is the name of the winner with the most rank points who participated in the Australian Open tournament? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT winner_name, loser_name FROM matches ORDER BY minutes DESC LIMIT 1 \nA: find the names of loser and winner who played in the match with greatest number of minutes. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT winner_name, loser_name FROM matches ORDER BY minutes DESC LIMIT 1 \nA: What are the names of the winner and loser who played in the longest match? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT AVG(ranking), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name \nA: Find the average ranking for each player and their first name. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT AVG(ranking), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name \nA: What are the first names of all players, and their average rankings? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT SUM(ranking_points), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name \nA: Find the total ranking points for each player and their first name. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT SUM(ranking_points), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name \nA: What are the first names of all players, and their total ranking points? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT COUNT(*), country_code FROM players GROUP BY country_code \nA: find the number of players for each country. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT COUNT(*), country_code FROM players GROUP BY country_code \nA: How many players are from each country? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT country_code FROM players GROUP BY country_code ORDER BY COUNT(*) DESC LIMIT 1 \nA: find the code of the country where has the greatest number of players. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT country_code FROM players GROUP BY country_code ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the code of the country with the most players? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50 \nA: Find the codes of countries that have more than 50 players. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50 \nA: What are the codes of countries with more than 50 players? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT SUM(tours), ranking_date FROM rankings GROUP BY ranking_date \nA: Find the total number of tours for each ranking date. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT SUM(tours), ranking_date FROM rankings GROUP BY ranking_date \nA: How many total tours were there for each ranking date? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT COUNT(*), YEAR FROM matches GROUP BY YEAR \nA: Find the number of matches happened in each year. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT COUNT(*), YEAR FROM matches GROUP BY YEAR \nA: How many matches were played in each year? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT DISTINCT winner_name, winner_rank FROM matches ORDER BY winner_age NULLS FIRST LIMIT 3 \nA: Find the name and rank of the 3 youngest winners across all matches. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT DISTINCT winner_name, winner_rank FROM matches ORDER BY winner_age NULLS FIRST LIMIT 3 \nA: What are the names and ranks of the three youngest winners across all matches? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT COUNT(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L' \nA: How many different winners both participated in the WTA Championships and were left handed? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT COUNT(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L' \nA: Find the number of left handed winners who participated in the WTA Championships. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT T1.first_name, T1.country_code, T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1 \nA: Find the first name, country code and birth date of the winner who has the highest rank points in all matches. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT T1.first_name, T1.country_code, T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1 \nA: What is the first name, country code, and birth date of the player with the most winner rank points across all matches? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT COUNT(*), hand FROM players GROUP BY hand \nA: Find the number of players for each hand type. \n Additional table information: table: wta_1"} -{"text": "Q: SELECT COUNT(*), hand FROM players GROUP BY hand \nA: How many players are there for each hand type? \n Additional table information: table: wta_1"} -{"text": "Q: SELECT COUNT(*) FROM ship WHERE disposition_of_ship = 'Captured' \nA: How many ships ended up being 'Captured'? \n Additional table information: table: battle_death"} -{"text": "Q: SELECT name, tonnage FROM ship ORDER BY name DESC \nA: List the name and tonnage ordered by in descending alphaetical order for the names. \n Additional table information: table: battle_death"} -{"text": "Q: SELECT name, date FROM battle \nA: List the name, date and result of each battle. \n Additional table information: table: battle_death"} -{"text": "Q: SELECT MAX(killed), MIN(killed) FROM death \nA: What is maximum and minimum death toll caused each time? \n Additional table information: table: battle_death"} -{"text": "Q: SELECT AVG(injured) FROM death \nA: What is the average number of injuries caused each time? \n Additional table information: table: battle_death"} -{"text": "Q: SELECT T1.killed, T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id WHERE T2.tonnage = 't' \nA: What are the death and injury situations caused by the ship with tonnage 't'? \n Additional table information: table: battle_death"} -{"text": "Q: SELECT name, RESULT FROM battle WHERE bulgarian_commander <> 'Boril' \nA: What are the name and results of the battles when the bulgarian commander is not 'Boril' \n Additional table information: table: battle_death"} -{"text": "Q: SELECT DISTINCT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.ship_type = 'Brig' \nA: What are the different ids and names of the battles that lost any 'Brig' type shipes? \n Additional table information: table: battle_death"} -{"text": "Q: SELECT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING SUM(T3.killed) > 10 \nA: What are the ids and names of the battles that led to more than 10 people killed in total. \n Additional table information: table: battle_death"} -{"text": "Q: SELECT T2.id, T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the ship id and name that caused most total injuries? \n Additional table information: table: battle_death"} -{"text": "Q: SELECT name FROM battle WHERE bulgarian_commander = 'Kaloyan' AND latin_commander = 'Baldwin I' \nA: What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'? \n Additional table information: table: battle_death"} -{"text": "Q: SELECT COUNT(DISTINCT RESULT) FROM battle \nA: How many different results are there for the battles? \n Additional table information: table: battle_death"} -{"text": "Q: SELECT COUNT(*) FROM battle WHERE NOT id IN (SELECT lost_in_battle FROM ship WHERE tonnage = '225') \nA: How many battles did not lose any ship with tonnage '225'? \n Additional table information: table: battle_death"} -{"text": "Q: SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'Lettice' INTERSECT SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'HMS Atalanta' \nA: List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta' \n Additional table information: table: battle_death"} -{"text": "Q: SELECT name, RESULT, bulgarian_commander FROM battle EXCEPT SELECT T1.name, T1.result, T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.location = 'English Channel' \nA: Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'. \n Additional table information: table: battle_death"} -{"text": "Q: SELECT note FROM death WHERE note LIKE '%East%' \nA: What are the notes of the death events which has substring 'East'? \n Additional table information: table: battle_death"} -{"text": "Q: SELECT line_1, line_2 FROM addresses \nA: what are all the addresses including line 1 and line 2? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT line_1, line_2 FROM addresses \nA: What is the first and second line for all addresses? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT COUNT(*) FROM Courses \nA: How many courses in total are listed? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT COUNT(*) FROM Courses \nA: How many courses are there? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT course_description FROM Courses WHERE course_name = 'math' \nA: How is the math course described? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT course_description FROM Courses WHERE course_name = 'math' \nA: What are the descriptions for all the math courses? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea' \nA: What is the zip code of the address in the city Port Chelsea? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea' \nA: What is the zip code for Port Chelsea? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T2.department_name, T1.department_id FROM Degree_Programs AS T1 JOIN Departments AS T2 ON T1.department_id = T2.department_id GROUP BY T1.department_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which department offers the most number of degrees? List department name and id. \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT t2.department_name, t1.department_id FROM degree_programs AS t1 JOIN departments AS t2 ON t1.department_id = t2.department_id GROUP BY t1.department_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the name and id of the department with the most number of degrees ? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT COUNT(DISTINCT department_id) FROM Degree_Programs \nA: How many departments offer any degree? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT COUNT(DISTINCT department_id) FROM Degree_Programs \nA: How many different departments offer degrees? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT COUNT(DISTINCT degree_summary_name) FROM Degree_Programs \nA: How many different degree names are offered? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT COUNT(DISTINCT degree_summary_name) FROM Degree_Programs \nA: How many different degrees are offered? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT COUNT(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer' \nA: How many degrees does the engineering department offer? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT COUNT(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer' \nA: How many degrees does the engineering department have? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT section_name, section_description FROM Sections \nA: What are the names and descriptions of all the sections? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT section_name, section_description FROM Sections \nA: What are the names and descriptions for all the sections? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T1.course_name, T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING COUNT(*) <= 2 \nA: What are the names and id of courses having at most 2 sections? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T1.course_name, T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING COUNT(*) <= 2 \nA: What are the names and ids of every course with less than 2 sections? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT section_name FROM Sections ORDER BY section_name DESC \nA: List the section_name in reversed lexicographical order. \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT section_name FROM Sections ORDER BY section_name DESC \nA: What are the names of the sections in reverse alphabetical order? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T1.semester_name, T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the semester which most student registered in? Show both the name and the id. \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T1.semester_name, T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: For each semester, what is the name and id of the one with the most students registered? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT department_description FROM Departments WHERE department_name LIKE '%computer%' \nA: What is the description of the department whose name has the substring the computer? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT department_description FROM Departments WHERE department_name LIKE '%computer%' \nA: What is the department description for the one whose name has the word computer? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T1.first_name, T1.middle_name, T1.last_name, T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) = 2 \nA: Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id. \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T1.first_name, T1.middle_name, T1.last_name, T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) = 2 \nA: What are the first, middle, and last names, along with the ids, of all students who enrolled in 2 degree programs in one semester? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT DISTINCT T1.first_name, T1.middle_name, T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor' \nA: Who is enrolled in a Bachelor degree program? List the first name, middle name, last name. \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT DISTINCT T1.first_name, T1.middle_name, T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor' \nA: What are the first, middle, and last names for everybody enrolled in a Bachelors program? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY COUNT(*) DESC LIMIT 1 \nA: Find the kind of program which most number of students are enrolled in? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the degree summary name that has the most number of students enrolled? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T1.degree_program_id, T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: Find the program which most number of students are enrolled in. List both the id and the summary. \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T1.degree_program_id, T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the program id and the summary of the degree that has the most students enrolled? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T1.student_id, T1.first_name, T1.middle_name, T1.last_name, COUNT(*), T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which student has enrolled for the most times in any program? List the id, first name, middle name, last name, the number of enrollments and student id. \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T1.student_id, T1.first_name, T1.middle_name, T1.last_name, COUNT(*), T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the first, middle, and last name, along with the id and number of enrollments, for the student who enrolled the most in any program? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT semester_name FROM Semesters WHERE NOT semester_id IN (SELECT semester_id FROM Student_Enrolment) \nA: Which semesters do not have any student enrolled? List the semester name. \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT semester_name FROM Semesters WHERE NOT semester_id IN (SELECT semester_id FROM Student_Enrolment) \nA: What is the name of the semester with no students enrolled? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id \nA: What are all the course names of the courses which ever have students enrolled in? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id \nA: What are the names of all courses that have some students enrolled? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1 \nA: What's the name of the course with most number of enrollments? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the name of the course with the most students enrolled? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id \nA: Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program. \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id \nA: What are the last name of the students who live in North Carolina but have not registered in any degree programs? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING COUNT(*) >= 2 \nA: Show the date and id of the transcript with at least 2 course results. \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING COUNT(*) >= 2 \nA: What is the date and id of the transcript with at least 2 courses listed? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT cell_mobile_number FROM Students WHERE first_name = 'Timmothy' AND last_name = 'Ward' \nA: What is the phone number of the man with the first name Timmothy and the last name Ward? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT cell_mobile_number FROM students WHERE first_name = 'timmothy' AND last_name = 'ward' \nA: What is the mobile phone number of the student named Timmothy Ward ? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT first_name, middle_name, last_name FROM Students ORDER BY date_first_registered ASC NULLS FIRST LIMIT 1 \nA: Who is the first student to register? List the first name, middle name and last name. \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT first_name, middle_name, last_name FROM Students ORDER BY date_first_registered ASC NULLS FIRST LIMIT 1 \nA: What is the first, middle, and last name of the first student to register? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT first_name, middle_name, last_name FROM Students ORDER BY date_left ASC NULLS FIRST LIMIT 1 \nA: Who is the earliest graduate of the school? List the first name, middle name and last name. \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT first_name, middle_name, last_name FROM Students ORDER BY date_left ASC NULLS FIRST LIMIT 1 \nA: What is the first, middle, and last name of the earliest school graduate? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT first_name FROM Students WHERE current_address_id <> permanent_address_id \nA: Whose permanent address is different from his or her current address? List his or her first name. \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT first_name FROM Students WHERE current_address_id <> permanent_address_id \nA: What is the first name of the student whose permanent address is different from his or her current one? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T1.address_id, T1.line_1, T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.current_address_id GROUP BY T1.address_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which address holds the most number of students currently? List the address id and all lines. \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T1.address_id, T1.line_1, T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.current_address_id GROUP BY T1.address_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the id, line 1, and line 2 of the address with the most students? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT AVG(transcript_date) FROM Transcripts \nA: On average, when were the transcripts printed? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT AVG(transcript_date) FROM Transcripts \nA: What is the average transcript date? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT transcript_date, other_details FROM Transcripts ORDER BY transcript_date ASC NULLS FIRST LIMIT 1 \nA: When is the first transcript released? List the date and details. \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT transcript_date, other_details FROM Transcripts ORDER BY transcript_date ASC NULLS FIRST LIMIT 1 \nA: What is the earliest date of a transcript release, and what details can you tell me? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT COUNT(*) FROM Transcripts \nA: How many transcripts are released? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT COUNT(*) FROM Transcripts \nA: How many transcripts are listed? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1 \nA: What is the last transcript release date? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1 \nA: When was the last transcript released? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT COUNT(*), student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: How many times at most can a course enrollment result show in different transcripts? Also show the course enrollment id. \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT COUNT(*), student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the maximum number of times that a course shows up in different transcripts and what is that course's enrollment id? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY COUNT(*) ASC NULLS FIRST LIMIT 1 \nA: Show the date of the transcript which shows the least number of results, also list the id. \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY COUNT(*) ASC NULLS FIRST LIMIT 1 \nA: What is the date and id of the transcript with the least number of results? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Bachelor' \nA: Find the semester when both Master students and Bachelor students got enrolled in. \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Bachelor' \nA: What is the id of the semester that had both Masters and Bachelors students enrolled? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT COUNT(DISTINCT current_address_id) FROM Students \nA: How many different addresses do the students currently live? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT COUNT(DISTINCT current_address_id) FROM Students \nA: What are the different addresses that have students living there? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT other_student_details FROM Students ORDER BY other_student_details DESC \nA: List all the student details in reversed lexicographical order. \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT other_student_details FROM Students ORDER BY other_student_details DESC \nA: What other details can you tell me about students in reverse alphabetical order? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT section_description FROM Sections WHERE section_name = 'h' \nA: Describe the section h. \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT section_description FROM Sections WHERE section_name = 'h' \nA: What is the description for the section named h? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT t1.first_name FROM students AS t1 JOIN addresses AS t2 ON t1.permanent_address_id = t2.address_id WHERE t2.country = 'haiti' OR t1.cell_mobile_number = '09700166582' \nA: Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 . \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT t1.first_name FROM students AS t1 JOIN addresses AS t2 ON t1.permanent_address_id = t2.address_id WHERE t2.country = 'haiti' OR t1.cell_mobile_number = '09700166582' \nA: What are the first names of the students who live in Haiti permanently or have the cell phone number 09700166582 ? \n Additional table information: table: student_transcripts_tracking"} -{"text": "Q: SELECT Title FROM Cartoon ORDER BY title NULLS FIRST \nA: List the title of all cartoons in alphabetical order. \n Additional table information: table: tvshow"} -{"text": "Q: SELECT Title FROM Cartoon ORDER BY title NULLS FIRST \nA: What are the titles of the cartoons sorted alphabetically? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT Title FROM Cartoon WHERE Directed_by = 'Ben Jones' \nA: List all cartoon directed by 'Ben Jones'. \n Additional table information: table: tvshow"} -{"text": "Q: SELECT Title FROM Cartoon WHERE Directed_by = 'Ben Jones' \nA: What are the names of all cartoons directed by Ben Jones? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT COUNT(*) FROM Cartoon WHERE Written_by = 'Joseph Kuhr' \nA: How many cartoons were written by 'Joseph Kuhr'? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT COUNT(*) FROM Cartoon WHERE Written_by = 'Joseph Kuhr' \nA: What is the number of cartoones written by Joseph Kuhr? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT title, Directed_by FROM Cartoon ORDER BY Original_air_date NULLS FIRST \nA: list all cartoon titles and their directors ordered by their air date \n Additional table information: table: tvshow"} -{"text": "Q: SELECT title, Directed_by FROM Cartoon ORDER BY Original_air_date NULLS FIRST \nA: What is the name and directors of all the cartoons that are ordered by air date? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT Title FROM Cartoon WHERE Directed_by = 'Ben Jones' OR Directed_by = 'Brandon Vietti' \nA: List the title of all cartoon directed by 'Ben Jones' or 'Brandon Vietti'. \n Additional table information: table: tvshow"} -{"text": "Q: SELECT Title FROM Cartoon WHERE Directed_by = 'Ben Jones' OR Directed_by = 'Brandon Vietti' \nA: What are the titles of all cartoons directed by Ben Jones or Brandon Vietti? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT Country, COUNT(*) FROM TV_Channel GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which country has the most of TV Channels? List the country and number of TV Channels it has. \n Additional table information: table: tvshow"} -{"text": "Q: SELECT Country, COUNT(*) FROM TV_Channel GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the country with the most number of TV Channels and how many does it have? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT COUNT(DISTINCT series_name), COUNT(DISTINCT content) FROM TV_Channel \nA: List the number of different series names and contents in the TV Channel table. \n Additional table information: table: tvshow"} -{"text": "Q: SELECT COUNT(DISTINCT series_name), COUNT(DISTINCT content) FROM TV_Channel \nA: How many different series and contents are listed in the TV Channel table? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT Content FROM TV_Channel WHERE series_name = 'Sky Radio' \nA: What is the content of TV Channel with serial name 'Sky Radio'? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT Content FROM TV_Channel WHERE series_name = 'Sky Radio' \nA: What is the content of the series Sky Radio? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT Package_Option FROM TV_Channel WHERE series_name = 'Sky Radio' \nA: What is the Package Option of TV Channel with serial name 'Sky Radio'? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT Package_Option FROM TV_Channel WHERE series_name = 'Sky Radio' \nA: What are the Package Options of the TV Channels whose series names are Sky Radio? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT COUNT(*) FROM TV_Channel WHERE LANGUAGE = 'English' \nA: How many TV Channel using language English? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT COUNT(*) FROM TV_Channel WHERE LANGUAGE = 'English' \nA: How many TV Channels use the English language? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY COUNT(*) ASC NULLS FIRST LIMIT 1 \nA: List the language used least number of TV Channel. List language and number of TV Channel. \n Additional table information: table: tvshow"} -{"text": "Q: SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY COUNT(*) ASC NULLS FIRST LIMIT 1 \nA: What are the languages used by the least number of TV Channels and how many channels use it? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE \nA: List each language and the number of TV Channels using it. \n Additional table information: table: tvshow"} -{"text": "Q: SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE \nA: For each language, list the number of TV Channels that use it. \n Additional table information: table: tvshow"} -{"text": "Q: SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = 'The Rise of the Blue Beetle!' \nA: What is the TV Channel that shows the cartoon 'The Rise of the Blue Beetle!'? List the TV Channel's series name. \n Additional table information: table: tvshow"} -{"text": "Q: SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = 'The Rise of the Blue Beetle!' \nA: What is the series name of the TV Channel that shows the cartoon 'The Rise of the Blue Beetle'? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = 'Sky Radio' \nA: List the title of all Cartoons showed on TV Channel with series name 'Sky Radio'. \n Additional table information: table: tvshow"} -{"text": "Q: SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = 'Sky Radio' \nA: What is the title of all the cartools that are on the TV Channel with the series name 'Sky Radio'? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT Episode FROM TV_series ORDER BY rating NULLS FIRST \nA: List the Episode of all TV series sorted by rating. \n Additional table information: table: tvshow"} -{"text": "Q: SELECT Episode FROM TV_series ORDER BY rating NULLS FIRST \nA: What are all of the episodes ordered by ratings? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT Episode, Rating FROM TV_series ORDER BY Rating DESC LIMIT 3 \nA: List top 3 highest Rating TV series. List the TV series's Episode and Rating. \n Additional table information: table: tvshow"} -{"text": "Q: SELECT Episode, Rating FROM TV_series ORDER BY Rating DESC LIMIT 3 \nA: What are 3 most highly rated episodes in the TV series table and what were those ratings? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT MAX(SHARE), MIN(SHARE) FROM TV_series \nA: What is minimum and maximum share of TV series? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT MAX(SHARE), MIN(SHARE) FROM TV_series \nA: What is the maximum and minimum share for the TV series? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT Air_Date FROM TV_series WHERE Episode = 'A Love of a Lifetime' \nA: What is the air date of TV series with Episode 'A Love of a Lifetime'? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT Air_Date FROM TV_series WHERE Episode = 'A Love of a Lifetime' \nA: When did the episode 'A Love of a Lifetime' air? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT Weekly_Rank FROM TV_series WHERE Episode = 'A Love of a Lifetime' \nA: What is Weekly Rank of TV series with Episode 'A Love of a Lifetime'? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT Weekly_Rank FROM TV_series WHERE Episode = 'A Love of a Lifetime' \nA: What is the weekly rank for the episode 'A Love of a Lifetime'? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = 'A Love of a Lifetime' \nA: What is the TV Channel of TV series with Episode 'A Love of a Lifetime'? List the TV Channel's series name. \n Additional table information: table: tvshow"} -{"text": "Q: SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = 'A Love of a Lifetime' \nA: What is the name of the series that has the episode 'A Love of a Lifetime'? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = 'Sky Radio' \nA: List the Episode of all TV series showed on TV Channel with series name 'Sky Radio'. \n Additional table information: table: tvshow"} -{"text": "Q: SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = 'Sky Radio' \nA: What is the episode for the TV series named 'Sky Radio'? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT COUNT(*), Directed_by FROM cartoon GROUP BY Directed_by \nA: Find the number of cartoons directed by each of the listed directors. \n Additional table information: table: tvshow"} -{"text": "Q: SELECT COUNT(*), Directed_by FROM cartoon GROUP BY Directed_by \nA: How many cartoons did each director create? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT production_code, channel FROM cartoon ORDER BY original_air_date DESC LIMIT 1 \nA: Find the production code and channel of the most recently aired cartoon . \n Additional table information: table: tvshow"} -{"text": "Q: SELECT production_code, channel FROM cartoon ORDER BY original_air_date DESC LIMIT 1 \nA: What is the produdction code and channel of the most recent cartoon ? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT package_option, series_name FROM TV_Channel WHERE hight_definition_TV = 'yes' \nA: Find the package choice and series name of the TV channel that has high definition TV. \n Additional table information: table: tvshow"} -{"text": "Q: SELECT package_option, series_name FROM TV_Channel WHERE hight_definition_TV = 'yes' \nA: What are the package options and the name of the series for the TV Channel that supports high definition TV? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey' \nA: which countries' tv channels are playing some cartoon written by Todd Casey? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey' \nA: What are the countries that have cartoons on TV that were written by Todd Casey? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey' \nA: which countries' tv channels are not playing any cartoon written by Todd Casey? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey' \nA: What are the countries that are not playing cartoons written by Todd Casey? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones' \nA: Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones' \nA: What is the series name and country of all TV channels that are playing cartoons directed by Ben Jones and cartoons directed by Michael Chang? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT Pixel_aspect_ratio_PAR, country FROM tv_channel WHERE LANGUAGE <> 'English' \nA: find the pixel aspect ratio and nation of the tv channels that do not use English. \n Additional table information: table: tvshow"} -{"text": "Q: SELECT Pixel_aspect_ratio_PAR, country FROM tv_channel WHERE LANGUAGE <> 'English' \nA: What is the pixel aspect ratio and country of origin for all TV channels that do not use English? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT id FROM tv_channel GROUP BY country HAVING COUNT(*) > 2 \nA: find id of the tv channels that from the countries where have more than two tv channels. \n Additional table information: table: tvshow"} -{"text": "Q: SELECT id FROM tv_channel GROUP BY country HAVING COUNT(*) > 2 \nA: What are the ids of all tv channels that have more than 2 TV channels? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones' \nA: find the id of tv channels that do not play any cartoon directed by Ben Jones. \n Additional table information: table: tvshow"} -{"text": "Q: SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones' \nA: What are the ids of the TV channels that do not have any cartoons directed by Ben Jones? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT package_option FROM TV_Channel WHERE NOT id IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones') \nA: find the package option of the tv channel that do not have any cartoon directed by Ben Jones. \n Additional table information: table: tvshow"} -{"text": "Q: SELECT package_option FROM TV_Channel WHERE NOT id IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones') \nA: What are the package options of all tv channels that are not playing any cartoons directed by Ben Jones? \n Additional table information: table: tvshow"} -{"text": "Q: SELECT COUNT(*) FROM poker_player \nA: How many poker players are there? \n Additional table information: table: poker_player"} -{"text": "Q: SELECT COUNT(*) FROM poker_player \nA: Count the number of poker players. \n Additional table information: table: poker_player"} -{"text": "Q: SELECT Earnings FROM poker_player ORDER BY Earnings DESC \nA: List the earnings of poker players in descending order. \n Additional table information: table: poker_player"} -{"text": "Q: SELECT Earnings FROM poker_player ORDER BY Earnings DESC \nA: What are the earnings of poker players, ordered descending by value? \n Additional table information: table: poker_player"} -{"text": "Q: SELECT Final_Table_Made, Best_Finish FROM poker_player \nA: List the final tables made and the best finishes of poker players. \n Additional table information: table: poker_player"} -{"text": "Q: SELECT Final_Table_Made, Best_Finish FROM poker_player \nA: What are the final tables made and best finishes for all poker players? \n Additional table information: table: poker_player"} -{"text": "Q: SELECT AVG(Earnings) FROM poker_player \nA: What is the average earnings of poker players? \n Additional table information: table: poker_player"} -{"text": "Q: SELECT AVG(Earnings) FROM poker_player \nA: Return the average earnings across all poker players. \n Additional table information: table: poker_player"} -{"text": "Q: SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1 \nA: What is the money rank of the poker player with the highest earnings? \n Additional table information: table: poker_player"} -{"text": "Q: SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1 \nA: Return the money rank of the player with the greatest earnings. \n Additional table information: table: poker_player"} -{"text": "Q: SELECT MAX(Final_Table_Made) FROM poker_player WHERE Earnings < 200000 \nA: What is the maximum number of final tables made among poker players with earnings less than 200000? \n Additional table information: table: poker_player"} -{"text": "Q: SELECT MAX(Final_Table_Made) FROM poker_player WHERE Earnings < 200000 \nA: Return the maximum final tables made across all poker players who have earnings below 200000. \n Additional table information: table: poker_player"} -{"text": "Q: SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID \nA: What are the names of poker players? \n Additional table information: table: poker_player"} -{"text": "Q: SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID \nA: Return the names of all the poker players. \n Additional table information: table: poker_player"} -{"text": "Q: SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000 \nA: What are the names of poker players whose earnings is higher than 300000? \n Additional table information: table: poker_player"} -{"text": "Q: SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000 \nA: Give the names of poker players who have earnings above 300000. \n Additional table information: table: poker_player"} -{"text": "Q: SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made NULLS FIRST \nA: List the names of poker players ordered by the final tables made in ascending order. \n Additional table information: table: poker_player"} -{"text": "Q: SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made NULLS FIRST \nA: What are the names of poker players, ordered ascending by the number of final tables they have made? \n Additional table information: table: poker_player"} -{"text": "Q: SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings ASC NULLS FIRST LIMIT 1 \nA: What is the birth date of the poker player with the lowest earnings? \n Additional table information: table: poker_player"} -{"text": "Q: SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings ASC NULLS FIRST LIMIT 1 \nA: Return the birth date of the poker player with the lowest earnings. \n Additional table information: table: poker_player"} -{"text": "Q: SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1 \nA: What is the money rank of the tallest poker player? \n Additional table information: table: poker_player"} -{"text": "Q: SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1 \nA: Return the money rank of the poker player with the greatest height. \n Additional table information: table: poker_player"} -{"text": "Q: SELECT AVG(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200 \nA: What is the average earnings of poker players with height higher than 200? \n Additional table information: table: poker_player"} -{"text": "Q: SELECT AVG(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200 \nA: Give average earnings of poker players who are taller than 200. \n Additional table information: table: poker_player"} -{"text": "Q: SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC \nA: What are the names of poker players in descending order of earnings? \n Additional table information: table: poker_player"} -{"text": "Q: SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC \nA: Return the names of poker players sorted by their earnings descending. \n Additional table information: table: poker_player"} -{"text": "Q: SELECT Nationality, COUNT(*) FROM people GROUP BY Nationality \nA: What are different nationalities of people and the corresponding number of people from each nation? \n Additional table information: table: poker_player"} -{"text": "Q: SELECT Nationality, COUNT(*) FROM people GROUP BY Nationality \nA: How many people are there of each nationality? \n Additional table information: table: poker_player"} -{"text": "Q: SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the most common nationality of people? \n Additional table information: table: poker_player"} -{"text": "Q: SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1 \nA: Give the nationality that is most common across all people. \n Additional table information: table: poker_player"} -{"text": "Q: SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2 \nA: What are the nationalities that are shared by at least two people? \n Additional table information: table: poker_player"} -{"text": "Q: SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2 \nA: Return the nationalities for which there are two or more people. \n Additional table information: table: poker_player"} -{"text": "Q: SELECT Name, Birth_Date FROM people ORDER BY Name ASC NULLS FIRST \nA: List the names and birth dates of people in ascending alphabetical order of name. \n Additional table information: table: poker_player"} -{"text": "Q: SELECT Name, Birth_Date FROM people ORDER BY Name ASC NULLS FIRST \nA: What are the names and birth dates of people, ordered by their names in alphabetical order? \n Additional table information: table: poker_player"} -{"text": "Q: SELECT Name FROM people WHERE Nationality <> 'Russia' \nA: Show names of people whose nationality is not 'Russia'. \n Additional table information: table: poker_player"} -{"text": "Q: SELECT Name FROM people WHERE Nationality <> 'Russia' \nA: What are the names of people who are not from Russia? \n Additional table information: table: poker_player"} -{"text": "Q: SELECT Name FROM people WHERE NOT People_ID IN (SELECT People_ID FROM poker_player) \nA: List the names of people that are not poker players. \n Additional table information: table: poker_player"} -{"text": "Q: SELECT Name FROM people WHERE NOT People_ID IN (SELECT People_ID FROM poker_player) \nA: What are the names of people who do not play poker? \n Additional table information: table: poker_player"} -{"text": "Q: SELECT COUNT(DISTINCT Nationality) FROM people \nA: How many distinct nationalities are there? \n Additional table information: table: poker_player"} -{"text": "Q: SELECT COUNT(DISTINCT Nationality) FROM people \nA: Count the number of different nationalities. \n Additional table information: table: poker_player"} -{"text": "Q: SELECT COUNT(*) FROM area_code_state \nA: How many states are there? \n Additional table information: table: voter_1"} -{"text": "Q: SELECT contestant_number, contestant_name FROM contestants ORDER BY contestant_name DESC \nA: List the contestant numbers and names, ordered by contestant name descending. \n Additional table information: table: voter_1"} -{"text": "Q: SELECT vote_id, phone_number, state FROM votes \nA: List the vote ids, phone numbers and states of all votes. \n Additional table information: table: voter_1"} -{"text": "Q: SELECT MAX(area_code), MIN(area_code) FROM area_code_state \nA: What are the maximum and minimum values of area codes? \n Additional table information: table: voter_1"} -{"text": "Q: SELECT MAX(created) FROM votes WHERE state = 'CA' \nA: What is last date created of votes from the state 'CA'? \n Additional table information: table: voter_1"} -{"text": "Q: SELECT contestant_name FROM contestants WHERE contestant_name <> 'Jessie Alloway' \nA: What are the names of the contestants whose names are not 'Jessie Alloway' \n Additional table information: table: voter_1"} -{"text": "Q: SELECT DISTINCT state, created FROM votes \nA: What are the distinct states and create time of all votes? \n Additional table information: table: voter_1"} -{"text": "Q: SELECT T1.contestant_number, T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number HAVING COUNT(*) >= 2 \nA: What are the contestant numbers and names of the contestants who had at least two votes? \n Additional table information: table: voter_1"} -{"text": "Q: SELECT T1.contestant_number, T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number ORDER BY COUNT(*) ASC NULLS FIRST LIMIT 1 \nA: Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes? \n Additional table information: table: voter_1"} -{"text": "Q: SELECT COUNT(*) FROM votes WHERE state = 'NY' OR state = 'CA' \nA: What are the number of votes from state 'NY' or 'CA'? \n Additional table information: table: voter_1"} -{"text": "Q: SELECT COUNT(*) FROM contestants WHERE NOT contestant_number IN (SELECT contestant_number FROM votes) \nA: How many contestants did not get voted? \n Additional table information: table: voter_1"} -{"text": "Q: SELECT T1.area_code FROM area_code_state AS T1 JOIN votes AS T2 ON T1.state = T2.state GROUP BY T1.area_code ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the area code in which the most voters voted? \n Additional table information: table: voter_1"} -{"text": "Q: SELECT T2.created, T2.state, T2.phone_number FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number WHERE T1.contestant_name = 'Tabatha Gehling' \nA: What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'? \n Additional table information: table: voter_1"} -{"text": "Q: SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Tabatha Gehling' INTERSECT SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Kelly Clauss' \nA: List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'. \n Additional table information: table: voter_1"} -{"text": "Q: SELECT contestant_name FROM contestants WHERE contestant_name LIKE '%al%' \nA: Return the names of the contestants whose names contain the substring 'Al' . \n Additional table information: table: voter_1"} -{"text": "Q: SELECT Name FROM country WHERE IndepYear > 1950 \nA: What are the names of all the countries that became independent after 1950? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name FROM country WHERE IndepYear > 1950 \nA: Give the names of the nations that were founded after 1950. \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(*) FROM country WHERE GovernmentForm = 'Republic' \nA: How many countries have a republic as their form of government? \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(*) FROM country WHERE GovernmentForm = 'Republic' \nA: How many countries have governments that are republics? \n Additional table information: table: world_1"} -{"text": "Q: SELECT SUM(SurfaceArea) FROM country WHERE Region = 'Caribbean' \nA: What is the total surface area of the countries in the Caribbean region? \n Additional table information: table: world_1"} -{"text": "Q: SELECT SUM(SurfaceArea) FROM country WHERE Region = 'Caribbean' \nA: How much surface area do the countires in the Carribean cover together? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Continent FROM country WHERE Name = 'Anguilla' \nA: Which continent is Anguilla in? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Continent FROM country WHERE Name = 'Anguilla' \nA: What is the continent name which Anguilla belongs to? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = 'Kabul' \nA: Which region is the city Kabul located in? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = 'Kabul' \nA: What region is Kabul in? \n Additional table information: table: world_1"} -{"text": "Q: SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Aruba' ORDER BY Percentage DESC LIMIT 1 \nA: Which language is the most popular in Aruba? \n Additional table information: table: world_1"} -{"text": "Q: SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Aruba' ORDER BY Percentage DESC LIMIT 1 \nA: What language is predominantly spoken in Aruba? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Population, LifeExpectancy FROM country WHERE Name = 'Brazil' \nA: What are the population and life expectancies in Brazil? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Population, LifeExpectancy FROM country WHERE Name = 'Brazil' \nA: Give me Brazil\u2019s population and life expectancies. \n Additional table information: table: world_1"} -{"text": "Q: SELECT Population, Region FROM country WHERE Name = 'Angola' \nA: What are the region and population of Angola? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Population, Region FROM country WHERE Name = 'Angola' \nA: What region does Angola belong to and what is its population? \n Additional table information: table: world_1"} -{"text": "Q: SELECT AVG(LifeExpectancy) FROM country WHERE Region = 'Central Africa' \nA: What is the average expected life expectancy for countries in the region of Central Africa? \n Additional table information: table: world_1"} -{"text": "Q: SELECT AVG(LifeExpectancy) FROM country WHERE Region = 'Central Africa' \nA: How long is the people\u2019s average life expectancy in Central Africa? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name FROM country WHERE Continent = 'Asia' ORDER BY LifeExpectancy NULLS FIRST LIMIT 1 \nA: What is the name of country that has the shortest life expectancy in Asia? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name FROM country WHERE Continent = 'Asia' ORDER BY LifeExpectancy NULLS FIRST LIMIT 1 \nA: Give the name of the country in Asia with the lowest life expectancy. \n Additional table information: table: world_1"} -{"text": "Q: SELECT SUM(Population), MAX(GNP) FROM country WHERE Continent = 'Asia' \nA: What is the total population and maximum GNP in Asia? \n Additional table information: table: world_1"} -{"text": "Q: SELECT SUM(Population), MAX(GNP) FROM country WHERE Continent = 'Asia' \nA: How many people live in Asia, and what is the largest GNP among them? \n Additional table information: table: world_1"} -{"text": "Q: SELECT AVG(LifeExpectancy) FROM country WHERE Continent = 'Africa' AND GovernmentForm = 'Republic' \nA: What is the average life expectancy in African countries that are republics? \n Additional table information: table: world_1"} -{"text": "Q: SELECT AVG(LifeExpectancy) FROM country WHERE Continent = 'Africa' AND GovernmentForm = 'Republic' \nA: Give the average life expectancy for countries in Africa which are republics? \n Additional table information: table: world_1"} -{"text": "Q: SELECT SUM(SurfaceArea) FROM country WHERE Continent = 'Asia' OR Continent = 'Europe' \nA: What is the total surface area of the continents Asia and Europe? \n Additional table information: table: world_1"} -{"text": "Q: SELECT SUM(SurfaceArea) FROM country WHERE Continent = 'Asia' OR Continent = 'Europe' \nA: Give the total surface area covered by countries in Asia or Europe. \n Additional table information: table: world_1"} -{"text": "Q: SELECT SUM(Population) FROM city WHERE District = 'Gelderland' \nA: How many people live in Gelderland district? \n Additional table information: table: world_1"} -{"text": "Q: SELECT SUM(Population) FROM city WHERE District = 'Gelderland' \nA: What is the total population of Gelderland district? \n Additional table information: table: world_1"} -{"text": "Q: SELECT AVG(GNP), SUM(population) FROM country WHERE GovernmentForm = 'US Territory' \nA: What is the average GNP and total population in all nations whose government is US territory? \n Additional table information: table: world_1"} -{"text": "Q: SELECT AVG(GNP), SUM(population) FROM country WHERE GovernmentForm = 'US Territory' \nA: Give the mean GNP and total population of nations which are considered US territory. \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(DISTINCT LANGUAGE) FROM countrylanguage \nA: How many unique languages are spoken in the world? \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(DISTINCT LANGUAGE) FROM countrylanguage \nA: What is the number of distinct languages used around the world? \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(DISTINCT GovernmentForm) FROM country WHERE Continent = 'Africa' \nA: How many type of governments are in Africa? \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(DISTINCT GovernmentForm) FROM country WHERE Continent = 'Africa' \nA: How many different forms of governments are there in Africa? \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Aruba' \nA: What is the total number of languages used in Aruba? \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Aruba' \nA: How many languages are spoken in Aruba? \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Afghanistan' AND IsOfficial = 'T' \nA: How many official languages does Afghanistan have? \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Afghanistan' AND IsOfficial = 'T' \nA: How many official languages are spoken in Afghanistan? \n Additional table information: table: world_1"} -{"text": "Q: SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is name of the country that speaks the largest number of languages? \n Additional table information: table: world_1"} -{"text": "Q: SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1 \nA: Give the name of the nation that uses the greatest amount of languages. \n Additional table information: table: world_1"} -{"text": "Q: SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which continent has the most diverse languages? \n Additional table information: table: world_1"} -{"text": "Q: SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which continent speaks the most languages? \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Dutch') \nA: How many countries speak both English and Dutch? \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Dutch') \nA: What is the number of nations that use English and Dutch? \n Additional table information: table: world_1"} -{"text": "Q: SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'French' \nA: What are the names of nations speak both English and French? \n Additional table information: table: world_1"} -{"text": "Q: SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'French' \nA: Give the names of nations that speak both English and French. \n Additional table information: table: world_1"} -{"text": "Q: SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'French' AND T2.IsOfficial = 'T' \nA: What are the names of nations where both English and French are official languages? \n Additional table information: table: world_1"} -{"text": "Q: SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'French' AND T2.IsOfficial = 'T' \nA: Give the names of countries with English and French as official languages. \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Chinese' \nA: What is the number of distinct continents where Chinese is spoken? \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Chinese' \nA: How many continents speak Chinese? \n Additional table information: table: world_1"} -{"text": "Q: SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' OR T2.Language = 'Dutch' \nA: What are the regions that use English or Dutch? \n Additional table information: table: world_1"} -{"text": "Q: SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' OR T2.Language = 'Dutch' \nA: Which regions speak Dutch or English? \n Additional table information: table: world_1"} -{"text": "Q: SELECT t1.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode WHERE t2.language = 'english' AND isofficial = 't' UNION SELECT t1.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode WHERE t2.language = 'dutch' AND isofficial = 't' \nA: What are the countries where either English or Dutch is the official language ? \n Additional table information: table: world_1"} -{"text": "Q: SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND IsOfficial = 'T' UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Dutch' AND IsOfficial = 'T' \nA: Which countries have either English or Dutch as an official language? \n Additional table information: table: world_1"} -{"text": "Q: SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = 'Asia' GROUP BY T2.Language ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which language is the most popular on the Asian continent? \n Additional table information: table: world_1"} -{"text": "Q: SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = 'Asia' GROUP BY T2.Language ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the language that is used by the largest number of Asian nations? \n Additional table information: table: world_1"} -{"text": "Q: SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = 'Republic' GROUP BY T2.Language HAVING COUNT(*) = 1 \nA: Which languages are spoken by only one country in republic governments? \n Additional table information: table: world_1"} -{"text": "Q: SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = 'Republic' GROUP BY T2.Language HAVING COUNT(*) = 1 \nA: What languages are only used by a single country with a republic government? \n Additional table information: table: world_1"} -{"text": "Q: SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = 'English' ORDER BY T1.Population DESC LIMIT 1 \nA: Find the city with the largest population that uses English. \n Additional table information: table: world_1"} -{"text": "Q: SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = 'English' ORDER BY T1.Population DESC LIMIT 1 \nA: What is the most populace city that speaks English? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name, Population, LifeExpectancy FROM country WHERE Continent = 'Asia' ORDER BY SurfaceArea DESC LIMIT 1 \nA: Find the name, population and expected life length of asian country with the largest area? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name, Population, LifeExpectancy FROM country WHERE Continent = 'Asia' ORDER BY SurfaceArea DESC LIMIT 1 \nA: What are the name, population, and life expectancy of the largest Asian country by land? \n Additional table information: table: world_1"} -{"text": "Q: SELECT AVG(LifeExpectancy) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T') \nA: What is average life expectancy in the countries where English is not the official language? \n Additional table information: table: world_1"} -{"text": "Q: SELECT AVG(LifeExpectancy) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T') \nA: Give the mean life expectancy of countries in which English is not the official language. \n Additional table information: table: world_1"} -{"text": "Q: SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English') \nA: What is the total number of people living in the nations that do not use English? \n Additional table information: table: world_1"} -{"text": "Q: SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English') \nA: How many people live in countries that do not speak English? \n Additional table information: table: world_1"} -{"text": "Q: SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = 'Beatrix' AND T2.IsOfficial = 'T' \nA: What is the official language spoken in the country whose head of state is Beatrix? \n Additional table information: table: world_1"} -{"text": "Q: SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = 'Beatrix' AND T2.IsOfficial = 'T' \nA: What is the official language used in the country the name of whose head of state is Beatrix. \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = 'T' \nA: What is the total number of unique official languages spoken in the countries that are founded before 1930? \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = 'T' \nA: For the countries founded before 1930, what is the total number of distinct official languages? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name FROM country WHERE SurfaceArea > (SELECT MIN(SurfaceArea) FROM country WHERE Continent = 'Europe') \nA: What are the countries that have greater surface area than any country in Europe? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name FROM country WHERE SurfaceArea > (SELECT MIN(SurfaceArea) FROM country WHERE Continent = 'Europe') \nA: Which countries have greater area than that of any country in Europe? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name FROM country WHERE Continent = 'Africa' AND population < (SELECT MAX(population) FROM country WHERE Continent = 'Asia') \nA: What are the African countries that have a population less than any country in Asia? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name FROM country WHERE Continent = 'Africa' AND population < (SELECT MIN(population) FROM country WHERE Continent = 'Asia') \nA: Which African countries have a smaller population than that of any country in Asia? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name FROM country WHERE Continent = 'Asia' AND population > (SELECT MAX(population) FROM country WHERE Continent = 'Africa') \nA: Which Asian countries have a population that is larger than any country in Africa? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name FROM country WHERE Continent = 'Asia' AND population > (SELECT MIN(population) FROM country WHERE Continent = 'Africa') \nA: What are the Asian countries which have a population larger than that of any country in Africa? \n Additional table information: table: world_1"} -{"text": "Q: SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = 'English' \nA: What are the country codes for countries that do not speak English? \n Additional table information: table: world_1"} -{"text": "Q: SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = 'English' \nA: Return the country codes for countries that do not speak English. \n Additional table information: table: world_1"} -{"text": "Q: SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE <> 'English' \nA: What are the country codes of countries where people use languages other than English? \n Additional table information: table: world_1"} -{"text": "Q: SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE <> 'English' \nA: Give the country codes for countries in which people speak langauges that are not English. \n Additional table information: table: world_1"} -{"text": "Q: SELECT Code FROM country WHERE GovernmentForm <> 'Republic' EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = 'English' \nA: What are the codes of the countries that do not speak English and whose government forms are not Republic? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Code FROM country WHERE GovernmentForm <> 'Republic' EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = 'English' \nA: Return the codes of countries that do not speak English and do not have Republics for governments. \n Additional table information: table: world_1"} -{"text": "Q: SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND NOT T1.Name IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English') \nA: Which cities are in European countries where English is not the official language? \n Additional table information: table: world_1"} -{"text": "Q: SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND NOT T1.Name IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English') \nA: What are the names of cities in Europe for which English is not the official language? \n Additional table information: table: world_1"} -{"text": "Q: SELECT DISTINCT t3.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode JOIN city AS t3 ON t1.code = t3.countrycode WHERE t2.isofficial = 't' AND t2.language = 'chinese' AND t1.continent = 'asia' \nA: Which unique cities are in Asian countries where Chinese is the official language ? \n Additional table information: table: world_1"} -{"text": "Q: SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode JOIN city AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' AND T2.Language = 'Chinese' AND T1.Continent = 'Asia' \nA: Return the different names of cities that are in Asia and for which Chinese is the official language. \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name, SurfaceArea, IndepYear FROM country ORDER BY Population NULLS FIRST LIMIT 1 \nA: What are the name, independence year, and surface area of the country with the smallest population? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name, SurfaceArea, IndepYear FROM country ORDER BY Population NULLS FIRST LIMIT 1 \nA: Give the name, year of independence, and surface area of the country that has the lowest population. \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name, population, HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1 \nA: What are the population, name and leader of the country with the largest area? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name, population, HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1 \nA: Give the name, population, and head of state for the country that has the largest area. \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(T2.Language), T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2 \nA: Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages. \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(T2.Language), T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2 \nA: What are the names of countries that speak more than 2 languages, as well as how many languages they speak? \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(*), District FROM city WHERE Population > (SELECT AVG(Population) FROM city) GROUP BY District \nA: Find the number of cities in each district whose population is greater than the average population of cities? \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(*), District FROM city WHERE Population > (SELECT AVG(Population) FROM city) GROUP BY District \nA: How many cities in each district have a population that is above the average population across all cities? \n Additional table information: table: world_1"} -{"text": "Q: SELECT SUM(Population), GovernmentForm FROM country GROUP BY GovernmentForm HAVING AVG(LifeExpectancy) > 72 \nA: Find the government form name and total population for each government form whose average life expectancy is longer than 72. \n Additional table information: table: world_1"} -{"text": "Q: SELECT SUM(Population), GovernmentForm FROM country GROUP BY GovernmentForm HAVING AVG(LifeExpectancy) > 72 \nA: What are the different government forms and what is the total population of each for government forms that have an average life expectancy greater than 72? \n Additional table information: table: world_1"} -{"text": "Q: SELECT SUM(Population), AVG(LifeExpectancy), Continent FROM country GROUP BY Continent HAVING AVG(LifeExpectancy) < 72 \nA: Find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72? \n Additional table information: table: world_1"} -{"text": "Q: SELECT SUM(Population), AVG(LifeExpectancy), Continent FROM country GROUP BY Continent HAVING AVG(LifeExpectancy) < 72 \nA: What are the different continents and the total popuation and average life expectancy corresponding to each, for continents that have an average life expectancy less than 72? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name, SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5 \nA: What are the names and areas of countries with the top 5 largest area? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name, SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5 \nA: Return the names and surface areas of the 5 largest countries. \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name FROM country ORDER BY Population DESC LIMIT 3 \nA: What are names of countries with the top 3 largest population? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name FROM country ORDER BY Population DESC LIMIT 3 \nA: Return the names of the 3 most populated countries. \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name FROM country ORDER BY Population ASC NULLS FIRST LIMIT 3 \nA: What are the names of the nations with the 3 lowest populations? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name FROM country ORDER BY Population ASC NULLS FIRST LIMIT 3 \nA: Return the names of the 3 countries with the fewest people. \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(*) FROM country WHERE continent = 'Asia' \nA: how many countries are in Asia? \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(*) FROM country WHERE continent = 'Asia' \nA: Count the number of countries in Asia. \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name FROM country WHERE continent = 'Europe' AND Population = '80000' \nA: What are the names of the countries that are in the continent of Europe and have a population of 80000? \n Additional table information: table: world_1"} -{"text": "Q: SELECT Name FROM country WHERE continent = 'Europe' AND Population = '80000' \nA: Give the names of countries that are in Europe and have a population equal to 80000. \n Additional table information: table: world_1"} -{"text": "Q: SELECT SUM(population), AVG(surfacearea) FROM country WHERE continent = 'north america' AND surfacearea > 3000 \nA: What is the total population and average area of countries in the continent of North America whose area is bigger than 3000 ? \n Additional table information: table: world_1"} -{"text": "Q: SELECT SUM(population), AVG(surfacearea) FROM country WHERE continent = 'north america' AND surfacearea > 3000 \nA: Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000 . \n Additional table information: table: world_1"} -{"text": "Q: SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000 \nA: What are the cities whose population is between 160000 and 900000? \n Additional table information: table: world_1"} -{"text": "Q: SELECT name FROM city WHERE population BETWEEN 160000 AND 900000 \nA: Return the names of cities that have a population between 160000 and 900000 . \n Additional table information: table: world_1"} -{"text": "Q: SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which language is spoken by the largest number of countries? \n Additional table information: table: world_1"} -{"text": "Q: SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY COUNT(*) DESC LIMIT 1 \nA: Give the language that is spoken in the most countries. \n Additional table information: table: world_1"} -{"text": "Q: SELECT LANGUAGE, CountryCode, MAX(Percentage) FROM countrylanguage GROUP BY CountryCode \nA: What is the language spoken by the largest percentage of people in each country? \n Additional table information: table: world_1"} -{"text": "Q: SELECT LANGUAGE, CountryCode, MAX(Percentage) FROM countrylanguage GROUP BY CountryCode \nA: What are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each? \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = 'Spanish' GROUP BY CountryCode \nA: What is the total number of countries where Spanish is spoken by the largest percentage of people? \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = 'Spanish' GROUP BY CountryCode \nA: Count the number of countries for which Spanish is the predominantly spoken language. \n Additional table information: table: world_1"} -{"text": "Q: SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = 'Spanish' GROUP BY CountryCode \nA: What are the codes of countries where Spanish is spoken by the largest percentage of people? \n Additional table information: table: world_1"} -{"text": "Q: SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = 'Spanish' GROUP BY CountryCode \nA: Return the codes of countries for which Spanish is the predominantly spoken language. \n Additional table information: table: world_1"} -{"text": "Q: SELECT COUNT(*) FROM conductor \nA: How many conductors are there? \n Additional table information: table: orchestra"} -{"text": "Q: SELECT COUNT(*) FROM conductor \nA: Count the number of conductors. \n Additional table information: table: orchestra"} -{"text": "Q: SELECT Name FROM conductor ORDER BY Age ASC NULLS FIRST \nA: List the names of conductors in ascending order of age. \n Additional table information: table: orchestra"} -{"text": "Q: SELECT Name FROM conductor ORDER BY Age ASC NULLS FIRST \nA: What are the names of conductors, ordered by age? \n Additional table information: table: orchestra"} -{"text": "Q: SELECT Name FROM conductor WHERE Nationality <> 'USA' \nA: What are the names of conductors whose nationalities are not 'USA'? \n Additional table information: table: orchestra"} -{"text": "Q: SELECT Name FROM conductor WHERE Nationality <> 'USA' \nA: Return the names of conductors that do not have the nationality 'USA'. \n Additional table information: table: orchestra"} -{"text": "Q: SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC \nA: What are the record companies of orchestras in descending order of years in which they were founded? \n Additional table information: table: orchestra"} -{"text": "Q: SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC \nA: Return the record companies of orchestras, sorted descending by the years in which they were founded. \n Additional table information: table: orchestra"} -{"text": "Q: SELECT AVG(Attendance) FROM SHOW \nA: What is the average attendance of shows? \n Additional table information: table: orchestra"} -{"text": "Q: SELECT AVG(Attendance) FROM SHOW \nA: Return the average attendance across all shows. \n Additional table information: table: orchestra"} -{"text": "Q: SELECT MAX(SHARE), MIN(SHARE) FROM performance WHERE TYPE <> 'Live final' \nA: What are the maximum and minimum share of performances whose type is not 'Live final'. \n Additional table information: table: orchestra"} -{"text": "Q: SELECT MAX(SHARE), MIN(SHARE) FROM performance WHERE TYPE <> 'Live final' \nA: Return the maximum and minimum shares for performances that do not have the type 'Live final'. \n Additional table information: table: orchestra"} -{"text": "Q: SELECT COUNT(DISTINCT Nationality) FROM conductor \nA: How many different nationalities do conductors have? \n Additional table information: table: orchestra"} -{"text": "Q: SELECT COUNT(DISTINCT Nationality) FROM conductor \nA: Count the number of different nationalities of conductors. \n Additional table information: table: orchestra"} -{"text": "Q: SELECT Name FROM conductor ORDER BY Year_of_Work DESC \nA: List names of conductors in descending order of years of work. \n Additional table information: table: orchestra"} -{"text": "Q: SELECT Name FROM conductor ORDER BY Year_of_Work DESC \nA: What are the names of conductors, sorted descending by the number of years they have worked? \n Additional table information: table: orchestra"} -{"text": "Q: SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1 \nA: List the name of the conductor with the most years of work. \n Additional table information: table: orchestra"} -{"text": "Q: SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1 \nA: What is the name of the conductor who has worked the greatest number of years? \n Additional table information: table: orchestra"} -{"text": "Q: SELECT T1.Name, T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID \nA: Show the names of conductors and the orchestras they have conducted. \n Additional table information: table: orchestra"} -{"text": "Q: SELECT T1.Name, T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID \nA: What are the names of conductors as well as the corresonding orchestras that they have conducted? \n Additional table information: table: orchestra"} -{"text": "Q: SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1 \nA: Show the names of conductors that have conducted more than one orchestras. \n Additional table information: table: orchestra"} -{"text": "Q: SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1 \nA: What are the names of conductors who have conducted at more than one orchestra? \n Additional table information: table: orchestra"} -{"text": "Q: SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1 \nA: Show the name of the conductor that has conducted the most number of orchestras. \n Additional table information: table: orchestra"} -{"text": "Q: SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the name of the conductor who has conducted the most orchestras? \n Additional table information: table: orchestra"} -{"text": "Q: SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008 \nA: Please show the name of the conductor that has conducted orchestras founded after 2008. \n Additional table information: table: orchestra"} -{"text": "Q: SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008 \nA: What are the names of conductors who have conducted orchestras founded after the year 2008? \n Additional table information: table: orchestra"} -{"text": "Q: SELECT Record_Company, COUNT(*) FROM orchestra GROUP BY Record_Company \nA: Please show the different record companies and the corresponding number of orchestras. \n Additional table information: table: orchestra"} -{"text": "Q: SELECT Record_Company, COUNT(*) FROM orchestra GROUP BY Record_Company \nA: How many orchestras does each record company manage? \n Additional table information: table: orchestra"} -{"text": "Q: SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC NULLS FIRST \nA: Please show the record formats of orchestras in ascending order of count. \n Additional table information: table: orchestra"} -{"text": "Q: SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC NULLS FIRST \nA: What are the major record formats of orchestras, sorted by their frequency? \n Additional table information: table: orchestra"} -{"text": "Q: SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1 \nA: List the record company shared by the most number of orchestras. \n Additional table information: table: orchestra"} -{"text": "Q: SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the record company used by the greatest number of orchestras? \n Additional table information: table: orchestra"} -{"text": "Q: SELECT Orchestra FROM orchestra WHERE NOT Orchestra_ID IN (SELECT Orchestra_ID FROM performance) \nA: List the names of orchestras that have no performance. \n Additional table information: table: orchestra"} -{"text": "Q: SELECT Orchestra FROM orchestra WHERE NOT Orchestra_ID IN (SELECT Orchestra_ID FROM performance) \nA: What are the orchestras that do not have any performances? \n Additional table information: table: orchestra"} -{"text": "Q: SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003 \nA: Show the record companies shared by orchestras founded before 2003 and after 2003. \n Additional table information: table: orchestra"} -{"text": "Q: SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003 \nA: What are the record companies that are used by both orchestras founded before 2003 and those founded after 2003? \n Additional table information: table: orchestra"} -{"text": "Q: SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = 'CD' OR Major_Record_Format = 'DVD' \nA: Find the number of orchestras whose record format is 'CD' or 'DVD'. \n Additional table information: table: orchestra"} -{"text": "Q: SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = 'CD' OR Major_Record_Format = 'DVD' \nA: Count the number of orchestras that have CD or DVD as their record format. \n Additional table information: table: orchestra"} -{"text": "Q: SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*) > 1 \nA: Show the years in which orchestras that have given more than one performance are founded. \n Additional table information: table: orchestra"} -{"text": "Q: SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*) > 1 \nA: What are years of founding for orchestras that have had more than a single performance? \n Additional table information: table: orchestra"} -{"text": "Q: SELECT COUNT(*) FROM Highschooler \nA: How many high schoolers are there? \n Additional table information: table: network_1"} -{"text": "Q: SELECT COUNT(*) FROM Highschooler \nA: Count the number of high schoolers. \n Additional table information: table: network_1"} -{"text": "Q: SELECT name, grade FROM Highschooler \nA: Show the names and grades of each high schooler. \n Additional table information: table: network_1"} -{"text": "Q: SELECT name, grade FROM Highschooler \nA: What are the names and grades for each high schooler? \n Additional table information: table: network_1"} -{"text": "Q: SELECT grade FROM Highschooler \nA: Show all the grades of the high schoolers. \n Additional table information: table: network_1"} -{"text": "Q: SELECT grade FROM Highschooler \nA: What is the grade of each high schooler? \n Additional table information: table: network_1"} -{"text": "Q: SELECT grade FROM Highschooler WHERE name = 'Kyle' \nA: What grade is Kyle in? \n Additional table information: table: network_1"} -{"text": "Q: SELECT grade FROM Highschooler WHERE name = 'Kyle' \nA: Return the grade for the high schooler named Kyle. \n Additional table information: table: network_1"} -{"text": "Q: SELECT name FROM Highschooler WHERE grade = 10 \nA: Show the names of all high schoolers in grade 10. \n Additional table information: table: network_1"} -{"text": "Q: SELECT name FROM Highschooler WHERE grade = 10 \nA: What are the names of all high schoolers in grade 10? \n Additional table information: table: network_1"} -{"text": "Q: SELECT ID FROM Highschooler WHERE name = 'Kyle' \nA: Show the ID of the high schooler named Kyle. \n Additional table information: table: network_1"} -{"text": "Q: SELECT ID FROM Highschooler WHERE name = 'Kyle' \nA: What is Kyle's id? \n Additional table information: table: network_1"} -{"text": "Q: SELECT COUNT(*) FROM Highschooler WHERE grade = 9 OR grade = 10 \nA: How many high schoolers are there in grade 9 or 10? \n Additional table information: table: network_1"} -{"text": "Q: SELECT COUNT(*) FROM Highschooler WHERE grade = 9 OR grade = 10 \nA: Count the number of high schoolers in grades 9 or 10. \n Additional table information: table: network_1"} -{"text": "Q: SELECT grade, COUNT(*) FROM Highschooler GROUP BY grade \nA: Show the number of high schoolers for each grade. \n Additional table information: table: network_1"} -{"text": "Q: SELECT grade, COUNT(*) FROM Highschooler GROUP BY grade \nA: How many high schoolers are in each grade? \n Additional table information: table: network_1"} -{"text": "Q: SELECT grade FROM Highschooler GROUP BY grade ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which grade has the most high schoolers? \n Additional table information: table: network_1"} -{"text": "Q: SELECT grade FROM Highschooler GROUP BY grade ORDER BY COUNT(*) DESC LIMIT 1 \nA: Return the grade that has the greatest number of high schoolers. \n Additional table information: table: network_1"} -{"text": "Q: SELECT grade FROM Highschooler GROUP BY grade HAVING COUNT(*) >= 4 \nA: Show me all grades that have at least 4 students. \n Additional table information: table: network_1"} -{"text": "Q: SELECT grade FROM Highschooler GROUP BY grade HAVING COUNT(*) >= 4 \nA: Which grades have 4 or more high schoolers? \n Additional table information: table: network_1"} -{"text": "Q: SELECT student_id, COUNT(*) FROM Friend GROUP BY student_id \nA: Show the student IDs and numbers of friends corresponding to each. \n Additional table information: table: network_1"} -{"text": "Q: SELECT student_id, COUNT(*) FROM Friend GROUP BY student_id \nA: How many friends does each student have? \n Additional table information: table: network_1"} -{"text": "Q: SELECT T2.name, COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id \nA: Show the names of high school students and their corresponding number of friends. \n Additional table information: table: network_1"} -{"text": "Q: SELECT T2.name, COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id \nA: What are the names of the high schoolers and how many friends does each have? \n Additional table information: table: network_1"} -{"text": "Q: SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the name of the high schooler who has the greatest number of friends? \n Additional table information: table: network_1"} -{"text": "Q: SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: Return the name of the high school student with the most friends. \n Additional table information: table: network_1"} -{"text": "Q: SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING COUNT(*) >= 3 \nA: Show the names of high schoolers who have at least 3 friends. \n Additional table information: table: network_1"} -{"text": "Q: SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING COUNT(*) >= 3 \nA: What are the names of high schoolers who have 3 or more friends? \n Additional table information: table: network_1"} -{"text": "Q: SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = 'Kyle' \nA: Show the names of all of the high schooler Kyle's friends. \n Additional table information: table: network_1"} -{"text": "Q: SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = 'Kyle' \nA: Return the names of friends of the high school student Kyle. \n Additional table information: table: network_1"} -{"text": "Q: SELECT COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = 'Kyle' \nA: How many friends does the high school student Kyle have? \n Additional table information: table: network_1"} -{"text": "Q: SELECT COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = 'Kyle' \nA: Count the number of friends Kyle has. \n Additional table information: table: network_1"} -{"text": "Q: SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend \nA: Show ids of all students who do not have any friends. \n Additional table information: table: network_1"} -{"text": "Q: SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend \nA: What are the ids of high school students who do not have friends? \n Additional table information: table: network_1"} -{"text": "Q: SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id \nA: Show names of all high school students who do not have any friends. \n Additional table information: table: network_1"} -{"text": "Q: SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id \nA: What are the names of students who have no friends? \n Additional table information: table: network_1"} -{"text": "Q: SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes \nA: Show the ids of high schoolers who have friends and are also liked by someone else. \n Additional table information: table: network_1"} -{"text": "Q: SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes \nA: What are the ids of students who both have friends and are liked? \n Additional table information: table: network_1"} -{"text": "Q: SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id \nA: Show name of all students who have some friends and also are liked by someone else. \n Additional table information: table: network_1"} -{"text": "Q: SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id \nA: What are the names of high schoolers who both have friends and are liked? \n Additional table information: table: network_1"} -{"text": "Q: SELECT student_id, COUNT(*) FROM Likes GROUP BY student_id \nA: Count the number of likes for each student id. \n Additional table information: table: network_1"} -{"text": "Q: SELECT student_id, COUNT(*) FROM Likes GROUP BY student_id \nA: How many likes correspond to each student id? \n Additional table information: table: network_1"} -{"text": "Q: SELECT T2.name, COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id \nA: Show the names of high schoolers who have likes, and numbers of likes for each. \n Additional table information: table: network_1"} -{"text": "Q: SELECT T2.name, COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id \nA: What are the names of high schoolers who have likes, and how many likes does each have? \n Additional table information: table: network_1"} -{"text": "Q: SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the name of the high schooler who has the greatest number of likes? \n Additional table information: table: network_1"} -{"text": "Q: SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: Give the name of the student with the most likes. \n Additional table information: table: network_1"} -{"text": "Q: SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING COUNT(*) >= 2 \nA: Show the names of students who have at least 2 likes. \n Additional table information: table: network_1"} -{"text": "Q: SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING COUNT(*) >= 2 \nA: What are the names of students who have 2 or more likes? \n Additional table information: table: network_1"} -{"text": "Q: SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id HAVING COUNT(*) >= 2 \nA: Show the names of students who have a grade higher than 5 and have at least 2 friends. \n Additional table information: table: network_1"} -{"text": "Q: SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id HAVING COUNT(*) >= 2 \nA: What are the names of high schoolers who have a grade of over 5 and have 2 or more friends? \n Additional table information: table: network_1"} -{"text": "Q: SELECT COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = 'Kyle' \nA: How many likes does Kyle have? \n Additional table information: table: network_1"} -{"text": "Q: SELECT COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = 'Kyle' \nA: Return the number of likes that the high schooler named Kyle has. \n Additional table information: table: network_1"} -{"text": "Q: SELECT AVG(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id) \nA: Find the average grade of all students who have some friends. \n Additional table information: table: network_1"} -{"text": "Q: SELECT AVG(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id) \nA: What is the average grade of students who have friends? \n Additional table information: table: network_1"} -{"text": "Q: SELECT MIN(grade) FROM Highschooler WHERE NOT id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id) \nA: Find the minimum grade of students who have no friends. \n Additional table information: table: network_1"} -{"text": "Q: SELECT MIN(grade) FROM Highschooler WHERE NOT id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id) \nA: What is the lowest grade of students who do not have any friends? \n Additional table information: table: network_1"} -{"text": "Q: SELECT state FROM Owners INTERSECT SELECT state FROM Professionals \nA: Which states have both owners and professionals living there? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT state FROM Owners INTERSECT SELECT state FROM Professionals \nA: Find the states where both owners and professionals live. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT AVG(age) FROM Dogs WHERE dog_id IN (SELECT dog_id FROM Treatments) \nA: What is the average age of the dogs who have gone through any treatments? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT AVG(age) FROM Dogs WHERE dog_id IN (SELECT dog_id FROM Treatments) \nA: Find the average age of the dogs who went through treatments. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT professional_id, last_name, cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id, T1.last_name, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) > 2 \nA: Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT professional_id, last_name, cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id, T1.last_name, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) > 2 \nA: Find the id, last name and cell phone of the professionals who live in the state of Indiana or have performed more than two treatments. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT name FROM dogs WHERE NOT dog_id IN (SELECT dog_id FROM treatments GROUP BY dog_id HAVING SUM(cost_of_treatment) > 1000) \nA: Which dogs have not cost their owner more than 1000 for treatment ? List the dog names . \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT name FROM dogs WHERE NOT dog_id IN (SELECT dog_id FROM treatments GROUP BY dog_id HAVING SUM(cost_of_treatment) > 1000) \nA: What are the names of the dogs for which the owner has not spend more than 1000 for treatment ? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs \nA: Which first names are used for professionals or owners but are not used as dog names? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs \nA: Find the first names that are used for professionals or owners but are not used as dog names. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT professional_id, role_code, email_address FROM Professionals EXCEPT SELECT T1.professional_id, T1.role_code, T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id \nA: Which professional did not operate any treatment on dogs? List the professional's id, role and email. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT professional_id, role_code, email_address FROM Professionals EXCEPT SELECT T1.professional_id, T1.role_code, T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id \nA: Give me the id, role and email of the professionals who did not perform any treatment on dogs. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.owner_id, T2.first_name, T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which owner owns the most dogs? List the owner id, first name and last name. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.owner_id, T2.first_name, T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: Return the owner id, first name and last name of the owner who has the most dogs. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.professional_id, T1.role_code, T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) >= 2 \nA: Which professionals have done at least two treatments? List the professional's id, role, and first name. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.professional_id, T1.role_code, T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) >= 2 \nA: What are the id, role, and first name of the professionals who have performed two or more treatments? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the name of the breed with the most dogs? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which breed do the most dogs have? Give me the breed name. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.owner_id, T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: Which owner has paid for the most treatments on his or her dogs? List the owner id and last name. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.owner_id, T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1 \nA: Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY SUM(cost_of_treatment) ASC NULLS FIRST LIMIT 1 \nA: What is the description of the treatment type that costs the least money in total? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY SUM(cost_of_treatment) ASC NULLS FIRST LIMIT 1 \nA: Give me the description of the treatment type whose total cost is the lowest. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.owner_id, T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY SUM(T3.cost_of_treatment) DESC LIMIT 1 \nA: Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.owner_id, T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY SUM(T3.cost_of_treatment) DESC LIMIT 1 \nA: Find the owner id and zip code of the owner who spent the most money in total for his or her dogs. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.professional_id, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) >= 2 \nA: Which professionals have done at least two types of treatments? List the professional id and cell phone. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.professional_id, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) >= 2 \nA: Find the id and cell phone of the professionals who operate two or more types of treatments. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT DISTINCT T1.first_name, T1.last_name FROM Professionals AS T1, Treatments AS T2 WHERE cost_of_treatment < (SELECT AVG(cost_of_treatment) FROM Treatments) \nA: What are the first name and last name of the professionals who have done treatment with cost below average? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT DISTINCT T1.first_name, T1.last_name FROM Professionals AS T1, Treatments AS T2 WHERE cost_of_treatment < (SELECT AVG(cost_of_treatment) FROM Treatments) \nA: Which professionals have operated a treatment that costs less than the average? Give me theor first names and last names. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.date_of_treatment, T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id \nA: List the date of each treatment, together with the first name of the professional who operated it. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.date_of_treatment, T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id \nA: What are the date and the operating professional's first name of each treatment? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.cost_of_treatment, T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code \nA: List the cost of each treatment and the corresponding treatment type description. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.cost_of_treatment, T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code \nA: What are the cost and treatment type description of each treatment? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.first_name, T1.last_name, T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id \nA: List each owner's first name, last name, and the size of his for her dog. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.first_name, T1.last_name, T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id \nA: What are each owner's first name, last name, and the size of their dog? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id \nA: List pairs of the owner's first name and the dogs's name. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id \nA: What are each owner's first name and their dogs's name? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.name, T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = (SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY COUNT(*) ASC NULLS FIRST LIMIT 1) \nA: List the names of the dogs of the rarest breed and the treatment dates of them. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.name, T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = (SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY COUNT(*) ASC NULLS FIRST LIMIT 1) \nA: Which dogs are of the rarest breed? Show their names and treatment dates. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia' \nA: Which dogs are owned by someone who lives in Virginia? List the owner's first name and the dog's name. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia' \nA: Find the first names of owners living in Virginia and the names of dogs they own. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT DISTINCT T1.date_arrived, T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id \nA: What are the arriving date and the departing date of the dogs who have gone through a treatment? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT DISTINCT T1.date_arrived, T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id \nA: Find the arriving date and the departing date of the dogs that received a treatment. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = (SELECT MAX(age) FROM Dogs) \nA: List the last name of the owner owning the youngest dog. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = (SELECT MAX(age) FROM Dogs) \nA: Who owns the youngest dog? Give me his or her last name. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin' \nA: List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin' \nA: What are the emails of the professionals living in either the state of Hawaii or the state of Wisconsin? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT date_arrived, date_departed FROM Dogs \nA: What are the arriving date and the departing date of all the dogs? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT date_arrived, date_departed FROM Dogs \nA: List the arrival date and the departure date for all the dogs. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT COUNT(DISTINCT dog_id) FROM Treatments \nA: How many dogs went through any treatments? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT COUNT(DISTINCT dog_id) FROM Treatments \nA: Count the number of dogs that went through a treatment. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT COUNT(DISTINCT professional_id) FROM Treatments \nA: How many professionals have performed any treatment to dogs? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT COUNT(DISTINCT professional_id) FROM Treatments \nA: Find the number of professionals who have ever treated dogs. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT role_code, street, city, state FROM professionals WHERE city LIKE '%West%' \nA: Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT role_code, street, city, state FROM professionals WHERE city LIKE '%West%' \nA: Find the role, street, city and state of the professionals living in a city that contains the substring 'West'. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT first_name, last_name, email_address FROM Owners WHERE state LIKE '%North%' \nA: Which owners live in the state whose name contains the substring 'North'? List his first name, last name and email. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT first_name, last_name, email_address FROM Owners WHERE state LIKE '%North%' \nA: Return the first name, last name and email of the owners living in a state whose name contains the substring 'North'. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT COUNT(*) FROM Dogs WHERE age < (SELECT AVG(age) FROM Dogs) \nA: How many dogs have an age below the average? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT COUNT(*) FROM Dogs WHERE age < (SELECT AVG(age) FROM Dogs) \nA: Count the number of dogs of an age below the average. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1 \nA: How much does the most recent treatment cost? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1 \nA: Show me the cost of the most recently performed treatment. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT COUNT(*) FROM Dogs WHERE NOT dog_id IN (SELECT dog_id FROM Treatments) \nA: How many dogs have not gone through any treatment? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT COUNT(*) FROM dogs WHERE NOT dog_id IN (SELECT dog_id FROM treatments) \nA: Tell me the number of dogs that have not received any treatment . \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT COUNT(*) FROM Owners WHERE NOT owner_id IN (SELECT owner_id FROM Dogs) \nA: How many owners temporarily do not have any dogs? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT COUNT(*) FROM Owners WHERE NOT owner_id IN (SELECT owner_id FROM Dogs) \nA: Find the number of owners who do not own any dogs at this moment. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT COUNT(*) FROM Professionals WHERE NOT professional_id IN (SELECT professional_id FROM Treatments) \nA: How many professionals did not operate any treatment on dogs? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT COUNT(*) FROM Professionals WHERE NOT professional_id IN (SELECT professional_id FROM Treatments) \nA: Find the number of professionals who have not treated any dogs. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT name, age, weight FROM Dogs WHERE abandoned_yn = 1 \nA: List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT name, age, weight FROM Dogs WHERE abandoned_yn = 1 \nA: What are the dog name, age and weight of the dogs that were abandoned? Note that 1 stands for yes, and 0 stands for no in the tables. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT AVG(age) FROM Dogs \nA: What is the average age of all the dogs? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT AVG(age) FROM Dogs \nA: Compute the average age of all the dogs. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT MAX(age) FROM Dogs \nA: What is the age of the oldest dog? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT MAX(age) FROM Dogs \nA: Tell me the age of the oldest dog. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT charge_type, charge_amount FROM Charges \nA: How much does each charge type costs? List both charge type and amount. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT charge_type, charge_amount FROM Charges \nA: List each charge type and its amount. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT MAX(charge_amount) FROM Charges \nA: How much does the most expensive charge type costs? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT MAX(charge_amount) FROM Charges \nA: What is the charge amount of the most expensive charge type? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT email_address, cell_number, home_phone FROM professionals \nA: List the email, cell phone and home phone of all the professionals. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT email_address, cell_number, home_phone FROM professionals \nA: What are the email, cell phone and home phone of each professional? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT DISTINCT breed_code, size_code FROM dogs \nA: What are all the possible breed type and size type combinations? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT DISTINCT breed_code, size_code FROM dogs \nA: Find the distinct breed type and size type combinations for dogs. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT DISTINCT T1.first_name, T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code \nA: List the first name of all the professionals along with the description of the treatment they have done. \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT DISTINCT T1.first_name, T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code \nA: What are each professional's first name and description of the treatment they have performed? \n Additional table information: table: dog_kennels"} -{"text": "Q: SELECT COUNT(*) FROM singer \nA: How many singers are there? \n Additional table information: table: singer"} -{"text": "Q: SELECT COUNT(*) FROM singer \nA: What is the count of singers? \n Additional table information: table: singer"} -{"text": "Q: SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC NULLS FIRST \nA: List the name of singers in ascending order of net worth. \n Additional table information: table: singer"} -{"text": "Q: SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC NULLS FIRST \nA: What are the names of singers ordered by ascending net worth? \n Additional table information: table: singer"} -{"text": "Q: SELECT Birth_Year, Citizenship FROM singer \nA: What are the birth year and citizenship of singers? \n Additional table information: table: singer"} -{"text": "Q: SELECT Birth_Year, Citizenship FROM singer \nA: What are the birth years and citizenships of the singers? \n Additional table information: table: singer"} -{"text": "Q: SELECT Name FROM singer WHERE Citizenship <> 'France' \nA: List the name of singers whose citizenship is not 'France'. \n Additional table information: table: singer"} -{"text": "Q: SELECT Name FROM singer WHERE Citizenship <> 'France' \nA: What are the names of the singers who are not French citizens? \n Additional table information: table: singer"} -{"text": "Q: SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949 \nA: Show the name of singers whose birth year is either 1948 or 1949? \n Additional table information: table: singer"} -{"text": "Q: SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949 \nA: What are the names of the singers whose birth years are either 1948 or 1949? \n Additional table information: table: singer"} -{"text": "Q: SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1 \nA: What is the name of the singer with the largest net worth? \n Additional table information: table: singer"} -{"text": "Q: SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1 \nA: What is the name of the singer who is worth the most? \n Additional table information: table: singer"} -{"text": "Q: SELECT Citizenship, COUNT(*) FROM singer GROUP BY Citizenship \nA: Show different citizenship of singers and the number of singers of each citizenship. \n Additional table information: table: singer"} -{"text": "Q: SELECT Citizenship, COUNT(*) FROM singer GROUP BY Citizenship \nA: For each citizenship, how many singers are from that country? \n Additional table information: table: singer"} -{"text": "Q: SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1 \nA: Please show the most common citizenship of singers. \n Additional table information: table: singer"} -{"text": "Q: SELECT citizenship FROM singer GROUP BY citizenship ORDER BY COUNT(*) DESC LIMIT 1 \nA: What is the most common singer citizenship ? \n Additional table information: table: singer"} -{"text": "Q: SELECT Citizenship, MAX(Net_Worth_Millions) FROM singer GROUP BY Citizenship \nA: Show different citizenships and the maximum net worth of singers of each citizenship. \n Additional table information: table: singer"} -{"text": "Q: SELECT Citizenship, MAX(Net_Worth_Millions) FROM singer GROUP BY Citizenship \nA: For each citizenship, what is the maximum net worth? \n Additional table information: table: singer"} -{"text": "Q: SELECT T2.Title, T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID \nA: Show titles of songs and names of singers. \n Additional table information: table: singer"} -{"text": "Q: SELECT T2.Title, T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID \nA: What are the song titles and singer names? \n Additional table information: table: singer"} -{"text": "Q: SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000 \nA: Show distinct names of singers that have songs with sales more than 300000. \n Additional table information: table: singer"} -{"text": "Q: SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000 \nA: what are the different names of the singers that have sales more than 300000? \n Additional table information: table: singer"} -{"text": "Q: SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1 \nA: Show the names of singers that have more than one song. \n Additional table information: table: singer"} -{"text": "Q: SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1 \nA: What are the names of the singers that have more than one songs? \n Additional table information: table: singer"} -{"text": "Q: SELECT T1.Name, SUM(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name \nA: Show the names of singers and the total sales of their songs. \n Additional table information: table: singer"} -{"text": "Q: SELECT T1.Name, SUM(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name \nA: For each singer name, what is the total sales for their songs? \n Additional table information: table: singer"} -{"text": "Q: SELECT Name FROM singer WHERE NOT Singer_ID IN (SELECT Singer_ID FROM song) \nA: List the name of singers that do not have any song. \n Additional table information: table: singer"} -{"text": "Q: SELECT Name FROM singer WHERE NOT Singer_ID IN (SELECT Singer_ID FROM song) \nA: What is the sname of every sing that does not have any song? \n Additional table information: table: singer"} -{"text": "Q: SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955 \nA: Show the citizenship shared by singers with birth year before 1945 and after 1955. \n Additional table information: table: singer"} -{"text": "Q: SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955 \nA: What are the citizenships that are shared by singers with a birth year before 1945 and after 1955? \n Additional table information: table: singer"} -{"text": "Q: SELECT COUNT(*) FROM Other_Available_Features \nA: How many available features are there in total? \n Additional table information: table: real_estate_properties"} -{"text": "Q: SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code = T2.feature_type_code WHERE T1.feature_name = 'AirCon' \nA: What is the feature type name of feature AirCon? \n Additional table information: table: real_estate_properties"} -{"text": "Q: SELECT T2.property_type_description FROM Properties AS T1 JOIN Ref_Property_Types AS T2 ON T1.property_type_code = T2.property_type_code GROUP BY T1.property_type_code \nA: Show the property type descriptions of properties belonging to that code. \n Additional table information: table: real_estate_properties"} -{"text": "Q: SELECT property_name FROM Properties WHERE property_type_code = 'House' UNION SELECT property_name FROM Properties WHERE property_type_code = 'Apartment' AND room_count > 1 \nA: What are the names of properties that are either houses or apartments with more than 1 room? \n Additional table information: table: real_estate_properties"} -{"text": "Q: SELECT position FROM \"canadian_football\".\"toronto\" WHERE school_club_team = 'Butler CC (KS)' \nA: What position does the player who played for butler cc (ks) play? \n Additional table information: table: \"canadian_football\".\"toronto\"\ncolumns: player, player_number, nationality, position, years_in_toronto, school_club_team"} -{"text": "Q: SELECT COUNT school_club_team FROM \"canadian_football\".\"toronto\" WHERE player_number = '3' \nA: How many schools did player number 3 play at? \n Additional table information: table: \"canadian_football\".\"toronto\"\ncolumns: player, player_number, nationality, position, years_in_toronto, school_club_team"} -{"text": "Q: SELECT school_club_team FROM \"canadian_football\".\"toronto\" WHERE player_number = '21' \nA: What school did player number 21 play for? \n Additional table information: table: \"canadian_football\".\"toronto\"\ncolumns: player, player_number, nationality, position, years_in_toronto, school_club_team"} -{"text": "Q: SELECT player FROM \"canadian_football\".\"toronto\" WHERE player_number = '42' \nA: Who is the player that wears number 42? \n Additional table information: table: \"canadian_football\".\"toronto\"\ncolumns: player, player_number, nationality, position, years_in_toronto, school_club_team"} -{"text": "Q: SELECT player FROM \"canadian_football\".\"toronto\" WHERE position = 'Guard' AND years_in_toronto = '1996-97' \nA: What player played guard for toronto in 1996-97? \n Additional table information: table: \"canadian_football\".\"toronto\"\ncolumns: player, player_number, nationality, position, years_in_toronto, school_club_team"} -{"text": "Q: SELECT player FROM \"canadian_football\".\"players\" WHERE school_club_team = 'Westchester High School' \nA: Who are all of the players on the Westchester High School club team? \n Additional table information: table: \"canadian_football\".\"players\"\ncolumns: player, player_number, nationality, Position, years_in_toronto, school_club_team"} -{"text": "Q: SELECT school_club_team FROM \"canadian_football\".\"players\" WHERE player = 'Amir Johnson' \nA: What school/club team is Amir Johnson on? \n Additional table information: table: \"canadian_football\".\"players\"\ncolumns: player, player_number, nationality, Position, years_in_toronto, school_club_team"} -{"text": "Q: SELECT COUNT player_number FROM \"canadian_football\".\"players\" WHERE years_in_toronto = '2005-06' \nA: What are the total amount of numbers on the Toronto team in 2005-06? \n Additional table information: table: \"canadian_football\".\"players\"\ncolumns: player, player_number, nationality, Position, years_in_toronto, school_club_team"} -{"text": "Q: SELECT COUNT Position FROM \"canadian_football\".\"players\" WHERE years_in_toronto = '2006-07' \nA: What are the total number of positions on the Toronto team in 2006-07? \n Additional table information: table: \"canadian_football\".\"players\"\ncolumns: player, player_number, nationality, Position, years_in_toronto, school_club_team"} -{"text": "Q: SELECT nationality FROM \"canadian_football\".\"players\" WHERE school_club_team = 'Fresno State' \nA: What are the nationality of the players on the Fresno State school/club team? \n Additional table information: table: \"canadian_football\".\"players\"\ncolumns: player, player_number, nationality, Position, years_in_toronto, school_club_team"} -{"text": "Q: SELECT school_club_team FROM \"canadian_football\".\"players\" WHERE player = 'Trey Johnson' \nA: What school/club team is Trey Johnson on? \n Additional table information: table: \"canadian_football\".\"players\"\ncolumns: player, player_number, nationality, Position, years_in_toronto, school_club_team"} +{"question": "SELECT COUNT(*) FROM singer", "answer": "How many singers do we have?\nAdditional table information: table: concert_singer"} +{"question": "SELECT COUNT(*) FROM singer", "answer": "What is the total number of singers?\nAdditional table information: table: concert_singer"} +{"question": "SELECT name, country, age FROM singer ORDER BY age DESC", "answer": "Show name, country, age for all singers ordered by age from the oldest to the youngest.\nAdditional table information: table: concert_singer"} +{"question": "SELECT name, country, age FROM singer ORDER BY age DESC", "answer": "What are the names, countries, and ages for every singer in descending order of age?\nAdditional table information: table: concert_singer"} +{"question": "SELECT AVG(age), MIN(age), MAX(age) FROM singer WHERE country = 'France'", "answer": "What is the average, minimum, and maximum age of all singers from France?\nAdditional table information: table: concert_singer"} +{"question": "SELECT AVG(age), MIN(age), MAX(age) FROM singer WHERE country = 'France'", "answer": "What is the average, minimum, and maximum age for all French singers?\nAdditional table information: table: concert_singer"} +{"question": "SELECT song_name, song_release_year FROM singer ORDER BY age NULLS FIRST LIMIT 1", "answer": "Show the name and the release year of the song by the youngest singer.\nAdditional table information: table: concert_singer"} +{"question": "SELECT song_name, song_release_year FROM singer ORDER BY age NULLS FIRST LIMIT 1", "answer": "What are the names and release years for all the songs of the youngest singer?\nAdditional table information: table: concert_singer"} +{"question": "SELECT DISTINCT country FROM singer WHERE age > 20", "answer": "What are all distinct countries where singers above age 20 are from?\nAdditional table information: table: concert_singer"} +{"question": "SELECT DISTINCT country FROM singer WHERE age > 20", "answer": "What are the different countries with singers above age 20?\nAdditional table information: table: concert_singer"} +{"question": "SELECT country, COUNT(*) FROM singer GROUP BY country", "answer": "Show all countries and the number of singers in each country.\nAdditional table information: table: concert_singer"} +{"question": "SELECT country, COUNT(*) FROM singer GROUP BY country", "answer": "How many singers are from each country?\nAdditional table information: table: concert_singer"} +{"question": "SELECT song_name FROM singer WHERE age > (SELECT AVG(age) FROM singer)", "answer": "List all song names by singers above the average age.\nAdditional table information: table: concert_singer"} +{"question": "SELECT song_name FROM singer WHERE age > (SELECT AVG(age) FROM singer)", "answer": "What are all the song names by singers who are older than average?\nAdditional table information: table: concert_singer"} +{"question": "SELECT LOCATION, name FROM stadium WHERE capacity BETWEEN 5000 AND 10000", "answer": "Show location and name for all stadiums with a capacity between 5000 and 10000.\nAdditional table information: table: concert_singer"} +{"question": "SELECT LOCATION, name FROM stadium WHERE capacity BETWEEN 5000 AND 10000", "answer": "What are the locations and names of all stations with capacity between 5000 and 10000?\nAdditional table information: table: concert_singer"} +{"question": "SELECT MAX(capacity), average FROM stadium", "answer": "What is the maximum capacity and the average of all stadiums ?\nAdditional table information: table: concert_singer"} +{"question": "SELECT AVG(capacity), MAX(capacity) FROM stadium", "answer": "What is the average and maximum capacities for all stadiums ?\nAdditional table information: table: concert_singer"} +{"question": "SELECT name, capacity FROM stadium ORDER BY average DESC LIMIT 1", "answer": "What is the name and capacity for the stadium with highest average attendance?\nAdditional table information: table: concert_singer"} +{"question": "SELECT name, capacity FROM stadium ORDER BY average DESC LIMIT 1", "answer": "What is the name and capacity for the stadium with the highest average attendance?\nAdditional table information: table: concert_singer"} +{"question": "SELECT COUNT(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015", "answer": "How many concerts are there in year 2014 or 2015?\nAdditional table information: table: concert_singer"} +{"question": "SELECT COUNT(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015", "answer": "How many concerts occurred in 2014 or 2015?\nAdditional table information: table: concert_singer"} +{"question": "SELECT T2.name, COUNT(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id", "answer": "Show the stadium name and the number of concerts in each stadium.\nAdditional table information: table: concert_singer"} +{"question": "SELECT T2.name, COUNT(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id", "answer": "For each stadium, how many concerts play there?\nAdditional table information: table: concert_singer"} +{"question": "SELECT T2.name, T2.capacity FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year >= 2014 GROUP BY T2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Show the stadium name and capacity with most number of concerts in year 2014 or after.\nAdditional table information: table: concert_singer"} +{"question": "SELECT t2.name, t2.capacity FROM concert AS t1 JOIN stadium AS t2 ON t1.stadium_id = t2.stadium_id WHERE t1.year > 2013 GROUP BY t2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the name and capacity of the stadium with the most concerts after 2013?\nAdditional table information: table: concert_singer"} +{"question": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which year has most number of concerts?\nAdditional table information: table: concert_singer"} +{"question": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the year that had the most concerts?\nAdditional table information: table: concert_singer"} +{"question": "SELECT name FROM stadium WHERE NOT stadium_id IN (SELECT stadium_id FROM concert)", "answer": "Show the stadium names without any concert.\nAdditional table information: table: concert_singer"} +{"question": "SELECT name FROM stadium WHERE NOT stadium_id IN (SELECT stadium_id FROM concert)", "answer": "What are the names of the stadiums without any concerts?\nAdditional table information: table: concert_singer"} +{"question": "SELECT country FROM singer WHERE age > 40 INTERSECT SELECT country FROM singer WHERE age < 30", "answer": "Show countries where a singer above age 40 and a singer below 30 are from.\nAdditional table information: table: concert_singer"} +{"question": "SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year = 2014", "answer": "Show names for all stadiums except for stadiums having a concert in year 2014.\nAdditional table information: table: concert_singer"} +{"question": "SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year = 2014", "answer": "What are the names of all stadiums that did not have a concert in 2014?\nAdditional table information: table: concert_singer"} +{"question": "SELECT T2.concert_name, T2.theme, COUNT(*) FROM singer_in_concert AS T1 JOIN concert AS T2 ON T1.concert_id = T2.concert_id GROUP BY T2.concert_id", "answer": "Show the name and theme for all concerts and the number of singers in each concert.\nAdditional table information: table: concert_singer"} +{"question": "SELECT t2.concert_name, t2.theme, COUNT(*) FROM singer_in_concert AS t1 JOIN concert AS t2 ON t1.concert_id = t2.concert_id GROUP BY t2.concert_id", "answer": "What are the names , themes , and number of singers for every concert ?\nAdditional table information: table: concert_singer"} +{"question": "SELECT T2.name, COUNT(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id", "answer": "List singer names and number of concerts for each singer.\nAdditional table information: table: concert_singer"} +{"question": "SELECT T2.name, COUNT(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id", "answer": "What are the names of the singers and number of concerts for each person?\nAdditional table information: table: concert_singer"} +{"question": "SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014", "answer": "List all singer names in concerts in year 2014.\nAdditional table information: table: concert_singer"} +{"question": "SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014", "answer": "What are the names of the singers who performed in a concert in 2014?\nAdditional table information: table: concert_singer"} +{"question": "SELECT name, country FROM singer WHERE song_name LIKE '%Hey%'", "answer": "what is the name and nation of the singer who have a song having 'Hey' in its name?\nAdditional table information: table: concert_singer"} +{"question": "SELECT name, country FROM singer WHERE song_name LIKE '%Hey%'", "answer": "What is the name and country of origin of every singer who has a song with the word 'Hey' in its title?\nAdditional table information: table: concert_singer"} +{"question": "SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015", "answer": "Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015.\nAdditional table information: table: concert_singer"} +{"question": "SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015", "answer": "What are the names and locations of the stadiums that had concerts that occurred in both 2014 and 2015?\nAdditional table information: table: concert_singer"} +{"question": "SELECT COUNT(*) FROM concert WHERE stadium_id = (SELECT stadium_id FROM stadium ORDER BY capacity DESC LIMIT 1)", "answer": "Find the number of concerts happened in the stadium with the highest capacity .\nAdditional table information: table: concert_singer"} +{"question": "SELECT COUNT(*) FROM concert WHERE stadium_id = (SELECT stadium_id FROM stadium ORDER BY capacity DESC LIMIT 1)", "answer": "What are the number of concerts that occurred in the stadium with the largest capacity ?\nAdditional table information: table: concert_singer"} +{"question": "SELECT COUNT(*) FROM pets WHERE weight > 10", "answer": "Find the number of pets whose weight is heavier than 10.\nAdditional table information: table: pets_1"} +{"question": "SELECT COUNT(*) FROM pets WHERE weight > 10", "answer": "How many pets have a greater weight than 10?\nAdditional table information: table: pets_1"} +{"question": "SELECT weight FROM pets ORDER BY pet_age NULLS FIRST LIMIT 1", "answer": "Find the weight of the youngest dog.\nAdditional table information: table: pets_1"} +{"question": "SELECT weight FROM pets ORDER BY pet_age NULLS FIRST LIMIT 1", "answer": "How much does the youngest dog weigh?\nAdditional table information: table: pets_1"} +{"question": "SELECT MAX(weight), petType FROM pets GROUP BY petType", "answer": "Find the maximum weight for each type of pet. List the maximum weight and pet type.\nAdditional table information: table: pets_1"} +{"question": "SELECT MAX(weight), petType FROM pets GROUP BY petType", "answer": "List the maximum weight and type for each type of pet.\nAdditional table information: table: pets_1"} +{"question": "SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20", "answer": "Find number of pets owned by students who are older than 20.\nAdditional table information: table: pets_1"} +{"question": "SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20", "answer": "How many pets are owned by students that have an age greater than 20?\nAdditional table information: table: pets_1"} +{"question": "SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog'", "answer": "Find the number of dog pets that are raised by female students (with sex F).\nAdditional table information: table: pets_1"} +{"question": "SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog'", "answer": "How many dog pets are raised by female students?\nAdditional table information: table: pets_1"} +{"question": "SELECT COUNT(DISTINCT pettype) FROM pets", "answer": "Find the number of distinct type of pets.\nAdditional table information: table: pets_1"} +{"question": "SELECT COUNT(DISTINCT pettype) FROM pets", "answer": "How many different types of pet are there?\nAdditional table information: table: pets_1"} +{"question": "SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog'", "answer": "Find the first name of students who have cat or dog pet.\nAdditional table information: table: pets_1"} +{"question": "SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog'", "answer": "What are the first names of every student who has a cat or dog as a pet?\nAdditional table information: table: pets_1"} +{"question": "SELECT t1.fname FROM student AS t1 JOIN has_pet AS t2 ON t1.stuid = t2.stuid JOIN pets AS t3 ON t3.petid = t2.petid WHERE t3.pettype = 'cat' INTERSECT SELECT t1.fname FROM student AS t1 JOIN has_pet AS t2 ON t1.stuid = t2.stuid JOIN pets AS t3 ON t3.petid = t2.petid WHERE t3.pettype = 'dog'", "answer": "Find the first name of students who have both cat and dog pets .\nAdditional table information: table: pets_1"} +{"question": "SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' INTERSECT SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog'", "answer": "What are the students' first names who have both cats and dogs as pets?\nAdditional table information: table: pets_1"} +{"question": "SELECT major, age FROM student WHERE NOT stuid IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')", "answer": "Find the major and age of students who do not have a cat pet.\nAdditional table information: table: pets_1"} +{"question": "SELECT major, age FROM student WHERE NOT stuid IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')", "answer": "What major is every student who does not own a cat as a pet, and also how old are they?\nAdditional table information: table: pets_1"} +{"question": "SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat'", "answer": "Find the id of students who do not have a cat pet.\nAdditional table information: table: pets_1"} +{"question": "SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat'", "answer": "What are the ids of the students who do not own cats as pets?\nAdditional table information: table: pets_1"} +{"question": "SELECT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND NOT T1.stuid IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')", "answer": "Find the first name and age of students who have a dog but do not have a cat as a pet.\nAdditional table information: table: pets_1"} +{"question": "SELECT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND NOT T1.stuid IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')", "answer": "What is the first name of every student who has a dog but does not have a cat?\nAdditional table information: table: pets_1"} +{"question": "SELECT pettype, weight FROM pets ORDER BY pet_age NULLS FIRST LIMIT 1", "answer": "Find the type and weight of the youngest pet.\nAdditional table information: table: pets_1"} +{"question": "SELECT pettype, weight FROM pets ORDER BY pet_age NULLS FIRST LIMIT 1", "answer": "What type of pet is the youngest animal, and how much does it weigh?\nAdditional table information: table: pets_1"} +{"question": "SELECT petid, weight FROM pets WHERE pet_age > 1", "answer": "Find the id and weight of all pets whose age is older than 1.\nAdditional table information: table: pets_1"} +{"question": "SELECT petid, weight FROM pets WHERE pet_age > 1", "answer": "What is the id and weight of every pet who is older than 1?\nAdditional table information: table: pets_1"} +{"question": "SELECT AVG(pet_age), MAX(pet_age), pettype FROM pets GROUP BY pettype", "answer": "Find the average and maximum age for each type of pet.\nAdditional table information: table: pets_1"} +{"question": "SELECT AVG(pet_age), MAX(pet_age), pettype FROM pets GROUP BY pettype", "answer": "What is the average and maximum age for each pet type?\nAdditional table information: table: pets_1"} +{"question": "SELECT AVG(weight), pettype FROM pets GROUP BY pettype", "answer": "Find the average weight for each pet type.\nAdditional table information: table: pets_1"} +{"question": "SELECT AVG(weight), pettype FROM pets GROUP BY pettype", "answer": "What is the average weight for each type of pet?\nAdditional table information: table: pets_1"} +{"question": "SELECT DISTINCT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid", "answer": "Find the first name and age of students who have a pet.\nAdditional table information: table: pets_1"} +{"question": "SELECT DISTINCT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid", "answer": "What are the different first names and ages of the students who do have pets?\nAdditional table information: table: pets_1"} +{"question": "SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith'", "answer": "Find the id of the pet owned by student whose last name is \u2018Smith\u2019.\nAdditional table information: table: pets_1"} +{"question": "SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith'", "answer": "What is the id of the pet owned by the student whose last name is 'Smith'?\nAdditional table information: table: pets_1"} +{"question": "SELECT COUNT(*), T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid", "answer": "Find the number of pets for each student who has any pet and student id.\nAdditional table information: table: pets_1"} +{"question": "SELECT COUNT(*), t1.stuid FROM student AS t1 JOIN has_pet AS t2 ON t1.stuid = t2.stuid GROUP BY t1.stuid", "answer": "For students who have pets , how many pets does each student have ? list their ids instead of names .\nAdditional table information: table: pets_1"} +{"question": "SELECT T1.fname, T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING COUNT(*) > 1", "answer": "Find the first name and gender of student who have more than one pet.\nAdditional table information: table: pets_1"} +{"question": "SELECT T1.fname, T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING COUNT(*) > 1", "answer": "What is the first name and gender of the all the students who have more than one pet?\nAdditional table information: table: pets_1"} +{"question": "SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat'", "answer": "Find the last name of the student who has a cat that is age 3.\nAdditional table information: table: pets_1"} +{"question": "SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat'", "answer": "What is the last name of the student who has a cat that is 3 years old?\nAdditional table information: table: pets_1"} +{"question": "SELECT AVG(age) FROM student WHERE NOT stuid IN (SELECT stuid FROM has_pet)", "answer": "Find the average age of students who do not have any pet .\nAdditional table information: table: pets_1"} +{"question": "SELECT AVG(age) FROM student WHERE NOT stuid IN (SELECT stuid FROM has_pet)", "answer": "What is the average age for all students who do not own any pets ?\nAdditional table information: table: pets_1"} +{"question": "SELECT COUNT(*) FROM CONTINENTS", "answer": "How many continents are there?\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*) FROM CONTINENTS", "answer": "What is the number of continents?\nAdditional table information: table: car_1"} +{"question": "SELECT T1.ContId, T1.Continent, COUNT(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId", "answer": "How many countries does each continent have? List the continent id, continent name and the number of countries.\nAdditional table information: table: car_1"} +{"question": "SELECT T1.ContId, T1.Continent, COUNT(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId", "answer": "For each continent, list its id, name, and how many countries it has?\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*) FROM COUNTRIES", "answer": "How many countries are listed?\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*) FROM COUNTRIES", "answer": "How many countries exist?\nAdditional table information: table: car_1"} +{"question": "SELECT T1.FullName, T1.Id, COUNT(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id", "answer": "How many models does each car maker produce? List maker full name, id and the number.\nAdditional table information: table: car_1"} +{"question": "SELECT T1.FullName, T1.Id, COUNT(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id", "answer": "What is the full name of each car maker, along with its id and how many models it produces?\nAdditional table information: table: car_1"} +{"question": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC NULLS FIRST LIMIT 1", "answer": "Which model of the car has the minimum horsepower?\nAdditional table information: table: car_1"} +{"question": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC NULLS FIRST LIMIT 1", "answer": "What is the model of the car with the smallest amount of horsepower?\nAdditional table information: table: car_1"} +{"question": "SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT AVG(Weight) FROM CARS_DATA)", "answer": "Find the model of the car whose weight is below the average weight.\nAdditional table information: table: car_1"} +{"question": "SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT AVG(Weight) FROM CARS_DATA)", "answer": "What is the model for the car with a weight smaller than the average?\nAdditional table information: table: car_1"} +{"question": "SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970'", "answer": "Find the name of the makers that produced some cars in the year of 1970?\nAdditional table information: table: car_1"} +{"question": "SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970'", "answer": "What is the name of the different car makers who produced a car in 1970?\nAdditional table information: table: car_1"} +{"question": "SELECT T2.Make, T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT MIN(YEAR) FROM CARS_DATA)", "answer": "Find the make and production time of the cars that were produced in the earliest year?\nAdditional table information: table: car_1"} +{"question": "SELECT T2.Make, T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT MIN(YEAR) FROM CARS_DATA)", "answer": "What is the maker of the carr produced in the earliest year and what year was it?\nAdditional table information: table: car_1"} +{"question": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980", "answer": "Which distinct car models are the produced after 1980?\nAdditional table information: table: car_1"} +{"question": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980", "answer": "What are the different models for the cards produced after 1980?\nAdditional table information: table: car_1"} +{"question": "SELECT T1.Continent, COUNT(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent", "answer": "How many car makers are there in each continents? List the continent name and the count.\nAdditional table information: table: car_1"} +{"question": "SELECT T1.Continent, COUNT(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent", "answer": "What is the name of each continent and how many car makers are there in each one?\nAdditional table information: table: car_1"} +{"question": "SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which of the countries has the most car makers? List the country name.\nAdditional table information: table: car_1"} +{"question": "SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the name of the country with the most car makers?\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*), t2.fullname FROM model_list AS t1 JOIN car_makers AS t2 ON t1.maker = t2.id GROUP BY t2.id", "answer": "How many car models are produced by each maker ? Only list the count and the maker full name .\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*), T2.FullName, T2.id FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id GROUP BY T2.id", "answer": "What is the number of car models that are produced by each maker and what is the id and full name of each maker?\nAdditional table information: table: car_1"} +{"question": "SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)'", "answer": "What is the accelerate of the car make amc hornet sportabout (sw)?\nAdditional table information: table: car_1"} +{"question": "SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)'", "answer": "How much does the car accelerate that makes amc hornet sportabout (sw)?\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france'", "answer": "How many car makers are there in france?\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france'", "answer": "What is the number of makers of care in France?\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa'", "answer": "How many car models are produced in the usa?\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa'", "answer": "What is the count of the car models produced in the United States?\nAdditional table information: table: car_1"} +{"question": "SELECT AVG(mpg) FROM CARS_DATA WHERE Cylinders = 4", "answer": "What is the average miles per gallon(mpg) of the cars with 4 cylinders?\nAdditional table information: table: car_1"} +{"question": "SELECT AVG(mpg) FROM CARS_DATA WHERE Cylinders = 4", "answer": "What is the average miles per gallon of all the cards with 4 cylinders?\nAdditional table information: table: car_1"} +{"question": "SELECT MIN(weight) FROM cars_data WHERE cylinders = 8 AND year = 1974", "answer": "What is the smallest weight of the car produced with 8 cylinders on 1974 ?\nAdditional table information: table: car_1"} +{"question": "SELECT MIN(weight) FROM cars_data WHERE cylinders = 8 AND year = 1974", "answer": "What is the minimum weight of the car with 8 cylinders produced in 1974 ?\nAdditional table information: table: car_1"} +{"question": "SELECT Maker, Model FROM MODEL_LIST", "answer": "What are all the makers and models?\nAdditional table information: table: car_1"} +{"question": "SELECT Maker, Model FROM MODEL_LIST", "answer": "What are the makers and models?\nAdditional table information: table: car_1"} +{"question": "SELECT T1.CountryName, T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING COUNT(*) >= 1", "answer": "What are the countries having at least one car maker? List name and id.\nAdditional table information: table: car_1"} +{"question": "SELECT T1.CountryName, T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING COUNT(*) >= 1", "answer": "What are the names and ids of all countries with at least one car maker?\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*) FROM CARS_DATA WHERE horsepower > 150", "answer": "What is the number of the cars with horsepower more than 150?\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*) FROM CARS_DATA WHERE horsepower > 150", "answer": "What is the number of cars with a horsepower greater than 150?\nAdditional table information: table: car_1"} +{"question": "SELECT AVG(Weight), YEAR FROM CARS_DATA GROUP BY YEAR", "answer": "What is the average weight of cars each year?\nAdditional table information: table: car_1"} +{"question": "SELECT AVG(Weight), YEAR FROM CARS_DATA GROUP BY YEAR", "answer": "What is the average weight and year for each year?\nAdditional table information: table: car_1"} +{"question": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING COUNT(*) >= 3", "answer": "Which countries in europe have at least 3 car manufacturers?\nAdditional table information: table: car_1"} +{"question": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING COUNT(*) >= 3", "answer": "What are the names of all European countries with at least 3 manufacturers?\nAdditional table information: table: car_1"} +{"question": "SELECT T2.horsepower, T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1", "answer": "What is the maximum horsepower and the make of the car models with 3 cylinders?\nAdditional table information: table: car_1"} +{"question": "SELECT T2.horsepower, T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1", "answer": "What is the largest amount of horsepower for the models with 3 cylinders and what make is it?\nAdditional table information: table: car_1"} +{"question": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.mpg DESC LIMIT 1", "answer": "Which model saves the most gasoline? That is to say, have the maximum miles per gallon.\nAdditional table information: table: car_1"} +{"question": "SELECT t1.model FROM car_names AS t1 JOIN cars_data AS t2 ON t1.makeid = t2.id ORDER BY t2.mpg DESC LIMIT 1", "answer": "What is the car model with the highest mpg ?\nAdditional table information: table: car_1"} +{"question": "SELECT AVG(horsepower) FROM CARS_DATA WHERE YEAR < 1980", "answer": "What is the average horsepower of the cars before 1980?\nAdditional table information: table: car_1"} +{"question": "SELECT AVG(horsepower) FROM cars_data WHERE year < 1980", "answer": "What is the average horsepower for all cars produced before 1980 ?\nAdditional table information: table: car_1"} +{"question": "SELECT AVG(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo'", "answer": "What is the average edispl of the cars of model volvo?\nAdditional table information: table: car_1"} +{"question": "SELECT AVG(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo'", "answer": "What is the average edispl for all volvos?\nAdditional table information: table: car_1"} +{"question": "SELECT MAX(Accelerate), Cylinders FROM CARS_DATA GROUP BY Cylinders", "answer": "What is the maximum accelerate for different number of cylinders?\nAdditional table information: table: car_1"} +{"question": "SELECT MAX(Accelerate), Cylinders FROM CARS_DATA GROUP BY Cylinders", "answer": "What is the maximum accelerate for all the different cylinders?\nAdditional table information: table: car_1"} +{"question": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which model has the most version(make) of cars?\nAdditional table information: table: car_1"} +{"question": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What model has the most different versions?\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 4", "answer": "How many cars have more than 4 cylinders?\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 4", "answer": "What is the number of cars with more than 4 cylinders?\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*) FROM CARS_DATA WHERE YEAR = 1980", "answer": "how many cars were produced in 1980?\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*) FROM CARS_DATA WHERE YEAR = 1980", "answer": "In 1980, how many cars were made?\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company'", "answer": "How many car models were produced by the maker with full name American Motor Company?\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company'", "answer": "What is the number of car models created by the car maker American Motor Company?\nAdditional table information: table: car_1"} +{"question": "SELECT T1.FullName, T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING COUNT(*) > 3", "answer": "Which makers designed more than 3 car models? List full name and the id.\nAdditional table information: table: car_1"} +{"question": "SELECT T1.FullName, T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING COUNT(*) > 3", "answer": "What are the names and ids of all makers with more than 3 models?\nAdditional table information: table: car_1"} +{"question": "SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500", "answer": "Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?\nAdditional table information: table: car_1"} +{"question": "SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500", "answer": "What are the different models created by either the car maker General Motors or weighed more than 3500?\nAdditional table information: table: car_1"} +{"question": "SELECT DISTINCT year FROM cars_data WHERE weight BETWEEN 3000 AND 4000", "answer": "In which years cars were produced weighing no less than 3000 and no more than 4000 ?\nAdditional table information: table: car_1"} +{"question": "SELECT DISTINCT year FROM cars_data WHERE weight BETWEEN 3000 AND 4000", "answer": "What are the different years in which there were cars produced that weighed less than 4000 and also cars that weighted more than 3000 ?\nAdditional table information: table: car_1"} +{"question": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1", "answer": "What is the horsepower of the car with the largest accelerate?\nAdditional table information: table: car_1"} +{"question": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1", "answer": "What is the horsepower of the car with the greatest accelerate?\nAdditional table information: table: car_1"} +{"question": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC NULLS FIRST LIMIT 1", "answer": "For model volvo, how many cylinders does the car with the least accelerate have?\nAdditional table information: table: car_1"} +{"question": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC NULLS FIRST LIMIT 1", "answer": "For a volvo model, how many cylinders does the version with least accelerate have?\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > (SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1)", "answer": "How many cars have a larger accelerate than the car with the largest horsepower?\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > (SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1)", "answer": "What is the number of cars with a greater accelerate than the one with the most horsepower?\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*) FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 2", "answer": "How many countries has more than 2 car makers ?\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*) FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 2", "answer": "What is the number of countries with more than 2 car makers ?\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6", "answer": "How many cars has over 6 cylinders?\nAdditional table information: table: car_1"} +{"question": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6", "answer": "What is the number of carsw ith over 6 cylinders?\nAdditional table information: table: car_1"} +{"question": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1", "answer": "For the cars with 4 cylinders, which model has the largest horsepower?\nAdditional table information: table: car_1"} +{"question": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1", "answer": "For all of the 4 cylinder cars, which model has the most horsepower?\nAdditional table information: table: car_1"} +{"question": "SELECT T2.MakeId, T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT MIN(Horsepower) FROM CARS_DATA) AND T1.Cylinders <= 3", "answer": "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.\nAdditional table information: table: car_1"} +{"question": "SELECT t2.makeid, t2.make FROM cars_data AS t1 JOIN car_names AS t2 ON t1.id = t2.makeid WHERE t1.horsepower > (SELECT MIN(horsepower) FROM cars_data) AND t1.cylinders < 4", "answer": "Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ?\nAdditional table information: table: car_1"} +{"question": "SELECT MAX(mpg) FROM cars_data WHERE cylinders = 8 OR year < 1980", "answer": "What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980 ?\nAdditional table information: table: car_1"} +{"question": "SELECT MAX(mpg) FROM cars_data WHERE cylinders = 8 OR year < 1980", "answer": "What is the maximum mpg of the cars that had 8 cylinders or that were produced before 1980 ?\nAdditional table information: table: car_1"} +{"question": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName <> 'Ford Motor Company'", "answer": "Which models are lighter than 3500 but not built by the 'Ford Motor Company'?\nAdditional table information: table: car_1"} +{"question": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName <> 'Ford Motor Company'", "answer": "What are the different models wthat are lighter than 3500 but were not built by the Ford Motor Company?\nAdditional table information: table: car_1"} +{"question": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country", "answer": "What are the name of the countries where there is not a single car maker?\nAdditional table information: table: car_1"} +{"question": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country", "answer": "What are the names of the countries with no car makers?\nAdditional table information: table: car_1"} +{"question": "SELECT t1.id, t1.maker FROM car_makers AS t1 JOIN model_list AS t2 ON t1.id = t2.maker GROUP BY t1.id HAVING COUNT(*) >= 2 INTERSECT SELECT t1.id, t1.maker FROM car_makers AS t1 JOIN model_list AS t2 ON t1.id = t2.maker JOIN car_names AS t3 ON t2.model = t3.model GROUP BY t1.id HAVING COUNT(*) > 3", "answer": "Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .\nAdditional table information: table: car_1"} +{"question": "SELECT T1.Id, T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING COUNT(*) >= 2 INTERSECT SELECT T1.Id, T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model GROUP BY T1.Id HAVING COUNT(*) > 3", "answer": "What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?\nAdditional table information: table: car_1"} +{"question": "SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING COUNT(*) > 3 UNION SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model = 'fiat'", "answer": "What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?\nAdditional table information: table: car_1"} +{"question": "SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 3 UNION SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country JOIN model_list AS t3 ON t2.id = t3.maker WHERE t3.model = 'fiat'", "answer": "What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?\nAdditional table information: table: car_1"} +{"question": "SELECT Country FROM AIRLINES WHERE Airline = 'JetBlue Airways'", "answer": "Which country does Airline 'JetBlue Airways' belong to?\nAdditional table information: table: flight_2"} +{"question": "SELECT Country FROM AIRLINES WHERE Airline = 'JetBlue Airways'", "answer": "What country is Jetblue Airways affiliated with?\nAdditional table information: table: flight_2"} +{"question": "SELECT Abbreviation FROM AIRLINES WHERE Airline = 'JetBlue Airways'", "answer": "What is the abbreviation of Airline 'JetBlue Airways'?\nAdditional table information: table: flight_2"} +{"question": "SELECT Abbreviation FROM AIRLINES WHERE Airline = 'JetBlue Airways'", "answer": "Which abbreviation corresponds to Jetblue Airways?\nAdditional table information: table: flight_2"} +{"question": "SELECT Airline, Abbreviation FROM AIRLINES WHERE Country = 'USA'", "answer": "List all airline names and their abbreviations in 'USA'.\nAdditional table information: table: flight_2"} +{"question": "SELECT Airline, Abbreviation FROM AIRLINES WHERE Country = 'USA'", "answer": "What are the airline names and abbreviations for airlines in the USA?\nAdditional table information: table: flight_2"} +{"question": "SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = 'Anthony'", "answer": "List the airport code and name in the city of Anthony.\nAdditional table information: table: flight_2"} +{"question": "SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = 'Anthony'", "answer": "Give the airport code and airport name corresonding to the city Anthony.\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM AIRLINES", "answer": "How many airlines do we have?\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM AIRLINES", "answer": "What is the total number of airlines?\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM AIRPORTS", "answer": "How many airports do we have?\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM AIRPORTS", "answer": "Return the number of airports.\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM FLIGHTS", "answer": "How many flights do we have?\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM FLIGHTS", "answer": "Return the number of flights.\nAdditional table information: table: flight_2"} +{"question": "SELECT Airline FROM AIRLINES WHERE Abbreviation = 'UAL'", "answer": "Which airline has abbreviation 'UAL'?\nAdditional table information: table: flight_2"} +{"question": "SELECT Airline FROM AIRLINES WHERE Abbreviation = 'UAL'", "answer": "Give the airline with abbreviation 'UAL'.\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM AIRLINES WHERE Country = 'USA'", "answer": "How many airlines are from USA?\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM AIRLINES WHERE Country = 'USA'", "answer": "Return the number of airlines in the USA.\nAdditional table information: table: flight_2"} +{"question": "SELECT City, Country FROM AIRPORTS WHERE AirportName = 'Alton'", "answer": "Which city and country is the Alton airport at?\nAdditional table information: table: flight_2"} +{"question": "SELECT City, Country FROM AIRPORTS WHERE AirportName = 'Alton'", "answer": "Give the city and country for the Alton airport.\nAdditional table information: table: flight_2"} +{"question": "SELECT AirportName FROM AIRPORTS WHERE AirportCode = 'AKO'", "answer": "What is the airport name for airport 'AKO'?\nAdditional table information: table: flight_2"} +{"question": "SELECT AirportName FROM AIRPORTS WHERE AirportCode = 'AKO'", "answer": "Return the name of the airport with code 'AKO'.\nAdditional table information: table: flight_2"} +{"question": "SELECT AirportName FROM AIRPORTS WHERE City = 'Aberdeen'", "answer": "What are airport names at City 'Aberdeen'?\nAdditional table information: table: flight_2"} +{"question": "SELECT AirportName FROM AIRPORTS WHERE City = 'Aberdeen'", "answer": "What are the names of airports in Aberdeen?\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport = 'APG'", "answer": "How many flights depart from 'APG'?\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport = 'APG'", "answer": "Count the number of flights departing from 'APG'.\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM FLIGHTS WHERE DestAirport = 'ATO'", "answer": "How many flights have destination ATO?\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM FLIGHTS WHERE DestAirport = 'ATO'", "answer": "Count the number of flights into ATO.\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Aberdeen'", "answer": "How many flights depart from City Aberdeen?\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Aberdeen'", "answer": "Return the number of flights departing from Aberdeen.\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = 'Aberdeen'", "answer": "How many flights arriving in Aberdeen city?\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = 'Aberdeen'", "answer": "Return the number of flights arriving in Aberdeen.\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = 'Ashley' AND T3.City = 'Aberdeen'", "answer": "How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = 'Ashley' AND T3.City = 'Aberdeen'", "answer": "How many flights fly from Aberdeen to Ashley?\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = 'JetBlue Airways'", "answer": "How many flights does airline 'JetBlue Airways' have?\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = 'JetBlue Airways'", "answer": "Give the number of Jetblue Airways flights.\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = 'United Airlines' AND T2.DestAirport = 'ASY'", "answer": "How many 'United Airlines' flights go to Airport 'ASY'?\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = 'United Airlines' AND T2.DestAirport = 'ASY'", "answer": "Count the number of United Airlines flights arriving in ASY Airport.\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = 'United Airlines' AND T2.SourceAirport = 'AHD'", "answer": "How many 'United Airlines' flights depart from Airport 'AHD'?\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = 'United Airlines' AND T2.SourceAirport = 'AHD'", "answer": "Return the number of United Airlines flights leaving from AHD Airport.\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = 'Aberdeen' AND T3.Airline = 'United Airlines'", "answer": "How many United Airlines flights go to City 'Aberdeen'?\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = 'Aberdeen' AND T3.Airline = 'United Airlines'", "answer": "Count the number of United Airlines flights that arrive in Aberdeen.\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which city has most number of arriving flights?\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which city has the most frequent destination airport?\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which city has most number of departing flights?\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which city is the most frequent source airport?\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the code of airport that has the highest number of flights?\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the airport code of the airport with the most flights?\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) NULLS FIRST LIMIT 1", "answer": "What is the code of airport that has fewest number of flights?\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) NULLS FIRST LIMIT 1", "answer": "Give the code of the airport with the least flights.\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which airline has most number of flights?\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What airline serves the most flights?\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.Abbreviation, T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) NULLS FIRST LIMIT 1", "answer": "Find the abbreviation and country of the airline that has fewest number of flights?\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.Abbreviation, T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) NULLS FIRST LIMIT 1", "answer": "What is the abbreviation of the airilne has the fewest flights and what country is it in?\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'AHD'", "answer": "What are airlines that have some flight departing from airport 'AHD'?\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'AHD'", "answer": "Which airlines have a flight with source airport AHD?\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = 'AHD'", "answer": "What are airlines that have flights arriving at airport 'AHD'?\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = 'AHD'", "answer": "Which airlines have a flight with destination airport AHD?\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'APG' INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'CVO'", "answer": "Find all airlines that have flights from both airports 'APG' and 'CVO'.\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'APG' INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'CVO'", "answer": "Which airlines have departing flights from both APG and CVO airports?\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'CVO' EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'APG'", "answer": "Find all airlines that have flights from airport 'CVO' but not from 'APG'.\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'CVO' EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'APG'", "answer": "Which airlines have departures from CVO but not from APG airports?\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING COUNT(*) > 10", "answer": "Find all airlines that have at least 10 flights.\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING COUNT(*) > 10", "answer": "Which airlines have at least 10 flights?\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING COUNT(*) < 200", "answer": "Find all airlines that have fewer than 200 flights.\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING COUNT(*) < 200", "answer": "Which airlines have less than 200 flights?\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = 'United Airlines'", "answer": "What are flight numbers of Airline 'United Airlines'?\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = 'United Airlines'", "answer": "Which flight numbers correspond to United Airlines flights?\nAdditional table information: table: flight_2"} +{"question": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = 'APG'", "answer": "What are flight numbers of flights departing from Airport 'APG'?\nAdditional table information: table: flight_2"} +{"question": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = 'APG'", "answer": "Give the flight numbers of flights leaving from APG.\nAdditional table information: table: flight_2"} +{"question": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = 'APG'", "answer": "What are flight numbers of flights arriving at Airport 'APG'?\nAdditional table information: table: flight_2"} +{"question": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = 'APG'", "answer": "Give the flight numbers of flights landing at APG.\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Aberdeen'", "answer": "What are flight numbers of flights departing from City 'Aberdeen '?\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Aberdeen'", "answer": "Give the flight numbers of flights leaving from Aberdeen.\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = 'Aberdeen'", "answer": "What are flight numbers of flights arriving at City 'Aberdeen'?\nAdditional table information: table: flight_2"} +{"question": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = 'Aberdeen'", "answer": "Give the flight numbers of flights arriving in Aberdeen.\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = 'Aberdeen' OR T2.city = 'Abilene'", "answer": "Find the number of flights landing in the city of Aberdeen or Abilene.\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = 'Aberdeen' OR T2.city = 'Abilene'", "answer": "How many flights land in Aberdeen or Abilene?\nAdditional table information: table: flight_2"} +{"question": "SELECT AirportName FROM Airports WHERE NOT AirportCode IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)", "answer": "Find the name of airports which do not have any flight in and out.\nAdditional table information: table: flight_2"} +{"question": "SELECT AirportName FROM Airports WHERE NOT AirportCode IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)", "answer": "Which airports do not have departing or arriving flights?\nAdditional table information: table: flight_2"} +{"question": "SELECT COUNT(*) FROM employee", "answer": "How many employees are there?\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT COUNT(*) FROM employee", "answer": "Count the number of employees\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT name FROM employee ORDER BY age NULLS FIRST", "answer": "Sort employee names by their age in ascending order.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT name FROM employee ORDER BY age NULLS FIRST", "answer": "List the names of employees and sort in ascending order of age.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT COUNT(*), city FROM employee GROUP BY city", "answer": "What is the number of employees from each city?\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT COUNT(*), city FROM employee GROUP BY city", "answer": "Count the number of employees for each city.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING COUNT(*) > 1", "answer": "Which cities do more than one employee under age 30 come from?\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING COUNT(*) > 1", "answer": "Find the cities that have more than one employee under age 30.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT COUNT(*), LOCATION FROM shop GROUP BY LOCATION", "answer": "Find the number of shops in each location.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT COUNT(*), LOCATION FROM shop GROUP BY LOCATION", "answer": "How many shops are there in each location?\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT manager_name, district FROM shop ORDER BY number_products DESC LIMIT 1", "answer": "Find the manager name and district of the shop whose number of products is the largest.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT manager_name, district FROM shop ORDER BY number_products DESC LIMIT 1", "answer": "What are the manager name and district of the shop that sells the largest number of products?\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT MIN(Number_products), MAX(Number_products) FROM shop", "answer": "find the minimum and maximum number of products of all stores.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT MIN(Number_products), MAX(Number_products) FROM shop", "answer": "What are the minimum and maximum number of products across all the shops?\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT name, LOCATION, district FROM shop ORDER BY number_products DESC", "answer": "Return the name, location and district of all shops in descending order of number of products.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT name, LOCATION, district FROM shop ORDER BY number_products DESC", "answer": "Sort all the shops by number products in descending order, and return the name, location and district of each shop.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT name FROM shop WHERE number_products > (SELECT AVG(number_products) FROM shop)", "answer": "Find the names of stores whose number products is more than the average number of products.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT name FROM shop WHERE number_products > (SELECT AVG(number_products) FROM shop)", "answer": "Which shops' number products is above the average? Give me the shop names.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY COUNT(*) DESC LIMIT 1", "answer": "find the name of employee who was awarded the most times in the evaluation.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which employee received the most awards in evaluations? Give me the employee name.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1", "answer": "Find the name of the employee who got the highest one time bonus.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1", "answer": "Which employee received the biggest bonus? Give me the employee name.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT name FROM employee WHERE NOT Employee_ID IN (SELECT Employee_ID FROM evaluation)", "answer": "Find the names of employees who never won any award in the evaluation.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT name FROM employee WHERE NOT Employee_ID IN (SELECT Employee_ID FROM evaluation)", "answer": "What are the names of the employees who never received any evaluation?\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the name of the shop that is hiring the largest number of employees?\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which shop has the most employees? Give me the shop name.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT name FROM shop WHERE NOT shop_id IN (SELECT shop_id FROM hiring)", "answer": "Find the name of the shops that do not hire any employee.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT name FROM shop WHERE NOT shop_id IN (SELECT shop_id FROM hiring)", "answer": "Which shops run with no employees? Find the shop names\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT COUNT(*), t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name", "answer": "Find the number of employees hired in each shop; show the shop name as well.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT COUNT(*), t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name", "answer": "For each shop, return the number of employees working there and the name of the shop.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT SUM(bonus) FROM evaluation", "answer": "What is total bonus given in all evaluations?\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT SUM(bonus) FROM evaluation", "answer": "Find the total amount of bonus given in all the evaluations.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT * FROM hiring", "answer": "Give me all the information about hiring.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT * FROM hiring", "answer": "What is all the information about hiring?\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000", "answer": "Which district has both stores with less than 3000 products and stores with more than 10000 products?\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000", "answer": "Find the districts in which there are both shops selling less than 3000 products and shops selling more than 10000 products.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT COUNT(DISTINCT LOCATION) FROM shop", "answer": "How many different store locations are there?\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT COUNT(DISTINCT LOCATION) FROM shop", "answer": "Count the number of distinct store locations.\nAdditional table information: table: employee_hire_evaluation"} +{"question": "SELECT COUNT(*) FROM Documents", "answer": "How many documents do we have?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT COUNT(*) FROM Documents", "answer": "Count the number of documents.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT document_id, document_name, document_description FROM Documents", "answer": "List document IDs, document names, and document descriptions for all documents.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT document_id, document_name, document_description FROM Documents", "answer": "What are the ids, names, and descriptions for all documents?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT document_name, template_id FROM Documents WHERE Document_Description LIKE '%w%'", "answer": "What is the document name and template id for document with description with the letter 'w' in it?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT document_name, template_id FROM Documents WHERE Document_Description LIKE '%w%'", "answer": "Return the names and template ids for documents that contain the letter w in their description.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT document_id, template_id, Document_Description FROM Documents WHERE document_name = 'Robbin CV'", "answer": "What is the document id, template id and description for document named 'Robbin CV'?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT document_id, template_id, Document_Description FROM Documents WHERE document_name = 'Robbin CV'", "answer": "Return the document id, template id, and description for the document with the name Robbin CV.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT COUNT(DISTINCT template_id) FROM Documents", "answer": "How many different templates do all document use?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT COUNT(DISTINCT template_id) FROM Documents", "answer": "Count the number of different templates used for documents.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT COUNT(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'", "answer": "How many documents are using the template with type code 'PPT'?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT COUNT(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'", "answer": "Count the number of documents that use the PPT template type.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_id, COUNT(*) FROM Documents GROUP BY template_id", "answer": "Show all template ids and number of documents using each template.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_id, COUNT(*) FROM Documents GROUP BY template_id", "answer": "What are all different template ids used for documents, and how many times were each of them used?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT T1.template_id, T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the id and type code for the template used by the most documents?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT T1.template_id, T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Return the id and type code of the template that is used for the greatest number of documents.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_id FROM Documents GROUP BY template_id HAVING COUNT(*) > 1", "answer": "Show ids for all templates that are used by more than one document.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_id FROM Documents GROUP BY template_id HAVING COUNT(*) > 1", "answer": "What are the template ids of any templates used in more than a single document?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents", "answer": "Show ids for all templates not used by any document.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents", "answer": "What are the ids for templates that are not used in any documents?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT COUNT(*) FROM Templates", "answer": "How many templates do we have?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT COUNT(*) FROM Templates", "answer": "Count the number of templates.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_id, version_number, template_type_code FROM Templates", "answer": "Show template ids, version numbers, and template type codes for all templates.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_id, version_number, template_type_code FROM Templates", "answer": "What are the ids, version numbers, and type codes for each template?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT DISTINCT template_type_code FROM Templates", "answer": "Show all distinct template type codes for all templates.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT DISTINCT template_type_code FROM Templates", "answer": "What are the different template type codes?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_id FROM Templates WHERE template_type_code = 'PP' OR template_type_code = 'PPT'", "answer": "What are the ids of templates with template type code PP or PPT?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_id FROM Templates WHERE template_type_code = 'PP' OR template_type_code = 'PPT'", "answer": "Return the ids of templates that have the code PP or PPT.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT COUNT(*) FROM Templates WHERE template_type_code = 'CV'", "answer": "How many templates have template type code CV?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT COUNT(*) FROM Templates WHERE template_type_code = 'CV'", "answer": "Count the number of templates of the type CV.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT version_number, template_type_code FROM Templates WHERE version_number > 5", "answer": "What is the version number and template type code for the template with version number later than 5?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT version_number, template_type_code FROM Templates WHERE version_number > 5", "answer": "Return the version numbers and template type codes of templates with a version number greater than 5.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_type_code, COUNT(*) FROM Templates GROUP BY template_type_code", "answer": "Show all template type codes and number of templates for each.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_type_code, COUNT(*) FROM Templates GROUP BY template_type_code", "answer": "What are the different template type codes, and how many templates correspond to each?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which template type code has most number of templates?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Return the type code of the template type that the most templates belong to.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING COUNT(*) < 3", "answer": "Show all template type codes with less than three templates.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING COUNT(*) < 3", "answer": "What are the codes of template types that have fewer than 3 templates?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT MIN(Version_Number), template_type_code FROM Templates", "answer": "What the smallest version number and its template type code?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT MIN(Version_Number), template_type_code FROM Templates", "answer": "Return the lowest version number, along with its corresponding template type code.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = 'Data base'", "answer": "What is the template type code of the template used by document with the name 'Data base'?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = 'Data base'", "answer": "Return the template type code of the template that is used by a document named Data base.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = 'BK'", "answer": "Show all document names using templates with template type code BK.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = 'BK'", "answer": "What are the names of documents that use templates with the code BK?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT T1.template_type_code, COUNT(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code", "answer": "Show all template type codes and the number of documents using each type.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT T1.template_type_code, COUNT(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code", "answer": "What are the different template type codes, and how many documents use each type?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which template type code is used by most number of documents?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Return the code of the template type that is most commonly used in documents.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id", "answer": "Show all template type codes that are not used by any document.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id", "answer": "What are the codes of template types that are not used for any document?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_type_code, template_type_description FROM Ref_template_types", "answer": "Show all template type codes and descriptions.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_type_code, template_type_description FROM Ref_template_types", "answer": "What are the type codes and descriptions for all template types?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code = 'AD'", "answer": "What is the template type descriptions for template type code 'AD'.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code = 'AD'", "answer": "Return the template type description of the template type with the code AD.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = 'Book'", "answer": "What is the template type code for template type description 'Book'.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = 'Book'", "answer": "Return the type code of the template type with the description 'Book'.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID", "answer": "What are the distinct template type descriptions for the templates ever used by any document?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID", "answer": "Return the different descriptions for templates that have been used in a document.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = 'Presentation'", "answer": "What are the template ids with template type description 'Presentation'.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = 'Presentation'", "answer": "Return the ids corresponding to templates with the description 'Presentation'.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT COUNT(*) FROM Paragraphs", "answer": "How many paragraphs in total?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT COUNT(*) FROM Paragraphs", "answer": "Count the number of paragraphs.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'", "answer": "How many paragraphs for the document with name 'Summer Show'?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'", "answer": "Count the number of paragraphs in the document named 'Summer Show'.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT other_details FROM paragraphs WHERE paragraph_text LIKE 'korea'", "answer": "Show paragraph details for paragraph with text 'Korea ' .\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT other_details FROM paragraphs WHERE paragraph_text LIKE 'korea'", "answer": "What are the details for the paragraph that includes the text 'Korea ' ?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT T1.paragraph_id, T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'", "answer": "Show all paragraph ids and texts for the document with name 'Welcome to NY'.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT T1.paragraph_id, T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'", "answer": "What are the ids and texts of paragraphs in the document titled 'Welcome to NY'?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = 'Customer reviews'", "answer": "Show all paragraph texts for the document 'Customer reviews'.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = 'Customer reviews'", "answer": "What are the paragraph texts for the document with the name 'Customer reviews'?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT document_id, COUNT(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id NULLS FIRST", "answer": "Show all document ids and the number of paragraphs in each document. Order by document id.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT document_id, COUNT(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id NULLS FIRST", "answer": "Return the different document ids along with the number of paragraphs corresponding to each, ordered by id.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT T1.document_id, T2.document_name, COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id", "answer": "Show all document ids, names and the number of paragraphs in each document.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT T1.document_id, T2.document_name, COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id", "answer": "What are the ids and names of each document, as well as the number of paragraphs in each?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) >= 2", "answer": "List all document ids with at least two paragraphs.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) >= 2", "answer": "What are the ids of documents that have 2 or more paragraphs?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT T1.document_id, T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the document id and name with greatest number of paragraphs?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT T1.document_id, T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Return the id and name of the document with the most paragraphs.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY COUNT(*) ASC NULLS FIRST LIMIT 1", "answer": "What is the document id with least number of paragraphs?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY COUNT(*) ASC NULLS FIRST LIMIT 1", "answer": "Return the id of the document with the fewest paragraphs.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) BETWEEN 1 AND 2", "answer": "What is the document id with 1 to 2 paragraphs?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) BETWEEN 1 AND 2", "answer": "Give the ids of documents that have between one and two paragraphs.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'", "answer": "Show the document id with paragraph text 'Brazil' and 'Ireland'.\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'", "answer": "What are the ids of documents that contain the paragraph text 'Brazil' and 'Ireland'?\nAdditional table information: table: cre_Doc_Template_Mgt"} +{"question": "SELECT COUNT(*) FROM teacher", "answer": "How many teachers are there?\nAdditional table information: table: course_teach"} +{"question": "SELECT COUNT(*) FROM teacher", "answer": "What is the total count of teachers?\nAdditional table information: table: course_teach"} +{"question": "SELECT Name FROM teacher ORDER BY Age ASC NULLS FIRST", "answer": "List the names of teachers in ascending order of age.\nAdditional table information: table: course_teach"} +{"question": "SELECT Name FROM teacher ORDER BY Age ASC NULLS FIRST", "answer": "What are the names of the teachers ordered by ascending age?\nAdditional table information: table: course_teach"} +{"question": "SELECT Age, Hometown FROM teacher", "answer": "What are the age and hometown of teachers?\nAdditional table information: table: course_teach"} +{"question": "SELECT Age, Hometown FROM teacher", "answer": "What is the age and hometown of every teacher?\nAdditional table information: table: course_teach"} +{"question": "SELECT name FROM teacher WHERE hometown <> 'little lever urban district'", "answer": "List the name of teachers whose hometown is not `` Little Lever Urban District '' .\nAdditional table information: table: course_teach"} +{"question": "SELECT name FROM teacher WHERE hometown <> 'little lever urban district'", "answer": "What are the names of the teachers whose hometown is not `` Little Lever Urban District '' ?\nAdditional table information: table: course_teach"} +{"question": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33", "answer": "Show the name of teachers aged either 32 or 33?\nAdditional table information: table: course_teach"} +{"question": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33", "answer": "What are the names of the teachers who are aged either 32 or 33?\nAdditional table information: table: course_teach"} +{"question": "SELECT Hometown FROM teacher ORDER BY Age ASC NULLS FIRST LIMIT 1", "answer": "What is the hometown of the youngest teacher?\nAdditional table information: table: course_teach"} +{"question": "SELECT Hometown FROM teacher ORDER BY Age ASC NULLS FIRST LIMIT 1", "answer": "Where is the youngest teacher from?\nAdditional table information: table: course_teach"} +{"question": "SELECT Hometown, COUNT(*) FROM teacher GROUP BY Hometown", "answer": "Show different hometown of teachers and the number of teachers from each hometown.\nAdditional table information: table: course_teach"} +{"question": "SELECT Hometown, COUNT(*) FROM teacher GROUP BY Hometown", "answer": "For each hometown, how many teachers are there?\nAdditional table information: table: course_teach"} +{"question": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1", "answer": "List the most common hometown of teachers.\nAdditional table information: table: course_teach"} +{"question": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the most commmon hometowns for teachers?\nAdditional table information: table: course_teach"} +{"question": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2", "answer": "Show the hometowns shared by at least two teachers.\nAdditional table information: table: course_teach"} +{"question": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2", "answer": "What are the towns from which at least two teachers come from?\nAdditional table information: table: course_teach"} +{"question": "SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID", "answer": "Show names of teachers and the courses they are arranged to teach.\nAdditional table information: table: course_teach"} +{"question": "SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID", "answer": "What is the name of each teacher and what course they teach?\nAdditional table information: table: course_teach"} +{"question": "SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name NULLS FIRST", "answer": "Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.\nAdditional table information: table: course_teach"} +{"question": "SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name NULLS FIRST", "answer": "What are the names of the teachers and the courses they teach in ascending alphabetical order by the name of the teacher?\nAdditional table information: table: course_teach"} +{"question": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = 'Math'", "answer": "Show the name of the teacher for the math course.\nAdditional table information: table: course_teach"} +{"question": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = 'Math'", "answer": "What are the names of the people who teach math courses?\nAdditional table information: table: course_teach"} +{"question": "SELECT T2.Name, COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name", "answer": "Show names of teachers and the number of courses they teach.\nAdditional table information: table: course_teach"} +{"question": "SELECT T2.Name, COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name", "answer": "What are the names of the teachers and how many courses do they teach?\nAdditional table information: table: course_teach"} +{"question": "SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2", "answer": "Show names of teachers that teach at least two courses.\nAdditional table information: table: course_teach"} +{"question": "SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2", "answer": "What are the names of the teachers who teach at least two courses?\nAdditional table information: table: course_teach"} +{"question": "SELECT Name FROM teacher WHERE NOT Teacher_id IN (SELECT Teacher_id FROM course_arrange)", "answer": "List the names of teachers who have not been arranged to teach courses.\nAdditional table information: table: course_teach"} +{"question": "SELECT Name FROM teacher WHERE NOT Teacher_id IN (SELECT Teacher_id FROM course_arrange)", "answer": "What are the names of the teachers whose courses have not been arranged?\nAdditional table information: table: course_teach"} +{"question": "SELECT COUNT(*) FROM visitor WHERE age < 30", "answer": "How many visitors below age 30 are there?\nAdditional table information: table: museum_visit"} +{"question": "SELECT name FROM visitor WHERE Level_of_membership > 4 ORDER BY Level_of_membership DESC", "answer": "Find the names of the visitors whose membership level is higher than 4, and order the results by the level from high to low.\nAdditional table information: table: museum_visit"} +{"question": "SELECT AVG(age) FROM visitor WHERE Level_of_membership <= 4", "answer": "What is the average age of the visitors whose membership level is not higher than 4?\nAdditional table information: table: museum_visit"} +{"question": "SELECT name, Level_of_membership FROM visitor WHERE Level_of_membership > 4 ORDER BY age DESC", "answer": "Find the name and membership level of the visitors whose membership level is higher than 4, and sort by their age from old to young.\nAdditional table information: table: museum_visit"} +{"question": "SELECT museum_id, name FROM museum ORDER BY num_of_staff DESC LIMIT 1", "answer": "Find the id and name of the museum that has the most staff members?\nAdditional table information: table: museum_visit"} +{"question": "SELECT AVG(num_of_staff) FROM museum WHERE open_year < 2009", "answer": "Find the average number of staff working for the museums that were open before 2009.\nAdditional table information: table: museum_visit"} +{"question": "SELECT Num_of_Staff, Open_Year FROM museum WHERE name = 'Plaza Museum'", "answer": "What are the opening year and staff number of the museum named Plaza Museum?\nAdditional table information: table: museum_visit"} +{"question": "SELECT name FROM museum WHERE num_of_staff > (SELECT MIN(num_of_staff) FROM museum WHERE open_year > 2010)", "answer": "find the names of museums which have more staff than the minimum staff number of all museums opened after 2010.\nAdditional table information: table: museum_visit"} +{"question": "SELECT t1.id, t1.name, t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t1.id HAVING COUNT(*) > 1", "answer": "find the id, name and age for visitors who visited some museums more than once.\nAdditional table information: table: museum_visit"} +{"question": "SELECT t2.visitor_id, t1.name, t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t2.visitor_id ORDER BY SUM(t2.Total_spent) DESC LIMIT 1", "answer": "What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?\nAdditional table information: table: museum_visit"} +{"question": "SELECT t2.Museum_ID, t1.name FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID GROUP BY t2.Museum_ID ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What are the id and name of the museum visited most times?\nAdditional table information: table: museum_visit"} +{"question": "SELECT name FROM museum WHERE NOT Museum_ID IN (SELECT museum_id FROM visit)", "answer": "What is the name of the museum that had no visitor yet?\nAdditional table information: table: museum_visit"} +{"question": "SELECT t1.name, t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id ORDER BY t2.num_of_ticket DESC LIMIT 1", "answer": "Find the name and age of the visitor who bought the most tickets at once.\nAdditional table information: table: museum_visit"} +{"question": "SELECT AVG(num_of_ticket), MAX(num_of_ticket) FROM visit", "answer": "What are the average and maximum number of tickets bought in all visits?\nAdditional table information: table: museum_visit"} +{"question": "SELECT SUM(t2.Total_spent) FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id WHERE t1.Level_of_membership = 1", "answer": "What is the total ticket expense of the visitors whose membership level is 1?\nAdditional table information: table: museum_visit"} +{"question": "SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year < 2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year > 2011", "answer": "What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?\nAdditional table information: table: museum_visit"} +{"question": "SELECT COUNT(*) FROM visitor WHERE NOT id IN (SELECT t2.visitor_id FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID WHERE t1.open_year > 2010)", "answer": "Find the number of visitors who did not visit any museum opened after 2010.\nAdditional table information: table: museum_visit"} +{"question": "SELECT COUNT(*) FROM museum WHERE open_year > 2013 OR open_year < 2008", "answer": "How many museums were opened after 2013 or before 2008?\nAdditional table information: table: museum_visit"} +{"question": "SELECT COUNT(*) FROM players", "answer": "Find the total number of players.\nAdditional table information: table: wta_1"} +{"question": "SELECT COUNT(*) FROM players", "answer": "How many players are there?\nAdditional table information: table: wta_1"} +{"question": "SELECT COUNT(*) FROM matches", "answer": "Find the total number of matches.\nAdditional table information: table: wta_1"} +{"question": "SELECT COUNT(*) FROM matches", "answer": "Count the number of matches.\nAdditional table information: table: wta_1"} +{"question": "SELECT first_name, birth_date FROM players WHERE country_code = 'USA'", "answer": "List the first name and birth date of all players from the country with code USA.\nAdditional table information: table: wta_1"} +{"question": "SELECT first_name, birth_date FROM players WHERE country_code = 'USA'", "answer": "What are the first names and birth dates of players from the USA?\nAdditional table information: table: wta_1"} +{"question": "SELECT AVG(loser_age), AVG(winner_age) FROM matches", "answer": "Find the average age of losers and winners of all matches.\nAdditional table information: table: wta_1"} +{"question": "SELECT AVG(loser_age), AVG(winner_age) FROM matches", "answer": "What are the average ages of losers and winners across matches?\nAdditional table information: table: wta_1"} +{"question": "SELECT AVG(winner_rank) FROM matches", "answer": "Find the average rank of winners in all matches.\nAdditional table information: table: wta_1"} +{"question": "SELECT AVG(winner_rank) FROM matches", "answer": "What is the average rank for winners in all matches?\nAdditional table information: table: wta_1"} +{"question": "SELECT MIN(loser_rank) FROM matches", "answer": "Find the highest rank of losers in all matches.\nAdditional table information: table: wta_1"} +{"question": "SELECT MIN(loser_rank) FROM matches", "answer": "What is the best rank of losers across all matches?\nAdditional table information: table: wta_1"} +{"question": "SELECT COUNT(DISTINCT country_code) FROM players", "answer": "find the number of distinct country codes of all players.\nAdditional table information: table: wta_1"} +{"question": "SELECT COUNT(DISTINCT country_code) FROM players", "answer": "How many distinct countries do players come from?\nAdditional table information: table: wta_1"} +{"question": "SELECT COUNT(DISTINCT loser_name) FROM matches", "answer": "Find the number of distinct name of losers.\nAdditional table information: table: wta_1"} +{"question": "SELECT COUNT(DISTINCT loser_name) FROM matches", "answer": "How many different loser names are there?\nAdditional table information: table: wta_1"} +{"question": "SELECT tourney_name FROM matches GROUP BY tourney_name HAVING COUNT(*) > 10", "answer": "Find the name of tourney that has more than 10 matches.\nAdditional table information: table: wta_1"} +{"question": "SELECT tourney_name FROM matches GROUP BY tourney_name HAVING COUNT(*) > 10", "answer": "What are the names of tournaments that have more than 10 matches?\nAdditional table information: table: wta_1"} +{"question": "SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016", "answer": "List the names of all winners who played in both 2013 and 2016.\nAdditional table information: table: wta_1"} +{"question": "SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016", "answer": "What are the names of players who won in both 2013 and 2016?\nAdditional table information: table: wta_1"} +{"question": "SELECT COUNT(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016", "answer": "List the number of all matches who played in years of 2013 or 2016.\nAdditional table information: table: wta_1"} +{"question": "SELECT COUNT(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016", "answer": "How many matches were played in 2013 or 2016?\nAdditional table information: table: wta_1"} +{"question": "SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open'", "answer": "What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?\nAdditional table information: table: wta_1"} +{"question": "SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open'", "answer": "What are the first names and country codes for players who won both the WTA Championships and the Australian Open?\nAdditional table information: table: wta_1"} +{"question": "SELECT first_name, country_code FROM players ORDER BY birth_date NULLS FIRST LIMIT 1", "answer": "Find the first name and country code of the oldest player.\nAdditional table information: table: wta_1"} +{"question": "SELECT first_name, country_code FROM players ORDER BY birth_date NULLS FIRST LIMIT 1", "answer": "What is the first name and country code of the oldest player?\nAdditional table information: table: wta_1"} +{"question": "SELECT first_name, last_name FROM players ORDER BY birth_date NULLS FIRST", "answer": "List the first and last name of all players in the order of birth date.\nAdditional table information: table: wta_1"} +{"question": "SELECT first_name, last_name FROM players ORDER BY birth_date NULLS FIRST", "answer": "What are the full names of all players, sorted by birth date?\nAdditional table information: table: wta_1"} +{"question": "SELECT first_name, last_name FROM players WHERE hand = 'L' ORDER BY birth_date NULLS FIRST", "answer": "List the first and last name of all players who are left / L hand in the order of birth date.\nAdditional table information: table: wta_1"} +{"question": "SELECT first_name, last_name FROM players WHERE hand = 'L' ORDER BY birth_date NULLS FIRST", "answer": "What are the full names of all left handed players, in order of birth date?\nAdditional table information: table: wta_1"} +{"question": "SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1", "answer": "Find the first name and country code of the player who did the most number of tours.\nAdditional table information: table: wta_1"} +{"question": "SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1", "answer": "What is the first name and country code of the player with the most tours?\nAdditional table information: table: wta_1"} +{"question": "SELECT YEAR FROM matches GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Find the year that has the most number of matches.\nAdditional table information: table: wta_1"} +{"question": "SELECT YEAR FROM matches GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which year had the most matches?\nAdditional table information: table: wta_1"} +{"question": "SELECT winner_name, winner_rank_points FROM matches GROUP BY winner_name ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Find the name and rank points of the winner who won the most times.\nAdditional table information: table: wta_1"} +{"question": "SELECT winner_name, winner_rank_points FROM matches GROUP BY winner_name ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the name of the winner who has won the most matches, and how many rank points does this player have?\nAdditional table information: table: wta_1"} +{"question": "SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1", "answer": "Find the name of the winner who has the highest rank points and participated in the Australian Open tourney.\nAdditional table information: table: wta_1"} +{"question": "SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1", "answer": "What is the name of the winner with the most rank points who participated in the Australian Open tournament?\nAdditional table information: table: wta_1"} +{"question": "SELECT winner_name, loser_name FROM matches ORDER BY minutes DESC LIMIT 1", "answer": "find the names of loser and winner who played in the match with greatest number of minutes.\nAdditional table information: table: wta_1"} +{"question": "SELECT winner_name, loser_name FROM matches ORDER BY minutes DESC LIMIT 1", "answer": "What are the names of the winner and loser who played in the longest match?\nAdditional table information: table: wta_1"} +{"question": "SELECT AVG(ranking), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name", "answer": "Find the average ranking for each player and their first name.\nAdditional table information: table: wta_1"} +{"question": "SELECT AVG(ranking), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name", "answer": "What are the first names of all players, and their average rankings?\nAdditional table information: table: wta_1"} +{"question": "SELECT SUM(ranking_points), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name", "answer": "Find the total ranking points for each player and their first name.\nAdditional table information: table: wta_1"} +{"question": "SELECT SUM(ranking_points), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name", "answer": "What are the first names of all players, and their total ranking points?\nAdditional table information: table: wta_1"} +{"question": "SELECT COUNT(*), country_code FROM players GROUP BY country_code", "answer": "find the number of players for each country.\nAdditional table information: table: wta_1"} +{"question": "SELECT COUNT(*), country_code FROM players GROUP BY country_code", "answer": "How many players are from each country?\nAdditional table information: table: wta_1"} +{"question": "SELECT country_code FROM players GROUP BY country_code ORDER BY COUNT(*) DESC LIMIT 1", "answer": "find the code of the country where has the greatest number of players.\nAdditional table information: table: wta_1"} +{"question": "SELECT country_code FROM players GROUP BY country_code ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the code of the country with the most players?\nAdditional table information: table: wta_1"} +{"question": "SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50", "answer": "Find the codes of countries that have more than 50 players.\nAdditional table information: table: wta_1"} +{"question": "SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50", "answer": "What are the codes of countries with more than 50 players?\nAdditional table information: table: wta_1"} +{"question": "SELECT SUM(tours), ranking_date FROM rankings GROUP BY ranking_date", "answer": "Find the total number of tours for each ranking date.\nAdditional table information: table: wta_1"} +{"question": "SELECT SUM(tours), ranking_date FROM rankings GROUP BY ranking_date", "answer": "How many total tours were there for each ranking date?\nAdditional table information: table: wta_1"} +{"question": "SELECT COUNT(*), YEAR FROM matches GROUP BY YEAR", "answer": "Find the number of matches happened in each year.\nAdditional table information: table: wta_1"} +{"question": "SELECT COUNT(*), YEAR FROM matches GROUP BY YEAR", "answer": "How many matches were played in each year?\nAdditional table information: table: wta_1"} +{"question": "SELECT DISTINCT winner_name, winner_rank FROM matches ORDER BY winner_age NULLS FIRST LIMIT 3", "answer": "Find the name and rank of the 3 youngest winners across all matches.\nAdditional table information: table: wta_1"} +{"question": "SELECT DISTINCT winner_name, winner_rank FROM matches ORDER BY winner_age NULLS FIRST LIMIT 3", "answer": "What are the names and ranks of the three youngest winners across all matches?\nAdditional table information: table: wta_1"} +{"question": "SELECT COUNT(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'", "answer": "How many different winners both participated in the WTA Championships and were left handed?\nAdditional table information: table: wta_1"} +{"question": "SELECT COUNT(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'", "answer": "Find the number of left handed winners who participated in the WTA Championships.\nAdditional table information: table: wta_1"} +{"question": "SELECT T1.first_name, T1.country_code, T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1", "answer": "Find the first name, country code and birth date of the winner who has the highest rank points in all matches.\nAdditional table information: table: wta_1"} +{"question": "SELECT T1.first_name, T1.country_code, T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1", "answer": "What is the first name, country code, and birth date of the player with the most winner rank points across all matches?\nAdditional table information: table: wta_1"} +{"question": "SELECT COUNT(*), hand FROM players GROUP BY hand", "answer": "Find the number of players for each hand type.\nAdditional table information: table: wta_1"} +{"question": "SELECT COUNT(*), hand FROM players GROUP BY hand", "answer": "How many players are there for each hand type?\nAdditional table information: table: wta_1"} +{"question": "SELECT COUNT(*) FROM ship WHERE disposition_of_ship = 'Captured'", "answer": "How many ships ended up being 'Captured'?\nAdditional table information: table: battle_death"} +{"question": "SELECT name, tonnage FROM ship ORDER BY name DESC", "answer": "List the name and tonnage ordered by in descending alphaetical order for the names.\nAdditional table information: table: battle_death"} +{"question": "SELECT name, date FROM battle", "answer": "List the name, date and result of each battle.\nAdditional table information: table: battle_death"} +{"question": "SELECT MAX(killed), MIN(killed) FROM death", "answer": "What is maximum and minimum death toll caused each time?\nAdditional table information: table: battle_death"} +{"question": "SELECT AVG(injured) FROM death", "answer": "What is the average number of injuries caused each time?\nAdditional table information: table: battle_death"} +{"question": "SELECT T1.killed, T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id WHERE T2.tonnage = 't'", "answer": "What are the death and injury situations caused by the ship with tonnage 't'?\nAdditional table information: table: battle_death"} +{"question": "SELECT name, RESULT FROM battle WHERE bulgarian_commander <> 'Boril'", "answer": "What are the name and results of the battles when the bulgarian commander is not 'Boril'\nAdditional table information: table: battle_death"} +{"question": "SELECT DISTINCT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.ship_type = 'Brig'", "answer": "What are the different ids and names of the battles that lost any 'Brig' type shipes?\nAdditional table information: table: battle_death"} +{"question": "SELECT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING SUM(T3.killed) > 10", "answer": "What are the ids and names of the battles that led to more than 10 people killed in total.\nAdditional table information: table: battle_death"} +{"question": "SELECT T2.id, T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the ship id and name that caused most total injuries?\nAdditional table information: table: battle_death"} +{"question": "SELECT name FROM battle WHERE bulgarian_commander = 'Kaloyan' AND latin_commander = 'Baldwin I'", "answer": "What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?\nAdditional table information: table: battle_death"} +{"question": "SELECT COUNT(DISTINCT RESULT) FROM battle", "answer": "How many different results are there for the battles?\nAdditional table information: table: battle_death"} +{"question": "SELECT COUNT(*) FROM battle WHERE NOT id IN (SELECT lost_in_battle FROM ship WHERE tonnage = '225')", "answer": "How many battles did not lose any ship with tonnage '225'?\nAdditional table information: table: battle_death"} +{"question": "SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'Lettice' INTERSECT SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'HMS Atalanta'", "answer": "List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'\nAdditional table information: table: battle_death"} +{"question": "SELECT name, RESULT, bulgarian_commander FROM battle EXCEPT SELECT T1.name, T1.result, T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.location = 'English Channel'", "answer": "Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'.\nAdditional table information: table: battle_death"} +{"question": "SELECT note FROM death WHERE note LIKE '%East%'", "answer": "What are the notes of the death events which has substring 'East'?\nAdditional table information: table: battle_death"} +{"question": "SELECT line_1, line_2 FROM addresses", "answer": "what are all the addresses including line 1 and line 2?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT line_1, line_2 FROM addresses", "answer": "What is the first and second line for all addresses?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT COUNT(*) FROM Courses", "answer": "How many courses in total are listed?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT COUNT(*) FROM Courses", "answer": "How many courses are there?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT course_description FROM Courses WHERE course_name = 'math'", "answer": "How is the math course described?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT course_description FROM Courses WHERE course_name = 'math'", "answer": "What are the descriptions for all the math courses?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'", "answer": "What is the zip code of the address in the city Port Chelsea?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'", "answer": "What is the zip code for Port Chelsea?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T2.department_name, T1.department_id FROM Degree_Programs AS T1 JOIN Departments AS T2 ON T1.department_id = T2.department_id GROUP BY T1.department_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which department offers the most number of degrees? List department name and id.\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT t2.department_name, t1.department_id FROM degree_programs AS t1 JOIN departments AS t2 ON t1.department_id = t2.department_id GROUP BY t1.department_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the name and id of the department with the most number of degrees ?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT COUNT(DISTINCT department_id) FROM Degree_Programs", "answer": "How many departments offer any degree?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT COUNT(DISTINCT department_id) FROM Degree_Programs", "answer": "How many different departments offer degrees?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT COUNT(DISTINCT degree_summary_name) FROM Degree_Programs", "answer": "How many different degree names are offered?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT COUNT(DISTINCT degree_summary_name) FROM Degree_Programs", "answer": "How many different degrees are offered?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT COUNT(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'", "answer": "How many degrees does the engineering department offer?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT COUNT(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'", "answer": "How many degrees does the engineering department have?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT section_name, section_description FROM Sections", "answer": "What are the names and descriptions of all the sections?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT section_name, section_description FROM Sections", "answer": "What are the names and descriptions for all the sections?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T1.course_name, T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING COUNT(*) <= 2", "answer": "What are the names and id of courses having at most 2 sections?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T1.course_name, T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING COUNT(*) <= 2", "answer": "What are the names and ids of every course with less than 2 sections?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT section_name FROM Sections ORDER BY section_name DESC", "answer": "List the section_name in reversed lexicographical order.\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT section_name FROM Sections ORDER BY section_name DESC", "answer": "What are the names of the sections in reverse alphabetical order?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T1.semester_name, T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the semester which most student registered in? Show both the name and the id.\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T1.semester_name, T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "For each semester, what is the name and id of the one with the most students registered?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'", "answer": "What is the description of the department whose name has the substring the computer?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'", "answer": "What is the department description for the one whose name has the word computer?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T1.first_name, T1.middle_name, T1.last_name, T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) = 2", "answer": "Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id.\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T1.first_name, T1.middle_name, T1.last_name, T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) = 2", "answer": "What are the first, middle, and last names, along with the ids, of all students who enrolled in 2 degree programs in one semester?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT DISTINCT T1.first_name, T1.middle_name, T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor'", "answer": "Who is enrolled in a Bachelor degree program? List the first name, middle name, last name.\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT DISTINCT T1.first_name, T1.middle_name, T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor'", "answer": "What are the first, middle, and last names for everybody enrolled in a Bachelors program?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Find the kind of program which most number of students are enrolled in?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the degree summary name that has the most number of students enrolled?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T1.degree_program_id, T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Find the program which most number of students are enrolled in. List both the id and the summary.\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T1.degree_program_id, T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the program id and the summary of the degree that has the most students enrolled?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T1.student_id, T1.first_name, T1.middle_name, T1.last_name, COUNT(*), T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which student has enrolled for the most times in any program? List the id, first name, middle name, last name, the number of enrollments and student id.\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T1.student_id, T1.first_name, T1.middle_name, T1.last_name, COUNT(*), T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the first, middle, and last name, along with the id and number of enrollments, for the student who enrolled the most in any program?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT semester_name FROM Semesters WHERE NOT semester_id IN (SELECT semester_id FROM Student_Enrolment)", "answer": "Which semesters do not have any student enrolled? List the semester name.\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT semester_name FROM Semesters WHERE NOT semester_id IN (SELECT semester_id FROM Student_Enrolment)", "answer": "What is the name of the semester with no students enrolled?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id", "answer": "What are all the course names of the courses which ever have students enrolled in?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id", "answer": "What are the names of all courses that have some students enrolled?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What's the name of the course with most number of enrollments?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the name of the course with the most students enrolled?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id", "answer": "Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program.\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id", "answer": "What are the last name of the students who live in North Carolina but have not registered in any degree programs?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING COUNT(*) >= 2", "answer": "Show the date and id of the transcript with at least 2 course results.\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING COUNT(*) >= 2", "answer": "What is the date and id of the transcript with at least 2 courses listed?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT cell_mobile_number FROM Students WHERE first_name = 'Timmothy' AND last_name = 'Ward'", "answer": "What is the phone number of the man with the first name Timmothy and the last name Ward?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT cell_mobile_number FROM students WHERE first_name = 'timmothy' AND last_name = 'ward'", "answer": "What is the mobile phone number of the student named Timmothy Ward ?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT first_name, middle_name, last_name FROM Students ORDER BY date_first_registered ASC NULLS FIRST LIMIT 1", "answer": "Who is the first student to register? List the first name, middle name and last name.\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT first_name, middle_name, last_name FROM Students ORDER BY date_first_registered ASC NULLS FIRST LIMIT 1", "answer": "What is the first, middle, and last name of the first student to register?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT first_name, middle_name, last_name FROM Students ORDER BY date_left ASC NULLS FIRST LIMIT 1", "answer": "Who is the earliest graduate of the school? List the first name, middle name and last name.\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT first_name, middle_name, last_name FROM Students ORDER BY date_left ASC NULLS FIRST LIMIT 1", "answer": "What is the first, middle, and last name of the earliest school graduate?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT first_name FROM Students WHERE current_address_id <> permanent_address_id", "answer": "Whose permanent address is different from his or her current address? List his or her first name.\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT first_name FROM Students WHERE current_address_id <> permanent_address_id", "answer": "What is the first name of the student whose permanent address is different from his or her current one?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T1.address_id, T1.line_1, T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.current_address_id GROUP BY T1.address_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which address holds the most number of students currently? List the address id and all lines.\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T1.address_id, T1.line_1, T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.current_address_id GROUP BY T1.address_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the id, line 1, and line 2 of the address with the most students?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT AVG(transcript_date) FROM Transcripts", "answer": "On average, when were the transcripts printed?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT AVG(transcript_date) FROM Transcripts", "answer": "What is the average transcript date?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT transcript_date, other_details FROM Transcripts ORDER BY transcript_date ASC NULLS FIRST LIMIT 1", "answer": "When is the first transcript released? List the date and details.\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT transcript_date, other_details FROM Transcripts ORDER BY transcript_date ASC NULLS FIRST LIMIT 1", "answer": "What is the earliest date of a transcript release, and what details can you tell me?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT COUNT(*) FROM Transcripts", "answer": "How many transcripts are released?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT COUNT(*) FROM Transcripts", "answer": "How many transcripts are listed?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1", "answer": "What is the last transcript release date?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1", "answer": "When was the last transcript released?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT COUNT(*), student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "How many times at most can a course enrollment result show in different transcripts? Also show the course enrollment id.\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT COUNT(*), student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the maximum number of times that a course shows up in different transcripts and what is that course's enrollment id?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY COUNT(*) ASC NULLS FIRST LIMIT 1", "answer": "Show the date of the transcript which shows the least number of results, also list the id.\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY COUNT(*) ASC NULLS FIRST LIMIT 1", "answer": "What is the date and id of the transcript with the least number of results?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Bachelor'", "answer": "Find the semester when both Master students and Bachelor students got enrolled in.\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Bachelor'", "answer": "What is the id of the semester that had both Masters and Bachelors students enrolled?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT COUNT(DISTINCT current_address_id) FROM Students", "answer": "How many different addresses do the students currently live?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT COUNT(DISTINCT current_address_id) FROM Students", "answer": "What are the different addresses that have students living there?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT other_student_details FROM Students ORDER BY other_student_details DESC", "answer": "List all the student details in reversed lexicographical order.\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT other_student_details FROM Students ORDER BY other_student_details DESC", "answer": "What other details can you tell me about students in reverse alphabetical order?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT section_description FROM Sections WHERE section_name = 'h'", "answer": "Describe the section h.\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT section_description FROM Sections WHERE section_name = 'h'", "answer": "What is the description for the section named h?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT t1.first_name FROM students AS t1 JOIN addresses AS t2 ON t1.permanent_address_id = t2.address_id WHERE t2.country = 'haiti' OR t1.cell_mobile_number = '09700166582'", "answer": "Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT t1.first_name FROM students AS t1 JOIN addresses AS t2 ON t1.permanent_address_id = t2.address_id WHERE t2.country = 'haiti' OR t1.cell_mobile_number = '09700166582'", "answer": "What are the first names of the students who live in Haiti permanently or have the cell phone number 09700166582 ?\nAdditional table information: table: student_transcripts_tracking"} +{"question": "SELECT Title FROM Cartoon ORDER BY title NULLS FIRST", "answer": "List the title of all cartoons in alphabetical order.\nAdditional table information: table: tvshow"} +{"question": "SELECT Title FROM Cartoon ORDER BY title NULLS FIRST", "answer": "What are the titles of the cartoons sorted alphabetically?\nAdditional table information: table: tvshow"} +{"question": "SELECT Title FROM Cartoon WHERE Directed_by = 'Ben Jones'", "answer": "List all cartoon directed by 'Ben Jones'.\nAdditional table information: table: tvshow"} +{"question": "SELECT Title FROM Cartoon WHERE Directed_by = 'Ben Jones'", "answer": "What are the names of all cartoons directed by Ben Jones?\nAdditional table information: table: tvshow"} +{"question": "SELECT COUNT(*) FROM Cartoon WHERE Written_by = 'Joseph Kuhr'", "answer": "How many cartoons were written by 'Joseph Kuhr'?\nAdditional table information: table: tvshow"} +{"question": "SELECT COUNT(*) FROM Cartoon WHERE Written_by = 'Joseph Kuhr'", "answer": "What is the number of cartoones written by Joseph Kuhr?\nAdditional table information: table: tvshow"} +{"question": "SELECT title, Directed_by FROM Cartoon ORDER BY Original_air_date NULLS FIRST", "answer": "list all cartoon titles and their directors ordered by their air date\nAdditional table information: table: tvshow"} +{"question": "SELECT title, Directed_by FROM Cartoon ORDER BY Original_air_date NULLS FIRST", "answer": "What is the name and directors of all the cartoons that are ordered by air date?\nAdditional table information: table: tvshow"} +{"question": "SELECT Title FROM Cartoon WHERE Directed_by = 'Ben Jones' OR Directed_by = 'Brandon Vietti'", "answer": "List the title of all cartoon directed by 'Ben Jones' or 'Brandon Vietti'.\nAdditional table information: table: tvshow"} +{"question": "SELECT Title FROM Cartoon WHERE Directed_by = 'Ben Jones' OR Directed_by = 'Brandon Vietti'", "answer": "What are the titles of all cartoons directed by Ben Jones or Brandon Vietti?\nAdditional table information: table: tvshow"} +{"question": "SELECT Country, COUNT(*) FROM TV_Channel GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which country has the most of TV Channels? List the country and number of TV Channels it has.\nAdditional table information: table: tvshow"} +{"question": "SELECT Country, COUNT(*) FROM TV_Channel GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the country with the most number of TV Channels and how many does it have?\nAdditional table information: table: tvshow"} +{"question": "SELECT COUNT(DISTINCT series_name), COUNT(DISTINCT content) FROM TV_Channel", "answer": "List the number of different series names and contents in the TV Channel table.\nAdditional table information: table: tvshow"} +{"question": "SELECT COUNT(DISTINCT series_name), COUNT(DISTINCT content) FROM TV_Channel", "answer": "How many different series and contents are listed in the TV Channel table?\nAdditional table information: table: tvshow"} +{"question": "SELECT Content FROM TV_Channel WHERE series_name = 'Sky Radio'", "answer": "What is the content of TV Channel with serial name 'Sky Radio'?\nAdditional table information: table: tvshow"} +{"question": "SELECT Content FROM TV_Channel WHERE series_name = 'Sky Radio'", "answer": "What is the content of the series Sky Radio?\nAdditional table information: table: tvshow"} +{"question": "SELECT Package_Option FROM TV_Channel WHERE series_name = 'Sky Radio'", "answer": "What is the Package Option of TV Channel with serial name 'Sky Radio'?\nAdditional table information: table: tvshow"} +{"question": "SELECT Package_Option FROM TV_Channel WHERE series_name = 'Sky Radio'", "answer": "What are the Package Options of the TV Channels whose series names are Sky Radio?\nAdditional table information: table: tvshow"} +{"question": "SELECT COUNT(*) FROM TV_Channel WHERE LANGUAGE = 'English'", "answer": "How many TV Channel using language English?\nAdditional table information: table: tvshow"} +{"question": "SELECT COUNT(*) FROM TV_Channel WHERE LANGUAGE = 'English'", "answer": "How many TV Channels use the English language?\nAdditional table information: table: tvshow"} +{"question": "SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY COUNT(*) ASC NULLS FIRST LIMIT 1", "answer": "List the language used least number of TV Channel. List language and number of TV Channel.\nAdditional table information: table: tvshow"} +{"question": "SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY COUNT(*) ASC NULLS FIRST LIMIT 1", "answer": "What are the languages used by the least number of TV Channels and how many channels use it?\nAdditional table information: table: tvshow"} +{"question": "SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE", "answer": "List each language and the number of TV Channels using it.\nAdditional table information: table: tvshow"} +{"question": "SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE", "answer": "For each language, list the number of TV Channels that use it.\nAdditional table information: table: tvshow"} +{"question": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = 'The Rise of the Blue Beetle!'", "answer": "What is the TV Channel that shows the cartoon 'The Rise of the Blue Beetle!'? List the TV Channel's series name.\nAdditional table information: table: tvshow"} +{"question": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = 'The Rise of the Blue Beetle!'", "answer": "What is the series name of the TV Channel that shows the cartoon 'The Rise of the Blue Beetle'?\nAdditional table information: table: tvshow"} +{"question": "SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = 'Sky Radio'", "answer": "List the title of all Cartoons showed on TV Channel with series name 'Sky Radio'.\nAdditional table information: table: tvshow"} +{"question": "SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = 'Sky Radio'", "answer": "What is the title of all the cartools that are on the TV Channel with the series name 'Sky Radio'?\nAdditional table information: table: tvshow"} +{"question": "SELECT Episode FROM TV_series ORDER BY rating NULLS FIRST", "answer": "List the Episode of all TV series sorted by rating.\nAdditional table information: table: tvshow"} +{"question": "SELECT Episode FROM TV_series ORDER BY rating NULLS FIRST", "answer": "What are all of the episodes ordered by ratings?\nAdditional table information: table: tvshow"} +{"question": "SELECT Episode, Rating FROM TV_series ORDER BY Rating DESC LIMIT 3", "answer": "List top 3 highest Rating TV series. List the TV series's Episode and Rating.\nAdditional table information: table: tvshow"} +{"question": "SELECT Episode, Rating FROM TV_series ORDER BY Rating DESC LIMIT 3", "answer": "What are 3 most highly rated episodes in the TV series table and what were those ratings?\nAdditional table information: table: tvshow"} +{"question": "SELECT MAX(SHARE), MIN(SHARE) FROM TV_series", "answer": "What is minimum and maximum share of TV series?\nAdditional table information: table: tvshow"} +{"question": "SELECT MAX(SHARE), MIN(SHARE) FROM TV_series", "answer": "What is the maximum and minimum share for the TV series?\nAdditional table information: table: tvshow"} +{"question": "SELECT Air_Date FROM TV_series WHERE Episode = 'A Love of a Lifetime'", "answer": "What is the air date of TV series with Episode 'A Love of a Lifetime'?\nAdditional table information: table: tvshow"} +{"question": "SELECT Air_Date FROM TV_series WHERE Episode = 'A Love of a Lifetime'", "answer": "When did the episode 'A Love of a Lifetime' air?\nAdditional table information: table: tvshow"} +{"question": "SELECT Weekly_Rank FROM TV_series WHERE Episode = 'A Love of a Lifetime'", "answer": "What is Weekly Rank of TV series with Episode 'A Love of a Lifetime'?\nAdditional table information: table: tvshow"} +{"question": "SELECT Weekly_Rank FROM TV_series WHERE Episode = 'A Love of a Lifetime'", "answer": "What is the weekly rank for the episode 'A Love of a Lifetime'?\nAdditional table information: table: tvshow"} +{"question": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = 'A Love of a Lifetime'", "answer": "What is the TV Channel of TV series with Episode 'A Love of a Lifetime'? List the TV Channel's series name.\nAdditional table information: table: tvshow"} +{"question": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = 'A Love of a Lifetime'", "answer": "What is the name of the series that has the episode 'A Love of a Lifetime'?\nAdditional table information: table: tvshow"} +{"question": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = 'Sky Radio'", "answer": "List the Episode of all TV series showed on TV Channel with series name 'Sky Radio'.\nAdditional table information: table: tvshow"} +{"question": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = 'Sky Radio'", "answer": "What is the episode for the TV series named 'Sky Radio'?\nAdditional table information: table: tvshow"} +{"question": "SELECT COUNT(*), Directed_by FROM cartoon GROUP BY Directed_by", "answer": "Find the number of cartoons directed by each of the listed directors.\nAdditional table information: table: tvshow"} +{"question": "SELECT COUNT(*), Directed_by FROM cartoon GROUP BY Directed_by", "answer": "How many cartoons did each director create?\nAdditional table information: table: tvshow"} +{"question": "SELECT production_code, channel FROM cartoon ORDER BY original_air_date DESC LIMIT 1", "answer": "Find the production code and channel of the most recently aired cartoon .\nAdditional table information: table: tvshow"} +{"question": "SELECT production_code, channel FROM cartoon ORDER BY original_air_date DESC LIMIT 1", "answer": "What is the produdction code and channel of the most recent cartoon ?\nAdditional table information: table: tvshow"} +{"question": "SELECT package_option, series_name FROM TV_Channel WHERE hight_definition_TV = 'yes'", "answer": "Find the package choice and series name of the TV channel that has high definition TV.\nAdditional table information: table: tvshow"} +{"question": "SELECT package_option, series_name FROM TV_Channel WHERE hight_definition_TV = 'yes'", "answer": "What are the package options and the name of the series for the TV Channel that supports high definition TV?\nAdditional table information: table: tvshow"} +{"question": "SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'", "answer": "which countries' tv channels are playing some cartoon written by Todd Casey?\nAdditional table information: table: tvshow"} +{"question": "SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'", "answer": "What are the countries that have cartoons on TV that were written by Todd Casey?\nAdditional table information: table: tvshow"} +{"question": "SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'", "answer": "which countries' tv channels are not playing any cartoon written by Todd Casey?\nAdditional table information: table: tvshow"} +{"question": "SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'", "answer": "What are the countries that are not playing cartoons written by Todd Casey?\nAdditional table information: table: tvshow"} +{"question": "SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones'", "answer": "Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?\nAdditional table information: table: tvshow"} +{"question": "SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones'", "answer": "What is the series name and country of all TV channels that are playing cartoons directed by Ben Jones and cartoons directed by Michael Chang?\nAdditional table information: table: tvshow"} +{"question": "SELECT Pixel_aspect_ratio_PAR, country FROM tv_channel WHERE LANGUAGE <> 'English'", "answer": "find the pixel aspect ratio and nation of the tv channels that do not use English.\nAdditional table information: table: tvshow"} +{"question": "SELECT Pixel_aspect_ratio_PAR, country FROM tv_channel WHERE LANGUAGE <> 'English'", "answer": "What is the pixel aspect ratio and country of origin for all TV channels that do not use English?\nAdditional table information: table: tvshow"} +{"question": "SELECT id FROM tv_channel GROUP BY country HAVING COUNT(*) > 2", "answer": "find id of the tv channels that from the countries where have more than two tv channels.\nAdditional table information: table: tvshow"} +{"question": "SELECT id FROM tv_channel GROUP BY country HAVING COUNT(*) > 2", "answer": "What are the ids of all tv channels that have more than 2 TV channels?\nAdditional table information: table: tvshow"} +{"question": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'", "answer": "find the id of tv channels that do not play any cartoon directed by Ben Jones.\nAdditional table information: table: tvshow"} +{"question": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'", "answer": "What are the ids of the TV channels that do not have any cartoons directed by Ben Jones?\nAdditional table information: table: tvshow"} +{"question": "SELECT package_option FROM TV_Channel WHERE NOT id IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')", "answer": "find the package option of the tv channel that do not have any cartoon directed by Ben Jones.\nAdditional table information: table: tvshow"} +{"question": "SELECT package_option FROM TV_Channel WHERE NOT id IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')", "answer": "What are the package options of all tv channels that are not playing any cartoons directed by Ben Jones?\nAdditional table information: table: tvshow"} +{"question": "SELECT COUNT(*) FROM poker_player", "answer": "How many poker players are there?\nAdditional table information: table: poker_player"} +{"question": "SELECT COUNT(*) FROM poker_player", "answer": "Count the number of poker players.\nAdditional table information: table: poker_player"} +{"question": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC", "answer": "List the earnings of poker players in descending order.\nAdditional table information: table: poker_player"} +{"question": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC", "answer": "What are the earnings of poker players, ordered descending by value?\nAdditional table information: table: poker_player"} +{"question": "SELECT Final_Table_Made, Best_Finish FROM poker_player", "answer": "List the final tables made and the best finishes of poker players.\nAdditional table information: table: poker_player"} +{"question": "SELECT Final_Table_Made, Best_Finish FROM poker_player", "answer": "What are the final tables made and best finishes for all poker players?\nAdditional table information: table: poker_player"} +{"question": "SELECT AVG(Earnings) FROM poker_player", "answer": "What is the average earnings of poker players?\nAdditional table information: table: poker_player"} +{"question": "SELECT AVG(Earnings) FROM poker_player", "answer": "Return the average earnings across all poker players.\nAdditional table information: table: poker_player"} +{"question": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1", "answer": "What is the money rank of the poker player with the highest earnings?\nAdditional table information: table: poker_player"} +{"question": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1", "answer": "Return the money rank of the player with the greatest earnings.\nAdditional table information: table: poker_player"} +{"question": "SELECT MAX(Final_Table_Made) FROM poker_player WHERE Earnings < 200000", "answer": "What is the maximum number of final tables made among poker players with earnings less than 200000?\nAdditional table information: table: poker_player"} +{"question": "SELECT MAX(Final_Table_Made) FROM poker_player WHERE Earnings < 200000", "answer": "Return the maximum final tables made across all poker players who have earnings below 200000.\nAdditional table information: table: poker_player"} +{"question": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID", "answer": "What are the names of poker players?\nAdditional table information: table: poker_player"} +{"question": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID", "answer": "Return the names of all the poker players.\nAdditional table information: table: poker_player"} +{"question": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000", "answer": "What are the names of poker players whose earnings is higher than 300000?\nAdditional table information: table: poker_player"} +{"question": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000", "answer": "Give the names of poker players who have earnings above 300000.\nAdditional table information: table: poker_player"} +{"question": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made NULLS FIRST", "answer": "List the names of poker players ordered by the final tables made in ascending order.\nAdditional table information: table: poker_player"} +{"question": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made NULLS FIRST", "answer": "What are the names of poker players, ordered ascending by the number of final tables they have made?\nAdditional table information: table: poker_player"} +{"question": "SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings ASC NULLS FIRST LIMIT 1", "answer": "What is the birth date of the poker player with the lowest earnings?\nAdditional table information: table: poker_player"} +{"question": "SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings ASC NULLS FIRST LIMIT 1", "answer": "Return the birth date of the poker player with the lowest earnings.\nAdditional table information: table: poker_player"} +{"question": "SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1", "answer": "What is the money rank of the tallest poker player?\nAdditional table information: table: poker_player"} +{"question": "SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1", "answer": "Return the money rank of the poker player with the greatest height.\nAdditional table information: table: poker_player"} +{"question": "SELECT AVG(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200", "answer": "What is the average earnings of poker players with height higher than 200?\nAdditional table information: table: poker_player"} +{"question": "SELECT AVG(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200", "answer": "Give average earnings of poker players who are taller than 200.\nAdditional table information: table: poker_player"} +{"question": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC", "answer": "What are the names of poker players in descending order of earnings?\nAdditional table information: table: poker_player"} +{"question": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC", "answer": "Return the names of poker players sorted by their earnings descending.\nAdditional table information: table: poker_player"} +{"question": "SELECT Nationality, COUNT(*) FROM people GROUP BY Nationality", "answer": "What are different nationalities of people and the corresponding number of people from each nation?\nAdditional table information: table: poker_player"} +{"question": "SELECT Nationality, COUNT(*) FROM people GROUP BY Nationality", "answer": "How many people are there of each nationality?\nAdditional table information: table: poker_player"} +{"question": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the most common nationality of people?\nAdditional table information: table: poker_player"} +{"question": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Give the nationality that is most common across all people.\nAdditional table information: table: poker_player"} +{"question": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2", "answer": "What are the nationalities that are shared by at least two people?\nAdditional table information: table: poker_player"} +{"question": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2", "answer": "Return the nationalities for which there are two or more people.\nAdditional table information: table: poker_player"} +{"question": "SELECT Name, Birth_Date FROM people ORDER BY Name ASC NULLS FIRST", "answer": "List the names and birth dates of people in ascending alphabetical order of name.\nAdditional table information: table: poker_player"} +{"question": "SELECT Name, Birth_Date FROM people ORDER BY Name ASC NULLS FIRST", "answer": "What are the names and birth dates of people, ordered by their names in alphabetical order?\nAdditional table information: table: poker_player"} +{"question": "SELECT Name FROM people WHERE Nationality <> 'Russia'", "answer": "Show names of people whose nationality is not 'Russia'.\nAdditional table information: table: poker_player"} +{"question": "SELECT Name FROM people WHERE Nationality <> 'Russia'", "answer": "What are the names of people who are not from Russia?\nAdditional table information: table: poker_player"} +{"question": "SELECT Name FROM people WHERE NOT People_ID IN (SELECT People_ID FROM poker_player)", "answer": "List the names of people that are not poker players.\nAdditional table information: table: poker_player"} +{"question": "SELECT Name FROM people WHERE NOT People_ID IN (SELECT People_ID FROM poker_player)", "answer": "What are the names of people who do not play poker?\nAdditional table information: table: poker_player"} +{"question": "SELECT COUNT(DISTINCT Nationality) FROM people", "answer": "How many distinct nationalities are there?\nAdditional table information: table: poker_player"} +{"question": "SELECT COUNT(DISTINCT Nationality) FROM people", "answer": "Count the number of different nationalities.\nAdditional table information: table: poker_player"} +{"question": "SELECT COUNT(*) FROM area_code_state", "answer": "How many states are there?\nAdditional table information: table: voter_1"} +{"question": "SELECT contestant_number, contestant_name FROM contestants ORDER BY contestant_name DESC", "answer": "List the contestant numbers and names, ordered by contestant name descending.\nAdditional table information: table: voter_1"} +{"question": "SELECT vote_id, phone_number, state FROM votes", "answer": "List the vote ids, phone numbers and states of all votes.\nAdditional table information: table: voter_1"} +{"question": "SELECT MAX(area_code), MIN(area_code) FROM area_code_state", "answer": "What are the maximum and minimum values of area codes?\nAdditional table information: table: voter_1"} +{"question": "SELECT MAX(created) FROM votes WHERE state = 'CA'", "answer": "What is last date created of votes from the state 'CA'?\nAdditional table information: table: voter_1"} +{"question": "SELECT contestant_name FROM contestants WHERE contestant_name <> 'Jessie Alloway'", "answer": "What are the names of the contestants whose names are not 'Jessie Alloway'\nAdditional table information: table: voter_1"} +{"question": "SELECT DISTINCT state, created FROM votes", "answer": "What are the distinct states and create time of all votes?\nAdditional table information: table: voter_1"} +{"question": "SELECT T1.contestant_number, T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number HAVING COUNT(*) >= 2", "answer": "What are the contestant numbers and names of the contestants who had at least two votes?\nAdditional table information: table: voter_1"} +{"question": "SELECT T1.contestant_number, T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number ORDER BY COUNT(*) ASC NULLS FIRST LIMIT 1", "answer": "Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes?\nAdditional table information: table: voter_1"} +{"question": "SELECT COUNT(*) FROM votes WHERE state = 'NY' OR state = 'CA'", "answer": "What are the number of votes from state 'NY' or 'CA'?\nAdditional table information: table: voter_1"} +{"question": "SELECT COUNT(*) FROM contestants WHERE NOT contestant_number IN (SELECT contestant_number FROM votes)", "answer": "How many contestants did not get voted?\nAdditional table information: table: voter_1"} +{"question": "SELECT T1.area_code FROM area_code_state AS T1 JOIN votes AS T2 ON T1.state = T2.state GROUP BY T1.area_code ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the area code in which the most voters voted?\nAdditional table information: table: voter_1"} +{"question": "SELECT T2.created, T2.state, T2.phone_number FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number WHERE T1.contestant_name = 'Tabatha Gehling'", "answer": "What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'?\nAdditional table information: table: voter_1"} +{"question": "SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Tabatha Gehling' INTERSECT SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Kelly Clauss'", "answer": "List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'.\nAdditional table information: table: voter_1"} +{"question": "SELECT contestant_name FROM contestants WHERE contestant_name LIKE '%al%'", "answer": "Return the names of the contestants whose names contain the substring 'Al' .\nAdditional table information: table: voter_1"} +{"question": "SELECT Name FROM country WHERE IndepYear > 1950", "answer": "What are the names of all the countries that became independent after 1950?\nAdditional table information: table: world_1"} +{"question": "SELECT Name FROM country WHERE IndepYear > 1950", "answer": "Give the names of the nations that were founded after 1950.\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(*) FROM country WHERE GovernmentForm = 'Republic'", "answer": "How many countries have a republic as their form of government?\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(*) FROM country WHERE GovernmentForm = 'Republic'", "answer": "How many countries have governments that are republics?\nAdditional table information: table: world_1"} +{"question": "SELECT SUM(SurfaceArea) FROM country WHERE Region = 'Caribbean'", "answer": "What is the total surface area of the countries in the Caribbean region?\nAdditional table information: table: world_1"} +{"question": "SELECT SUM(SurfaceArea) FROM country WHERE Region = 'Caribbean'", "answer": "How much surface area do the countires in the Carribean cover together?\nAdditional table information: table: world_1"} +{"question": "SELECT Continent FROM country WHERE Name = 'Anguilla'", "answer": "Which continent is Anguilla in?\nAdditional table information: table: world_1"} +{"question": "SELECT Continent FROM country WHERE Name = 'Anguilla'", "answer": "What is the continent name which Anguilla belongs to?\nAdditional table information: table: world_1"} +{"question": "SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = 'Kabul'", "answer": "Which region is the city Kabul located in?\nAdditional table information: table: world_1"} +{"question": "SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = 'Kabul'", "answer": "What region is Kabul in?\nAdditional table information: table: world_1"} +{"question": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Aruba' ORDER BY Percentage DESC LIMIT 1", "answer": "Which language is the most popular in Aruba?\nAdditional table information: table: world_1"} +{"question": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Aruba' ORDER BY Percentage DESC LIMIT 1", "answer": "What language is predominantly spoken in Aruba?\nAdditional table information: table: world_1"} +{"question": "SELECT Population, LifeExpectancy FROM country WHERE Name = 'Brazil'", "answer": "What are the population and life expectancies in Brazil?\nAdditional table information: table: world_1"} +{"question": "SELECT Population, LifeExpectancy FROM country WHERE Name = 'Brazil'", "answer": "Give me Brazil\u2019s population and life expectancies.\nAdditional table information: table: world_1"} +{"question": "SELECT Population, Region FROM country WHERE Name = 'Angola'", "answer": "What are the region and population of Angola?\nAdditional table information: table: world_1"} +{"question": "SELECT Population, Region FROM country WHERE Name = 'Angola'", "answer": "What region does Angola belong to and what is its population?\nAdditional table information: table: world_1"} +{"question": "SELECT AVG(LifeExpectancy) FROM country WHERE Region = 'Central Africa'", "answer": "What is the average expected life expectancy for countries in the region of Central Africa?\nAdditional table information: table: world_1"} +{"question": "SELECT AVG(LifeExpectancy) FROM country WHERE Region = 'Central Africa'", "answer": "How long is the people\u2019s average life expectancy in Central Africa?\nAdditional table information: table: world_1"} +{"question": "SELECT Name FROM country WHERE Continent = 'Asia' ORDER BY LifeExpectancy NULLS FIRST LIMIT 1", "answer": "What is the name of country that has the shortest life expectancy in Asia?\nAdditional table information: table: world_1"} +{"question": "SELECT Name FROM country WHERE Continent = 'Asia' ORDER BY LifeExpectancy NULLS FIRST LIMIT 1", "answer": "Give the name of the country in Asia with the lowest life expectancy.\nAdditional table information: table: world_1"} +{"question": "SELECT SUM(Population), MAX(GNP) FROM country WHERE Continent = 'Asia'", "answer": "What is the total population and maximum GNP in Asia?\nAdditional table information: table: world_1"} +{"question": "SELECT SUM(Population), MAX(GNP) FROM country WHERE Continent = 'Asia'", "answer": "How many people live in Asia, and what is the largest GNP among them?\nAdditional table information: table: world_1"} +{"question": "SELECT AVG(LifeExpectancy) FROM country WHERE Continent = 'Africa' AND GovernmentForm = 'Republic'", "answer": "What is the average life expectancy in African countries that are republics?\nAdditional table information: table: world_1"} +{"question": "SELECT AVG(LifeExpectancy) FROM country WHERE Continent = 'Africa' AND GovernmentForm = 'Republic'", "answer": "Give the average life expectancy for countries in Africa which are republics?\nAdditional table information: table: world_1"} +{"question": "SELECT SUM(SurfaceArea) FROM country WHERE Continent = 'Asia' OR Continent = 'Europe'", "answer": "What is the total surface area of the continents Asia and Europe?\nAdditional table information: table: world_1"} +{"question": "SELECT SUM(SurfaceArea) FROM country WHERE Continent = 'Asia' OR Continent = 'Europe'", "answer": "Give the total surface area covered by countries in Asia or Europe.\nAdditional table information: table: world_1"} +{"question": "SELECT SUM(Population) FROM city WHERE District = 'Gelderland'", "answer": "How many people live in Gelderland district?\nAdditional table information: table: world_1"} +{"question": "SELECT SUM(Population) FROM city WHERE District = 'Gelderland'", "answer": "What is the total population of Gelderland district?\nAdditional table information: table: world_1"} +{"question": "SELECT AVG(GNP), SUM(population) FROM country WHERE GovernmentForm = 'US Territory'", "answer": "What is the average GNP and total population in all nations whose government is US territory?\nAdditional table information: table: world_1"} +{"question": "SELECT AVG(GNP), SUM(population) FROM country WHERE GovernmentForm = 'US Territory'", "answer": "Give the mean GNP and total population of nations which are considered US territory.\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(DISTINCT LANGUAGE) FROM countrylanguage", "answer": "How many unique languages are spoken in the world?\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(DISTINCT LANGUAGE) FROM countrylanguage", "answer": "What is the number of distinct languages used around the world?\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(DISTINCT GovernmentForm) FROM country WHERE Continent = 'Africa'", "answer": "How many type of governments are in Africa?\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(DISTINCT GovernmentForm) FROM country WHERE Continent = 'Africa'", "answer": "How many different forms of governments are there in Africa?\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Aruba'", "answer": "What is the total number of languages used in Aruba?\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Aruba'", "answer": "How many languages are spoken in Aruba?\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Afghanistan' AND IsOfficial = 'T'", "answer": "How many official languages does Afghanistan have?\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Afghanistan' AND IsOfficial = 'T'", "answer": "How many official languages are spoken in Afghanistan?\nAdditional table information: table: world_1"} +{"question": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is name of the country that speaks the largest number of languages?\nAdditional table information: table: world_1"} +{"question": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Give the name of the nation that uses the greatest amount of languages.\nAdditional table information: table: world_1"} +{"question": "SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which continent has the most diverse languages?\nAdditional table information: table: world_1"} +{"question": "SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which continent speaks the most languages?\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Dutch')", "answer": "How many countries speak both English and Dutch?\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Dutch')", "answer": "What is the number of nations that use English and Dutch?\nAdditional table information: table: world_1"} +{"question": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'French'", "answer": "What are the names of nations speak both English and French?\nAdditional table information: table: world_1"} +{"question": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'French'", "answer": "Give the names of nations that speak both English and French.\nAdditional table information: table: world_1"} +{"question": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'French' AND T2.IsOfficial = 'T'", "answer": "What are the names of nations where both English and French are official languages?\nAdditional table information: table: world_1"} +{"question": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'French' AND T2.IsOfficial = 'T'", "answer": "Give the names of countries with English and French as official languages.\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Chinese'", "answer": "What is the number of distinct continents where Chinese is spoken?\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Chinese'", "answer": "How many continents speak Chinese?\nAdditional table information: table: world_1"} +{"question": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' OR T2.Language = 'Dutch'", "answer": "What are the regions that use English or Dutch?\nAdditional table information: table: world_1"} +{"question": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' OR T2.Language = 'Dutch'", "answer": "Which regions speak Dutch or English?\nAdditional table information: table: world_1"} +{"question": "SELECT t1.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode WHERE t2.language = 'english' AND isofficial = 't' UNION SELECT t1.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode WHERE t2.language = 'dutch' AND isofficial = 't'", "answer": "What are the countries where either English or Dutch is the official language ?\nAdditional table information: table: world_1"} +{"question": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND IsOfficial = 'T' UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Dutch' AND IsOfficial = 'T'", "answer": "Which countries have either English or Dutch as an official language?\nAdditional table information: table: world_1"} +{"question": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = 'Asia' GROUP BY T2.Language ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which language is the most popular on the Asian continent?\nAdditional table information: table: world_1"} +{"question": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = 'Asia' GROUP BY T2.Language ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the language that is used by the largest number of Asian nations?\nAdditional table information: table: world_1"} +{"question": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = 'Republic' GROUP BY T2.Language HAVING COUNT(*) = 1", "answer": "Which languages are spoken by only one country in republic governments?\nAdditional table information: table: world_1"} +{"question": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = 'Republic' GROUP BY T2.Language HAVING COUNT(*) = 1", "answer": "What languages are only used by a single country with a republic government?\nAdditional table information: table: world_1"} +{"question": "SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = 'English' ORDER BY T1.Population DESC LIMIT 1", "answer": "Find the city with the largest population that uses English.\nAdditional table information: table: world_1"} +{"question": "SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = 'English' ORDER BY T1.Population DESC LIMIT 1", "answer": "What is the most populace city that speaks English?\nAdditional table information: table: world_1"} +{"question": "SELECT Name, Population, LifeExpectancy FROM country WHERE Continent = 'Asia' ORDER BY SurfaceArea DESC LIMIT 1", "answer": "Find the name, population and expected life length of asian country with the largest area?\nAdditional table information: table: world_1"} +{"question": "SELECT Name, Population, LifeExpectancy FROM country WHERE Continent = 'Asia' ORDER BY SurfaceArea DESC LIMIT 1", "answer": "What are the name, population, and life expectancy of the largest Asian country by land?\nAdditional table information: table: world_1"} +{"question": "SELECT AVG(LifeExpectancy) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T')", "answer": "What is average life expectancy in the countries where English is not the official language?\nAdditional table information: table: world_1"} +{"question": "SELECT AVG(LifeExpectancy) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T')", "answer": "Give the mean life expectancy of countries in which English is not the official language.\nAdditional table information: table: world_1"} +{"question": "SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English')", "answer": "What is the total number of people living in the nations that do not use English?\nAdditional table information: table: world_1"} +{"question": "SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English')", "answer": "How many people live in countries that do not speak English?\nAdditional table information: table: world_1"} +{"question": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = 'Beatrix' AND T2.IsOfficial = 'T'", "answer": "What is the official language spoken in the country whose head of state is Beatrix?\nAdditional table information: table: world_1"} +{"question": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = 'Beatrix' AND T2.IsOfficial = 'T'", "answer": "What is the official language used in the country the name of whose head of state is Beatrix.\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = 'T'", "answer": "What is the total number of unique official languages spoken in the countries that are founded before 1930?\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = 'T'", "answer": "For the countries founded before 1930, what is the total number of distinct official languages?\nAdditional table information: table: world_1"} +{"question": "SELECT Name FROM country WHERE SurfaceArea > (SELECT MIN(SurfaceArea) FROM country WHERE Continent = 'Europe')", "answer": "What are the countries that have greater surface area than any country in Europe?\nAdditional table information: table: world_1"} +{"question": "SELECT Name FROM country WHERE SurfaceArea > (SELECT MIN(SurfaceArea) FROM country WHERE Continent = 'Europe')", "answer": "Which countries have greater area than that of any country in Europe?\nAdditional table information: table: world_1"} +{"question": "SELECT Name FROM country WHERE Continent = 'Africa' AND population < (SELECT MAX(population) FROM country WHERE Continent = 'Asia')", "answer": "What are the African countries that have a population less than any country in Asia?\nAdditional table information: table: world_1"} +{"question": "SELECT Name FROM country WHERE Continent = 'Africa' AND population < (SELECT MIN(population) FROM country WHERE Continent = 'Asia')", "answer": "Which African countries have a smaller population than that of any country in Asia?\nAdditional table information: table: world_1"} +{"question": "SELECT Name FROM country WHERE Continent = 'Asia' AND population > (SELECT MAX(population) FROM country WHERE Continent = 'Africa')", "answer": "Which Asian countries have a population that is larger than any country in Africa?\nAdditional table information: table: world_1"} +{"question": "SELECT Name FROM country WHERE Continent = 'Asia' AND population > (SELECT MIN(population) FROM country WHERE Continent = 'Africa')", "answer": "What are the Asian countries which have a population larger than that of any country in Africa?\nAdditional table information: table: world_1"} +{"question": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = 'English'", "answer": "What are the country codes for countries that do not speak English?\nAdditional table information: table: world_1"} +{"question": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = 'English'", "answer": "Return the country codes for countries that do not speak English.\nAdditional table information: table: world_1"} +{"question": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE <> 'English'", "answer": "What are the country codes of countries where people use languages other than English?\nAdditional table information: table: world_1"} +{"question": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE <> 'English'", "answer": "Give the country codes for countries in which people speak langauges that are not English.\nAdditional table information: table: world_1"} +{"question": "SELECT Code FROM country WHERE GovernmentForm <> 'Republic' EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = 'English'", "answer": "What are the codes of the countries that do not speak English and whose government forms are not Republic?\nAdditional table information: table: world_1"} +{"question": "SELECT Code FROM country WHERE GovernmentForm <> 'Republic' EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = 'English'", "answer": "Return the codes of countries that do not speak English and do not have Republics for governments.\nAdditional table information: table: world_1"} +{"question": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND NOT T1.Name IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English')", "answer": "Which cities are in European countries where English is not the official language?\nAdditional table information: table: world_1"} +{"question": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND NOT T1.Name IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English')", "answer": "What are the names of cities in Europe for which English is not the official language?\nAdditional table information: table: world_1"} +{"question": "SELECT DISTINCT t3.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode JOIN city AS t3 ON t1.code = t3.countrycode WHERE t2.isofficial = 't' AND t2.language = 'chinese' AND t1.continent = 'asia'", "answer": "Which unique cities are in Asian countries where Chinese is the official language ?\nAdditional table information: table: world_1"} +{"question": "SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode JOIN city AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' AND T2.Language = 'Chinese' AND T1.Continent = 'Asia'", "answer": "Return the different names of cities that are in Asia and for which Chinese is the official language.\nAdditional table information: table: world_1"} +{"question": "SELECT Name, SurfaceArea, IndepYear FROM country ORDER BY Population NULLS FIRST LIMIT 1", "answer": "What are the name, independence year, and surface area of the country with the smallest population?\nAdditional table information: table: world_1"} +{"question": "SELECT Name, SurfaceArea, IndepYear FROM country ORDER BY Population NULLS FIRST LIMIT 1", "answer": "Give the name, year of independence, and surface area of the country that has the lowest population.\nAdditional table information: table: world_1"} +{"question": "SELECT Name, population, HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1", "answer": "What are the population, name and leader of the country with the largest area?\nAdditional table information: table: world_1"} +{"question": "SELECT Name, population, HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1", "answer": "Give the name, population, and head of state for the country that has the largest area.\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(T2.Language), T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2", "answer": "Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages.\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(T2.Language), T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2", "answer": "What are the names of countries that speak more than 2 languages, as well as how many languages they speak?\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(*), District FROM city WHERE Population > (SELECT AVG(Population) FROM city) GROUP BY District", "answer": "Find the number of cities in each district whose population is greater than the average population of cities?\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(*), District FROM city WHERE Population > (SELECT AVG(Population) FROM city) GROUP BY District", "answer": "How many cities in each district have a population that is above the average population across all cities?\nAdditional table information: table: world_1"} +{"question": "SELECT SUM(Population), GovernmentForm FROM country GROUP BY GovernmentForm HAVING AVG(LifeExpectancy) > 72", "answer": "Find the government form name and total population for each government form whose average life expectancy is longer than 72.\nAdditional table information: table: world_1"} +{"question": "SELECT SUM(Population), GovernmentForm FROM country GROUP BY GovernmentForm HAVING AVG(LifeExpectancy) > 72", "answer": "What are the different government forms and what is the total population of each for government forms that have an average life expectancy greater than 72?\nAdditional table information: table: world_1"} +{"question": "SELECT SUM(Population), AVG(LifeExpectancy), Continent FROM country GROUP BY Continent HAVING AVG(LifeExpectancy) < 72", "answer": "Find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72?\nAdditional table information: table: world_1"} +{"question": "SELECT SUM(Population), AVG(LifeExpectancy), Continent FROM country GROUP BY Continent HAVING AVG(LifeExpectancy) < 72", "answer": "What are the different continents and the total popuation and average life expectancy corresponding to each, for continents that have an average life expectancy less than 72?\nAdditional table information: table: world_1"} +{"question": "SELECT Name, SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5", "answer": "What are the names and areas of countries with the top 5 largest area?\nAdditional table information: table: world_1"} +{"question": "SELECT Name, SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5", "answer": "Return the names and surface areas of the 5 largest countries.\nAdditional table information: table: world_1"} +{"question": "SELECT Name FROM country ORDER BY Population DESC LIMIT 3", "answer": "What are names of countries with the top 3 largest population?\nAdditional table information: table: world_1"} +{"question": "SELECT Name FROM country ORDER BY Population DESC LIMIT 3", "answer": "Return the names of the 3 most populated countries.\nAdditional table information: table: world_1"} +{"question": "SELECT Name FROM country ORDER BY Population ASC NULLS FIRST LIMIT 3", "answer": "What are the names of the nations with the 3 lowest populations?\nAdditional table information: table: world_1"} +{"question": "SELECT Name FROM country ORDER BY Population ASC NULLS FIRST LIMIT 3", "answer": "Return the names of the 3 countries with the fewest people.\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(*) FROM country WHERE continent = 'Asia'", "answer": "how many countries are in Asia?\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(*) FROM country WHERE continent = 'Asia'", "answer": "Count the number of countries in Asia.\nAdditional table information: table: world_1"} +{"question": "SELECT Name FROM country WHERE continent = 'Europe' AND Population = '80000'", "answer": "What are the names of the countries that are in the continent of Europe and have a population of 80000?\nAdditional table information: table: world_1"} +{"question": "SELECT Name FROM country WHERE continent = 'Europe' AND Population = '80000'", "answer": "Give the names of countries that are in Europe and have a population equal to 80000.\nAdditional table information: table: world_1"} +{"question": "SELECT SUM(population), AVG(surfacearea) FROM country WHERE continent = 'north america' AND surfacearea > 3000", "answer": "What is the total population and average area of countries in the continent of North America whose area is bigger than 3000 ?\nAdditional table information: table: world_1"} +{"question": "SELECT SUM(population), AVG(surfacearea) FROM country WHERE continent = 'north america' AND surfacearea > 3000", "answer": "Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000 .\nAdditional table information: table: world_1"} +{"question": "SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000", "answer": "What are the cities whose population is between 160000 and 900000?\nAdditional table information: table: world_1"} +{"question": "SELECT name FROM city WHERE population BETWEEN 160000 AND 900000", "answer": "Return the names of cities that have a population between 160000 and 900000 .\nAdditional table information: table: world_1"} +{"question": "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which language is spoken by the largest number of countries?\nAdditional table information: table: world_1"} +{"question": "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Give the language that is spoken in the most countries.\nAdditional table information: table: world_1"} +{"question": "SELECT LANGUAGE, CountryCode, MAX(Percentage) FROM countrylanguage GROUP BY CountryCode", "answer": "What is the language spoken by the largest percentage of people in each country?\nAdditional table information: table: world_1"} +{"question": "SELECT LANGUAGE, CountryCode, MAX(Percentage) FROM countrylanguage GROUP BY CountryCode", "answer": "What are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each?\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = 'Spanish' GROUP BY CountryCode", "answer": "What is the total number of countries where Spanish is spoken by the largest percentage of people?\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = 'Spanish' GROUP BY CountryCode", "answer": "Count the number of countries for which Spanish is the predominantly spoken language.\nAdditional table information: table: world_1"} +{"question": "SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = 'Spanish' GROUP BY CountryCode", "answer": "What are the codes of countries where Spanish is spoken by the largest percentage of people?\nAdditional table information: table: world_1"} +{"question": "SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = 'Spanish' GROUP BY CountryCode", "answer": "Return the codes of countries for which Spanish is the predominantly spoken language.\nAdditional table information: table: world_1"} +{"question": "SELECT COUNT(*) FROM conductor", "answer": "How many conductors are there?\nAdditional table information: table: orchestra"} +{"question": "SELECT COUNT(*) FROM conductor", "answer": "Count the number of conductors.\nAdditional table information: table: orchestra"} +{"question": "SELECT Name FROM conductor ORDER BY Age ASC NULLS FIRST", "answer": "List the names of conductors in ascending order of age.\nAdditional table information: table: orchestra"} +{"question": "SELECT Name FROM conductor ORDER BY Age ASC NULLS FIRST", "answer": "What are the names of conductors, ordered by age?\nAdditional table information: table: orchestra"} +{"question": "SELECT Name FROM conductor WHERE Nationality <> 'USA'", "answer": "What are the names of conductors whose nationalities are not 'USA'?\nAdditional table information: table: orchestra"} +{"question": "SELECT Name FROM conductor WHERE Nationality <> 'USA'", "answer": "Return the names of conductors that do not have the nationality 'USA'.\nAdditional table information: table: orchestra"} +{"question": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC", "answer": "What are the record companies of orchestras in descending order of years in which they were founded?\nAdditional table information: table: orchestra"} +{"question": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC", "answer": "Return the record companies of orchestras, sorted descending by the years in which they were founded.\nAdditional table information: table: orchestra"} +{"question": "SELECT AVG(Attendance) FROM SHOW", "answer": "What is the average attendance of shows?\nAdditional table information: table: orchestra"} +{"question": "SELECT AVG(Attendance) FROM SHOW", "answer": "Return the average attendance across all shows.\nAdditional table information: table: orchestra"} +{"question": "SELECT MAX(SHARE), MIN(SHARE) FROM performance WHERE TYPE <> 'Live final'", "answer": "What are the maximum and minimum share of performances whose type is not 'Live final'.\nAdditional table information: table: orchestra"} +{"question": "SELECT MAX(SHARE), MIN(SHARE) FROM performance WHERE TYPE <> 'Live final'", "answer": "Return the maximum and minimum shares for performances that do not have the type 'Live final'.\nAdditional table information: table: orchestra"} +{"question": "SELECT COUNT(DISTINCT Nationality) FROM conductor", "answer": "How many different nationalities do conductors have?\nAdditional table information: table: orchestra"} +{"question": "SELECT COUNT(DISTINCT Nationality) FROM conductor", "answer": "Count the number of different nationalities of conductors.\nAdditional table information: table: orchestra"} +{"question": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC", "answer": "List names of conductors in descending order of years of work.\nAdditional table information: table: orchestra"} +{"question": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC", "answer": "What are the names of conductors, sorted descending by the number of years they have worked?\nAdditional table information: table: orchestra"} +{"question": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1", "answer": "List the name of the conductor with the most years of work.\nAdditional table information: table: orchestra"} +{"question": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1", "answer": "What is the name of the conductor who has worked the greatest number of years?\nAdditional table information: table: orchestra"} +{"question": "SELECT T1.Name, T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID", "answer": "Show the names of conductors and the orchestras they have conducted.\nAdditional table information: table: orchestra"} +{"question": "SELECT T1.Name, T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID", "answer": "What are the names of conductors as well as the corresonding orchestras that they have conducted?\nAdditional table information: table: orchestra"} +{"question": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1", "answer": "Show the names of conductors that have conducted more than one orchestras.\nAdditional table information: table: orchestra"} +{"question": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1", "answer": "What are the names of conductors who have conducted at more than one orchestra?\nAdditional table information: table: orchestra"} +{"question": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Show the name of the conductor that has conducted the most number of orchestras.\nAdditional table information: table: orchestra"} +{"question": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the name of the conductor who has conducted the most orchestras?\nAdditional table information: table: orchestra"} +{"question": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008", "answer": "Please show the name of the conductor that has conducted orchestras founded after 2008.\nAdditional table information: table: orchestra"} +{"question": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008", "answer": "What are the names of conductors who have conducted orchestras founded after the year 2008?\nAdditional table information: table: orchestra"} +{"question": "SELECT Record_Company, COUNT(*) FROM orchestra GROUP BY Record_Company", "answer": "Please show the different record companies and the corresponding number of orchestras.\nAdditional table information: table: orchestra"} +{"question": "SELECT Record_Company, COUNT(*) FROM orchestra GROUP BY Record_Company", "answer": "How many orchestras does each record company manage?\nAdditional table information: table: orchestra"} +{"question": "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC NULLS FIRST", "answer": "Please show the record formats of orchestras in ascending order of count.\nAdditional table information: table: orchestra"} +{"question": "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC NULLS FIRST", "answer": "What are the major record formats of orchestras, sorted by their frequency?\nAdditional table information: table: orchestra"} +{"question": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1", "answer": "List the record company shared by the most number of orchestras.\nAdditional table information: table: orchestra"} +{"question": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the record company used by the greatest number of orchestras?\nAdditional table information: table: orchestra"} +{"question": "SELECT Orchestra FROM orchestra WHERE NOT Orchestra_ID IN (SELECT Orchestra_ID FROM performance)", "answer": "List the names of orchestras that have no performance.\nAdditional table information: table: orchestra"} +{"question": "SELECT Orchestra FROM orchestra WHERE NOT Orchestra_ID IN (SELECT Orchestra_ID FROM performance)", "answer": "What are the orchestras that do not have any performances?\nAdditional table information: table: orchestra"} +{"question": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003", "answer": "Show the record companies shared by orchestras founded before 2003 and after 2003.\nAdditional table information: table: orchestra"} +{"question": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003", "answer": "What are the record companies that are used by both orchestras founded before 2003 and those founded after 2003?\nAdditional table information: table: orchestra"} +{"question": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = 'CD' OR Major_Record_Format = 'DVD'", "answer": "Find the number of orchestras whose record format is 'CD' or 'DVD'.\nAdditional table information: table: orchestra"} +{"question": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = 'CD' OR Major_Record_Format = 'DVD'", "answer": "Count the number of orchestras that have CD or DVD as their record format.\nAdditional table information: table: orchestra"} +{"question": "SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*) > 1", "answer": "Show the years in which orchestras that have given more than one performance are founded.\nAdditional table information: table: orchestra"} +{"question": "SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*) > 1", "answer": "What are years of founding for orchestras that have had more than a single performance?\nAdditional table information: table: orchestra"} +{"question": "SELECT COUNT(*) FROM Highschooler", "answer": "How many high schoolers are there?\nAdditional table information: table: network_1"} +{"question": "SELECT COUNT(*) FROM Highschooler", "answer": "Count the number of high schoolers.\nAdditional table information: table: network_1"} +{"question": "SELECT name, grade FROM Highschooler", "answer": "Show the names and grades of each high schooler.\nAdditional table information: table: network_1"} +{"question": "SELECT name, grade FROM Highschooler", "answer": "What are the names and grades for each high schooler?\nAdditional table information: table: network_1"} +{"question": "SELECT grade FROM Highschooler", "answer": "Show all the grades of the high schoolers.\nAdditional table information: table: network_1"} +{"question": "SELECT grade FROM Highschooler", "answer": "What is the grade of each high schooler?\nAdditional table information: table: network_1"} +{"question": "SELECT grade FROM Highschooler WHERE name = 'Kyle'", "answer": "What grade is Kyle in?\nAdditional table information: table: network_1"} +{"question": "SELECT grade FROM Highschooler WHERE name = 'Kyle'", "answer": "Return the grade for the high schooler named Kyle.\nAdditional table information: table: network_1"} +{"question": "SELECT name FROM Highschooler WHERE grade = 10", "answer": "Show the names of all high schoolers in grade 10.\nAdditional table information: table: network_1"} +{"question": "SELECT name FROM Highschooler WHERE grade = 10", "answer": "What are the names of all high schoolers in grade 10?\nAdditional table information: table: network_1"} +{"question": "SELECT ID FROM Highschooler WHERE name = 'Kyle'", "answer": "Show the ID of the high schooler named Kyle.\nAdditional table information: table: network_1"} +{"question": "SELECT ID FROM Highschooler WHERE name = 'Kyle'", "answer": "What is Kyle's id?\nAdditional table information: table: network_1"} +{"question": "SELECT COUNT(*) FROM Highschooler WHERE grade = 9 OR grade = 10", "answer": "How many high schoolers are there in grade 9 or 10?\nAdditional table information: table: network_1"} +{"question": "SELECT COUNT(*) FROM Highschooler WHERE grade = 9 OR grade = 10", "answer": "Count the number of high schoolers in grades 9 or 10.\nAdditional table information: table: network_1"} +{"question": "SELECT grade, COUNT(*) FROM Highschooler GROUP BY grade", "answer": "Show the number of high schoolers for each grade.\nAdditional table information: table: network_1"} +{"question": "SELECT grade, COUNT(*) FROM Highschooler GROUP BY grade", "answer": "How many high schoolers are in each grade?\nAdditional table information: table: network_1"} +{"question": "SELECT grade FROM Highschooler GROUP BY grade ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which grade has the most high schoolers?\nAdditional table information: table: network_1"} +{"question": "SELECT grade FROM Highschooler GROUP BY grade ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Return the grade that has the greatest number of high schoolers.\nAdditional table information: table: network_1"} +{"question": "SELECT grade FROM Highschooler GROUP BY grade HAVING COUNT(*) >= 4", "answer": "Show me all grades that have at least 4 students.\nAdditional table information: table: network_1"} +{"question": "SELECT grade FROM Highschooler GROUP BY grade HAVING COUNT(*) >= 4", "answer": "Which grades have 4 or more high schoolers?\nAdditional table information: table: network_1"} +{"question": "SELECT student_id, COUNT(*) FROM Friend GROUP BY student_id", "answer": "Show the student IDs and numbers of friends corresponding to each.\nAdditional table information: table: network_1"} +{"question": "SELECT student_id, COUNT(*) FROM Friend GROUP BY student_id", "answer": "How many friends does each student have?\nAdditional table information: table: network_1"} +{"question": "SELECT T2.name, COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", "answer": "Show the names of high school students and their corresponding number of friends.\nAdditional table information: table: network_1"} +{"question": "SELECT T2.name, COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", "answer": "What are the names of the high schoolers and how many friends does each have?\nAdditional table information: table: network_1"} +{"question": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the name of the high schooler who has the greatest number of friends?\nAdditional table information: table: network_1"} +{"question": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Return the name of the high school student with the most friends.\nAdditional table information: table: network_1"} +{"question": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING COUNT(*) >= 3", "answer": "Show the names of high schoolers who have at least 3 friends.\nAdditional table information: table: network_1"} +{"question": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING COUNT(*) >= 3", "answer": "What are the names of high schoolers who have 3 or more friends?\nAdditional table information: table: network_1"} +{"question": "SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = 'Kyle'", "answer": "Show the names of all of the high schooler Kyle's friends.\nAdditional table information: table: network_1"} +{"question": "SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = 'Kyle'", "answer": "Return the names of friends of the high school student Kyle.\nAdditional table information: table: network_1"} +{"question": "SELECT COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = 'Kyle'", "answer": "How many friends does the high school student Kyle have?\nAdditional table information: table: network_1"} +{"question": "SELECT COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = 'Kyle'", "answer": "Count the number of friends Kyle has.\nAdditional table information: table: network_1"} +{"question": "SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend", "answer": "Show ids of all students who do not have any friends.\nAdditional table information: table: network_1"} +{"question": "SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend", "answer": "What are the ids of high school students who do not have friends?\nAdditional table information: table: network_1"} +{"question": "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id", "answer": "Show names of all high school students who do not have any friends.\nAdditional table information: table: network_1"} +{"question": "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id", "answer": "What are the names of students who have no friends?\nAdditional table information: table: network_1"} +{"question": "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes", "answer": "Show the ids of high schoolers who have friends and are also liked by someone else.\nAdditional table information: table: network_1"} +{"question": "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes", "answer": "What are the ids of students who both have friends and are liked?\nAdditional table information: table: network_1"} +{"question": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id", "answer": "Show name of all students who have some friends and also are liked by someone else.\nAdditional table information: table: network_1"} +{"question": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id", "answer": "What are the names of high schoolers who both have friends and are liked?\nAdditional table information: table: network_1"} +{"question": "SELECT student_id, COUNT(*) FROM Likes GROUP BY student_id", "answer": "Count the number of likes for each student id.\nAdditional table information: table: network_1"} +{"question": "SELECT student_id, COUNT(*) FROM Likes GROUP BY student_id", "answer": "How many likes correspond to each student id?\nAdditional table information: table: network_1"} +{"question": "SELECT T2.name, COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", "answer": "Show the names of high schoolers who have likes, and numbers of likes for each.\nAdditional table information: table: network_1"} +{"question": "SELECT T2.name, COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", "answer": "What are the names of high schoolers who have likes, and how many likes does each have?\nAdditional table information: table: network_1"} +{"question": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the name of the high schooler who has the greatest number of likes?\nAdditional table information: table: network_1"} +{"question": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Give the name of the student with the most likes.\nAdditional table information: table: network_1"} +{"question": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING COUNT(*) >= 2", "answer": "Show the names of students who have at least 2 likes.\nAdditional table information: table: network_1"} +{"question": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING COUNT(*) >= 2", "answer": "What are the names of students who have 2 or more likes?\nAdditional table information: table: network_1"} +{"question": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id HAVING COUNT(*) >= 2", "answer": "Show the names of students who have a grade higher than 5 and have at least 2 friends.\nAdditional table information: table: network_1"} +{"question": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id HAVING COUNT(*) >= 2", "answer": "What are the names of high schoolers who have a grade of over 5 and have 2 or more friends?\nAdditional table information: table: network_1"} +{"question": "SELECT COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = 'Kyle'", "answer": "How many likes does Kyle have?\nAdditional table information: table: network_1"} +{"question": "SELECT COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = 'Kyle'", "answer": "Return the number of likes that the high schooler named Kyle has.\nAdditional table information: table: network_1"} +{"question": "SELECT AVG(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)", "answer": "Find the average grade of all students who have some friends.\nAdditional table information: table: network_1"} +{"question": "SELECT AVG(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)", "answer": "What is the average grade of students who have friends?\nAdditional table information: table: network_1"} +{"question": "SELECT MIN(grade) FROM Highschooler WHERE NOT id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)", "answer": "Find the minimum grade of students who have no friends.\nAdditional table information: table: network_1"} +{"question": "SELECT MIN(grade) FROM Highschooler WHERE NOT id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)", "answer": "What is the lowest grade of students who do not have any friends?\nAdditional table information: table: network_1"} +{"question": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals", "answer": "Which states have both owners and professionals living there?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals", "answer": "Find the states where both owners and professionals live.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT AVG(age) FROM Dogs WHERE dog_id IN (SELECT dog_id FROM Treatments)", "answer": "What is the average age of the dogs who have gone through any treatments?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT AVG(age) FROM Dogs WHERE dog_id IN (SELECT dog_id FROM Treatments)", "answer": "Find the average age of the dogs who went through treatments.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT professional_id, last_name, cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id, T1.last_name, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) > 2", "answer": "Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT professional_id, last_name, cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id, T1.last_name, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) > 2", "answer": "Find the id, last name and cell phone of the professionals who live in the state of Indiana or have performed more than two treatments.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT name FROM dogs WHERE NOT dog_id IN (SELECT dog_id FROM treatments GROUP BY dog_id HAVING SUM(cost_of_treatment) > 1000)", "answer": "Which dogs have not cost their owner more than 1000 for treatment ? List the dog names .\nAdditional table information: table: dog_kennels"} +{"question": "SELECT name FROM dogs WHERE NOT dog_id IN (SELECT dog_id FROM treatments GROUP BY dog_id HAVING SUM(cost_of_treatment) > 1000)", "answer": "What are the names of the dogs for which the owner has not spend more than 1000 for treatment ?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs", "answer": "Which first names are used for professionals or owners but are not used as dog names?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs", "answer": "Find the first names that are used for professionals or owners but are not used as dog names.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT professional_id, role_code, email_address FROM Professionals EXCEPT SELECT T1.professional_id, T1.role_code, T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id", "answer": "Which professional did not operate any treatment on dogs? List the professional's id, role and email.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT professional_id, role_code, email_address FROM Professionals EXCEPT SELECT T1.professional_id, T1.role_code, T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id", "answer": "Give me the id, role and email of the professionals who did not perform any treatment on dogs.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.owner_id, T2.first_name, T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which owner owns the most dogs? List the owner id, first name and last name.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.owner_id, T2.first_name, T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Return the owner id, first name and last name of the owner who has the most dogs.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.professional_id, T1.role_code, T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) >= 2", "answer": "Which professionals have done at least two treatments? List the professional's id, role, and first name.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.professional_id, T1.role_code, T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) >= 2", "answer": "What are the id, role, and first name of the professionals who have performed two or more treatments?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the name of the breed with the most dogs?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which breed do the most dogs have? Give me the breed name.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.owner_id, T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.owner_id, T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY SUM(cost_of_treatment) ASC NULLS FIRST LIMIT 1", "answer": "What is the description of the treatment type that costs the least money in total?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY SUM(cost_of_treatment) ASC NULLS FIRST LIMIT 1", "answer": "Give me the description of the treatment type whose total cost is the lowest.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.owner_id, T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY SUM(T3.cost_of_treatment) DESC LIMIT 1", "answer": "Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.owner_id, T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY SUM(T3.cost_of_treatment) DESC LIMIT 1", "answer": "Find the owner id and zip code of the owner who spent the most money in total for his or her dogs.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.professional_id, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) >= 2", "answer": "Which professionals have done at least two types of treatments? List the professional id and cell phone.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.professional_id, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) >= 2", "answer": "Find the id and cell phone of the professionals who operate two or more types of treatments.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT DISTINCT T1.first_name, T1.last_name FROM Professionals AS T1, Treatments AS T2 WHERE cost_of_treatment < (SELECT AVG(cost_of_treatment) FROM Treatments)", "answer": "What are the first name and last name of the professionals who have done treatment with cost below average?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT DISTINCT T1.first_name, T1.last_name FROM Professionals AS T1, Treatments AS T2 WHERE cost_of_treatment < (SELECT AVG(cost_of_treatment) FROM Treatments)", "answer": "Which professionals have operated a treatment that costs less than the average? Give me theor first names and last names.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.date_of_treatment, T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id", "answer": "List the date of each treatment, together with the first name of the professional who operated it.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.date_of_treatment, T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id", "answer": "What are the date and the operating professional's first name of each treatment?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.cost_of_treatment, T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code", "answer": "List the cost of each treatment and the corresponding treatment type description.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.cost_of_treatment, T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code", "answer": "What are the cost and treatment type description of each treatment?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.first_name, T1.last_name, T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", "answer": "List each owner's first name, last name, and the size of his for her dog.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.first_name, T1.last_name, T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", "answer": "What are each owner's first name, last name, and the size of their dog?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", "answer": "List pairs of the owner's first name and the dogs's name.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", "answer": "What are each owner's first name and their dogs's name?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.name, T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = (SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY COUNT(*) ASC NULLS FIRST LIMIT 1)", "answer": "List the names of the dogs of the rarest breed and the treatment dates of them.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.name, T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = (SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY COUNT(*) ASC NULLS FIRST LIMIT 1)", "answer": "Which dogs are of the rarest breed? Show their names and treatment dates.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'", "answer": "Which dogs are owned by someone who lives in Virginia? List the owner's first name and the dog's name.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'", "answer": "Find the first names of owners living in Virginia and the names of dogs they own.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT DISTINCT T1.date_arrived, T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id", "answer": "What are the arriving date and the departing date of the dogs who have gone through a treatment?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT DISTINCT T1.date_arrived, T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id", "answer": "Find the arriving date and the departing date of the dogs that received a treatment.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = (SELECT MAX(age) FROM Dogs)", "answer": "List the last name of the owner owning the youngest dog.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = (SELECT MAX(age) FROM Dogs)", "answer": "Who owns the youngest dog? Give me his or her last name.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'", "answer": "List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'", "answer": "What are the emails of the professionals living in either the state of Hawaii or the state of Wisconsin?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT date_arrived, date_departed FROM Dogs", "answer": "What are the arriving date and the departing date of all the dogs?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT date_arrived, date_departed FROM Dogs", "answer": "List the arrival date and the departure date for all the dogs.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT COUNT(DISTINCT dog_id) FROM Treatments", "answer": "How many dogs went through any treatments?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT COUNT(DISTINCT dog_id) FROM Treatments", "answer": "Count the number of dogs that went through a treatment.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT COUNT(DISTINCT professional_id) FROM Treatments", "answer": "How many professionals have performed any treatment to dogs?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT COUNT(DISTINCT professional_id) FROM Treatments", "answer": "Find the number of professionals who have ever treated dogs.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT role_code, street, city, state FROM professionals WHERE city LIKE '%West%'", "answer": "Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT role_code, street, city, state FROM professionals WHERE city LIKE '%West%'", "answer": "Find the role, street, city and state of the professionals living in a city that contains the substring 'West'.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT first_name, last_name, email_address FROM Owners WHERE state LIKE '%North%'", "answer": "Which owners live in the state whose name contains the substring 'North'? List his first name, last name and email.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT first_name, last_name, email_address FROM Owners WHERE state LIKE '%North%'", "answer": "Return the first name, last name and email of the owners living in a state whose name contains the substring 'North'.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT COUNT(*) FROM Dogs WHERE age < (SELECT AVG(age) FROM Dogs)", "answer": "How many dogs have an age below the average?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT COUNT(*) FROM Dogs WHERE age < (SELECT AVG(age) FROM Dogs)", "answer": "Count the number of dogs of an age below the average.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1", "answer": "How much does the most recent treatment cost?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1", "answer": "Show me the cost of the most recently performed treatment.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT COUNT(*) FROM Dogs WHERE NOT dog_id IN (SELECT dog_id FROM Treatments)", "answer": "How many dogs have not gone through any treatment?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT COUNT(*) FROM dogs WHERE NOT dog_id IN (SELECT dog_id FROM treatments)", "answer": "Tell me the number of dogs that have not received any treatment .\nAdditional table information: table: dog_kennels"} +{"question": "SELECT COUNT(*) FROM Owners WHERE NOT owner_id IN (SELECT owner_id FROM Dogs)", "answer": "How many owners temporarily do not have any dogs?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT COUNT(*) FROM Owners WHERE NOT owner_id IN (SELECT owner_id FROM Dogs)", "answer": "Find the number of owners who do not own any dogs at this moment.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT COUNT(*) FROM Professionals WHERE NOT professional_id IN (SELECT professional_id FROM Treatments)", "answer": "How many professionals did not operate any treatment on dogs?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT COUNT(*) FROM Professionals WHERE NOT professional_id IN (SELECT professional_id FROM Treatments)", "answer": "Find the number of professionals who have not treated any dogs.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT name, age, weight FROM Dogs WHERE abandoned_yn = 1", "answer": "List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT name, age, weight FROM Dogs WHERE abandoned_yn = 1", "answer": "What are the dog name, age and weight of the dogs that were abandoned? Note that 1 stands for yes, and 0 stands for no in the tables.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT AVG(age) FROM Dogs", "answer": "What is the average age of all the dogs?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT AVG(age) FROM Dogs", "answer": "Compute the average age of all the dogs.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT MAX(age) FROM Dogs", "answer": "What is the age of the oldest dog?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT MAX(age) FROM Dogs", "answer": "Tell me the age of the oldest dog.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT charge_type, charge_amount FROM Charges", "answer": "How much does each charge type costs? List both charge type and amount.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT charge_type, charge_amount FROM Charges", "answer": "List each charge type and its amount.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT MAX(charge_amount) FROM Charges", "answer": "How much does the most expensive charge type costs?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT MAX(charge_amount) FROM Charges", "answer": "What is the charge amount of the most expensive charge type?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT email_address, cell_number, home_phone FROM professionals", "answer": "List the email, cell phone and home phone of all the professionals.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT email_address, cell_number, home_phone FROM professionals", "answer": "What are the email, cell phone and home phone of each professional?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT DISTINCT breed_code, size_code FROM dogs", "answer": "What are all the possible breed type and size type combinations?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT DISTINCT breed_code, size_code FROM dogs", "answer": "Find the distinct breed type and size type combinations for dogs.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT DISTINCT T1.first_name, T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code", "answer": "List the first name of all the professionals along with the description of the treatment they have done.\nAdditional table information: table: dog_kennels"} +{"question": "SELECT DISTINCT T1.first_name, T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code", "answer": "What are each professional's first name and description of the treatment they have performed?\nAdditional table information: table: dog_kennels"} +{"question": "SELECT COUNT(*) FROM singer", "answer": "How many singers are there?\nAdditional table information: table: singer"} +{"question": "SELECT COUNT(*) FROM singer", "answer": "What is the count of singers?\nAdditional table information: table: singer"} +{"question": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC NULLS FIRST", "answer": "List the name of singers in ascending order of net worth.\nAdditional table information: table: singer"} +{"question": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC NULLS FIRST", "answer": "What are the names of singers ordered by ascending net worth?\nAdditional table information: table: singer"} +{"question": "SELECT Birth_Year, Citizenship FROM singer", "answer": "What are the birth year and citizenship of singers?\nAdditional table information: table: singer"} +{"question": "SELECT Birth_Year, Citizenship FROM singer", "answer": "What are the birth years and citizenships of the singers?\nAdditional table information: table: singer"} +{"question": "SELECT Name FROM singer WHERE Citizenship <> 'France'", "answer": "List the name of singers whose citizenship is not 'France'.\nAdditional table information: table: singer"} +{"question": "SELECT Name FROM singer WHERE Citizenship <> 'France'", "answer": "What are the names of the singers who are not French citizens?\nAdditional table information: table: singer"} +{"question": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949", "answer": "Show the name of singers whose birth year is either 1948 or 1949?\nAdditional table information: table: singer"} +{"question": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949", "answer": "What are the names of the singers whose birth years are either 1948 or 1949?\nAdditional table information: table: singer"} +{"question": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1", "answer": "What is the name of the singer with the largest net worth?\nAdditional table information: table: singer"} +{"question": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1", "answer": "What is the name of the singer who is worth the most?\nAdditional table information: table: singer"} +{"question": "SELECT Citizenship, COUNT(*) FROM singer GROUP BY Citizenship", "answer": "Show different citizenship of singers and the number of singers of each citizenship.\nAdditional table information: table: singer"} +{"question": "SELECT Citizenship, COUNT(*) FROM singer GROUP BY Citizenship", "answer": "For each citizenship, how many singers are from that country?\nAdditional table information: table: singer"} +{"question": "SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1", "answer": "Please show the most common citizenship of singers.\nAdditional table information: table: singer"} +{"question": "SELECT citizenship FROM singer GROUP BY citizenship ORDER BY COUNT(*) DESC LIMIT 1", "answer": "What is the most common singer citizenship ?\nAdditional table information: table: singer"} +{"question": "SELECT Citizenship, MAX(Net_Worth_Millions) FROM singer GROUP BY Citizenship", "answer": "Show different citizenships and the maximum net worth of singers of each citizenship.\nAdditional table information: table: singer"} +{"question": "SELECT Citizenship, MAX(Net_Worth_Millions) FROM singer GROUP BY Citizenship", "answer": "For each citizenship, what is the maximum net worth?\nAdditional table information: table: singer"} +{"question": "SELECT T2.Title, T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID", "answer": "Show titles of songs and names of singers.\nAdditional table information: table: singer"} +{"question": "SELECT T2.Title, T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID", "answer": "What are the song titles and singer names?\nAdditional table information: table: singer"} +{"question": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000", "answer": "Show distinct names of singers that have songs with sales more than 300000.\nAdditional table information: table: singer"} +{"question": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000", "answer": "what are the different names of the singers that have sales more than 300000?\nAdditional table information: table: singer"} +{"question": "SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1", "answer": "Show the names of singers that have more than one song.\nAdditional table information: table: singer"} +{"question": "SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1", "answer": "What are the names of the singers that have more than one songs?\nAdditional table information: table: singer"} +{"question": "SELECT T1.Name, SUM(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name", "answer": "Show the names of singers and the total sales of their songs.\nAdditional table information: table: singer"} +{"question": "SELECT T1.Name, SUM(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name", "answer": "For each singer name, what is the total sales for their songs?\nAdditional table information: table: singer"} +{"question": "SELECT Name FROM singer WHERE NOT Singer_ID IN (SELECT Singer_ID FROM song)", "answer": "List the name of singers that do not have any song.\nAdditional table information: table: singer"} +{"question": "SELECT Name FROM singer WHERE NOT Singer_ID IN (SELECT Singer_ID FROM song)", "answer": "What is the sname of every sing that does not have any song?\nAdditional table information: table: singer"} +{"question": "SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955", "answer": "Show the citizenship shared by singers with birth year before 1945 and after 1955.\nAdditional table information: table: singer"} +{"question": "SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955", "answer": "What are the citizenships that are shared by singers with a birth year before 1945 and after 1955?\nAdditional table information: table: singer"} +{"question": "SELECT COUNT(*) FROM Other_Available_Features", "answer": "How many available features are there in total?\nAdditional table information: table: real_estate_properties"} +{"question": "SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code = T2.feature_type_code WHERE T1.feature_name = 'AirCon'", "answer": "What is the feature type name of feature AirCon?\nAdditional table information: table: real_estate_properties"} +{"question": "SELECT T2.property_type_description FROM Properties AS T1 JOIN Ref_Property_Types AS T2 ON T1.property_type_code = T2.property_type_code GROUP BY T1.property_type_code", "answer": "Show the property type descriptions of properties belonging to that code.\nAdditional table information: table: real_estate_properties"} +{"question": "SELECT property_name FROM Properties WHERE property_type_code = 'House' UNION SELECT property_name FROM Properties WHERE property_type_code = 'Apartment' AND room_count > 1", "answer": "What are the names of properties that are either houses or apartments with more than 1 room?\nAdditional table information: table: real_estate_properties"} +{"question": "SELECT position FROM \"canadian_football\".\"toronto\" WHERE school_club_team = 'Butler CC (KS)'", "answer": "What position does the player who played for butler cc (ks) play?\nAdditional table information: table: \"canadian_football\".\"toronto\"\ncolumns: player, player_number, nationality, position, years_in_toronto, school_club_team"} +{"question": "SELECT COUNT school_club_team FROM \"canadian_football\".\"toronto\" WHERE player_number = '3'", "answer": "How many schools did player number 3 play at?\nAdditional table information: table: \"canadian_football\".\"toronto\"\ncolumns: player, player_number, nationality, position, years_in_toronto, school_club_team"} +{"question": "SELECT school_club_team FROM \"canadian_football\".\"toronto\" WHERE player_number = '21'", "answer": "What school did player number 21 play for?\nAdditional table information: table: \"canadian_football\".\"toronto\"\ncolumns: player, player_number, nationality, position, years_in_toronto, school_club_team"} +{"question": "SELECT player FROM \"canadian_football\".\"toronto\" WHERE player_number = '42'", "answer": "Who is the player that wears number 42?\nAdditional table information: table: \"canadian_football\".\"toronto\"\ncolumns: player, player_number, nationality, position, years_in_toronto, school_club_team"} +{"question": "SELECT player FROM \"canadian_football\".\"toronto\" WHERE position = 'Guard' AND years_in_toronto = '1996-97'", "answer": "What player played guard for toronto in 1996-97?\nAdditional table information: table: \"canadian_football\".\"toronto\"\ncolumns: player, player_number, nationality, position, years_in_toronto, school_club_team"} +{"question": "SELECT player FROM \"canadian_football\".\"players\" WHERE school_club_team = 'Westchester High School'", "answer": "Who are all of the players on the Westchester High School club team?\nAdditional table information: table: \"canadian_football\".\"players\"\ncolumns: player, player_number, nationality, Position, years_in_toronto, school_club_team"} +{"question": "SELECT school_club_team FROM \"canadian_football\".\"players\" WHERE player = 'Amir Johnson'", "answer": "What school/club team is Amir Johnson on?\nAdditional table information: table: \"canadian_football\".\"players\"\ncolumns: player, player_number, nationality, Position, years_in_toronto, school_club_team"} +{"question": "SELECT COUNT player_number FROM \"canadian_football\".\"players\" WHERE years_in_toronto = '2005-06'", "answer": "What are the total amount of numbers on the Toronto team in 2005-06?\nAdditional table information: table: \"canadian_football\".\"players\"\ncolumns: player, player_number, nationality, Position, years_in_toronto, school_club_team"} +{"question": "SELECT COUNT Position FROM \"canadian_football\".\"players\" WHERE years_in_toronto = '2006-07'", "answer": "What are the total number of positions on the Toronto team in 2006-07?\nAdditional table information: table: \"canadian_football\".\"players\"\ncolumns: player, player_number, nationality, Position, years_in_toronto, school_club_team"} +{"question": "SELECT nationality FROM \"canadian_football\".\"players\" WHERE school_club_team = 'Fresno State'", "answer": "What are the nationality of the players on the Fresno State school/club team?\nAdditional table information: table: \"canadian_football\".\"players\"\ncolumns: player, player_number, nationality, Position, years_in_toronto, school_club_team"} +{"question": "SELECT school_club_team FROM \"canadian_football\".\"players\" WHERE player = 'Trey Johnson'", "answer": "What school/club team is Trey Johnson on?\nAdditional table information: table: \"canadian_football\".\"players\"\ncolumns: player, player_number, nationality, Position, years_in_toronto, school_club_team"}