cnatale/presto-athena-txt-2-sql huggingface dataset:
What is the name of the race that occurred most recently?
Additional table information: table: formula_1
SQL: SELECT name FROM races ORDER BY date DESC LIMIT 1
What is the name and date of the most recent race?
Additional table information: table: formula_1
SQL: SELECT name, date FROM races ORDER BY date DESC LIMIT 1
What is the name and date of the race that occurred most recently?
Additional table information: table: formula_1
SQL: SELECT name, date FROM races ORDER BY date DESC LIMIT 1
Find the names of all races held in 2017.
Additional table information: table: formula_1
SQL: SELECT name FROM races WHERE YEAR = 2017
What are the names of all the races that occurred in the year 2017?
Additional table information: table: formula_1
SQL: SELECT name FROM races WHERE YEAR = 2017
Find the distinct names of all races held between 2014 and 2017?
Additional table information: table: formula_1
SQL: SELECT DISTINCT name FROM races WHERE YEAR BETWEEN 2014 AND 2017
What are the unique names of all race held between 2014 and 2017?
Additional table information: table: formula_1
SQL: SELECT DISTINCT name FROM races WHERE YEAR BETWEEN 2014 AND 2017
List the forename and surname of all distinct drivers who once had laptime less than 93000 milliseconds?
Additional table information: table: formula_1
SQL: SELECT DISTINCT T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000
What are the forenames and surnames of all unique drivers who had a lap time of less than 93000 milliseconds?
Additional table information: table: formula_1
SQL: SELECT DISTINCT T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000
Find all the distinct id and nationality of drivers who have had laptime more than 100000 milliseconds?
Additional table information: table: formula_1
SQL: SELECT DISTINCT T1.driverid, T1.nationality FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds > 100000
What are the different driver ids and nationalities of all drivers who had a laptime of more than 100000 milliseconds?
Additional table information: table: formula_1
SQL: SELECT DISTINCT T1.driverid, T1.nationality FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds > 100000
What are the forename and surname of the driver who has the smallest laptime?
Additional table information: table: formula_1
SQL: SELECT T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds NULLS FIRST LIMIT 1
What is the forename and surname of the driver with the shortest laptime?
Additional table information: table: formula_1
SQL: SELECT T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds NULLS FIRST LIMIT 1
What is the id and family name of the driver who has the longest laptime?
Additional table information: table: formula_1
SQL: SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1
What is the id and last name of the driver with the longest laptime?
Additional table information: table: formula_1
SQL: SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1
What is the id, forname and surname of the driver who had the first position in terms of laptime at least twice?
Additional table information: table: formula_1
SQL: SELECT T1.driverid, T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE POSITION = '1' GROUP BY T1.driverid HAVING COUNT(*) >= 2
What is the id, first name, and last name of the driver who was in the first position for laptime at least twice?
Additional table information: table: formula_1
SQL: SELECT T1.driverid, T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE POSITION = '1' GROUP BY T1.driverid HAVING COUNT(*) >= 2
How many drivers participated in the race Australian Grand Prix held in 2009?
Additional table information: table: formula_1
SQL: SELECT COUNT(*) FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid WHERE T2.name = 'Australian Grand Prix' AND YEAR = 2009
How many drivers were in the Australian Grand Prix held in 2009?
Additional table information: table: formula_1
SQL: SELECT COUNT(*) FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid WHERE T2.name = 'Australian Grand Prix' AND YEAR = 2009
How many drivers did not participate in the races held in 2009?
Additional table information: table: formula_1
SQL: SELECT COUNT(DISTINCT driverId) FROM results WHERE NOT raceId IN (SELECT raceId FROM races WHERE YEAR <> 2009)
How many drivers did not race in 2009?
Additional table information: table: formula_1
SQL: SELECT COUNT(DISTINCT driverId) FROM results WHERE NOT raceId IN (SELECT raceId FROM races WHERE YEAR <> 2009)
Give me a list of names and years of races that had any driver whose forename is Lewis?
Additional table information: table: formula_1
SQL: SELECT T2.name, T2.year FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T1.driverid = T3.driverid WHERE T3.forename = 'Lewis'
What are the names and years of all races that had a driver with the last name Lewis?
Additional table information: table: formula_1
SQL: SELECT T2.name, T2.year FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T1.driverid = T3.driverid WHERE T3.forename = 'Lewis'
Find the forename and surname of drivers whose nationality is German?
Additional table information: table: formula_1
SQL: SELECT forename, surname FROM drivers WHERE nationality = 'German'
What is the first and last name of all the German drivers?
Additional table information: table: formula_1
SQL: SELECT forename, surname FROM drivers WHERE nationality = 'German'
Find the id and forenames of drivers who participated both the races with name Australian Grand Prix and the races with name Chinese Grand Prix?
Additional table information: table: formula_1
SQL: SELECT T2.driverid, T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = 'Australian Grand Prix' INTERSECT SELECT T2.driverid, T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = 'Chinese Grand Prix'
What is the id and first name of all the drivers who participated in the Australian Grand Prix and the Chinese Grand Prix?
Additional table information: table: formula_1
SQL: SELECT T2.driverid, T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = 'Australian Grand Prix' INTERSECT SELECT T2.driverid, T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = 'Chinese Grand Prix'
What are the forenames and surnames of drivers who participated in the races named Australian Grand Prix but not the races named Chinese Grand Prix?
Additional table information: table: formula_1
SQL: SELECT T3.forename, T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = 'Australian Grand Prix' EXCEPT SELECT T3.forename, T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = 'Chinese Grand Prix'
What are the first and last names of all drivers who participated in the Australian Grand Prix but not the Chinese Grand Prix?
Additional table information: table: formula_1
SQL: SELECT T3.forename, T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = 'Australian Grand Prix' EXCEPT SELECT T3.forename, T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = 'Chinese Grand Prix'
Find all the forenames of distinct drivers who was in position 1 as standing and won?
Additional table information: table: formula_1
SQL: SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1
What are all the different first names of the drivers who are in position as standing and won?
Additional table information: table: formula_1
SQL: SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1
Find all the forenames of distinct drivers who won in position 1 as driver standing and had more than 20 points?
Additional table information: table: formula_1
SQL: SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 AND T2.points > 20
What are the first names of the different drivers who won in position 1 as driver standing and had more than 20 points?
Additional table information: table: formula_1
SQL: SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 AND T2.points > 20
What are the numbers of constructors for different nationalities?
Additional table information: table: formula_1
SQL: SELECT COUNT(*), nationality FROM constructors GROUP BY nationality
For each nationality, how many different constructors are there?
Additional table information: table: formula_1
SQL: SELECT COUNT(*), nationality FROM constructors GROUP BY nationality
What are the numbers of races for each constructor id?
Additional table information: table: formula_1
SQL: SELECT COUNT(*), constructorid FROM constructorStandings GROUP BY constructorid
For each constructor id, how many races are there?
Additional table information: table: formula_1
SQL: SELECT COUNT(*), constructorid FROM constructorStandings GROUP BY constructorid
What are the names of races that were held after 2017 and the circuits were in the country of Spain?
Additional table information: table: formula_1
SQL: SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = 'Spain' AND T1.year > 2017
What are the names of the races held after 2017 in Spain?
Additional table information: table: formula_1
SQL: SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = 'Spain' AND T1.year > 2017
What are the unique names of races that held after 2000 and the circuits were in Spain?
Additional table information: table: formula_1
SQL: SELECT DISTINCT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = 'Spain' AND T1.year > 2000
What are the names of all races held after 2000 in Spain?
Additional table information: table: formula_1
SQL: SELECT DISTINCT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = 'Spain' AND T1.year > 2000
Find the distinct driver id and the stop number of all drivers that have a shorter pit stop duration than some drivers in the race with id 841.
Additional table information: table: formula_1
SQL: SELECT DISTINCT driverid, STOP FROM pitstops WHERE duration < (SELECT MAX(duration) FROM pitstops WHERE raceid = 841)
What is the id and stop number for each driver that has a shorter pit stop than the driver in the race with id 841?
Additional table information: table: formula_1
SQL: SELECT DISTINCT driverid, STOP FROM pitstops WHERE duration < (SELECT MAX(duration) FROM pitstops WHERE raceid = 841)
Find the distinct driver id of all drivers that have a longer stop duration than some drivers in the race whose id is 841?
Additional table information: table: formula_1
SQL: SELECT DISTINCT driverid, STOP FROM pitstops WHERE duration > (SELECT MIN(duration) FROM pitstops WHERE raceid = 841)
What are the different ids and stop durations of all the drivers whose stop lasted longer than the driver in the race with the id 841?
Additional table information: table: formula_1
SQL: SELECT DISTINCT driverid, STOP FROM pitstops WHERE duration > (SELECT MIN(duration) FROM pitstops WHERE raceid = 841)
List the forenames of all distinct drivers in alphabetical order?
Additional table information: table: formula_1
SQL: SELECT DISTINCT forename FROM drivers ORDER BY forename ASC NULLS FIRST
What are the first names of all the different drivers in alphabetical order?
Additional table information: table: formula_1
SQL: SELECT DISTINCT forename FROM drivers ORDER BY forename ASC NULLS FIRST
List the names of all distinct races in reversed  lexicographic order?
Additional table information: table: formula_1
SQL: SELECT DISTINCT name FROM races ORDER BY name DESC
What are the different names of all the races in reverse alphabetical order?
Additional table information: table: formula_1
SQL: SELECT DISTINCT name FROM races ORDER BY name DESC
What are the names of races held between 2009 and 2011?
Additional table information: table: formula_1
SQL: SELECT name FROM races WHERE YEAR BETWEEN 2009 AND 2011
What are the names of all races held between 2009 and 2011?
Additional table information: table: formula_1
SQL: SELECT name FROM races WHERE YEAR BETWEEN 2009 AND 2011
What are the names of races held after 12:00:00 or before 09:00:00?
Additional table information: table: formula_1
SQL: SELECT name FROM races WHERE TIME > '12:00:00' OR TIME < '09:00:00'
What are the names of all races that occurred after 12:00:00 or before 09:00:00?
Additional table information: table: formula_1
SQL: SELECT name FROM races WHERE TIME > '12:00:00' OR TIME < '09:00:00'
What are the drivers' first, last names and id who had more than 8 pit stops or participated in more than 5 race results?
Additional table information: table: formula_1
SQL: SELECT T1.forename, T1.surname, T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) > 8 UNION SELECT T1.forename, T1.surname, T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) > 5
What are the drivers' first names,last names, and ids for all those that had more than 8 stops or participated in more than 5 races?
Additional table information: table: formula_1
SQL: SELECT T1.forename, T1.surname, T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) > 8 UNION SELECT T1.forename, T1.surname, T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) > 5
What are the drivers' last names and id who had 11 pit stops and participated in more than 5 race results?
Additional table information: table: formula_1
SQL: SELECT T1.surname, T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) = 11 INTERSECT SELECT T1.surname, T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) > 5
What are the last names and ids of all drivers who had 11 pit stops and participated in more than 5 races?
Additional table information: table: formula_1
SQL: SELECT T1.surname, T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) = 11 INTERSECT SELECT T1.surname, T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) > 5
What is the id and last name of the driver who participated in the most races after 2010?
Additional table information: table: formula_1
SQL: SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY COUNT(*) DESC LIMIT 1
What are the names of circuits that belong to UK or Malaysia?
Additional table information: table: formula_1
SQL: SELECT name FROM circuits WHERE country = 'UK' OR country = 'Malaysia'
What are the names of all the circuits that are in the UK or Malaysia?
Additional table information: table: formula_1
SQL: SELECT name FROM circuits WHERE country = 'UK' OR country = 'Malaysia'
Find the id and location of circuits that belong to France or Belgium?
Additional table information: table: formula_1
SQL: SELECT circuitid, LOCATION FROM circuits WHERE country = 'France' OR country = 'Belgium'
What are the ids and locations of all circuits in France or Belgium?
Additional table information: table: formula_1
SQL: SELECT circuitid, LOCATION FROM circuits WHERE country = 'France' OR country = 'Belgium'
Find the names of Japanese constructors that have once earned more than 5 points?
Additional table information: table: formula_1
SQL: SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = 'Japanese' AND T2.points > 5
What are the names of all the Japanese constructors that have earned more than 5 points?
Additional table information: table: formula_1
SQL: SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = 'Japanese' AND T2.points > 5
What is the average fastest lap speed in race named 'Monaco Grand Prix' in 2008 ?
Additional table information: table: formula_1
SQL: SELECT AVG(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = 'Monaco Grand Prix'
What is the average fastest lap speed for the Monaco Grand Prix in 2008?
Additional table information: table: formula_1
SQL: SELECT AVG(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = 'Monaco Grand Prix'
What is the maximum fastest lap speed in race named 'Monaco Grand Prix' in 2008 ?
Additional table information: table: formula_1
SQL: SELECT MAX(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = 'Monaco Grand Prix'
What is the maximum fastest lap speed in the Monaco Grand Prix in 2008?
Additional table information: table: formula_1
SQL: SELECT MAX(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = 'Monaco Grand Prix'
What are the maximum fastest lap speed in races held after 2004 grouped by race name and ordered by year?
Additional table information: table: formula_1
SQL: SELECT MAX(T2.fastestlapspeed), T1.name, T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year NULLS FIRST
For each race name, What is the maximum fastest lap speed for races after 2004 ordered by year?
Additional table information: table: formula_1
SQL: SELECT MAX(T2.fastestlapspeed), T1.name, T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year NULLS FIRST
What are the average fastest lap speed in races held after 2004 grouped by race name and ordered by year?
Additional table information: table: formula_1
SQL: SELECT AVG(T2.fastestlapspeed), T1.name, T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year NULLS FIRST
What is the average fastest lap speed for races held after 2004, for each race, ordered by year?
Additional table information: table: formula_1
SQL: SELECT AVG(T2.fastestlapspeed), T1.name, T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year NULLS FIRST
Find the id, forename and number of races of all drivers who have at least participated in two races?
Additional table information: table: formula_1
SQL: SELECT T1.driverid, T1.forename, COUNT(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING COUNT(*) >= 2
What is the id, forename, and number of races for all drivers that have participated in at least 2 races?
Additional table information: table: formula_1
SQL: SELECT T1.driverid, T1.forename, COUNT(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING COUNT(*) >= 2
Find the driver id and number of races of all drivers who have at most participated in 30 races?
Additional table information: table: formula_1
SQL: SELECT T1.driverid, COUNT(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING COUNT(*) <= 30
For each id of a driver who participated in at most 30 races, how many races did they participate in?
Additional table information: table: formula_1
SQL: SELECT T1.driverid, COUNT(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING COUNT(*) <= 30
Find the id and surname of the driver who participated the most number of races?
Additional table information: table: formula_1
SQL: SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid ORDER BY COUNT(*) DESC LIMIT 1
What are the ids and last names of all drivers who participated in the most races?
Additional table information: table: formula_1
SQL: SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid ORDER BY COUNT(*) DESC LIMIT 1
How many technicians are there?
Additional table information: table: machine_repair
SQL: SELECT COUNT(*) FROM technician
What is the number of technicians?
Additional table information: table: machine_repair
SQL: SELECT COUNT(*) FROM technician
List the names of technicians in ascending order of age.
Additional table information: table: machine_repair
SQL: SELECT Name FROM technician ORDER BY Age ASC NULLS FIRST
What are the names of the technicians by ascending order of age?
Additional table information: table: machine_repair
SQL: SELECT Name FROM technician ORDER BY Age ASC NULLS FIRST
What are the team and starting year of technicians?
Additional table information: table: machine_repair
SQL: SELECT Team, Starting_Year FROM technician
What is the team and starting year for each technician?
Additional table information: table: machine_repair
SQL: SELECT Team, Starting_Year FROM technician
List the name of technicians whose team is not 'NYY'.
Additional table information: table: machine_repair
SQL: SELECT Name FROM technician WHERE Team <> 'NYY'
What is the name of the technician whose team is not 'NYY'?
Additional table information: table: machine_repair
SQL: SELECT Name FROM technician WHERE Team <> 'NYY'
Show the name of technicians aged either 36 or 37
Additional table information: table: machine_repair
SQL: SELECT Name FROM technician WHERE Age = 36 OR Age = 37
What are the names of the technicians aged either 36 or 37?
Additional table information: table: machine_repair
SQL: SELECT Name FROM technician WHERE Age = 36 OR Age = 37
What is the starting year of the oldest technicians?
Additional table information: table: machine_repair
SQL: SELECT Starting_Year FROM technician ORDER BY Age DESC LIMIT 1
What is the starting year for the oldest technician?
Additional table information: table: machine_repair
SQL: SELECT Starting_Year FROM technician ORDER BY Age DESC LIMIT 1
Show different teams of technicians and the number of technicians in each team.
Additional table information: table: machine_repair
SQL: SELECT Team, COUNT(*) FROM technician GROUP BY Team
For each team, how many technicians are there?
Additional table information: table: machine_repair
SQL: SELECT Team, COUNT(*) FROM technician GROUP BY Team
Please show the team that has the most number of technicians.
Additional table information: table: machine_repair
SQL: SELECT Team FROM technician GROUP BY Team ORDER BY COUNT(*) DESC LIMIT 1
What are the teams with the most technicians?
Additional table information: table: machine_repair
SQL: SELECT Team FROM technician GROUP BY Team ORDER BY COUNT(*) DESC LIMIT 1
Show the team that have at least two technicians.
Additional table information: table: machine_repair
SQL: SELECT Team FROM technician GROUP BY Team HAVING COUNT(*) >= 2
What is the team with at least 2 technicians?
Additional table information: table: machine_repair
SQL: SELECT Team FROM technician GROUP BY Team HAVING COUNT(*) >= 2
Show names of technicians and series of machines they are assigned to repair.
Additional table information: table: machine_repair
SQL: SELECT T3.Name, T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID
What are the names of technicians and the machine series that they repair?
Additional table information: table: machine_repair
SQL: SELECT T3.Name, T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID
Show names of technicians in ascending order of quality rank of the machine they are assigned.
Additional table information: table: machine_repair
SQL: SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID ORDER BY T2.quality_rank NULLS FIRST
What are the names of the technicians by ascending order of quality rank for the machine they are assigned?
Additional table information: table: machine_repair
SQL: SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID ORDER BY T2.quality_rank NULLS FIRST
Show names of technicians who are assigned to repair machines with value point more than 70.
Additional table information: table: machine_repair
SQL: SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID WHERE T2.value_points > 70
What are the names of the technicians that are assigned to repair machines with more point values than 70?
Additional table information: table: machine_repair
SQL: SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID WHERE T2.value_points > 70
Show names of technicians and the number of machines they are assigned to repair.
Additional table information: table: machine_repair
SQL: SELECT T2.Name, COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID = T2.technician_ID GROUP BY T2.Name
What are the names of the technicians  and how many machines are they assigned to repair?
Additional table information: table: machine_repair
SQL: SELECT T2.Name, COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID = T2.technician_ID GROUP BY T2.Name
List the names of technicians who have not been assigned to repair machines.
Additional table information: table: machine_repair
SQL: SELECT Name FROM technician WHERE NOT technician_id IN (SELECT technician_id FROM repair_assignment)
What are the names of the technicians that have not been assigned to repair machines?
Additional table information: table: machine_repair
SQL: SELECT Name FROM technician WHERE NOT technician_id IN (SELECT technician_id FROM repair_assignment)
Show the starting years shared by technicians from team 'CLE' and 'CWS'.
Additional table information: table: machine_repair
SQL: SELECT Starting_Year FROM technician WHERE Team = 'CLE' INTERSECT SELECT Starting_Year FROM technician WHERE Team = 'CWS'
What are the starting years shared by the technicians from the team 'CLE' or 'CWS'?
Additional table information: table: machine_repair
SQL: SELECT Starting_Year FROM technician WHERE Team = 'CLE' INTERSECT SELECT Starting_Year FROM technician WHERE Team = 'CWS'
How many entrepreneurs are there?
Additional table information: table: entrepreneur
SQL: SELECT COUNT(*) FROM entrepreneur
Count the number of entrepreneurs.
Additional table information: table: entrepreneur
SQL: SELECT COUNT(*) FROM entrepreneur
List the companies of entrepreneurs in descending order of money requested.
Additional table information: table: entrepreneur
SQL: SELECT Company FROM entrepreneur ORDER BY Money_Requested DESC
What are the companies of entrepreneurs, ordered descending by amount of money requested?
Additional table information: table: entrepreneur
SQL: SELECT Company FROM entrepreneur ORDER BY Money_Requested DESC
List the companies and the investors of entrepreneurs.
Additional table information: table: entrepreneur
SQL: SELECT Company, Investor FROM entrepreneur
What are the companies and investors that correspond to each entrepreneur?
Additional table information: table: entrepreneur
SQL: SELECT Company, Investor FROM entrepreneur
What is the average money requested by all entrepreneurs?
Additional table information: table: entrepreneur
SQL: SELECT AVG(Money_Requested) FROM entrepreneur
Return the average money requested across all entrepreneurs.
Additional table information: table: entrepreneur
SQL: SELECT AVG(Money_Requested) FROM entrepreneur
What are the names of people in ascending order of weight?
Additional table information: table: entrepreneur
SQL: SELECT Name FROM People ORDER BY Weight ASC NULLS FIRST
Return the names of people, ordered by weight ascending.
Additional table information: table: entrepreneur
SQL: SELECT Name FROM People ORDER BY Weight ASC NULLS FIRST
What are the names of entrepreneurs?
Additional table information: table: entrepreneur
SQL: SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID
Return the names of entrepreneurs.
Additional table information: table: entrepreneur
SQL: SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID
What are the names of entrepreneurs whose investor is not 'Rachel Elnaugh'?
Additional table information: table: entrepreneur
SQL: SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor <> 'Rachel Elnaugh'
Return the names of entrepreneurs do no not have the investor Rachel Elnaugh.
Additional table information: table: entrepreneur
SQL: SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor <> 'Rachel Elnaugh'
What is the weight of the shortest person?
Additional table information: table: entrepreneur
SQL: SELECT Weight FROM people ORDER BY Height ASC NULLS FIRST LIMIT 1
Return the weight of the shortest person.
Additional table information: table: entrepreneur
SQL: SELECT Weight FROM people ORDER BY Height ASC NULLS FIRST LIMIT 1
What is the name of the entrepreneur with the greatest weight?
Additional table information: table: entrepreneur
SQL: SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1
Return the name of the heaviest entrepreneur.
Additional table information: table: entrepreneur
SQL: SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1
What is the total money requested by entrepreneurs with height more than 1.85?
Additional table information: table: entrepreneur
SQL: SELECT SUM(T1.Money_Requested) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 1.85
Give the total money requested by entrepreneurs who are taller than 1.85.
Additional table information: table: entrepreneur
SQL: SELECT SUM(T1.Money_Requested) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 1.85
What are the dates of birth of entrepreneurs with investor 'Simon Woodroffe' or 'Peter Jones'?
Additional table information: table: entrepreneur
SQL: SELECT T2.Date_of_Birth FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = 'Simon Woodroffe' OR T1.Investor = 'Peter Jones'
Return the dates of birth for entrepreneurs who have either the investor Simon Woodroffe or Peter Jones.
Additional table information: table: entrepreneur
SQL: SELECT T2.Date_of_Birth FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = 'Simon Woodroffe' OR T1.Investor = 'Peter Jones'
What are the weights of entrepreneurs in descending order of money requested?
Additional table information: table: entrepreneur
SQL: SELECT T2.Weight FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested DESC
Return the weights of entrepreneurs, ordered descending by amount of money requested.
Additional table information: table: entrepreneur
SQL: SELECT T2.Weight FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested DESC
What are the investors of entrepreneurs and the corresponding number of entrepreneurs invested by each investor?
Additional table information: table: entrepreneur
SQL: SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor
How many entrepreneurs correspond to each investor?
Additional table information: table: entrepreneur
SQL: SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor
What is the investor that has invested in the most number of entrepreneurs?
Additional table information: table: entrepreneur
SQL: SELECT Investor FROM entrepreneur GROUP BY Investor ORDER BY COUNT(*) DESC LIMIT 1
Return the investor who have invested in the greatest number of entrepreneurs.
Additional table information: table: entrepreneur
SQL: SELECT Investor FROM entrepreneur GROUP BY Investor ORDER BY COUNT(*) DESC LIMIT 1
What are the investors that have invested in at least two entrepreneurs?
Additional table information: table: entrepreneur
SQL: SELECT Investor FROM entrepreneur GROUP BY Investor HAVING COUNT(*) >= 2
Return the investors who have invested in two or more entrepreneurs.
Additional table information: table: entrepreneur
SQL: SELECT Investor FROM entrepreneur GROUP BY Investor HAVING COUNT(*) >= 2
List the names of entrepreneurs and their companies in descending order of money requested?
Additional table information: table: entrepreneur
SQL: SELECT T2.Name, T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested NULLS FIRST
What are the names of entrepreneurs and their corresponding investors, ordered descending by the amount of money requested?
Additional table information: table: entrepreneur
SQL: SELECT T2.Name, T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested NULLS FIRST
List the names of people that are not entrepreneurs.
Additional table information: table: entrepreneur
SQL: SELECT Name FROM people WHERE NOT People_ID IN (SELECT People_ID FROM entrepreneur)
What are the names of people who are not entrepreneurs?
Additional table information: table: entrepreneur
SQL: SELECT Name FROM people WHERE NOT People_ID IN (SELECT People_ID FROM entrepreneur)
Show the investors shared by entrepreneurs that requested more than 140000 and entrepreneurs that requested less than 120000.
Additional table information: table: entrepreneur
SQL: SELECT Investor FROM entrepreneur WHERE Money_Requested > 140000 INTERSECT SELECT Investor FROM entrepreneur WHERE Money_Requested < 120000
What are the investors who have invested in both entrepreneurs who requested more than 140000 and entrepreneurs who requested less than 120000?
Additional table information: table: entrepreneur
SQL: SELECT Investor FROM entrepreneur WHERE Money_Requested > 140000 INTERSECT SELECT Investor FROM entrepreneur WHERE Money_Requested < 120000
How many distinct companies are there?
Additional table information: table: entrepreneur
SQL: SELECT COUNT(DISTINCT Company) FROM entrepreneur
Count the number of different companies.
Additional table information: table: entrepreneur
SQL: SELECT COUNT(DISTINCT Company) FROM entrepreneur
Show the company of the tallest entrepreneur.
Additional table information: table: entrepreneur
SQL: SELECT T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Height DESC LIMIT 1
Which company was started by the entrepreneur with the greatest height?
Additional table information: table: entrepreneur
SQL: SELECT T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Height DESC LIMIT 1
How many perpetrators are there?
Additional table information: table: perpetrator
SQL: SELECT COUNT(*) FROM perpetrator
List the date of perpetrators in descending order of the number of people killed.
Additional table information: table: perpetrator
SQL: SELECT Date FROM perpetrator ORDER BY Killed DESC
List the number of people injured by perpetrators in ascending order.
Additional table information: table: perpetrator
SQL: SELECT Injured FROM perpetrator ORDER BY Injured ASC NULLS FIRST
What is the average number of people injured by all perpetrators?
Additional table information: table: perpetrator
SQL: SELECT AVG(Injured) FROM perpetrator
What is the location of the perpetrator with the largest kills.
Additional table information: table: perpetrator
SQL: SELECT LOCATION FROM perpetrator ORDER BY Killed DESC LIMIT 1
What are the names of people in ascending order of height?
Additional table information: table: perpetrator
SQL: SELECT Name FROM People ORDER BY Height ASC NULLS FIRST
What are the names of perpetrators?
Additional table information: table: perpetrator
SQL: SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID
What are the names of perpetrators whose country is not 'China'?
Additional table information: table: perpetrator
SQL: SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Country <> 'China'
What is the name of the perpetrator with the biggest weight.
Additional table information: table: perpetrator
SQL: SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Weight DESC LIMIT 1
What is the total kills of the perpetrators with height more than 1.84.
Additional table information: table: perpetrator
SQL: SELECT SUM(T2.Killed) FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 1.84
What are the names of perpetrators in country 'China' or 'Japan'?
Additional table information: table: perpetrator
SQL: SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Country = 'China' OR T2.Country = 'Japan'
What are the heights of perpetrators in descending order of the number of people they injured?
Additional table information: table: perpetrator
SQL: SELECT T1.Height FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Injured DESC
What are the countries of perpetrators? Show each country and the corresponding number of perpetrators there.
Additional table information: table: perpetrator
SQL: SELECT Country, COUNT(*) FROM perpetrator GROUP BY Country
What is the country that has the most perpetrators?
Additional table information: table: perpetrator
SQL: SELECT Country, COUNT(*) FROM perpetrator GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1
What are the countries that have at least two perpetrators?
Additional table information: table: perpetrator
SQL: SELECT Country, COUNT(*) FROM perpetrator GROUP BY Country HAVING COUNT(*) >= 2
List the names of perpetrators in descending order of the year.
Additional table information: table: perpetrator
SQL: SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Year DESC
List the names of people that are not perpetrators.
Additional table information: table: perpetrator
SQL: SELECT Name FROM people WHERE NOT People_ID IN (SELECT People_ID FROM perpetrator)
Show the countries that have both perpetrators with injures more than 50 and perpetrators with injures smaller than 20.
Additional table information: table: perpetrator
SQL: SELECT Country FROM perpetrator WHERE Injured > 50 INTERSECT SELECT Country FROM perpetrator WHERE Injured < 20
How many distinct locations of perpetrators are there?
Additional table information: table: perpetrator
SQL: SELECT COUNT(DISTINCT LOCATION) FROM perpetrator
Show the date of the tallest perpetrator.
Additional table information: table: perpetrator
SQL: SELECT T2.Date FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1
In which year did the most recent crime happen?
Additional table information: table: perpetrator
SQL: SELECT MAX(YEAR) FROM perpetrator
Report the name of all campuses in Los Angeles county.
Additional table information: table: csu_1
SQL: SELECT campus FROM campuses WHERE county = 'Los Angeles'
What campuses are located in the county of Los Angeles?
Additional table information: table: csu_1
SQL: SELECT campus FROM campuses WHERE county = 'Los Angeles'
What are the names of all campuses located at Chico?
Additional table information: table: csu_1
SQL: SELECT campus FROM campuses WHERE LOCATION = 'Chico'
What campuses are located in Chico?
Additional table information: table: csu_1
SQL: SELECT campus FROM campuses WHERE LOCATION = 'Chico'
Find all the campuses opened in 1958.
Additional table information: table: csu_1
SQL: SELECT campus FROM campuses WHERE YEAR = 1958
What are the campuses that opened in 1958?
Additional table information: table: csu_1
SQL: SELECT campus FROM campuses WHERE YEAR = 1958
Find the name of the campuses opened before 1800.
Additional table information: table: csu_1
SQL: SELECT campus FROM campuses WHERE YEAR < 1800
What campuses opened before 1800?
Additional table information: table: csu_1
SQL: SELECT campus FROM campuses WHERE YEAR < 1800
Which campus was opened between 1935 and 1939?
Additional table information: table: csu_1
SQL: SELECT campus FROM campuses WHERE YEAR >= 1935 AND YEAR <= 1939
What campuses opened between 1935 and 1939?
Additional table information: table: csu_1
SQL: SELECT campus FROM campuses WHERE YEAR >= 1935 AND YEAR <= 1939
Find the name of the campuses that is in Northridge, Los Angeles or in San Francisco, San Francisco.
Additional table information: table: csu_1
SQL: SELECT campus FROM campuses WHERE LOCATION = 'Northridge' AND county = 'Los Angeles' UNION SELECT campus FROM campuses WHERE LOCATION = 'San Francisco' AND county = 'San Francisco'
What campuses are located in Northridge, Los Angeles or in San Francisco, San Francisco?
Additional table information: table: csu_1
SQL: SELECT campus FROM campuses WHERE LOCATION = 'Northridge' AND county = 'Los Angeles' UNION SELECT campus FROM campuses WHERE LOCATION = 'San Francisco' AND county = 'San Francisco'
What is the campus fee of 'San Jose State University' in year 1996?
Additional table information: table: csu_1
SQL: SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = 'San Jose State University' AND T2.year = 1996
What is the campus fee for San Jose State University in 1996?
Additional table information: table: csu_1
SQL: SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = 'San Jose State University' AND T2.year = 1996
What is the campus fee of 'San Francisco State University' in year 1996?
Additional table information: table: csu_1
SQL: SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = 'San Francisco State University' AND T2.year = 1996
What is the campus fee for San Francisco State University in 1996?
Additional table information: table: csu_1
SQL: SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = 'San Francisco State University' AND T2.year = 1996
Find the count of universities whose campus fee is greater than the average campus fee.
Additional table information: table: csu_1
SQL: SELECT COUNT(*) FROM csu_fees WHERE campusfee > (SELECT AVG(campusfee) FROM csu_fees)
How many universities have a campus fee higher than average?
Additional table information: table: csu_1
SQL: SELECT COUNT(*) FROM csu_fees WHERE campusfee > (SELECT AVG(campusfee) FROM csu_fees)
How many universities have a campus fee greater than the average?
Additional table information: table: csu_1
SQL: SELECT COUNT(*) FROM csu_fees WHERE campusfee > (SELECT AVG(campusfee) FROM csu_fees)
Which university is in Los Angeles county and opened after 1950?
Additional table information: table: csu_1
SQL: SELECT campus FROM campuses WHERE county = 'Los Angeles' AND YEAR > 1950
What campuses are located in Los Angeles county and opened after 1950?
Additional table information: table: csu_1
SQL: SELECT campus FROM campuses WHERE county = 'Los Angeles' AND YEAR > 1950
Which year has the most degrees conferred?
Additional table information: table: csu_1
SQL: SELECT YEAR FROM degrees GROUP BY YEAR ORDER BY SUM(degrees) DESC LIMIT 1
In what year was the most degrees conferred?
Additional table information: table: csu_1
SQL: SELECT YEAR FROM degrees GROUP BY YEAR ORDER BY SUM(degrees) DESC LIMIT 1
Which campus has the most degrees conferred in all times?
Additional table information: table: csu_1
SQL: SELECT campus FROM degrees GROUP BY campus ORDER BY SUM(degrees) DESC LIMIT 1
What campus has the most degrees  conferrred over its entire existence?
Additional table information: table: csu_1
SQL: SELECT campus FROM degrees GROUP BY campus ORDER BY SUM(degrees) DESC LIMIT 1
Which campus has the most faculties in year 2003?
Additional table information: table: csu_1
SQL: SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2003 ORDER BY T2.faculty DESC LIMIT 1
What campus has the most faculties in 2003?
Additional table information: table: csu_1
SQL: SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2003 ORDER BY T2.faculty DESC LIMIT 1
Find the average fee on a CSU campus in 1996
Additional table information: table: csu_1
SQL: SELECT AVG(campusfee) FROM csu_fees WHERE YEAR = 1996
What is the average fee for a CSU campus in the year of 1996?
Additional table information: table: csu_1
SQL: SELECT AVG(campusfee) FROM csu_fees WHERE YEAR = 1996
What is the average fee on a CSU campus in 2005?
Additional table information: table: csu_1
SQL: SELECT AVG(campusfee) FROM csu_fees WHERE YEAR = 2005
What is the average fee for a CSU campus in the year of 2005?
Additional table information: table: csu_1
SQL: SELECT AVG(campusfee) FROM csu_fees WHERE YEAR = 2005
report the total number of degrees granted between 1998 and 2002.
Additional table information: table: csu_1
SQL: SELECT T1.campus, SUM(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T2.year >= 1998 AND T2.year <= 2002 GROUP BY T1.campus
how many degrees were conferred between 1998 and 2002?
Additional table information: table: csu_1
SQL: SELECT T1.campus, SUM(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T2.year >= 1998 AND T2.year <= 2002 GROUP BY T1.campus
For each Orange county campus, report the number of degrees granted after 2000.
Additional table information: table: csu_1
SQL: SELECT T1.campus, SUM(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T1.county = 'Orange' AND T2.year >= 2000 GROUP BY T1.campus
What is the total number of degrees granted after 2000 for each Orange county campus?
Additional table information: table: csu_1
SQL: SELECT T1.campus, SUM(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T1.county = 'Orange' AND T2.year >= 2000 GROUP BY T1.campus
Find the names of the campus which has more faculties in 2002 than every campus in Orange county.
Additional table information: table: csu_1
SQL: SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT MAX(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = 'Orange')