minktn/spider-data huggingface dataset:
Database: aan_1
Question: What are the names of authors who have not published a paper in ACL?
SQL: SELECT name FROM Author WHERE author_id NOT IN (SELECT T1.author_id FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id  =  T2.paper_id WHERE T2.venue  =  "ACL")
Database: conference
Question: How many conferences are there?
SQL: SELECT count(*) FROM conference
Database: conference
Question: What is the total number of conferences?
SQL: SELECT count(*) FROM conference
Database: conference
Question: List all distinct conference names.
SQL: SELECT DISTINCT conference_name FROM conference
Database: conference
Question: What are the different conference names?
SQL: SELECT DISTINCT conference_name FROM conference
Database: conference
Question: List all conference name, year, and location.
SQL: SELECT conference_name ,  YEAR ,  LOCATION FROM conference
Database: conference
Question: What are the names, years, and locations of all conferences?
SQL: SELECT conference_name ,  YEAR ,  LOCATION FROM conference
Database: conference
Question: Show all conference names and the number of times each conference has.
SQL: SELECT conference_name ,  count(*) FROM conference GROUP BY conference_name
Database: conference
Question: For each conference name, how many times has it occurred?
SQL: SELECT conference_name ,  count(*) FROM conference GROUP BY conference_name
Database: conference
Question: show all years and the number of conferences in each year.
SQL: SELECT YEAR ,  count(*) FROM conference GROUP BY YEAR
Database: conference
Question: How many conferences occur every year?
SQL: SELECT YEAR ,  count(*) FROM conference GROUP BY YEAR
Database: conference
Question: which year has least number of conferences?
SQL: SELECT YEAR FROM conference GROUP BY YEAR ORDER BY count(*) LIMIT 1
Database: conference
Question: What year had the fewest conferences?
SQL: SELECT YEAR FROM conference GROUP BY YEAR ORDER BY count(*) LIMIT 1
Database: conference
Question: Show all locations where at least two conferences are located.
SQL: SELECT LOCATION FROM conference GROUP BY LOCATION HAVING count(*)  >=  2
Database: conference
Question: What are all locations that have hosted at least two conferences?
SQL: SELECT LOCATION FROM conference GROUP BY LOCATION HAVING count(*)  >=  2
Database: conference
Question: Show the institution name, location and founded year of all institutions.
SQL: SELECT institution_name ,  LOCATION ,  founded FROM institution
Database: conference
Question: What are the names, locations, and founding years for all institutions?
SQL: SELECT institution_name ,  LOCATION ,  founded FROM institution
Database: conference
Question: How many institution are founded between 1850 and 1900?
SQL: SELECT count(*) FROM institution WHERE founded BETWEEN 1850 AND 1900
Database: conference
Question: How many institutions were founded between 1850 and 1900?
SQL: SELECT count(*) FROM institution WHERE founded BETWEEN 1850 AND 1900
Database: conference
Question: Show the institution name and location of institution that is most recently founded.
SQL: SELECT institution_name ,  LOCATION FROM institution ORDER BY founded DESC LIMIT 1
Database: conference
Question: What are the names and locations of the most recently-founded institution?
SQL: SELECT institution_name ,  LOCATION FROM institution ORDER BY founded DESC LIMIT 1
Database: conference
Question: Show the institution name and the number of staff for each institution founded after 1800.
SQL: SELECT T1.institution_name ,  count(*) FROM institution AS T1 JOIN staff AS T2 ON T1.institution_id  =  T2.institution_id WHERE T1.founded  >  1800 GROUP BY T2.institution_id
Database: conference
Question: For each institution id , how many staff members does each institution have that was founded after 1800 ? return their names .
SQL: select t1.institution_name ,  count(*) from institution as t1 join staff as t2 on t1.institution_id  =  t2.institution_id where t1.founded  >  1800 group by t2.institution_id
Database: conference
Question: Show institution name which there is no staff in our record.
SQL: SELECT institution_name FROM institution WHERE institution_id NOT IN (SELECT institution_id FROM staff)
Database: conference
Question: What is the name of the institution with no staff in the records?
SQL: SELECT institution_name FROM institution WHERE institution_id NOT IN (SELECT institution_id FROM staff)
Database: conference
Question: Show all staff name who are above the average age.
SQL: SELECT name FROM staff WHERE age  >  (SELECT avg(age) FROM staff)
Database: conference
Question: What are the names of all staff members who are older than average?
SQL: SELECT name FROM staff WHERE age  >  (SELECT avg(age) FROM staff)
Database: conference
Question: What is the maximum and minimum age of all staff from the United States?
SQL: SELECT max(age) ,  min(age) FROM staff
Database: conference
Question: What are the maximum and minimum ages for all staff?
SQL: SELECT max(age) ,  min(age) FROM staff
Database: conference
Question: Show all conference names which the staff from Canada attends.
SQL: SELECT T1.conference_name FROM conference AS T1 JOIN conference_participation AS T2 ON T1.conference_id = T2.conference_id JOIN staff AS T3 ON T2.staff_id  =  T3.staff_id WHERE T3.nationality  =  "Canada"
Database: conference
Question: What are the names of all the conferences that has staff from Canada attending?
SQL: SELECT T1.conference_name FROM conference AS T1 JOIN conference_participation AS T2 ON T1.conference_id = T2.conference_id JOIN staff AS T3 ON T2.staff_id  =  T3.staff_id WHERE T3.nationality  =  "Canada"
Database: conference
Question: Show all staff names who have been both speaker and sponsor in some conference.
SQL: SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.role  =  'Speaker' INTERSECT SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.role  =  'Sponsor'
Database: conference
Question: What are the names of the staff members who have been both a speaker and a sponsor at some conference?
SQL: SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.role  =  'Speaker' INTERSECT SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.role  =  'Sponsor'
Database: conference
Question: Show all names who have been in both ACL and Naccl.
SQL: SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 JOIN Conference AS T3 ON T1.staff_id  =  T2.staff_id AND T2.conference_id  =  T3.conference_id WHERE T3.Conference_name  =  'ACL' INTERSECT SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 JOIN conference AS T3 ON T1.staff_id  =  T2.staff_id AND T2.conference_id  =  T3.conference_id WHERE T3.Conference_name  =  'Naccl'
Database: conference
Question: What are the names of everbody who has participated in both the ACL and NACCL conferences?
SQL: SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 JOIN Conference AS T3 ON T1.staff_id  =  T2.staff_id AND T2.conference_id  =  T3.conference_id WHERE T3.Conference_name  =  'ACL' INTERSECT SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 JOIN conference AS T3 ON T1.staff_id  =  T2.staff_id AND T2.conference_id  =  T3.conference_id WHERE T3.Conference_name  =  'Naccl'
Database: conference
Question: Show all staff names who attend a conference in 2003 or 2004.
SQL: SELECT DISTINCT T1.name FROM staff AS T1 JOIN conference_participation AS T2 JOIN Conference AS T3 ON T1.staff_id  =  T2.staff_id AND T2.conference_id  =  T3.conference_id WHERE T3.year  =  2003 OR T3.year  =  2004
Database: conference
Question: What are the staff names who participated in conferences between 2003 or 2004?
SQL: SELECT DISTINCT T1.name FROM staff AS T1 JOIN conference_participation AS T2 JOIN Conference AS T3 ON T1.staff_id  =  T2.staff_id AND T2.conference_id  =  T3.conference_id WHERE T3.year  =  2003 OR T3.year  =  2004
Database: conference
Question: Show the conference name and year and the number of participants for each conference.
SQL: SELECT T1.conference_name ,  T1.year ,  count(*) FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id  =  T2.conference_id GROUP BY T2.conference_id
Database: conference
Question: For each conference id, what are their names, year, and number of participants?
SQL: SELECT T1.conference_name ,  T1.year ,  count(*) FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id  =  T2.conference_id GROUP BY T2.conference_id
Database: conference
Question: Find the name of the conferences that have the top 2 most number of attendants.
SQL: SELECT T1.conference_name FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id  =  T2.conference_id GROUP BY T2.conference_id ORDER BY count(*) DESC LIMIT 2
Database: conference
Question: What are the names of the conferences that have the top 2 most people attending?
SQL: SELECT T1.conference_name FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id  =  T2.conference_id GROUP BY T2.conference_id ORDER BY count(*) DESC LIMIT 2
Database: conference
Question: Find the name and nationality of the people who did not participate in any ACL conference.
SQL: SELECT name ,  nationality FROM staff WHERE staff_id NOT IN (SELECT T2.staff_id FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id  =  T2.conference_id WHERE T1.Conference_Name  =  "ACL")
Database: conference
Question: What are the names and nationalities of the people who did not participate in any ACL conferences?
SQL: SELECT name ,  nationality FROM staff WHERE staff_id NOT IN (SELECT T2.staff_id FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id  =  T2.conference_id WHERE T1.Conference_Name  =  "ACL")
Database: conference
Question: Find the name and location of the universities that did not have any staff participated in any conference in 2004.
SQL: SELECT T1.Institution_Name ,  T1.location FROM institution AS T1 JOIN staff AS T2 ON T1.institution_id  =  T2.institution_id WHERE T2.staff_id NOT IN (SELECT T4.staff_id FROM Conference AS T3 JOIN Conference_participation AS T4 ON T3.conference_id  =  T4.conference_id WHERE T3.year  =  2004)
Database: conference
Question: What are the names and locations of the universities that did not have any staff participating in any conferences in 2004?
SQL: SELECT T1.Institution_Name ,  T1.location FROM institution AS T1 JOIN staff AS T2 ON T1.institution_id  =  T2.institution_id WHERE T2.staff_id NOT IN (SELECT T4.staff_id FROM Conference AS T3 JOIN Conference_participation AS T4 ON T3.conference_id  =  T4.conference_id WHERE T3.year  =  2004)
Database: pilot_1
Question: What is the name of the oldest pilot?
SQL: SELECT pilot_name FROM PilotSkills ORDER BY age DESC LIMIT 1
Database: pilot_1
Question: Return the name of the oldest pilot.
SQL: SELECT pilot_name FROM PilotSkills ORDER BY age DESC LIMIT 1
Database: pilot_1
Question: What are the names of pilots whose age is below the average age, ordered by age?
SQL: SELECT pilot_name FROM PilotSkills WHERE age  <  (SELECT avg(age) FROM PilotSkills) ORDER BY age
Database: pilot_1
Question: Return the names of pilots who are younger than average, ordered by age ascending.
SQL: SELECT pilot_name FROM PilotSkills WHERE age  <  (SELECT avg(age) FROM PilotSkills) ORDER BY age
Database: pilot_1
Question: Find all information of on pilots whose age is less than 30.
SQL: SELECT * FROM PilotSkills WHERE age  <  30
Database: pilot_1
Question: What is all the information about pilots who are younger than 30 ?
SQL: select * from pilotskills where age  <  30
Database: pilot_1
Question: Find the names of all pilots who have a plane named Piper Cub and is under 35.
SQL: SELECT pilot_name FROM PilotSkills WHERE age  <  35 AND plane_name  =  'Piper Cub'
Database: pilot_1
Question: What are the names of pilots who are younger than 35 and have a plane named Piper Cub?
SQL: SELECT pilot_name FROM PilotSkills WHERE age  <  35 AND plane_name  =  'Piper Cub'
Database: pilot_1
Question: Where is the plane F-14 Fighter located?
SQL: SELECT LOCATION FROM hangar WHERE plane_name  =  'F-14 Fighter'
Database: pilot_1
Question: Return the location of the hangar in which F-14 Fighter is located.
SQL: SELECT LOCATION FROM hangar WHERE plane_name  =  'F-14 Fighter'
Database: pilot_1
Question: How many different places have some plane?
SQL: SELECT count(DISTINCT LOCATION) FROM hangar
Database: pilot_1
Question: Count the number of different locations of hangars.
SQL: SELECT count(DISTINCT LOCATION) FROM hangar
Database: pilot_1
Question: Which plane does the pilot Jones with age 32 has?
SQL: SELECT plane_name FROM pilotskills WHERE pilot_name  =  'Jones'  AND age  =  32
Database: pilot_1
Question: What are the names of planes that the pilot Jones who is 32 has?
SQL: SELECT plane_name FROM pilotskills WHERE pilot_name  =  'Jones'  AND age  =  32
Database: pilot_1
Question: How many pilots who are older than 40?
SQL: SELECT count(*) FROM pilotskills WHERE age  >  40
Database: pilot_1
Question: Count the number of pilots with age greater than 40.
SQL: SELECT count(*) FROM pilotskills WHERE age  >  40
Database: pilot_1
Question: How many plane B-52 Bomber owned by the pilot who is under 35?
SQL: SELECT count(*) FROM pilotskills WHERE age  <  35 AND plane_name  =  'B-52 Bomber'
Database: pilot_1
Question: Count the number of B-52 Bombers owned by pilots under 35.
SQL: SELECT count(*) FROM pilotskills WHERE age  <  35 AND plane_name  =  'B-52 Bomber'
Database: pilot_1
Question: Who is the youngest pilot to fly the plane Piper Cub?
SQL: SELECT pilot_name FROM pilotskills WHERE plane_name  =  'Piper Cub' ORDER BY age LIMIT 1
Database: pilot_1
Question: Return the name of the youngest pilot to fly Piper Cub.
SQL: SELECT pilot_name FROM pilotskills WHERE plane_name  =  'Piper Cub' ORDER BY age LIMIT 1
Database: pilot_1
Question: What is the name of the most popular plane?
SQL: SELECT plane_name FROM pilotskills GROUP BY plane_name ORDER BY count(*) DESC LIMIT 1
Database: pilot_1
Question: What is the name of the plane that is flown the most often?
SQL: SELECT plane_name FROM pilotskills GROUP BY plane_name ORDER BY count(*) DESC LIMIT 1
Database: pilot_1
Question: What is the name of the least popular plane?
SQL: SELECT plane_name FROM pilotskills GROUP BY plane_name ORDER BY count(*) LIMIT 1
Database: pilot_1
Question: What is the name of the plane that is flown the least often?
SQL: SELECT plane_name FROM pilotskills GROUP BY plane_name ORDER BY count(*) LIMIT 1
Database: pilot_1
Question: How many pilots whose planes are in Chicago?
SQL: SELECT 	count(DISTINCT T1.pilot_name) FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name  =  T2.plane_name WHERE T2.location  =  'Chicago'
Database: pilot_1
Question: Count the number of pilots who have planes in Chicago.
SQL: SELECT 	count(DISTINCT T1.pilot_name) FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name  =  T2.plane_name WHERE T2.location  =  'Chicago'
Database: pilot_1
Question: What are the planes owned by pilot Smith with age 41?
SQL: SELECT plane_name FROM pilotskills WHERE pilot_name  =  'Smith' AND age  =  41
Database: pilot_1
Question: Return the names of planes owned by the pilot whose name is Smith and is 41 years old.
SQL: SELECT plane_name FROM pilotskills WHERE pilot_name  =  'Smith' AND age  =  41
Database: pilot_1
Question: How many distinct planes are owned across all pilots?
SQL: SELECT count(DISTINCT plane_name) FROM pilotskills
Database: pilot_1
Question: Count the number of different plane names across all pilots.
SQL: SELECT count(DISTINCT plane_name) FROM pilotskills
Database: pilot_1
Question: How many planes are owned by the pilot whose name is Smith?
SQL: SELECT count(plane_name) FROM pilotskills WHERE pilot_name  =  'Smith'
Database: pilot_1
Question: Count the number of planes Smith owns.
SQL: SELECT count(plane_name) FROM pilotskills WHERE pilot_name  =  'Smith'
Database: pilot_1
Question: How many planes are controlled by the pilots whose age is older than 40?
SQL: SELECT count(plane_name) FROM pilotskills WHERE age  >  40
Database: pilot_1
Question: Count the number of planes flown by pilots older than 40.
SQL: SELECT count(plane_name) FROM pilotskills WHERE age  >  40
Database: pilot_1
Question: Find the names of all pilots with age between 30 and 40 sorted by their ages in ascending order.
SQL: SELECT pilot_name FROM pilotskills WHERE age BETWEEN 30 AND 40 ORDER BY age
Database: pilot_1
Question: What are the names of pilots between the ages of 30 and 40, ordered by age ascending?
SQL: SELECT pilot_name FROM pilotskills WHERE age BETWEEN 30 AND 40 ORDER BY age
Database: pilot_1
Question: List all pilot names sorted by their ages in the descending order.
SQL: SELECT pilot_name FROM pilotskills ORDER BY age DESC
Database: pilot_1
Question: What are the names of pilots, ordered by age descending?
SQL: SELECT pilot_name FROM pilotskills ORDER BY age DESC
Database: pilot_1
Question: Find all locations of planes sorted by the plane name.
SQL: SELECT LOCATION FROM hangar ORDER BY plane_name
Database: pilot_1
Question: What are the locations of the different planes, ordered by plane name?
SQL: SELECT LOCATION FROM hangar ORDER BY plane_name
Database: pilot_1
Question: List all distinct types of planes owned by all pilots in alphabetic order?
SQL: SELECT DISTINCT plane_name FROM pilotskills ORDER BY plane_name
Database: pilot_1
Question: What are the different plane names, ordered alphabetically?
SQL: SELECT DISTINCT plane_name FROM pilotskills ORDER BY plane_name
Database: pilot_1
Question: How many pilots who are older than 40 or younger than 30?
SQL: SELECT count(pilot_name) FROM pilotskills ORDER BY age  >  40 OR age  <  30
Database: pilot_1
Question: Count the number of pilots with age greater than 40 or less than 30.
SQL: SELECT count(pilot_name) FROM pilotskills ORDER BY age  >  40 OR age  <  30
Database: pilot_1
Question: What are the names and ages of pilots who own plane Piper Cub and are older than 35, or have F-14 Fighter and are younger than 30?
SQL: SELECT pilot_name ,  age FROM pilotskills WHERE plane_name  =  'Piper Cub' AND age  >  35 UNION SELECT pilot_name ,  age FROM pilotskills WHERE plane_name  =  'F-14 Fighter' AND age  <  30
Database: pilot_1
Question: Return the names and ages of pilors who have flown Piper Cub and are older than 35, or have flown the F-14 Fighter and are younger than 30.
SQL: SELECT pilot_name ,  age FROM pilotskills WHERE plane_name  =  'Piper Cub' AND age  >  35 UNION SELECT pilot_name ,  age FROM pilotskills WHERE plane_name  =  'F-14 Fighter' AND age  <  30
Database: pilot_1
Question: Find pilots who own plane Piper Cub but not B-52 Bomber.
SQL: SELECT pilot_name FROM pilotskills WHERE plane_name  =  'Piper Cub' EXCEPT SELECT pilot_name FROM pilotskills WHERE plane_name  =  'B-52 Bomber'
Database: pilot_1
Question: What are the names of pilots who have flown Piper Cub but not the B-52 Bomber?
SQL: SELECT pilot_name FROM pilotskills WHERE plane_name  =  'Piper Cub' EXCEPT SELECT pilot_name FROM pilotskills WHERE plane_name  =  'B-52 Bomber'
Database: pilot_1
Question: Find pilots who own planes Piper Cub and B-52 Bomber.
SQL: SELECT pilot_name FROM pilotskills WHERE plane_name  =  'Piper Cub' INTERSECT SELECT pilot_name FROM pilotskills WHERE plane_name  =  'B-52 Bomber'
Database: pilot_1
Question: What are the names of pilots who own both Piper Cub and the B-52 Bomber?
SQL: SELECT pilot_name FROM pilotskills WHERE plane_name  =  'Piper Cub' INTERSECT SELECT pilot_name FROM pilotskills WHERE plane_name  =  'B-52 Bomber'
Database: pilot_1
Question: What are the average and smallest ages of all pilots?
SQL: SELECT avg(age) ,  min(age) FROM pilotskills
Database: pilot_1
Question: Return the average and minimum ages across all pilots.
SQL: SELECT avg(age) ,  min(age) FROM pilotskills
Database: pilot_1
Question: What are the names of pilots who have planes in both Austin and Boston?
SQL: SELECT T1.pilot_name FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name  =  T2.plane_name WHERE T2.location  =  "Austin" INTERSECT SELECT T1.pilot_name FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name  =  T2.plane_name WHERE T2.LOCATION  =  "Boston"
Database: pilot_1
Question: Give the names of pilots who have planes in Austin and Boston.
SQL: SELECT T1.pilot_name FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name  =  T2.plane_name WHERE T2.location  =  "Austin" INTERSECT SELECT T1.pilot_name FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name  =  T2.plane_name WHERE T2.LOCATION  =  "Boston"
Database: pilot_1
Question: Find the pilots who have either plane Piper Cub or plane F-14 Fighter.
SQL: SELECT pilot_name FROM pilotskills WHERE plane_name  =  'Piper Cub' OR plane_name  =  'F-14 Fighter'
Database: pilot_1
Question: What are the names of pilots who have either the Piper Cub or the F-14 Fighter?
SQL: SELECT pilot_name FROM pilotskills WHERE plane_name  =  'Piper Cub' OR plane_name  =  'F-14 Fighter'
Database: pilot_1
Question: What is the average age of pilots for different types of planes?
SQL: SELECT avg(age) ,  plane_name FROM pilotskills GROUP BY plane_name
Database: pilot_1
Question: Return the average age of pilots for each plane name.
SQL: SELECT avg(age) ,  plane_name FROM pilotskills GROUP BY plane_name
Database: pilot_1
Question: Find the number of planes for each type.
SQL: SELECT count(*) ,  plane_name FROM pilotskills GROUP BY plane_name
Database: pilot_1
Question: Count the number of entries for each plane name.
SQL: SELECT count(*) ,  plane_name FROM pilotskills GROUP BY plane_name
Database: pilot_1
Question: Find the name of the oldest pilot for each type of plane, and order the results by plane name.
SQL: SELECT pilot_name ,  plane_name ,  max(age) FROM pilotskills GROUP BY plane_name ORDER BY plane_name
Database: pilot_1
Question: What are the different plane names, and what are the names of the oldest pilot who has each, ordered by plane name?
SQL: SELECT pilot_name ,  plane_name ,  max(age) FROM pilotskills GROUP BY plane_name ORDER BY plane_name
Database: pilot_1
Question: What are the names of oldest pilots for each type of plane?
SQL: SELECT pilot_name ,  plane_name ,  max(age) FROM pilotskills GROUP BY plane_name
Database: pilot_1
Question: Return the names of the different planes, as well as the names of the oldest pilots who flew each.
SQL: SELECT pilot_name ,  plane_name ,  max(age) FROM pilotskills GROUP BY plane_name
Database: pilot_1
Question: Find the max age for each group of pilots with the same name.
SQL: SELECT max(age) ,  pilot_name FROM pilotskills GROUP BY pilot_name
Database: pilot_1
Question: What are the different pilot names, and what are the maximum ages of pilots for each?
SQL: SELECT max(age) ,  pilot_name FROM pilotskills GROUP BY pilot_name
Database: pilot_1
Question: For each city, find the number and average age of pilots who have a plane.
SQL: SELECT count(T1.pilot_name) ,  avg(T1.age) ,  T2.location FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name  =  T2.plane_name GROUP BY T2.location
Database: pilot_1
Question: What are the different hangar locations and how many pilots correspond to each. Also, what are their average ages?
SQL: SELECT count(T1.pilot_name) ,  avg(T1.age) ,  T2.location FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name  =  T2.plane_name GROUP BY T2.location
Database: pilot_1
Question: Find the number of pilots for the plane types with average pilot age below 35.
SQL: SELECT count(*) ,  plane_name FROM pilotskills GROUP BY plane_name HAVING avg(age)  <  35
Database: pilot_1
Question: What are the different plane names of planes with an average pilot age of below 35, and how many pilots have flown each of them?
SQL: SELECT count(*) ,  plane_name FROM pilotskills GROUP BY plane_name HAVING avg(age)  <  35
Database: pilot_1
Question: Find the location of the plane that is owned by the youngest pilot.
SQL: SELECT T2.location FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name  =  T2.plane_name WHERE T1.age  =  (SELECT min(age) FROM pilotskills)
Database: pilot_1
Question: What is the location of the plane that was flown by the pilot with the lowest age?
SQL: SELECT T2.location FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name  =  T2.plane_name WHERE T1.age  =  (SELECT min(age) FROM pilotskills)
Database: pilot_1
Question: Find the name and age of pilots who have a plane in Austin.
SQL: SELECT T1.pilot_name ,  T1.age FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name  =  T2.plane_name WHERE T2.location  =  "Austin"
Database: pilot_1
Question: What are the names and ages of pilots who have planes located in Austin?
SQL: SELECT T1.pilot_name ,  T1.age FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name  =  T2.plane_name WHERE T2.location  =  "Austin"
Database: pilot_1
Question: List in alphabetic order the names of pilots whose age is greater than some pilots having plane Piper Cub.
SQL: SELECT pilot_name FROM pilotskills WHERE age  >  (SELECT min(age) FROM pilotskills WHERE plane_name  =  'Piper Cub') ORDER BY pilot_name
Database: pilot_1
Question: Return the names of pilots who are older than any pilot who has flown Piper Cub, ordered alphabetically.
SQL: SELECT pilot_name FROM pilotskills WHERE age  >  (SELECT min(age) FROM pilotskills WHERE plane_name  =  'Piper Cub') ORDER BY pilot_name
Database: pilot_1
Question: Find the number of pilots whose age is younger than all pilots whose plane is F-14 Fighter.
SQL: SELECT count(*) FROM pilotskills WHERE age  <  (SELECT min(age) FROM pilotskills WHERE plane_name  =  'F-14 Fighter')
Database: pilot_1
Question: How many pilots are younger than all pilots who own the F-14 Fighter?
SQL: SELECT count(*) FROM pilotskills WHERE age  <  (SELECT min(age) FROM pilotskills WHERE plane_name  =  'F-14 Fighter')
Database: pilot_1
Question: Find all different planes whose names contain substring 'Bomber'.
SQL: SELECT DISTINCT plane_name FROM pilotskills WHERE plane_name LIKE '%Bomber%'
Database: pilot_1
Question: What are the different plane names that contain the word Bomber?
SQL: SELECT DISTINCT plane_name FROM pilotskills WHERE plane_name LIKE '%Bomber%'
Database: pilot_1
Question: Find the number of all pilots whose age is older than some pilot who has plane Piper Cub.
SQL: SELECT count(pilot_name) FROM pilotskills WHERE age  >  (SELECT min(age) FROM pilotskills WHERE plane_name  =  'Piper Cub')
Database: pilot_1
Question: How many pilots are older than the youngest pilot who has Piper Cub?
SQL: SELECT count(pilot_name) FROM pilotskills WHERE age  >  (SELECT min(age) FROM pilotskills WHERE plane_name  =  'Piper Cub')
Database: district_spokesman
Question: Find the name of the district which has the largest area.
SQL: SELECT name FROM district ORDER BY Area_km DESC LIMIT 1
Database: district_spokesman
Question: Select the area and government website of the district with the smallest population.
SQL: SELECT area_km ,  Government_website FROM district ORDER BY Population LIMIT 1
Database: district_spokesman
Question: Find the names and populations of the districts whose area is greater than the average area.
SQL: SELECT name ,  population FROM district WHERE area_km  >  (SELECT avg(area_km) FROM district)
Database: district_spokesman
Question: Give me the biggest and average areas of all districts.
SQL: SELECT max(area_km) ,  avg(area_km) FROM district
Database: district_spokesman
Question: What is the total population of the districts whose areas are in the top 3?
SQL: SELECT sum(population) FROM district ORDER BY area_km DESC LIMIT 3
Database: district_spokesman
Question: List the ids, names, and government websites of all districts sorted by population.
SQL: SELECT name ,  Government_website ,  district_id FROM district ORDER BY Population
Database: district_spokesman
Question: Find the names of districts whose government links use a 'gov' domain.
SQL: SELECT name FROM district WHERE Government_website LIKE "%gov%"
Database: district_spokesman
Question: Return the ids and names of the districts whose population is larger than 4000 or area bigger than 3000.
SQL: SELECT district_id ,  name FROM district WHERE area_km  >  3000 OR population  >  4000
Database: district_spokesman
Question: Find all spokesman's names and speech titles.
SQL: SELECT name ,  speach_title FROM spokesman
Database: district_spokesman
Question: Find the average points and average ages of all spokesmen whose rank position is 1.
SQL: SELECT avg(points) ,  avg(age) FROM spokesman WHERE rank_position  =  1
Database: district_spokesman
Question: What are the names and points of spokesmen who are younger than 40?
SQL: SELECT name ,  points FROM spokesman WHERE age  <  40
Database: district_spokesman
Question: Who is the oldest spokesman?
SQL: SELECT name FROM spokesman ORDER BY age DESC LIMIT 1
Database: district_spokesman
Question: Which spokesman has lower points than the average?
SQL: SELECT name FROM spokesman WHERE points  <  (SELECT avg(points) FROM spokesman)
Database: district_spokesman
Question: Find the name of the district which has greatest number of spokesmen.
SQL: SELECT t1.name FROM district AS t1 JOIN spokesman_district AS t2 ON t1.District_ID  =  t2.District_ID GROUP BY t2.District_ID ORDER BY count(*) DESC LIMIT 1
Database: district_spokesman
Question: Find the names of spokesmen who have served some district before 2004.
SQL: SELECT t1.name FROM spokesman AS t1 JOIN spokesman_district AS t2 ON t1.Spokesman_ID  =  t2.Spokesman_ID WHERE t2.start_year  <  2004
Database: district_spokesman
Question: Find the number of spokesmen for each district, and the show district names as well.
SQL: SELECT t1.name ,  count(*) FROM district AS t1 JOIN spokesman_district AS t2 ON t1.District_ID  =  t2.District_ID GROUP BY t2.District_ID
Database: district_spokesman
Question: Find the names of the districts which have had both spokesman with rank position 1 and 2.
SQL: SELECT t3.name FROM spokesman AS t1 JOIN spokesman_district AS t2 ON t1.Spokesman_ID  =  t2.Spokesman_ID JOIN district AS t3 ON t3.district_id  =  t2.district_id WHERE t1.rank_position  =  1 INTERSECT SELECT t3.name FROM spokesman AS t1 JOIN spokesman_district AS t2 ON t1.Spokesman_ID  =  t2.Spokesman_ID JOIN district AS t3 ON t3.district_id  =  t2.district_id WHERE t1.rank_position  =  2
Database: district_spokesman
Question: Find the names of districts which have more than one spokesman.
SQL: SELECT t1.name FROM district AS t1 JOIN spokesman_district AS t2 ON t1.District_ID  =  t2.District_ID GROUP BY t2.District_ID HAVING count(*)  >  1
Database: district_spokesman
Question: Find the number of districts which have no spokesmen.
SQL: SELECT count(*) FROM district WHERE district_id NOT IN (SELECT district_id FROM spokesman_district)
Database: district_spokesman
Question: Find the name of spokesmen who do not speak for any district.
SQL: SELECT name FROM spokesman WHERE Spokesman_ID NOT IN (SELECT Spokesman_ID FROM spokesman_district)
Database: district_spokesman
Question: Find the total and average population of the districts which have some spokesman.
SQL: SELECT sum(population) ,  avg(population) FROM district WHERE district_id IN (SELECT district_id FROM spokesman_district)
Database: art_1
Question: What is the title of the sculpture that was created in the most recent year ?
SQL: select title from sculptures order by year desc limit 1
Database: art_1
Question: What is the name of the scuplture that was created most recently ?
SQL: select title from sculptures order by year desc limit 1
Database: art_1
Question: What is the title and location of the oldest painting ?
SQL: select title ,  location from paintings order by year limit 1
Database: art_1
Question: What is the name of the oldest painting and where is it located?
SQL: SELECT title ,  LOCATION ,  YEAR FROM paintings ORDER BY YEAR LIMIT 1
Database: art_1
Question: Find the names of all sculptures located in gallery 226.
SQL: SELECT title FROM sculptures WHERE LOCATION  =  "Gallery 226"
Database: art_1
Question: What are the names of all sculptures in gallery 226?
SQL: SELECT title FROM sculptures WHERE LOCATION  =  "Gallery 226"
Database: art_1
Question: List the title and location of all paintings.
SQL: SELECT title ,  LOCATION FROM paintings
Database: art_1
Question: What are the paintings called and where are they located?
SQL: SELECT title ,  LOCATION FROM paintings
Database: art_1
Question: List the title and location of all sculptures.
SQL: SELECT title ,  LOCATION FROM sculptures
Database: art_1
Question: What are the sculptures called and where are they located?
SQL: SELECT title ,  LOCATION FROM sculptures
Database: art_1
Question: What are the medium types of the painting with id = 80
SQL: SELECT medium FROM paintings WHERE paintingID  =  80
Database: art_1
Question: What mediums were used for the painting with id 80 ?
SQL: select medium from paintings where paintingid  =  80
Database: art_1
Question: Find the first and last names of all artists who were born after 1850.
SQL: SELECT lname ,  fname FROM artists WHERE birthYear  >  1850
Database: art_1
Question: What are the full names of artists born after 1850?
SQL: SELECT lname ,  fname FROM artists WHERE birthYear  >  1850
Database: art_1
Question: Find the names and years of all sculptures that are not located in gallery 226.
SQL: SELECT title ,  YEAR FROM sculptures WHERE LOCATION != "Gallery 226"
Database: art_1
Question: What are the names and dates created for all sculptures not located in gallery 226?
SQL: SELECT title ,  YEAR FROM sculptures WHERE LOCATION != "Gallery 226"
Database: art_1
Question: What are the first and last names of all distinct artists who made sculptures before 1900?
SQL: SELECT DISTINCT T1.lname ,  T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID  =  T2.sculptorID WHERE T2.year  <  1900
Database: art_1
Question: What is the first and last name of each distinct artists who made a sculpture before 1900?
SQL: SELECT DISTINCT T1.lname ,  T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID  =  T2.sculptorID WHERE T2.year  <  1900
Database: art_1
Question: Find the birth years of all distinct artists who made sculptures after 1920?
SQL: SELECT DISTINCT T1.birthYear FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID  =  T2.sculptorID WHERE T2.year  >  1920
Database: art_1
Question: What is the birth year of each distinct artists who created sculptures after 1920?
SQL: SELECT DISTINCT T1.birthYear FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID  =  T2.sculptorID WHERE T2.year  >  1920
Database: art_1
Question: What are the first and last names of the artist who lived the longest?
SQL: SELECT lname ,  fname FROM artists ORDER BY deathYear - birthYear DESC LIMIT 1
Database: art_1
Question: Give the full name of the artist who lived the longest.
SQL: SELECT lname ,  fname FROM artists ORDER BY deathYear - birthYear DESC LIMIT 1
Database: art_1
Question: What is the age of the artist who had the shortest life?
SQL: SELECT deathYear - birthYear FROM artists ORDER BY deathYear - birthYear LIMIT 1
Database: art_1
Question: How old is the artist who lived the shortest life?
SQL: SELECT deathYear - birthYear FROM artists ORDER BY deathYear - birthYear LIMIT 1
Database: art_1
Question: What are the first name and age of the artist who had the longest life?
SQL: SELECT fname  ,  deathYear - birthYear FROM artists ORDER BY deathYear - birthYear DESC LIMIT 1
Database: art_1
Question: What is the first name and age of the artist who lived the longest?
SQL: SELECT fname  ,  deathYear - birthYear FROM artists ORDER BY deathYear - birthYear DESC LIMIT 1
Database: art_1
Question: How many paintings are exhibited at gallery 240?
SQL: SELECT count(*) FROM paintings WHERE LOCATION  =  "Gallery 240"
Database: art_1
Question: What is the total number of paintings exhibited in gallery 240?
SQL: SELECT count(*) FROM paintings WHERE LOCATION  =  "Gallery 240"
Database: art_1
Question: How many paintings did the artist with the longest life make ?
SQL: select count(*) from artists as t1 join paintings as t2 on t1.artistid  =  t2.painterid group by t2.painterid order by t1.deathyear - t1.birthyear desc limit 1
Database: art_1
Question: What is the painting count of the artist with the longest life ?
SQL: select count(*) from artists as t1 join paintings as t2 on t1.artistid  =  t2.painterid group by t2.painterid order by t1.deathyear - t1.birthyear desc limit 1
Database: art_1
Question: Give me a list of names and years of paintings that were created by the artist whose first name is Mary.
SQL: SELECT T2.title ,   T2.year FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T1.fname  =  "Mary"
Database: art_1
Question: What is the name and year of each painting created by the artist whose first name is Mary?
SQL: SELECT T2.title ,   T2.year FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T1.fname  =  "Mary"
Database: art_1
Question: What are the widths of the paintings that were created by the artist who was born before 1850?
SQL: SELECT T2.width_mm FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T1.birthYear  <  1850
Database: art_1
Question: How wide were the paintings by the artist who was born prior to 1850?
SQL: SELECT T2.width_mm FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T1.birthYear  <  1850
Database: art_1
Question: What are the location and medium type of paintings that are created by the artist whose first name is Pablo?
SQL: SELECT T2.location ,   T2.medium FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T1.fname  =  "Pablo"
Database: art_1
Question: In what locations and on what mediums are the paintings created by the artist with the first name Pablo?
SQL: SELECT T2.location ,   T2.medium FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T1.fname  =  "Pablo"
Database: art_1
Question: Find the first and last names of the artists who have both works of paintings and sculptures?
SQL: SELECT T1.lname ,  T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID  =  T2.sculptorID INTERSECT SELECT T3.lname ,  T3.fname FROM artists AS T3 JOIN paintings AS T4 ON T3.artistID  =  T4.painterID
Database: art_1
Question: Give the full names of artists who have created paintings and sculptures.
SQL: SELECT T1.lname ,  T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID  =  T2.sculptorID INTERSECT SELECT T3.lname ,  T3.fname FROM artists AS T3 JOIN paintings AS T4 ON T3.artistID  =  T4.painterID
Database: art_1
Question: What are the first and last names of the artists who have not only medium oil paintings but also paintings with the lithographic medium?
SQL: SELECT T1.lname ,  T1.fname FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T2.medium  =  "oil" INTERSECT SELECT T3.lname ,  T3.fname FROM artists AS T3 JOIN paintings AS T4 ON T3.artistID  =  T4.painterID WHERE T4.medium  =  "lithograph"
Database: art_1
Question: What are the first and last names of artists who have painted using both oil and lithographic mediums?
SQL: SELECT T1.lname ,  T1.fname FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T2.medium  =  "oil" INTERSECT SELECT T3.lname ,  T3.fname FROM artists AS T3 JOIN paintings AS T4 ON T3.artistID  =  T4.painterID WHERE T4.medium  =  "lithograph"
Database: art_1
Question: What is the birth year of the artist who created a painting in 1884 that is on canvas?
SQL: SELECT T1.birthYear FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T2.year  =  1884 AND mediumOn  =  "canvas"
Database: art_1
Question: In what year was the artist who created a painting in 1884 born?
SQL: SELECT T1.birthYear FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T2.year  =  1884 AND mediumOn  =  "canvas"
Database: art_1
Question: What are the unique first names of the artists who had medium oil paintings located in gallery 241?
SQL: SELECT DISTINCT T1.fname FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T2.medium  =  "oil" AND LOCATION  =  "Gallery 241"
Database: art_1
Question: What are first names of the artists with oil paintings in gallery 241?
SQL: SELECT DISTINCT T1.fname FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T2.medium  =  "oil" AND LOCATION  =  "Gallery 241"
Database: art_1
Question: What are the numbers of works for different medium type?
SQL: SELECT count(*) ,  medium FROM paintings GROUP BY medium
Database: art_1
Question: How many works are there in each medium?
SQL: SELECT count(*) ,  medium FROM paintings GROUP BY medium
Database: art_1
Question: What are the average height of paintings for different medium types?
SQL: SELECT avg(height_mm) ,  medium FROM paintings GROUP BY medium
Database: art_1
Question: What is the average height of paintings for different medium types?
SQL: SELECT avg(height_mm) ,  medium FROM paintings GROUP BY medium
Database: art_1
Question: What are the numbers of paintings created before 1900 in different places?
SQL: SELECT count(*) ,  LOCATION FROM paintings WHERE YEAR  <  1900 GROUP BY LOCATION
Database: art_1
Question: How many paintings were created before 1900 in different locations?
SQL: SELECT count(*) ,  LOCATION FROM paintings WHERE YEAR  <  1900 GROUP BY LOCATION
Database: art_1
Question: What are the titles of paintings that are created after 1910 and whose medium is oil?
SQL: SELECT title FROM paintings WHERE YEAR  >  1910 AND medium  =  "oil"
Database: art_1
Question: Give the names of all oil paintings created after 1910.
SQL: SELECT title FROM paintings WHERE YEAR  >  1910 AND medium  =  "oil"
Database: art_1
Question: Find the unique id of the painters who had medium oil paintings exhibited at gallery 240?
SQL: SELECT DISTINCT painterID FROM paintings WHERE medium  =  "oil" AND LOCATION  =  "Gallery 240"
Database: art_1
Question: What is the unique id of every painter who had a medium oil painting displayed at gallery 240?
SQL: SELECT DISTINCT painterID FROM paintings WHERE medium  =  "oil" AND LOCATION  =  "Gallery 240"
Database: art_1
Question: Find the distinct titles of all the paintings that have a longer height than some painting on canvas?
SQL: SELECT DISTINCT title FROM paintings WHERE height_mm  >  (SELECT min(height_mm) FROM paintings WHERE mediumOn  =  "canvas")
Database: art_1
Question: What are the distinct titles of every painting that has a greater height than some painting on canvas?
SQL: SELECT DISTINCT title FROM paintings WHERE height_mm  >  (SELECT min(height_mm) FROM paintings WHERE mediumOn  =  "canvas")
Database: art_1
Question: Find the distinct ids of all paintings that are older than some painting at location gallery 240.
SQL: SELECT paintingID FROM paintings WHERE YEAR  <  (SELECT max(YEAR) FROM paintings WHERE LOCATION  =  "Gallery 240")
Database: art_1
Question: What are the distinct ids of every painting that is older than some painting in gallery 240?
SQL: SELECT paintingID FROM paintings WHERE YEAR  <  (SELECT max(YEAR) FROM paintings WHERE LOCATION  =  "Gallery 240")
Database: art_1
Question: Find the id of the oldest painting.
SQL: SELECT paintingID FROM paintings ORDER BY YEAR LIMIT 1
Database: art_1
Question: What is the id of the oldest painting?
SQL: SELECT paintingID FROM paintings ORDER BY YEAR LIMIT 1
Database: art_1
Question: What are the first and last name of the artist who had a sculpture work whose title has the word “female” in it?
SQL: SELECT T1.lname ,  T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID  =  T2.sculptorID WHERE T2.title LIKE "%female%"
Database: art_1
Question: What is the full name of the artist with a sculpture whose title includes the word "female"?
SQL: SELECT T1.lname ,  T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID  =  T2.sculptorID WHERE T2.title LIKE "%female%"
Database: art_1
Question: List the names of all distinct paintings in alphabetical order.
SQL: SELECT DISTINCT title FROM paintings ORDER BY title
Database: art_1
Question: What is the name of every distinct painting in alphabetical order?
SQL: SELECT DISTINCT title FROM paintings ORDER BY title
Database: art_1
Question: List the names of all distinct paintings ordered by length.
SQL: SELECT DISTINCT title FROM paintings ORDER BY height_mm
Database: art_1
Question: List the names of all distinct paintings from shortest to longest in height.
SQL: SELECT DISTINCT title FROM paintings ORDER BY height_mm
Database: art_1
Question: What are the names of both paintings and sculptures created between 1900 and 1950?
SQL: SELECT title FROM paintings WHERE YEAR BETWEEN 1900 AND 1950 UNION SELECT title FROM sculptures WHERE YEAR BETWEEN 1900 AND 1950
Database: art_1
Question: What are the names of  paintings and scupltures created between 1900 and 1950?
SQL: SELECT title FROM paintings WHERE YEAR BETWEEN 1900 AND 1950 UNION SELECT title FROM sculptures WHERE YEAR BETWEEN 1900 AND 1950
Database: art_1
Question: Find the titles of paintings and sculpture works made by the artist whose id is 222?
SQL: SELECT T2.title FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T1.artistID  =  222 UNION SELECT T4.title FROM artists AS T3 JOIN sculptures AS T4 ON T3.artistID  =  T4.sculptorID WHERE T3.artistID  =  222
Database: art_1
Question: What are the titles of all paintings and sculpture works made by the artist whose id is 222?
SQL: SELECT T2.title FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T1.artistID  =  222 UNION SELECT T4.title FROM artists AS T3 JOIN sculptures AS T4 ON T3.artistID  =  T4.sculptorID WHERE T3.artistID  =  222
Database: art_1
Question: What is the id of the artist who has the highest number of painting works before 1900?
SQL: SELECT T1.artistID FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T2.year  <  1900 GROUP BY T1.artistID ORDER BY count(*) DESC LIMIT 1
Database: art_1
Question: What is the id of the artist with the most paintings before 1900?
SQL: SELECT T1.artistID FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T2.year  <  1900 GROUP BY T1.artistID ORDER BY count(*) DESC LIMIT 1
Database: art_1
Question: What is the first name of the artist who has the highest number of sculptures?
SQL: SELECT T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID  =  T2.sculptorID GROUP BY T2.sculptorID ORDER BY count(*) DESC LIMIT 1
Database: art_1
Question: What is the first name of the sculptor with the greatest number of works?
SQL: SELECT T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID  =  T2.sculptorID GROUP BY T2.sculptorID ORDER BY count(*) DESC LIMIT 1
Database: art_1
Question: What are the names of paintings whose width is less than 600 or height is larger than 800?
SQL: SELECT title FROM paintings WHERE width_mm  <  600 OR height_mm  >  800
Database: art_1
Question: What are the titles of paintings that have a width less than 600 or a height taller taller than 800?
SQL: SELECT title FROM paintings WHERE width_mm  <  600 OR height_mm  >  800
Database: art_1
Question: Which locations have paintings created before 1885 or after 1930?
SQL: SELECT DISTINCT LOCATION FROM paintings WHERE YEAR  < 1885 OR YEAR  >  1930
Database: art_1
Question: What locations have works painted before 1885 or after 1930?
SQL: SELECT DISTINCT LOCATION FROM paintings WHERE YEAR  < 1885 OR YEAR  >  1930
Database: art_1
Question: Find the ids of paintings whose height is bigger than 500 and less than 2000?
SQL: SELECT paintingID FROM paintings WHERE height_mm  >  500 AND height_mm  <  2000
Database: art_1
Question: What are the ids of paintings that are taller than 500 and shorter than 2000?
SQL: SELECT paintingID FROM paintings WHERE height_mm  >  500 AND height_mm  <  2000
Database: art_1
Question: Which locations have paintings in the mediums of on panel and on canvas?
SQL: SELECT DISTINCT LOCATION FROM paintings WHERE mediumOn  =  "panel" INTERSECT SELECT DISTINCT LOCATION FROM paintings WHERE mediumOn  =  "canvas"
Database: art_1
Question: What are the locations that have paintings in the mediums of on panels and on canvas?
SQL: SELECT DISTINCT LOCATION FROM paintings WHERE mediumOn  =  "panel" INTERSECT SELECT DISTINCT LOCATION FROM paintings WHERE mediumOn  =  "canvas"
Database: art_1
Question: Find the locations that have paintings created before 1885 and after 1930?
SQL: SELECT DISTINCT LOCATION FROM paintings WHERE YEAR  <  1885 INTERSECT SELECT DISTINCT LOCATION FROM paintings WHERE YEAR  >  1930