niryuu/sni-each-converted huggingface dataset:
What are the dog name, age and weight of the dogs that were abandoned? Note that 1 stands for yes, and 0 stands for no in the tables.
Output: SELECT name ,  age ,  weight FROM Dogs WHERE abandoned_yn  =  1
Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'.
Output: SELECT name ,  RESULT ,  bulgarian_commander FROM battle EXCEPT SELECT T1.name ,  T1.result ,  T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle WHERE T2.location  =  'English Channel'
Show the ID of the high schooler named Kyle.
Output: SELECT ID FROM Highschooler WHERE name  =  "Kyle"
What are the names of nations speak both English and French?
Output: SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "English" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "French"
What are the first, middle, and last names, along with the ids, of all students who enrolled in 2 degree programs in one semester?
Output: SELECT T1.first_name ,  T1.middle_name ,  T1.last_name ,  T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING count(*)  =  2
What is last date created of votes from the state 'CA'?
Output: SELECT max(created) FROM votes WHERE state  =  'CA'
Which Asian countries have a population that is larger than any country in Africa?
Output: SELECT Name FROM country WHERE Continent  =  "Asia"  AND population  >  (SELECT max(population) FROM country WHERE Continent  =  "Africa")
How many transcripts are released?
Output: SELECT count(*) FROM Transcripts
Find the average ranking for each player and their first name.
Output: SELECT avg(ranking) ,  T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.first_name
What are the names of the countries that are in the continent of Europe and have a population of 80000?
Output: SELECT Name FROM country WHERE continent  =  "Europe" AND Population  =  "80000"
What is the number of car models that are produced by each maker and what is the id and full name of each maker?
Output: SELECT Count(*) ,  T2.FullName ,  T2.id FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker  =  T2.Id GROUP BY T2.id
Count the number of different templates used for documents.
Output: SELECT count(DISTINCT template_id) FROM Documents
list all cartoon titles and their directors ordered by their air date
Output: SELECT title ,  Directed_by FROM Cartoon ORDER BY Original_air_date
How many countries have a republic as their form of government?
Output: SELECT count(*) FROM country WHERE GovernmentForm  =  "Republic"
How many orchestras does each record company manage?
Output: SELECT Record_Company ,  COUNT(*) FROM orchestra GROUP BY Record_Company
What is the feature type name of feature AirCon?
Output: SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code  =  T2.feature_type_code WHERE T1.feature_name  =  "AirCon"
For all of the 4 cylinder cars, which model has the most horsepower?
Output: SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id WHERE T2.Cylinders  =  4 ORDER BY T2.horsepower DESC LIMIT 1
What are the different models created by either the car maker General Motors or weighed more than 3500?
Output: SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model  =  T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker  =  T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId  =  T4.Id WHERE T3.FullName  =  'General Motors' OR T4.weight  >  3500
Who is the first student to register? List the first name, middle name and last name.
Output: SELECT first_name ,  middle_name ,  last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1
What are the African countries that have a  population less than any country in Asia?
Output: SELECT Name FROM country WHERE Continent  =  "Africa"  AND population  <  (SELECT max(population) FROM country WHERE Continent  =  "Asia")
What are 3 most highly rated episodes in the TV series table and what were those ratings?
Output: SELECT Episode ,  Rating FROM TV_series ORDER BY Rating DESC LIMIT 3
Return the number of United Airlines flights leaving from AHD Airport.
Output: SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline  =  T1.uid WHERE T1.Airline  =  "United Airlines" AND T2.SourceAirport  =  "AHD"
What major is every student who does not own a cat as a pet, and also how old are they?
Output: SELECT major ,  age FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat')
Find the number of pets whose weight is heavier than 10.
Output: SELECT count(*) FROM pets WHERE weight  >  10
How many flights depart from 'APG'?
Output: SELECT count(*) FROM FLIGHTS WHERE SourceAirport  =  "APG"
What are the Asian countries which have a population larger than that of any country in Africa?
Output: SELECT Name FROM country WHERE Continent  =  "Asia"  AND population  >  (SELECT min(population) FROM country WHERE Continent  =  "Africa")
Which grades have 4 or more high schoolers?
Output: SELECT grade FROM Highschooler GROUP BY grade HAVING count(*)  >=  4
What are the arriving date and the departing date of all the dogs?
Output: SELECT date_arrived ,  date_departed FROM Dogs
What is the weekly rank for the episode "A Love of a Lifetime"?
Output: SELECT Weekly_Rank FROM TV_series WHERE Episode = "A Love of a Lifetime"
Please show the name of the conductor that has conducted orchestras founded after 2008.
Output: SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID WHERE Year_of_Founded  >  2008
What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?
Output: SELECT t2.visitor_id ,  t1.name ,  t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id GROUP BY t2.visitor_id ORDER BY sum(t2.Total_spent) DESC LIMIT 1
What are the names and ranks of the three youngest winners across all matches?
Output: SELECT DISTINCT winner_name ,  winner_rank FROM matches ORDER BY winner_age LIMIT 3
What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?
Output: SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID  =  t2.Museum_ID WHERE t3.open_year  <  2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID  =  t2.Museum_ID WHERE t3.open_year  >  2011
How many male students (sex is 'M') are allergic to any type of food?
Output: SELECT count(*) FROM Student WHERE sex  =  "M" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  "food")
How many locations are listed in the database?
Output: SELECT count(*) FROM Ref_locations
Which job titles correspond to jobs with salaries over 9000?
Output: SELECT job_title FROM jobs WHERE min_salary  >  9000
What are the salaries and manager ids for employees who have managers?
Output: SELECT salary ,  manager_id FROM employees WHERE manager_id != "null"
Show the studios that have not produced films with director "Walter Hill".
Output: SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director  =  "Walter Hill"
What are the headquarters without companies that are in the banking industry?
Output: SELECT headquarters FROM company EXCEPT SELECT headquarters FROM company WHERE main_industry  =  'Banking'
What are the names of the top 8 countries by total invoice size and what are those sizes?
Output: SELECT billing_country ,  SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8
display the employee id and salary of all employees who report to Payam (first name).
Output: SELECT employee_id ,  salary FROM employees WHERE manager_id  =  (SELECT employee_id FROM employees WHERE first_name  =  'Payam' )
Which problems were reported by the staff named Dameon Frami or Jolie Weber? Give me the ids of the problems.
Output: SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Dameon" AND T2.staff_last_name = "Frami" UNION SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Jolie" AND T2.staff_last_name = "Weber"
What are the ids of the problems which are reported before 1978-06-26?
Output: SELECT problem_id FROM problems WHERE date_problem_reported < "1978-06-26"
Count the number of markets that have a number of cities lower than 300.
Output: SELECT count(*) FROM market WHERE Number_cities  <  300
List the top 10 customers by total gross sales. List customers' first and last name and total gross sales.
Output: SELECT T1.first_name ,  T1.last_name ,  SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10
Return the top 3 greatest support rates.
Output: SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3
What are the names of all tracks that are on playlists titled Movies?
Output: SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = "Movies"
What are the names of customers who have a savings balance lower than their checking balance, and what is the total of their checking and savings balances?
Output: SELECT T1.name ,  T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T3.balance  <  T2.balance
What are the names of all of Bob's friends?
Output: SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  'Bob'
Show the date and venue of each workshop in ascending alphabetical order of the venue.
Output: SELECT Date ,  Venue FROM workshop ORDER BY Venue
Find the customer who started a policy most recently.
Output: SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.start_date  =  (SELECT max(start_date) FROM policies)
Find the names of courses that have either 3 credits or 1 credit but 4 hours.
Output: SELECT CName FROM COURSE WHERE Credits  =  3 UNION SELECT CName FROM COURSE WHERE Credits  =  1 AND Hours  =  4
Who advises student 1004?
Output: SELECT Advisor FROM Student WHERE StuID  =  1004
Return the poll source corresponding to the candidate who has the oppose rate.
Output: SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1
Find the titles and studios of the films that are produced by some film studios that contained the word "Universal".
Output: SELECT title ,  Studio FROM film WHERE Studio LIKE "%Universal%"
What are the top 10 customers' first and last names by total number of orders and how many orders did they make?
Output: SELECT T1.first_name ,  T1.last_name ,  COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10
What are the name and assets of each company, sorted in ascending order of company name?
Output: SELECT name ,  Assets_billion FROM Companies ORDER BY name ASC
Which room has the highest base price?
Output: SELECT RoomId ,  roomName FROM Rooms ORDER BY basePrice DESC LIMIT 1
Count the number of budget codes.
Output: SELECT count(*) FROM Ref_budget_codes
What are the names and types of the companies that have ever operated a flight?
Output: SELECT T1.name ,  T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id
What are the different names of friends who are younger than the average age for a friend?
Output: SELECT DISTINCT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.age  <  (SELECT avg(age) FROM person)
What are the ids of the problems which are reported after 1978-06-26?
Output: SELECT problem_id FROM problems WHERE date_problem_reported > "1978-06-26"
What is the last name of the musician that have produced the most number of songs?
Output: SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1
Count the number of courses.
Output: SELECT count(*) FROM COURSE
Who is the youngest employee in the company? List employee's first and last name.
Output: SELECT first_name , last_name FROM employees ORDER BY birth_date DESC LIMIT 1
Show the number of projects.
Output: SELECT count(*) FROM Projects
Find the name, checking balance and savings balance of all accounts in the bank sorted by their total checking and savings balance in descending order.
Output: SELECT T2.balance ,  T3.balance ,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T2.balance + T3.balance DESC
display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M and make the result set in ascending order by department number.
Output: SELECT first_name ,  last_name ,  hire_date ,  salary ,  department_id FROM employees WHERE first_name NOT LIKE '%M%' ORDER BY department_id
Show names of pilots that have more than one record.
Output: SELECT T2.Pilot_name ,  COUNT(*) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID  =  T2.pilot_ID GROUP BY T2.Pilot_name HAVING COUNT(*)  >  1
Which building does the instructor who teaches the most number of courses live in?
Output: SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor  =  T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 1
Return the budget type codes, budget type descriptions and document ids for documents with expenses.
Output: SELECT T2.budget_type_code ,  T2.budget_type_description ,  T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code  =  T2.budget_type_code
How many engineers did each staff contact? List both the contact staff name and number of engineers contacted.
Output: SELECT T1.staff_name ,  count(*) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id  =  T2.contact_staff_id GROUP BY T1.staff_name
Count the number of distinct claim outcome codes.
Output: SELECT count(DISTINCT claim_outcome_code) FROM claims_processing
How many songs have vocals of type lead?
Output: SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE TYPE  =  "lead"
Who is the oldest person whose job is student?
Output: SELECT name FROM Person WHERE job  =  'student' AND age  =  (SELECT max(age) FROM person WHERE job  =  'student' )
What are full names and salaries of employees working in the city of London?
Output: SELECT first_name ,  last_name ,  salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN  locations AS T3 ON T2.location_id  =  T3.location_id WHERE  T3.city  =  'London'
Find the code of the location with the largest number of documents.
Output: SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count(*) DESC LIMIT 1
What is the number of days that had an average humity above 50 and an average visibility above 8?
Output: SELECT COUNT(*) FROM weather WHERE mean_humidity  >  50 AND mean_visibility_miles  >  8
List the number of invoices from Chicago, IL.
Output: SELECT COUNT(*) FROM invoices WHERE billing_city  =  "Chicago" AND billing_state  =  "IL"
Display the first name, and department number for all employees whose last name is "McEwen".
Output: SELECT first_name ,  department_id FROM employees WHERE last_name  =  'McEwen'
How many trips stated from  a station in Mountain View and ended at one in Palo Alto?
Output: SELECT count(*) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id  =  T2.start_station_id AND T2.id  =  T4.id AND T3.id  =  T4.end_station_id WHERE T1.city  =  "Mountain View" AND T3.city  =  "Palo Alto"
What is the total number of people who could stay in the modern rooms in this inn?
Output: SELECT sum(maxOccupancy) FROM Rooms WHERE decor  =  'modern'
How many different projects are there?
Output: SELECT count(DISTINCT name) FROM projects
Find all the songs that do not have a lead vocal.
Output: SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid WHERE TYPE  =  "lead"
What is the label with the most albums?
Output: SELECT label FROM albums GROUP BY label ORDER BY count(*) DESC LIMIT 1
What are the ids of the problems that are from the product "voluptatem" and are reported after 1995?
Output: SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = "voluptatem" AND T1.date_problem_reported > "1995"
What are the zip codes that have an average mean humidity below 70 and had at least 100 trips come through there?
Output: SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_humidity)  <  70 INTERSECT SELECT zip_code FROM trip GROUP BY zip_code HAVING count(*)  >=  100
Return the hosts of competitions for which the theme is not Aliens?
Output: SELECT Hosts FROM farm_competition WHERE Theme !=  'Aliens'
which gender got the highest average uncertain ratio.
Output: SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id GROUP BY t1.sex ORDER BY avg(t2.unsure_rate) DESC LIMIT 1
Show the average age for male and female students.
Output: SELECT avg(age) ,  sex FROM Student GROUP BY sex
Which problem id and log id are assigned to the staff named Rylan Homenick?
Output: SELECT DISTINCT T2.problem_id ,  T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = "Rylan" AND T1.staff_last_name = "Homenick"
Find the states which do not have any employee in their record.
Output: SELECT state_province_county FROM addresses WHERE address_id NOT IN (SELECT employee_address_id FROM Employees)
return all columns of the albums created in the year of 2012.
Output: SELECT * FROM Albums WHERE YEAR  =  2012
What are the names of the people who have no friends who are students?
Output: SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.job  =  'student'
What is the name of the youngest male?
Output: SELECT name FROM Person WHERE gender  =  'male' AND age  =  (SELECT min(age) FROM person WHERE gender  =  'male' )
What are the ids of stations that are located in San Francisco and have average bike availability above 10.
Output: SELECT id FROM station WHERE city  =  "San Francisco" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING avg(bikes_available)  >  10
What is the latitude, longitude, and city of the station from which the trip with smallest duration started?
Output: SELECT T1.lat ,  T1.long ,  T1.city FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.start_station_id ORDER BY T2.duration LIMIT 1
Find the number of people whose age is greater than all engineers.
Output: SELECT count(*) FROM Person WHERE age  >  (SELECT max(age) FROM person WHERE job  =  'engineer')
What is the first name of the band mate who perfomed in the most songs?
Output: SELECT t2.firstname FROM Performance AS t1 JOIN Band AS t2 ON t1.bandmate  =  t2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId GROUP BY firstname ORDER BY count(*) DESC LIMIT 1
Show the number of documents with document type code CV or BK.
Output: SELECT count(*) FROM All_documents WHERE document_type_code  =  "CV" OR document_type_code  =  "BK"
How many instruments does the song "Badlands" use?
Output: SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  "Badlands"
Find the name, checking balance and saving balance of all accounts in the bank.
Output: SELECT T2.balance ,  T3.balance ,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid
What is the oldest log id and its corresponding problem id?
Output: SELECT problem_log_id ,  problem_id FROM problem_log ORDER BY log_entry_date LIMIT 1
Return the dates of ceremony and the results of all music festivals
Output: SELECT Date_of_ceremony ,  RESULT FROM music_festival
Which city has the highest temperature in February?
Output: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id ORDER BY T2.Feb DESC LIMIT 1
What is the email and phone number of Astrid Gruber the customer?
Output: SELECT email ,  phone FROM customers WHERE first_name = "Astrid" AND last_name = "Gruber"
What zip codes have a station with a max temperature greater than or equal to 80 and when did it reach that temperature?
Output: SELECT date ,  zip_code FROM weather WHERE max_temperature_f  >=  80
List name of all tracks in Balls to the Wall.
Output: SELECT T2.name FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.title = "Balls to the Wall"
Find the name of accounts whose checking balance is higher than corresponding saving balance.
Output: SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T2.balance  >  T3.balance
What are the names of customers with checking balances lower than the average checking balance?
Output: SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  <  (SELECT avg(balance) FROM checking)
Return the name, rate, check in and check out date for the room with the highest rate.
Output: SELECT T2.roomName ,  T1.Rate ,  T1.CheckIn ,  T1.CheckOut FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room ORDER BY T1.Rate DESC LIMIT 1
What are the low and high estimates of film markets?
Output: SELECT Low_Estimate ,  High_Estimate FROM film_market_estimation
Find the student first and last names and grade points of all enrollments.
Output: SELECT T3.Fname ,  T3.LName ,  T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade  =  T2.lettergrade AND T1.StuID  =  T3.StuID
Show the id of each employee and the number of document destruction authorised by that employee.
Output: SELECT Destruction_Authorised_by_Employee_ID ,  count(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID
How many companies are there?
Output: SELECT count(*) FROM Companies
list all female (sex is F) candidate names in the alphabetical order.
Output: SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id WHERE t1.sex  =  'F' ORDER BY t1.name
Find the number of vocal types used in song "Demon Kitty Rag"?
Output: SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  "Demon Kitty Rag"
What are the ids, full names, and salaries for employees making more than average and who work in a department with employees who have the letter J in their first name?
Output: SELECT employee_id ,  first_name ,  last_name ,  salary FROM employees WHERE salary  >  ( SELECT AVG (salary) FROM employees ) AND department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%J%')
What are the ids of the trips that lasted the longest and how long did they last?
Output: SELECT id ,  duration FROM trip ORDER BY duration DESC LIMIT 3
What is the last name of the musicians who has played back position the most?
Output: SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id WHERE stageposition  =  "back" GROUP BY lastname ORDER BY count(*) DESC LIMIT 1
What are the songs in volumes with more than 1 week on top?
Output: SELECT Song FROM volume WHERE Weeks_on_Top  >  1
What is the average number of working horses of farms with more than 5000 total number of horses?
Output: SELECT avg(Working_Horses) FROM farm WHERE Total_Horses  >  5000
How many rooms have king beds? Report the number for each decor type.
Output: SELECT decor ,  count(*) FROM Rooms WHERE bedType = "King" GROUP BY decor
What are the full names, departments, cities, and state provinces for each employee?
Output: SELECT T1.first_name ,  T1.last_name ,  T2.department_name ,  T3.city ,  T3.state_province FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id
Find the name and id of accounts whose checking balance is below the maximum checking balance.
Output: SELECT T1.custid ,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  <  (SELECT max(balance) FROM checking)
What information is there on albums from 2010?
Output: SELECT * FROM Albums WHERE YEAR  =  2010
What are the first and last names of the customers with the 10 cheapest invoices?
Output: SELECT T1.first_name ,  T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id ORDER BY total LIMIT 10
What are the first names of all students that are not enrolled in courses?
Output: SELECT Fname FROM STUDENT WHERE StuID NOT IN (SELECT StuID FROM ENROLLED_IN)
display job title and average salary of employees.
Output: SELECT job_title ,  AVG(salary) FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id  =  T2.job_id GROUP BY T2.job_title
Find the name of account that has the lowest total checking and saving balance.
Output: SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T2.balance + T3.balance LIMIT 1
Who is the person that has no friend?
Output: SELECT name FROM person EXCEPT SELECT name FROM PersonFriend
What are the ids of all trips that had a duration as long as the average trip duration in the zip code 94103?
Output: SELECT id FROM trip WHERE duration  >=  (SELECT avg(duration) FROM trip WHERE zip_code  =  94103)
From the trip record, find the number of unique bikes.
Output: SELECT count(DISTINCT bike_id) FROM trip
Find all the male members of club "Hopkins Student Enterprises". Show the first name and last name.
Output: SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Hopkins Student Enterprises" AND t3.sex  =  "M"
What is the average age for a male in each job?
Output: SELECT avg(age) ,  job FROM Person WHERE gender  =  'male' GROUP BY job
Who has a friend that is from new york city?
Output: SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.city  =  'new york city'
Find the average age of the students who have allergies with food and animal types.
Output: SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  "food" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  "animal")
What is all the information regarding employees with salaries above the minimum and under 2500?
Output: SELECT * FROM employees WHERE salary BETWEEN (SELECT MIN(salary) FROM employees) AND 2500
Find the code of the document type "Paper".
Output: SELECT document_type_code FROM Ref_document_types WHERE document_type_name  =  "Paper"
How many rooms have a king bed?
Output: SELECT count(*) FROM Rooms WHERE bedType  =  "King"
Find the name of the first 5 customers.
Output: SELECT customer_name FROM Customers ORDER BY date_became_customer LIMIT 5
Which cities have lower temperature in March than in Dec and have never served as host cities?
Output: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city
For the problem with id 10, return the ids and dates of its problem logs.
Output: SELECT problem_log_id ,  log_entry_date FROM problem_log WHERE problem_id = 10
What are the average profits of companies?
Output: SELECT avg(Profits_billion) FROM Companies
Who are the friends of Bob?
Output: SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T1.name  =  'Bob'
What are the main industries of the companies without gas stations and what are the companies?
Output: SELECT company ,  main_industry FROM company WHERE company_id NOT IN (SELECT company_id FROM station_company)
What are the different pilot names who had piloted a flight in the country 'United States' or in the airport named 'Billund Airport'?
Output: SELECT DISTINCT T2.pilot FROM airport AS T1 JOIN flight AS T2 ON T1.id  =  T2.airport_id WHERE T1.country  =  'United States' OR T1.name  =  'Billund Airport'
What are the job titles, and range of salaries for jobs with maximum salary between 12000 and 18000?
Output: SELECT job_title ,  max_salary - min_salary FROM jobs WHERE max_salary BETWEEN 12000 AND 18000
Find the number of matches in different competitions.
Output: SELECT count(*) ,  Competition FROM MATCH GROUP BY Competition
What are the days that had the smallest temperature range, and what was that range?
Output: SELECT date ,  max_temperature_f - min_temperature_f FROM weather ORDER BY max_temperature_f - min_temperature_f LIMIT 1
Which employees have either destroyed a document or made an authorization to do so? Return their employee ids.
Output: SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed UNION SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed
Show the statement id and the statement detail for the statement with most number of accounts.
Output: SELECT T1.statement_id ,  T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id  =  T2.statement_id GROUP BY T1.statement_id ORDER BY count(*) DESC LIMIT 1
Find the name of persons who are friends with Alice for the shortest years.
Output: SELECT name FROM PersonFriend WHERE friend =  'Alice' AND YEAR  =  (SELECT min(YEAR) FROM PersonFriend WHERE friend =  'Alice')
What is the checking balance of the account whose owner’s name contains the substring ‘ee’?
Output: SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T1.name LIKE '%ee%'
How many albums does Billy Cobham has?
Output: SELECT count(*) FROM albums AS T1 JOIN artists AS T2 ON  T1.artist_id = T2.id WHERE T2.name = "Billy Cobham"
Which cities have served as host cities more than once? Return me their GDP and population.
Output: SELECT t1.gdp ,  t1.Regional_Population FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city GROUP BY t2.Host_City HAVING count(*)  >  1
How many unique labels are there for albums?
Output: SELECT count(DISTINCT label) FROM albums
Find the different first names and cities of the students who have allergy to milk or cat.
Output: SELECT DISTINCT T1.fname ,  T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid  =  T2.stuid WHERE T2.Allergy  =  "Milk" OR T2.Allergy  =  "Cat"
For each station, find its latitude and the minimum duration of trips that ended at the station.
Output: SELECT T1.name ,  T1.lat ,  min(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.end_station_id GROUP BY T2.end_station_id
Find the checking balance and saving balance in the Brown’s account.
Output: SELECT T2.balance ,  T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T1.name  =  'Brown'
Find the starting date and ending data in location for the document named "Robin CV".
Output: SELECT T1.date_in_location_from ,  T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id  =  T2.document_id WHERE T2.document_name  =  "Robin CV"
Which skill is used in fixing the most number of faults? List the skill id and description.
Output: SELECT T1.skill_id ,  T1.skill_description FROM Skills AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.skill_id  =  T2.skill_id GROUP BY T1.skill_id ORDER BY count(*) DESC LIMIT 1
Return the maximum support rate, minimum consider rate, and minimum oppose rate across all candidates?
Output: SELECT max(support_rate) ,  min(consider_rate) ,  min(oppose_rate) FROM candidate
What is the the phone number of Nancy Edwards?
Output: SELECT phone FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards"
What is the average number of votes of representatives from party "Republican"?
Output: SELECT avg(T1.Votes) FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID WHERE T2.Party  =  "Republican"
What are the naems of all the projects, and how many scientists were assigned to each of them?
Output: SELECT count(*) ,  T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project GROUP BY T1.name
What are the job ids and dates of hire for employees hired after November 5th, 2007 and before July 5th, 2009?
Output: SELECT job_id ,  hire_date FROM employees WHERE hire_date BETWEEN '2007-11-05' AND '2009-07-05'
Which friend of Zach has the longest-lasting friendship?
Output: SELECT friend FROM PersonFriend WHERE name =  'Zach' AND YEAR  =  (SELECT max(YEAR) FROM PersonFriend WHERE name =  'Zach')
What is the first and last name of the employee who reports to Nancy Edwards?
Output: SELECT T2.first_name , T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = "Nancy" AND T1.last_name = "Edwards"
Find the name of the candidates whose oppose percentage is the lowest for each sex.
Output: SELECT t1.name ,  t1.sex ,  min(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id GROUP BY t1.sex
display the average salary of employees for each department who gets a commission percentage.
Output: SELECT department_id ,  AVG(salary) FROM employees WHERE commission_pct != "null" GROUP BY department_id
display the ID for those employees who did two or more jobs in the past.
Output: SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*)  >= 2
Which buildings have more than one company offices? Give me the building names.
Output: SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id GROUP BY T1.building_id HAVING COUNT(*)  >  1
display the country ID and number of cities for each country.
Output: SELECT country_id ,  COUNT(*) FROM locations GROUP BY country_id
Which part fault requires the most number of skills to fix? List part id and name.
Output: SELECT T1.part_id ,  T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id  =  T2.part_id JOIN Skills_Required_To_Fix AS T3 ON T2.part_fault_id  =  T3.part_fault_id GROUP BY T1.part_id ORDER BY count(*) DESC LIMIT 1
Find the ids of the employees who does not work in those departments where some employees works whose manager id within the range 100 and 200.
Output: SELECT * FROM employees WHERE department_id NOT IN (SELECT department_id FROM departments WHERE manager_id BETWEEN 100 AND 200)
List the id, country, city and name of the airports ordered alphabetically by the name.
Output: SELECT id ,  country ,  city ,  name FROM airport ORDER BY name
How many trips did not end in San Francisco?
Output: SELECT count(*) FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id  =  T2.id WHERE T2.city != "San Francisco"
How long does track Fast As a Shark has?
Output: SELECT milliseconds FROM tracks WHERE name = "Fast As a Shark"
Find all the songs performed by artist with last name "Heilo"
Output: SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T2.Lastname  =  "Heilo"
Which events id does not have any participant with detail 'Kenyatta Kuhn'?
Output: SELECT event_id FROM EVENTS EXCEPT SELECT T1.event_id FROM Participants_in_Events AS T1 JOIN Participants AS T2 ON T1.Participant_ID  =  T2.Participant_ID WHERE Participant_Details  =  'Kenyatta Kuhn'
What are the full names of faculty members who are a part of department 520?
Output: SELECT T1.Fname ,  T1.Lname FROM FACULTY AS T1 JOIN MEMBER_OF AS T2 ON T1.FacID  =  T2.FacID WHERE T2.DNO  =  520
On which day and in which zip code was the min dew point lower than any day in zip code 94107?
Output: SELECT date ,  zip_code FROM weather WHERE min_dew_point_f  <  (SELECT min(min_dew_point_f) FROM weather WHERE zip_code  =  94107)
Find the ids and names of stations from which at least 200 trips started.
Output: SELECT start_station_id ,  start_station_name FROM trip GROUP BY start_station_name HAVING COUNT(*)  >=  200
What are the id of each employee and the number of document destroyed by that employee?
Output: SELECT Destroyed_by_Employee_ID ,  count(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID
Which claim processing stage has the most claims? Show the claim status name.
Output: SELECT t2.claim_status_name FROM claims_processing AS t1 JOIN claims_processing_stages AS t2 ON t1.claim_stage_id  =  t2.claim_stage_id GROUP BY t1.claim_stage_id ORDER BY count(*) DESC LIMIT 1
Show the theme for exhibitions with both records of an attendance below 100 and above 500.
Output: SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  <  100 INTERSECT SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  >  500
What are all the fault descriptions and the fault status of all the faults recoreded in the logs?
Output: SELECT T1.fault_description ,  T2.fault_status FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id  =  T2.fault_log_entry_id
What are the ages of all of Zach's friends who are in the longest relationship?
Output: SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name =  'Zach' AND T2.year  =  (SELECT max(YEAR) FROM PersonFriend WHERE name =  'Zach')
Find the checking balance of the accounts whose savings balance is higher than the average savings balance.
Output: SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T1.name IN (SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  >  (SELECT avg(balance) FROM savings))
What are the names of studios that have produced films with both Nicholas Meyer and Walter Hill?
Output: SELECT Studio FROM film WHERE Director  =  "Nicholas Meyer" INTERSECT SELECT Studio FROM film WHERE Director  =  "Walter Hill"
Which building has the largest number of company offices? Give me the building name.
Output: SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1
How many assets can each parts be used in? List the part name and the number.
Output: SELECT T1.part_name ,  count(*) FROM Parts AS T1 JOIN Asset_Parts AS T2 ON T1.part_id  =  T2.part_id GROUP BY T1.part_name
What is the maximum and minimum grade point of students who live in NYC?
Output: SELECT max(T2.gradepoint) ,  min(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade  =  T2.lettergrade AND T1.StuID  =  T3.StuID WHERE T3.city_code  =  "NYC"
Find the number of distinct stages in claim processing.
Output: SELECT count(*) FROM claims_processing_stages
List the states where both the secretary of 'Treasury' department and the secretary of 'Homeland Security' were born.
Output: SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id  =  T2.department_id JOIN head AS T3 ON T2.head_id  =  T3.head_id WHERE T1.name  =  'Treasury' INTERSECT SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id  =  T2.department_id JOIN head AS T3 ON T2.head_id  =  T3.head_id WHERE T1.name  =  'Homeland Security'
Give me the start station and end station for the trips with the three oldest id.
Output: SELECT start_station_name ,  end_station_name FROM trip ORDER BY id LIMIT 3
How many vocal types are used in the song "Le Pop"?
Output: SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  "Le Pop"
List the authors who do not have submission to any workshop.
Output: SELECT Author FROM submission WHERE Submission_ID NOT IN (SELECT Submission_ID FROM acceptance)
In which country does Roberto Almeida?
Output: SELECT country FROM customers WHERE first_name = "Roberto" AND last_name = "Almeida"
What are the names of customers with accounts, and what are the total savings balances for each?
Output: SELECT sum(T2.balance) ,  T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid GROUP BY T1.name
Who are the friends of Alice that are doctors?
Output: SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T2.name  =  'Alice' AND T1.gender  =  'male' AND T1.job  =  'doctor'
What are the product ids for the problems reported by Christop Berge with closure authorised by Ashley Medhurst?
Output: SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Christop" AND T2.staff_last_name = "Berge" INTERSECT SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.closure_authorised_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Ashley" AND T2.staff_last_name = "Medhurst"
Show the details of all trucks in the order of their license number.
Output: SELECT truck_details FROM trucks ORDER BY truck_licence_number
Please list support, consider, and oppose rates for each candidate in ascending order by unsure rate.
Output: SELECT Support_rate ,  Consider_rate ,  Oppose_rate FROM candidate ORDER BY unsure_rate
Return names of songs in volumes that are by artists that are at least 32 years old.
Output: SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.age  >=  32
For each city, list their names in decreasing order by their highest station latitude.
Output: SELECT city FROM station GROUP BY city ORDER BY max(lat) DESC
How many friends does Dan have?
Output: SELECT count(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T1.name  =  'Dan'
For each product which has problems, what are the number of problems and the product id?
Output: SELECT count(*) ,  T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_id
Which service id and type has the least number of participants?
Output: SELECT T3.service_id ,  T4.Service_Type_Code FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID  =  T2.Participant_ID JOIN EVENTS AS T3 ON T2.Event_ID   =  T3.Event_ID JOIN services AS T4 ON T3.service_id  =  T4.service_id GROUP BY T3.service_id ORDER BY count(*) ASC LIMIT 1
What are the maximum and minumum grade points?
Output: SELECT max(gradepoint) ,  min(gradepoint) FROM GRADECONVERSION
Display the first and last name, and salary for those employees whose first name is ending with the letter m.
Output: SELECT first_name ,  last_name ,  salary FROM employees WHERE first_name LIKE '%m'
Show all artist names and the number of exhibitions for each artist.
Output: SELECT T2.name ,  count(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id GROUP BY T1.artist_id
How many orders does Luca Mancini have in his invoices?
Output: SELECT count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini"
Find the names of accounts whose checking balance is above the average checking balance, but savings balance is below the average savings balance.
Output: SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  >  (SELECT avg(balance) FROM checking) INTERSECT SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  <  (SELECT avg(balance) FROM savings)
On what dates were employees without the letter M in their first names hired?
Output: SELECT hire_date FROM employees WHERE first_name NOT LIKE '%M%'
For each player, show the team and the location of school they belong to.
Output: SELECT T1.Team ,  T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID  =  T2.School_ID
Count the members of the club "Tennis Club".
Output: SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Tennis Club"
What is all the job history info done by employees earning a salary greater than or equal to 12000?
Output: SELECT * FROM  job_history AS T1 JOIN employees AS T2 ON T1.employee_id  =  T2.employee_id WHERE T2.salary  >=  12000
What are the course names for courses taught on MTW?
Output: SELECT CName FROM COURSE WHERE Days  =  "MTW"
Count the total number of clubs.
Output: SELECT count(*) FROM club
Show the location name for document "Robin CV".
Output: SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id  =  T2.document_id JOIN Ref_locations AS T3 ON T2.location_code  =  T3.location_code WHERE T1.document_name  =  "Robin CV"
How many females are in the network?
Output: SELECT count(*) FROM Person WHERE gender  =  'female'
Find all the female members of club "Bootup Baltimore". Show the first name and last name.
Output: SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Bootup Baltimore" AND t3.sex  =  "F"
Count the number of courses with more than 2 credits.
Output: SELECT count(*) FROM COURSE WHERE Credits  >  2
How many assets does each third party company supply? List the count and the company id.
Output: SELECT count(*) ,  T1.company_id FROM Third_Party_Companies AS T1 JOIN Assets AS T2 ON T1.company_id  =  T2.supplier_company_id GROUP BY T1.company_id
What are the names of customers who do not have any policies?
Output: SELECT customer_details FROM customers EXCEPT SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id  =  t2.customer_id
How many animal type allergies exist?
Output: SELECT count(*) FROM Allergy_type WHERE allergytype  =  "animal"
List the company name and rank for all companies in the decreasing order of their sales.
Output: SELECT company ,  rank FROM company ORDER BY Sales_billion DESC
What is the name and sex of the candidate with the highest support rate?
Output: SELECT t1.name ,  t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id ORDER BY t2.support_rate DESC LIMIT 1
Which vocal type did the musician with last name "Heilo" played in the song with title "Der Kapitan"?
Output: SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid JOIN band AS T3 ON T1.bandmate  =  T3.id WHERE T3.lastname  =  "Heilo" AND T2.title  =  "Der Kapitan"
What are the different main industries for all companies?
Output: SELECT DISTINCT main_industry FROM company
What are the different album labels listed?
Output: SELECT DISTINCT label FROM Albums
Provide the full names of employees earning more than the employee with id 163.
Output: SELECT first_name ,  last_name FROM employees WHERE salary  >  (SELECT salary FROM employees WHERE employee_id = 163 )
Find the first name and last name and department id for those employees who earn such amount of salary which is the smallest salary of any of the departments.
Output: SELECT first_name ,  last_name ,  department_id FROM employees WHERE salary IN (SELECT MIN(salary) FROM employees GROUP BY department_id)
Find the name of all the clubs at "AKW".
Output: SELECT clubname FROM club WHERE clublocation  =  "AKW"
Find all members of "Bootup Baltimore" whose major is "600". Show the first name and last name.
Output: SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Bootup Baltimore" AND t3.major  =  "600"