jellyChiru commited on
Commit
85ba489
·
1 Parent(s): d7db2a9

Upload validation.csv

Browse files
Files changed (1) hide show
  1. validation.csv +423 -0
validation.csv ADDED
@@ -0,0 +1,423 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ database_id,query,question
2
+ flight_2,"SELECT Country FROM AIRLINES WHERE Airline = ""JetBlue Airways""",What country is Jetblue Airways affiliated with?
3
+ flight_2,"SELECT Abbreviation FROM AIRLINES WHERE Airline = ""JetBlue Airways""",Which abbreviation corresponds to Jetblue Airways?
4
+ flight_2,"SELECT Airline , Abbreviation FROM AIRLINES WHERE Country = ""USA""",What are the airline names and abbreviations for airlines in the USA?
5
+ flight_2,"SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = ""Anthony""",Give the airport code and airport name corresonding to the city Anthony.
6
+ flight_2,SELECT count(*) FROM AIRLINES,What is the total number of airlines?
7
+ flight_2,SELECT count(*) FROM AIRPORTS,Return the number of airports.
8
+ flight_2,SELECT count(*) FROM FLIGHTS,Return the number of flights.
9
+ flight_2,"SELECT Airline FROM AIRLINES WHERE Abbreviation = ""UAL""",Give the airline with abbreviation 'UAL'.
10
+ flight_2,"SELECT count(*) FROM AIRLINES WHERE Country = ""USA""",Return the number of airlines in the USA.
11
+ flight_2,"SELECT City , Country FROM AIRPORTS WHERE AirportName = ""Alton""",Give the city and country for the Alton airport.
12
+ flight_2,"SELECT AirportName FROM AIRPORTS WHERE AirportCode = ""AKO""",Return the name of the airport with code 'AKO'.
13
+ flight_2,"SELECT AirportName FROM AIRPORTS WHERE City = ""Aberdeen""",What are the names of airports in Aberdeen?
14
+ flight_2,"SELECT count(*) FROM FLIGHTS WHERE SourceAirport = ""APG""",Count the number of flights departing from 'APG'.
15
+ flight_2,"SELECT count(*) FROM FLIGHTS WHERE DestAirport = ""ATO""",Count the number of flights into ATO.
16
+ flight_2,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = ""Aberdeen""",Return the number of flights departing from Aberdeen.
17
+ flight_2,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = ""Aberdeen""",Return the number of flights arriving in Aberdeen.
18
+ flight_2,"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""",How many flights fly from Aberdeen to Ashley?
19
+ flight_2,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = ""JetBlue Airways""",Give the number of Jetblue Airways flights.
20
+ flight_2,"SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = ""United Airlines"" AND T2.DestAirport = ""ASY""",Count the number of United Airlines flights arriving in ASY Airport.
21
+ flight_2,"SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = ""United Airlines"" AND T2.SourceAirport = ""AHD""",Return the number of United Airlines flights leaving from AHD Airport.
22
+ flight_2,"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""",Count the number of United Airlines flights that arrive in Aberdeen.
23
+ flight_2,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,Which city has the most frequent destination airport?
24
+ flight_2,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,Which city is the most frequent source airport?
25
+ flight_2,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,What is the airport code of the airport with the most flights?
26
+ flight_2,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(*) LIMIT 1,Give the code of the airport with the least flights.
27
+ flight_2,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,What airline serves the most flights?
28
+ flight_2,"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(*) LIMIT 1",What is the abbreviation of the airilne has the fewest flights and what country is it in?
29
+ flight_2,"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ""AHD""",Which airlines have a flight with source airport AHD?
30
+ flight_2,"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = ""AHD""",Which airlines have a flight with destination airport AHD?
31
+ flight_2,"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""",Which airlines have departing flights from both APG and CVO airports?
32
+ flight_2,"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""",Which airlines have departures from CVO but not from APG airports?
33
+ flight_2,SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10,Which airlines have at least 10 flights?
34
+ flight_2,SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200,Which airlines have less than 200 flights?
35
+ flight_2,"SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = ""United Airlines""",Which flight numbers correspond to United Airlines flights?
36
+ flight_2,"SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = ""APG""",Give the flight numbers of flights leaving from APG.
37
+ flight_2,"SELECT FlightNo FROM FLIGHTS WHERE DestAirport = ""APG""",Give the flight numbers of flights landing at APG.
38
+ flight_2,"SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = ""Aberdeen""",Give the flight numbers of flights leaving from Aberdeen.
39
+ flight_2,"SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = ""Aberdeen""",Give the flight numbers of flights arriving in Aberdeen.
40
+ flight_2,"SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = ""Aberdeen"" OR T2.city = ""Abilene""",How many flights land in Aberdeen or Abilene?
41
+ flight_2,SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights),Which airports do not have departing or arriving flights?
42
+ pets_1,SELECT count(*) FROM pets WHERE weight > 10,How many pets have a greater weight than 10?
43
+ pets_1,SELECT weight FROM pets ORDER BY pet_age LIMIT 1,How much does the youngest dog weigh?
44
+ pets_1,"SELECT max(weight) , petType FROM pets GROUP BY petType",List the maximum weight and type for each type of pet.
45
+ pets_1,SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20,How many pets are owned by students that have an age greater than 20?
46
+ pets_1,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',How many dog pets are raised by female students?
47
+ pets_1,SELECT count(DISTINCT pettype) FROM pets,How many different types of pet are there?
48
+ pets_1,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',What are the first names of every student who has a cat or dog as a pet?
49
+ pets_1,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',What are the students' first names who have both cats and dogs as pets?
50
+ pets_1,"SELECT major , age FROM student WHERE stuid NOT 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')","What major is every student who does not own a cat as a pet, and also how old are they?"
51
+ pets_1,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',What are the ids of the students who do not own cats as pets?
52
+ pets_1,"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 T1.stuid NOT 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')",What is the first name of every student who has a dog but does not have a cat?
53
+ pets_1,"SELECT pettype , weight FROM pets ORDER BY pet_age LIMIT 1","What type of pet is the youngest animal, and how much does it weigh?"
54
+ pets_1,"SELECT petid , weight FROM pets WHERE pet_age > 1",What is the id and weight of every pet who is older than 1?
55
+ pets_1,"SELECT avg(pet_age) , max(pet_age) , pettype FROM pets GROUP BY pettype",What is the average and maximum age for each pet type?
56
+ pets_1,"SELECT avg(weight) , pettype FROM pets GROUP BY pettype",What is the average weight for each type of pet?
57
+ pets_1,"SELECT DISTINCT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid",What are the different first names and ages of the students who do have pets?
58
+ pets_1,SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith',What is the id of the pet owned by the student whose last name is 'Smith'?
59
+ pets_1,"SELECT count(*) , T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid","For students who have pets, how many pets does each student have?"
60
+ pets_1,"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",What is the first name and gender of the all the students who have more than one pet?
61
+ pets_1,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',What is the last name of the student who has a cat that is 3 years old?
62
+ pets_1,SELECT avg(age) FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid),What is the average age for all students who do not own any pets?
63
+ world_1,SELECT Name FROM country WHERE IndepYear > 1950,Give the names of the nations that were founded after 1950.
64
+ world_1,"SELECT count(*) FROM country WHERE GovernmentForm = ""Republic""",How many countries have governments that are republics?
65
+ world_1,"SELECT sum(SurfaceArea) FROM country WHERE Region = ""Caribbean""",How much surface area do the countires in the Carribean cover together?
66
+ world_1,"SELECT Continent FROM country WHERE Name = ""Anguilla""",What is the continent name which Anguilla belongs to?
67
+ world_1,"SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = ""Kabul""",What region is Kabul in?
68
+ world_1,"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",What language is predominantly spoken in Aruba?
69
+ world_1,"SELECT Population , LifeExpectancy FROM country WHERE Name = ""Brazil""",Give me Brazil’s population and life expectancies.
70
+ world_1,"SELECT Population , Region FROM country WHERE Name = ""Angola""",What region does Angola belong to and what is its population?
71
+ world_1,"SELECT avg(LifeExpectancy) FROM country WHERE Region = ""Central Africa""",How long is the people’s average life expectancy in Central Africa?
72
+ world_1,"SELECT Name FROM country WHERE Continent = ""Asia"" ORDER BY LifeExpectancy LIMIT 1",Give the name of the country in Asia with the lowest life expectancy.
73
+ world_1,"SELECT sum(Population) , max(GNP) FROM country WHERE Continent = ""Asia""","How many people live in Asia, and what is the largest GNP among them?"
74
+ world_1,"SELECT avg(LifeExpectancy) FROM country WHERE Continent = ""Africa"" AND GovernmentForm = ""Republic""",Give the average life expectancy for countries in Africa which are republics?
75
+ world_1,"SELECT sum(SurfaceArea) FROM country WHERE Continent = ""Asia"" OR Continent = ""Europe""",Give the total surface area covered by countries in Asia or Europe.
76
+ world_1,"SELECT sum(Population) FROM city WHERE District = ""Gelderland""",What is the total population of Gelderland district?
77
+ world_1,"SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = ""US Territory""",Give the mean GNP and total population of nations which are considered US territory.
78
+ world_1,SELECT count(DISTINCT LANGUAGE) FROM countrylanguage,What is the number of distinct languages used around the world?
79
+ world_1,"SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = ""Africa""",How many different forms of governments are there in Africa?
80
+ world_1,"SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = ""Aruba""",How many languages are spoken in Aruba?
81
+ world_1,"SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = ""Afghanistan"" AND IsOfficial = ""T""",How many official languages are spoken in Afghanistan?
82
+ world_1,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,Give the name of the nation that uses the greatest amount of languages.
83
+ world_1,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,Which continent speaks the most languages?
84
+ world_1,"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"")",What is the number of nations that use English and Dutch?
85
+ world_1,"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""",Give the names of nations that speak both English and French.
86
+ world_1,"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""",Give the names of countries with English and French as official languages.
87
+ world_1,"SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""Chinese""",How many continents speak Chinese?
88
+ world_1,"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""",Which regions speak Dutch or English?
89
+ world_1,"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""",Which countries have either English or Dutch as an official language?
90
+ world_1,"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",What is the language that is used by the largest number of Asian nations?
91
+ world_1,"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",What languages are only used by a single country with a republic government?
92
+ world_1,"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",What is the most populace city that speaks English?
93
+ world_1,"SELECT Name , Population , LifeExpectancy FROM country WHERE Continent = ""Asia"" ORDER BY SurfaceArea DESC LIMIT 1","What are the name, population, and life expectancy of the largest Asian country by land?"
94
+ world_1,"SELECT avg(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""English"" AND T2.IsOfficial = ""T"")",Give the mean life expectancy of countries in which English is not the official language.
95
+ world_1,"SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""English"")",How many people live in countries that do not speak English?
96
+ world_1,"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = ""Beatrix"" AND T2.IsOfficial = ""T""",What is the official language used in the country the name of whose head of state is Beatrix.
97
+ world_1,"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""","For the countries founded before 1930, what is the total number of distinct official languages?"
98
+ world_1,"SELECT Name FROM country WHERE SurfaceArea > (SELECT min(SurfaceArea) FROM country WHERE Continent = ""Europe"")",Which countries have greater area than that of any country in Europe?
99
+ world_1,"SELECT Name FROM country WHERE Continent = ""Africa"" AND population < (SELECT max(population) FROM country WHERE Continent = ""Asia"")",Which African countries have a smaller population than that of any country in Asia?
100
+ world_1,"SELECT Name FROM country WHERE Continent = ""Asia"" AND population > (SELECT min(population) FROM country WHERE Continent = ""Africa"")",What are the Asian countries which have a population larger than that of any country in Africa?
101
+ world_1,"SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = ""English""",Return the country codes for countries that do not speak English.
102
+ world_1,"SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE ! = ""English""",Give the country codes for countries in which people speak langauges that are not English.
103
+ world_1,"SELECT Code FROM country WHERE GovernmentForm ! = ""Republic"" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = ""English""",Return the codes of countries that do not speak English and do not have Republics for governments.
104
+ world_1,SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND T1.Name NOT 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'),What are the names of cities in Europe for which English is not the official language?
105
+ world_1,"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""",Return the different names of cities that are in Asia and for which Chinese is the official language.
106
+ world_1,"SELECT Name , SurfaceArea , IndepYear FROM country ORDER BY Population LIMIT 1","Give the name, year of independence, and surface area of the country that has the lowest population."
107
+ world_1,"SELECT Name , population , HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1","Give the name, population, and head of state for the country that has the largest area."
108
+ world_1,"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","What are the names of countries that speak more than 2 languages, as well as how many languages they speak?"
109
+ world_1,"SELECT count(*) , District FROM city WHERE Population > (SELECT avg(Population) FROM city) GROUP BY District",How many cities in each district have a population that is above the average population across all cities?
110
+ world_1,"SELECT sum(Population) , GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72",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?
111
+ world_1,"SELECT sum(Population) , avg(LifeExpectancy) , Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72","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?"
112
+ world_1,"SELECT Name , SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5",Return the names and surface areas of the 5 largest countries.
113
+ world_1,SELECT Name FROM country ORDER BY Population DESC LIMIT 3,Return the names of the 3 most populated countries.
114
+ world_1,SELECT Name FROM country ORDER BY Population ASC LIMIT 3,Return the names of the 3 countries with the fewest people.
115
+ world_1,"SELECT count(*) FROM country WHERE continent = ""Asia""",Count the number of countries in Asia.
116
+ world_1,"SELECT Name FROM country WHERE WHERE continent = ""Europe"" AND Population = ""80000""",Give the names of countries that are in Europe and have a population equal to 80000.
117
+ world_1,"SELECT sum(Population) , avg(SurfaceArea) FROM country WHERE Continent = ""North America"" AND SurfaceArea > 3000",Give the total population and average surface area corresponding to countries in Noth America that have a surface area greater than 3000.
118
+ world_1,SELECT name FROM city WHERE Population BETWEEN 160000 AND 90000,Return the names of cities that have a population between 160000 and 900000.
119
+ world_1,SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1,Give the language that is spoken in the most countries.
120
+ tvshow,"SELECT Title FROM Cartoon WHERE Directed_by = ""Ben Jones"" OR Directed_by = ""Brandon Vietti"";","List the title of all cartoon directed by ""Ben Jones"" or ""Brandon Vietti""."
121
+ tvshow,"SELECT Country , count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;",Which country has the most of TV Channels? List the country and number of TV Channels it has.
122
+ tvshow,"SELECT count(DISTINCT series_name) , count(DISTINCT content) FROM TV_Channel;",List the number of different series names and contents in the TV Channel table.
123
+ tvshow,"SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;",List the language used least number of TV Channel. List language and number of TV Channel.
124
+ tvshow,"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!"";","What is the TV Channel that shows the cartoon ""The Rise of the Blue Beetle!""? List the TV Channel's series name."
125
+ tvshow,"SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = ""Sky Radio"";","List the title of all Cartoons showed on TV Channel with series name ""Sky Radio""."
126
+ tvshow,"SELECT Episode , Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;",List top 3 highest Rating TV series. List the TV series's Episode and Rating.
127
+ tvshow,"SELECT max(SHARE) , min(SHARE) FROM TV_series;",What is minimum and maximum share of TV series?
128
+ tvshow,"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"";","What is the TV Channel of TV series with Episode ""A Love of a Lifetime""? List the TV Channel's series name."
129
+ tvshow,"SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = ""Sky Radio"";","List the Episode of all TV series showed on TV Channel with series name ""Sky Radio""."
130
+ tvshow,"SELECT production_code , channel FROM cartoon ORDER BY original_air_date LIMIT 1",Find the production code and channel of the most recently aired cartoon.
131
+ tvshow,SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Written_by = 'Todd Casey',which countries' tv channels are playing some cartoon written by Todd Casey?
132
+ tvshow,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',which countries' tv channels are not playing any cartoon written by Todd Casey?
133
+ tvshow,"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'",Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?
134
+ tvshow,SELECT id FROM tv_channel GROUP BY country HAVING count(*) > 2,find id of the tv channels that from the countries where have more than two tv channels.
135
+ tvshow,SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones',find the id of tv channels that do not play any cartoon directed by Ben Jones.
136
+ poker_player,SELECT count(*) FROM poker_player,How many poker players are there?
137
+ poker_player,SELECT Earnings FROM poker_player ORDER BY Earnings DESC,List the earnings of poker players in descending order.
138
+ poker_player,"SELECT Final_Table_Made , Best_Finish FROM poker_player",List the final tables made and the best finishes of poker players.
139
+ poker_player,SELECT avg(Earnings) FROM poker_player,What is the average earnings of poker players?
140
+ poker_player,SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1,What is the money rank of the poker player with the highest earnings?
141
+ poker_player,SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings < 200000,What is the maximum number of final tables made among poker players with earnings less than 200000?
142
+ poker_player,SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID,What are the names of poker players?
143
+ poker_player,SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000,What are the names of poker players whose earnings is higher than 300000?
144
+ poker_player,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,List the names of poker players ordered by the final tables made in ascending order.
145
+ poker_player,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 LIMIT 1,What is the birth date of the poker player with the lowest earnings?
146
+ poker_player,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,What is the money rank of the tallest poker player?
147
+ poker_player,SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200,What is the average earnings of poker players with height higher than 200?
148
+ poker_player,SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC,What are the names of poker players in descending order of earnings?
149
+ poker_player,"SELECT Nationality , COUNT(*) FROM people GROUP BY Nationality",What are different nationalities of people and the corresponding number of people from each nation?
150
+ poker_player,SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1,What is the most common nationality of people?
151
+ poker_player,SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2,What are the nationalities that are shared by at least two people?
152
+ poker_player,"SELECT Name , Birth_Date FROM people ORDER BY Name ASC",List the names and birth dates of people in ascending alphabetical order of name.
153
+ poker_player,"SELECT Name FROM people WHERE Nationality != ""Russia""","Show names of people whose nationality is not ""Russia""."
154
+ poker_player,SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player),List the names of people that are not poker players.
155
+ battle_death,"SELECT max(killed) , min(killed) FROM death",What is maximum and minimum death toll caused each time?
156
+ battle_death,"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'",What are the death and injury situations caused by the ship with tonnage 't'?
157
+ battle_death,"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'",What are the different ids and names of the battles that lost any 'Brig' type ships?
158
+ battle_death,"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",What are the ids and names of the battles that led to more than 10 people killed in total.
159
+ battle_death,"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 sum(T1.injured) DESC LIMIT 1",What is the ship id and name that caused most total injuries?
160
+ battle_death,SELECT name FROM battle WHERE bulgarian_commander = 'Kaloyan' AND latin_commander = 'Baldwin I',What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?
161
+ battle_death,SELECT count(*) FROM battle WHERE id NOT IN ( SELECT lost_in_battle FROM ship WHERE tonnage = '225' );,How many battles did not lose any ship with tonnage '225'?
162
+ battle_death,"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'",List the name and date of the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'
163
+ battle_death,"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'","Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'."
164
+ car_1,"SELECT T1.ContId , T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;","How many countries does each continent have? List the continent id, continent name and the number of countries."
165
+ car_1,"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;","How many models does each car maker produce? List maker full name, id and the number."
166
+ car_1,SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC LIMIT 1;,Which model of the car has the minimum horsepower?
167
+ car_1,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),Find the model of the car whose weight is below the average weight.
168
+ car_1,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';,Find the name of the makers that produced some cars in the year of 1970?
169
+ car_1,"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);",Find the make and production time of the cars that were produced in the earliest year?
170
+ car_1,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;,Which distinct car models are the produced after 1980?
171
+ car_1,"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;",How many car makers are there in each continents? List the continent name and the count.
172
+ car_1,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;,Which of the countries has the most car makers? List the country name.
173
+ car_1,"SELECT Count(*) , T2.FullName FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id GROUP BY T2.id;",How many car models are produced by each maker? List the count and the maker full name.
174
+ car_1,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)';,What is the accelerate of the car make amc hornet sportabout (sw)?
175
+ car_1,SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france';,How many car makers are there in france?
176
+ car_1,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';,How many car models are produced in the usa?
177
+ car_1,SELECT Weight FROM CARS_DATA WHERE Cylinders = 8 AND YEAR = 1974 ORDER BY Weight ASC LIMIT 1;,What is the smallest weight of the car produced with 8 cylinders in 1974?
178
+ car_1,"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;",What are the countries having at least one car maker? List name and id.
179
+ car_1,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;,Which countries in europe have at least 3 car manufacturers?
180
+ car_1,"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;",What is the maximum horsepower and the make of the car models with 3 cylinders?
181
+ car_1,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;,"Which model saves the most gasoline? That is to say, have the maximum miles per gallon."
182
+ car_1,SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo';,What is the average edispl of the cars of model volvo?
183
+ car_1,SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;,Which model has the most version(make) of cars?
184
+ car_1,SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company';,How many car models were produced by the maker with full name American Motor Company?
185
+ car_1,"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;",Which makers designed more than 3 car models? List full name and the id.
186
+ car_1,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;,Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?
187
+ car_1,SELECT DISTINCT T1.Year FROM CARS_DATA AS T1 WHERE T1.Weight > 3000 AND T1.weight < 4000;,In which years cars were produced weighing no less than 3000 and no more than 4000?
188
+ car_1,SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;,What is the horsepower of the car with the largest accelerate?
189
+ car_1,SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC LIMIT 1;,"For model volvo, how many cylinders does the car with the least accelerate have?"
190
+ car_1,SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 );,How many cars have a larger accelerate than the car with the largest horsepower?
191
+ car_1,"SELECT COUNT(*) FROM ( SELECT T1.CountryId , COUNT(*) FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING count(*) > 2 );",How many countries has more than 2 car makers?
192
+ car_1,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;,"For the cars with 4 cylinders, which model has the largest horsepower?"
193
+ car_1,"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;","Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name."
194
+ car_1,SELECT mpg FROM CARS_DATA WHERE Cylinders = 8 OR YEAR < 1980 ORDER BY mpg DESC LIMIT 1;,What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980?
195
+ car_1,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';,Which models are lighter than 3500 but not built by the 'Ford Motor Company'?
196
+ car_1,SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country;,What are the name of the countries where there is not a single car maker?
197
+ car_1,"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;",Which are the car makers which produce at least 2 models and more than 3 car makes? List the id and the maker.
198
+ wta_1,"SELECT avg(loser_age) , avg(winner_age) FROM matches",Find the average age of losers and winners of all matches.
199
+ wta_1,SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*) > 10,Find the name of tourney that has more than 10 matches.
200
+ wta_1,SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016,List the names of all winners who played in both 2013 and 2016.
201
+ wta_1,SELECT count(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016,List the number of all matches who played in years of 2013 or 2016.
202
+ wta_1,"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'",What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?
203
+ wta_1,"SELECT first_name , country_code FROM players ORDER BY birth_date LIMIT 1",Find the first name and country code of the oldest player.
204
+ wta_1,"SELECT first_name , last_name FROM players WHERE hand = 'L' ORDER BY birth_date",List the first and last name of all players who are left / L hand in the order of birth date.
205
+ wta_1,"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",Find the first name and country code of the player who did the most number of tours.
206
+ wta_1,SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1,Find the year that has the most number of matches.
207
+ wta_1,"SELECT winner_name , winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1",Find the name and rank points of the winner who won the most times.
208
+ wta_1,SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1,Find the name of the winner who has the highest rank points and participated in the Australian Open tourney.
209
+ wta_1,"SELECT winner_name , loser_name FROM matches ORDER BY minutes DESC LIMIT 1",find the names of loser and winner who played in the match with greatest number of minutes.
210
+ wta_1,"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",Find the average ranking for each player and their first name.
211
+ wta_1,"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",Find the total ranking points for each player and their first name.
212
+ wta_1,SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1,find the code of the country where has the greatest number of players.
213
+ wta_1,SELECT country_code FROM players GROUP BY country_code HAVING count(*) > 50,Find the codes of countries that have more than 50 players.
214
+ wta_1,"SELECT DISTINCT winner_name , winner_rank FROM matches ORDER BY winner_age LIMIT 3",Find the name and rank of the 3 youngest winners across all matches.
215
+ wta_1,SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L',How many different winners both participated in the WTA Championships and were left handed?
216
+ orchestra,SELECT count(*) FROM conductor,How many conductors are there?
217
+ orchestra,SELECT Name FROM conductor ORDER BY Age ASC,List the names of conductors in ascending order of age.
218
+ orchestra,SELECT Name FROM conductor WHERE Nationality != 'USA',"What are the names of conductors whose nationalities are not ""USA""?"
219
+ orchestra,SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC,What are the record companies of orchestras in descending order of years in which they were founded?
220
+ orchestra,SELECT avg(Attendance) FROM SHOW,What is the average attendance of shows?
221
+ orchestra,"SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != ""Live final""","What are the maximum and minimum share of performances whose type is not ""Live final""."
222
+ orchestra,SELECT count(DISTINCT Nationality) FROM conductor,How many different nationalities do conductors have?
223
+ orchestra,SELECT Name FROM conductor ORDER BY Year_of_Work DESC,List names of conductors in descending order of years of work.
224
+ orchestra,SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1,List the name of the conductor with the most years of work.
225
+ orchestra,"SELECT T1.Name , T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID",Show the names of conductors and the orchestras they have conducted.
226
+ orchestra,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,Show the names of conductors that have conducted more than one orchestras.
227
+ orchestra,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,Show the name of the conductor that has conducted the most number of orchestras.
228
+ orchestra,SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008,Please show the name of the conductor that has conducted orchestras founded after 2008.
229
+ orchestra,"SELECT Record_Company , COUNT(*) FROM orchestra GROUP BY Record_Company",Please show the different record companies and the corresponding number of orchestras.
230
+ orchestra,SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC,Please show the record formats of orchestras in ascending order of count.
231
+ orchestra,SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1,List the record company shared by the most number of orchestras.
232
+ orchestra,SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance),List the names of orchestras that have no performance.
233
+ orchestra,SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003,Show the record companies shared by orchestras founded before 2003 and after 2003.
234
+ orchestra,"SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = ""CD"" OR Major_Record_Format = ""DVD""","Find the number of orchestras whose record format is ""CD"" or ""DVD""."
235
+ cre_Doc_Template_Mgt,"SELECT document_id , document_name , document_description FROM Documents","List document IDs, document names, and document descriptions for all documents."
236
+ cre_Doc_Template_Mgt,"SELECT document_name , template_id FROM Documents WHERE Document_Description LIKE ""%w%""",What is the document name and template id for document with description with the letter 'w' in it?
237
+ cre_Doc_Template_Mgt,"SELECT document_id , template_id , Document_Description FROM Documents WHERE document_name = ""Robbin CV""","What is the document id, template id and description for document named ""Robbin CV""?"
238
+ cre_Doc_Template_Mgt,SELECT count(DISTINCT template_id) FROM Documents,How many different templates do all document use?
239
+ cre_Doc_Template_Mgt,SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT',How many documents are using the template with type code 'PPT'?
240
+ cre_Doc_Template_Mgt,"SELECT template_id , count(*) FROM Documents GROUP BY template_id",Show all template ids and number of documents using each template.
241
+ cre_Doc_Template_Mgt,"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",What is the id and type code for the template used by the most documents?
242
+ cre_Doc_Template_Mgt,SELECT template_id FROM Documents GROUP BY template_id HAVING count(*) > 1,Show ids for all templates that are used by more than one document.
243
+ cre_Doc_Template_Mgt,SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents,Show ids for all templates not used by any document.
244
+ cre_Doc_Template_Mgt,SELECT count(*) FROM Templates,How many templates do we have?
245
+ cre_Doc_Template_Mgt,"SELECT template_id , version_number , template_type_code FROM Templates","Show template ids, version numbers, and template type codes for all templates."
246
+ cre_Doc_Template_Mgt,SELECT DISTINCT template_type_code FROM Templates,Show all distinct template type codes for all templates.
247
+ cre_Doc_Template_Mgt,"SELECT template_id FROM Templates WHERE template_type_code = ""PP"" OR template_type_code = ""PPT""",What are the ids of templates with template type code PP or PPT?
248
+ cre_Doc_Template_Mgt,"SELECT count(*) FROM Templates WHERE template_type_code = ""CV""",How many templates have template type code CV?
249
+ cre_Doc_Template_Mgt,"SELECT version_number , template_type_code FROM Templates WHERE version_number > 5",What is the version number and template type code for the template with version number later than 5?
250
+ cre_Doc_Template_Mgt,"SELECT template_type_code , count(*) FROM Templates GROUP BY template_type_code",Show all template type codes and number of templates for each.
251
+ cre_Doc_Template_Mgt,SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1,Which template type code has most number of templates?
252
+ cre_Doc_Template_Mgt,SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*) < 3,Show all template type codes with less than three templates.
253
+ cre_Doc_Template_Mgt,"SELECT min(Version_Number) , template_type_code FROM Templates",What the smallest version number and its template type code?
254
+ cre_Doc_Template_Mgt,"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""","What is the template type code of the template used by document with the name ""Data base""?"
255
+ cre_Doc_Template_Mgt,"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""",Show all document names using templates with template type code BK.
256
+ cre_Doc_Template_Mgt,"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",Show all template type codes and the number of documents using each type.
257
+ cre_Doc_Template_Mgt,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,Which template type code is used by most number of documents?
258
+ cre_Doc_Template_Mgt,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,Show all template type codes that are not used by any document.
259
+ cre_Doc_Template_Mgt,"SELECT template_type_code , template_type_description FROM Ref_template_types",Show all template type codes and descriptions.
260
+ cre_Doc_Template_Mgt,"SELECT template_type_description FROM Ref_template_types WHERE template_type_code = ""AD""","What is the template type descriptions for template type code ""AD""."
261
+ cre_Doc_Template_Mgt,"SELECT template_type_code FROM Ref_template_types WHERE template_type_description = ""Book""","What is the template type code for template type description ""Book""."
262
+ cre_Doc_Template_Mgt,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,What are the distinct template type descriptions for the templates ever used by any document?
263
+ cre_Doc_Template_Mgt,"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""","What are the template ids with template type description ""Presentation""."
264
+ cre_Doc_Template_Mgt,SELECT count(*) FROM Paragraphs,How many paragraphs in total?
265
+ cre_Doc_Template_Mgt,SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show',How many paragraphs for the document with name 'Summer Show'?
266
+ cre_Doc_Template_Mgt,SELECT Other_Details FROM Paragraphs WHERE paragraph_text = 'Korea',Show paragraph details for paragraph with text 'Korea'.
267
+ cre_Doc_Template_Mgt,"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'",Show all paragraph ids and texts for the document with name 'Welcome to NY'.
268
+ cre_Doc_Template_Mgt,"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""","Show all paragraph texts for the document ""Customer reviews""."
269
+ cre_Doc_Template_Mgt,"SELECT document_id , count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id",Show all document ids and the number of paragraphs in each document. Order by document id.
270
+ cre_Doc_Template_Mgt,"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","Show all document ids, names and the number of paragraphs in each document."
271
+ cre_Doc_Template_Mgt,SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) >= 2,List all document ids with at least two paragraphs.
272
+ cre_Doc_Template_Mgt,"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",What is the document id and name with greatest number of paragraphs?
273
+ cre_Doc_Template_Mgt,SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1,What is the document id with least number of paragraphs?
274
+ cre_Doc_Template_Mgt,SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2,What is the document id with 1 to 2 paragraphs?
275
+ concert_singer,SELECT count(*) FROM singer,How many singers do we have?
276
+ concert_singer,"SELECT name , country , age FROM singer ORDER BY age DESC","Show name, country, age for all singers ordered by age from the oldest to the youngest."
277
+ concert_singer,"SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'","What is the average, minimum, and maximum age of all singers from France?"
278
+ concert_singer,"SELECT song_name , song_release_year FROM singer ORDER BY age LIMIT 1",Show the name and the release year of the song by the youngest singer.
279
+ concert_singer,SELECT DISTINCT country FROM singer WHERE age > 20,What are all distinct countries where singers above age 20 are from?
280
+ concert_singer,"SELECT country , count(*) FROM singer GROUP BY country",Show all countries and the number of singers in each country.
281
+ concert_singer,SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer),List all song names by singers above the average age.
282
+ concert_singer,"SELECT LOCATION , name FROM stadium WHERE capacity BETWEEN 5000 AND 10000",Show location and name for all stadiums with a capacity between 5000 and 10000.
283
+ concert_singer,"SELECT avg(capacity) , max(capacity) FROM stadium",What is the average and the maximum capacity of all stadiums?
284
+ concert_singer,"SELECT name , capacity FROM stadium ORDER BY average DESC LIMIT 1",What is the name and capacity for the stadium with highest average attendance?
285
+ concert_singer,SELECT count(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015,How many concerts are there in year 2014 or 2015?
286
+ concert_singer,"SELECT T2.name , count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id",Show the stadium name and the number of concerts in each stadium.
287
+ concert_singer,"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",Show the stadium name and capacity with most number of concerts in year 2014 or after.
288
+ concert_singer,SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1,Which year has most number of concerts?
289
+ concert_singer,SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert),Show the stadium names without any concert.
290
+ concert_singer,SELECT country FROM singer WHERE age > 40 INTERSECT SELECT country FROM singer WHERE age < 30,Show countries where a singer above age 40 and a singer below 30 are from.
291
+ concert_singer,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,Show names for all stadiums except for stadiums having a concert in year 2014.
292
+ concert_singer,"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",Show the name and theme for all concerts and the number of singers in each concert.
293
+ concert_singer,"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",List singer names and number of concerts for each singer.
294
+ concert_singer,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,List all singer names in concerts in year 2014.
295
+ concert_singer,"SELECT name , country FROM singer WHERE song_name LIKE '%Hey%'",what is the name and nation of the singer who have a song having 'Hey' in its name?
296
+ concert_singer,"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",Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015.
297
+ singer,SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949,Show the name of singers whose birth year is either 1948 or 1949?
298
+ singer,SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1,What is the name of the singer with the largest net worth?
299
+ singer,SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1,Please show the most common citizenship of singers.
300
+ singer,SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000,Show distinct names of singers that have songs with sales more than 300000.
301
+ singer,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,Show the names of singers that have more than one song.
302
+ singer,"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",Show the names of singers and the total sales of their songs.
303
+ singer,SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song),List the name of singers that do not have any song.
304
+ employee_hire_evaluation,SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1,Which cities do more than one employee under age 30 come from?
305
+ employee_hire_evaluation,"SELECT manager_name , district FROM shop ORDER BY number_products DESC LIMIT 1",Find the manager name and district of the shop whose number of products is the largest.
306
+ employee_hire_evaluation,"SELECT min(Number_products) , max(Number_products) FROM shop",find the minimum and maximum number of products of all stores.
307
+ employee_hire_evaluation,SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop),Find the names of stores whose number products is more than the average number of products.
308
+ employee_hire_evaluation,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,find the name of employee who was awarded the most times in the evaluation.
309
+ employee_hire_evaluation,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,Find the name of the employee who got the highest one time bonus.
310
+ employee_hire_evaluation,SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation),Find the names of employees who never won any award in the evaluation.
311
+ employee_hire_evaluation,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,What is the name of the shop that is hiring the largest number of employees?
312
+ employee_hire_evaluation,SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring),Find the name of the shops that do not hire any employee.
313
+ employee_hire_evaluation,"SELECT count(*) , t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name",Find the number of employees hired in each shop; show the shop name as well.
314
+ museum_visit,SELECT name FROM visitor WHERE Level_of_membership > 4 ORDER BY Level_of_membership DESC,"Find the names of the visitors whose membership level is higher than 4, and order the results by the level from high to low."
315
+ museum_visit,"SELECT name , Level_of_membership FROM visitor WHERE Level_of_membership > 4 ORDER BY age DESC","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."
316
+ museum_visit,"SELECT museum_id , name FROM museum ORDER BY num_of_staff DESC LIMIT 1",Find the id and name of the museum that has the most staff members?
317
+ museum_visit,SELECT name FROM museum WHERE num_of_staff > (SELECT min(num_of_staff) FROM museum WHERE open_year > 2010),find the names of museums which have more staff than the minimum staff number of all museums opened after 2010.
318
+ museum_visit,"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","find the id, name and age for visitors who visited some museums more than once."
319
+ museum_visit,"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","What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?"
320
+ museum_visit,"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",What are the id and name of the museum visited most times?
321
+ museum_visit,SELECT name FROM museum WHERE Museum_ID NOT IN (SELECT museum_id FROM visit),What is the name of the museum that had no visitor yet?
322
+ museum_visit,"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",Find the name and age of the visitor who bought the most tickets at once.
323
+ museum_visit,"SELECT avg(num_of_ticket) , max(num_of_ticket) FROM visit",What are the average and maximum number of tickets bought in all visits?
324
+ museum_visit,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,What is the total ticket expense of the visitors whose membership level is 1?
325
+ museum_visit,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,What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?
326
+ museum_visit,SELECT count(*) FROM visitor WHERE id NOT 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),Find the number of visitors who did not visit any museum opened after 2010.
327
+ network_1,SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10,How many high schoolers are there in grade 9 or 10?
328
+ network_1,SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1,Which grade has the most high schoolers?
329
+ network_1,SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4,Show me all grades that have at least 4 students.
330
+ network_1,"SELECT T2.name, count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id",Show the names of high school students and their corresponding number of friends.
331
+ network_1,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,What is the name of the high schooler who has the greatest number of friends?
332
+ network_1,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,Show the names of high schoolers who have at least 3 friends.
333
+ network_1,"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""",Show the names of all of the high schooler Kyle's friends.
334
+ network_1,"SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = ""Kyle""",How many friends does the high school student Kyle have?
335
+ network_1,SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend,Show ids of all students who do not have any friends.
336
+ network_1,SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id,Show names of all high school students who do not have any friends.
337
+ network_1,SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes,Show the ids of high schoolers who have friends and are also liked by someone else.
338
+ network_1,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,Show name of all students who have some friends and also are liked by someone else.
339
+ network_1,"SELECT T2.name , count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id","Show the names of high schoolers who have likes, and numbers of likes for each."
340
+ network_1,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,What is the name of the high schooler who has the greatest number of likes?
341
+ network_1,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,Show the names of students who have at least 2 likes.
342
+ network_1,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,Show the names of students who have a grade higher than 5 and have at least 2 friends.
343
+ network_1,"SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = ""Kyle""",How many likes does Kyle have?
344
+ network_1,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),Find the average grade of all students who have some friends.
345
+ course_teach,SELECT count(*) FROM teacher,How many teachers are there?
346
+ course_teach,SELECT Name FROM teacher ORDER BY Age ASC,List the names of teachers in ascending order of age.
347
+ course_teach,"SELECT Age , Hometown FROM teacher",What are the age and hometown of teachers?
348
+ course_teach,"SELECT Name FROM teacher WHERE Hometown != ""Little Lever Urban Distric""","List the name of teachers whose hometown is not ""Little Lever Urban District""."
349
+ course_teach,SELECT Name FROM teacher WHERE Age = 32 OR Age = 33,Show the name of teachers aged either 32 or 33?
350
+ course_teach,SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1,What is the hometown of the youngest teacher?
351
+ course_teach,"SELECT Hometown , COUNT(*) FROM teacher GROUP BY Hometown",Show different hometown of teachers and the number of teachers from each hometown.
352
+ course_teach,SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1,List the most common hometown of teachers.
353
+ course_teach,SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2,Show the hometowns shared by at least two teachers.
354
+ course_teach,"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",Show names of teachers and the courses they are arranged to teach.
355
+ course_teach,"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",Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.
356
+ course_teach,"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""",Show the name of the teacher for the math course.
357
+ course_teach,"SELECT T2.Name , COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name",Show names of teachers and the number of courses they teach.
358
+ course_teach,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,Show names of teachers that teach at least two courses.
359
+ real_estate_properties,SELECT count(*) FROM Other_Available_Features,How many available features are there in total?
360
+ real_estate_properties,"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""",What is the feature type name of feature AirCon?
361
+ real_estate_properties,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,Show the property type descriptions of properties belonging to that code.
362
+ voter_1,SELECT count(*) FROM area_code_state,How many states are there?
363
+ voter_1,"SELECT contestant_number , contestant_name FROM contestants ORDER BY contestant_name DESC","List the contestant numbers and names, ordered by contestant name descending."
364
+ voter_1,"SELECT vote_id , phone_number , state FROM votes","List the vote ids, phone numbers and states of all votes."
365
+ voter_1,"SELECT max(area_code) , min(area_code) FROM area_code_state",What are the maximum and minimum values of area codes?
366
+ voter_1,SELECT max(created) FROM votes WHERE state = 'CA',What is last date created of votes from the state 'CA'?
367
+ voter_1,SELECT contestant_name FROM contestants WHERE contestant_name != 'Jessie Alloway',What are the names of the contestants whose names are not 'Jessie Alloway'
368
+ voter_1,"SELECT DISTINCT state , created FROM votes",What are the distinct states and create time of all votes?
369
+ voter_1,"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",What are the contestant numbers and names of the contestants who had at least two votes?
370
+ voter_1,"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 LIMIT 1","Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes?"
371
+ voter_1,SELECT count(*) FROM votes WHERE state = 'NY' OR state = 'CA',What are the number of votes from state 'NY' or 'CA'?
372
+ voter_1,SELECT count(*) FROM contestants WHERE contestant_number NOT IN ( SELECT contestant_number FROM votes ),How many contestants did not get voted?
373
+ voter_1,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,What is the area code in which the most voters voted?
374
+ voter_1,"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'","What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'?"
375
+ voter_1,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',List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'.
376
+ student_transcripts_tracking,"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",Which department offers the most number of degrees? List department name and id.
377
+ student_transcripts_tracking,SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer',How many degrees does the engineering department offer?
378
+ student_transcripts_tracking,"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",What are the names and id of courses having at most 2 sections?
379
+ student_transcripts_tracking,"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",What is the semester which most student registered in? Show both the name and the id.
380
+ student_transcripts_tracking,SELECT department_description FROM Departments WHERE department_name LIKE '%computer%',What is the description of the department whose name has the substring the computer?
381
+ student_transcripts_tracking,"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","Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id."
382
+ student_transcripts_tracking,"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'","Who is enrolled in a Bachelor degree program? List the first name, middle name, last name."
383
+ student_transcripts_tracking,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,Find the kind of program which most number of students are enrolled in?
384
+ student_transcripts_tracking,"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",Find the program which most number of students are enrolled in. List both the id and the summary.
385
+ student_transcripts_tracking,"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","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."
386
+ student_transcripts_tracking,SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment ),Which semesters do not have any student enrolled? List the semester name.
387
+ student_transcripts_tracking,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,What's the name of the course with most number of enrollments?
388
+ student_transcripts_tracking,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,Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program.
389
+ student_transcripts_tracking,"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",Show the date and id of the transcript with at least 2 course results.
390
+ student_transcripts_tracking,SELECT cell_mobile_number FROM Students WHERE first_name = 'Timmothy' AND last_name = 'Ward',What is the phone number of the man with the first name Timmothy and the last name Ward?
391
+ student_transcripts_tracking,"SELECT first_name , middle_name , last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1","Who is the first student to register? List the first name, middle name and last name."
392
+ student_transcripts_tracking,"SELECT first_name , middle_name , last_name FROM Students ORDER BY date_left ASC LIMIT 1","Who is the earliest graduate of the school? List the first name, middle name and last name."
393
+ student_transcripts_tracking,"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",Which address holds the most number of students currently? List the address id and all lines.
394
+ student_transcripts_tracking,"SELECT transcript_date , other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1",When is the first transcript released? List the date and details.
395
+ student_transcripts_tracking,SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1,What is the last transcript release date?
396
+ student_transcripts_tracking,"SELECT count(*) , student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1",How many times at most can a course enrollment result show in different transcripts? Also show the course enrollment id.
397
+ student_transcripts_tracking,"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 LIMIT 1","Show the date of the transcript which shows the least number of results, also list the id."
398
+ student_transcripts_tracking,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',Find the semester when both Master students and Bachelor students got enrolled in.
399
+ dog_kennels,SELECT state FROM Owners INTERSECT SELECT state FROM Professionals,Which states have both owners and professionals living there?
400
+ dog_kennels,SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments ),What is the average age of the dogs who have gone through any treatments?
401
+ dog_kennels,"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","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."
402
+ dog_kennels,SELECT name FROM Dogs WHERE dog_id NOT IN( SELECT dog_id FROM Treatments GROUP BY dog_id HAVING sum(cost_of_treatment) > 1000 ),Which dogs have not cost their owner more than 1000 for treatment? List the dog names.
403
+ dog_kennels,SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs,Which first names are used for professionals or owners but are not used as dog names?
404
+ dog_kennels,"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","Which professional did not operate any treatment on dogs? List the professional's id, role and email."
405
+ dog_kennels,"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","Which owner owns the most dogs? List the owner id, first name and last name."
406
+ dog_kennels,"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","Which professionals have done at least two treatments? List the professional's id, role, and first name."
407
+ dog_kennels,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,What is the name of the breed with the most dogs?
408
+ dog_kennels,"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",Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.
409
+ dog_kennels,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 LIMIT 1,What is the description of the treatment type that costs the least money in total?
410
+ dog_kennels,"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",Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.
411
+ dog_kennels,"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",Which professionals have done at least two types of treatments? List the professional id and cell phone.
412
+ dog_kennels,"SELECT DISTINCT T1.first_name , T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < ( SELECT avg(cost_of_treatment) FROM Treatments )",What are the first name and last name of the professionals who have done treatment with cost below average?
413
+ dog_kennels,"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 LIMIT 1 )",List the names of the dogs of the rarest breed and the treatment dates of them.
414
+ dog_kennels,"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'",Which dogs are owned by someone who lives in Virginia? List the owner's first name and the dog's name.
415
+ dog_kennels,SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = ( SELECT min(age) FROM Dogs ),List the last name of the owner owning the youngest dog.
416
+ dog_kennels,SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin',List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin.
417
+ dog_kennels,"SELECT role_code , street , city , state FROM professionals WHERE city LIKE '%West%'","Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state."
418
+ dog_kennels,"SELECT first_name , last_name , email_address FROM Owners WHERE state LIKE '%North%'","Which owners live in the state whose name contains the substring 'North'? List his first name, last name and email."
419
+ dog_kennels,SELECT count(*) FROM Dogs WHERE age < ( SELECT avg(age) FROM Dogs ),How many dogs have an age below the average?
420
+ dog_kennels,SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1,How much does the most recent treatment cost?
421
+ dog_kennels,SELECT count(*) FROM Dogs WHERE dog_id NOT IN ( SELECT dog_id FROM Treatments ),How many dogs have not gone through any treatment?
422
+ dog_kennels,SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs ),How many owners temporarily do not have any dogs?
423
+ dog_kennels,SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments ),How many professionals did not operate any treatment on dogs?