MikeXydas/qr2t_benchmark huggingface dataset:
Table: customers, complaints
Question: Return the phone number of the customer who filed the complaint that was raised most recently.
SQL query:
SELECT t1.phone_number AS "customers phone_number", t2.date_complaint_raised AS "complaints date_complaint_raised" 
 FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.date_complaint_raised DESC
Result:
,customers phone_number,complaints date_complaint_raised
0,+38(3)9011433816,2007-10-14 21:50:43

Answer: The customer with phone number +38(3)9011433816 raised a complaint in 2007-10-14 21:50:43.
Table: Employee
Question: What is average and maximum salary of all employees.
SQL query:
SELECT AVG(salary) AS "average salary", MAX(salary) AS "maximum salary" 
 FROM Employee
Result:
,average salary,maximum salary
0,109915.3870967742,289950.0

Answer: The average salary is 109915.3870967742 and the maximum salary is 289950.
Table: people, candidate
Question: list all female (sex is F) candidate names in the alphabetical order.
SQL query:
SELECT t1.name AS "people name", t1.sex AS "people sex" 
 FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id 
 WHERE t1.sex = 'F' ORDER BY t1.name
Result:
,people sex,people name
0,F,Stéphane Antiga

Answer: Stéphane Antiga is a female.
Table: party
Question: Who are the lieutenant governor and comptroller from the democratic party?
SQL query:
SELECT Lieutenant_Governor, Comptroller, Party 
 FROM party 
 WHERE Party = 'Democratic'
Result:
,Party,Comptroller,Lieutenant_Governor
0,Democratic,Carl McCall,Sandra Frankel

Answer: The lieutenant governor is Sandra Frankel and the comptroller is Carl McCall from the democratic party
Table: Movie
Question: How many movies were made before 2000?
SQL query:
SELECT COUNT(*) AS "count of Movie", YEAR 
 FROM Movie 
 WHERE YEAR < 2000
Result:
,year,count of Movie
0,1939,7

Answer: There were 7 movies in 1939.
Table: customer_addresses, premises
Question: Show the premise type and address type code for all customer addresses.
SQL query:
SELECT T2.premises_type AS "premises premises_type", T1.address_type_code AS "customer_addresses address_type_code" 
 FROM customer_addresses AS T1 JOIN premises AS T2 ON T1.premise_id = T2.premise_id
Result:
,premises premises_type,customer_addresses address_type_code
0,Warehouse,Billing

Answer: A customer address has a Warehouse premise type and a Billing address type code.
Table: stay, patient, Prescribes, Medication
Question: Find the name of medication used on the patient who stays in room 111?
SQL query:
SELECT T4.name AS "Medication name", room 
 FROM stay AS T1 JOIN patient AS T2 ON T1.Patient = T2.SSN JOIN Prescribes AS T3 ON T3.Patient = T2.SSN JOIN Medication AS T4 ON T3.Medication = T4.Code 
 WHERE room = 111
Result:
,Room,Medication name
0,111,Procrastin-X

Answer: Procrastin-X is the medication used on the patient of room 111.
Table: party
Question: What are the themes and locations of parties?
SQL query:
SELECT Party_Theme, LOCATION 
 FROM party
Result:
,Location,Party_Theme
0,Hemkade 48 Zaandam,Spring

Answer: The party with Spring party theme is located in Hemkade 48 Zaandam
Table: manufacturers
Question: Who is the founders of companies whose first letter is S?
SQL query:
SELECT founder, name 
 FROM manufacturers 
 WHERE name LIKE 'S%'
Result:
,Name,Founder
0,Sony,Andy

Answer: Andy is the founder of Soy.
Table: artist
Question: Count the number of artists who are older than 46 and joined after 1990.
SQL query:
SELECT COUNT(*) AS "count of artist", age, year_join 
 FROM artist 
 WHERE age > 46 AND year_join > 1990
Result:
,Age,Year_Join,count of artist
0,47,1993,3

Answer: There are 3 artists that joined in 1993 and are 47 years old.
Table: journalist
Question: What is the average number of years spent working as a journalist?
SQL query:
SELECT AVG(Years_working) AS "average Years_working" 
 FROM journalist
Result:
,average Years_working
0,8.0

Answer: The average number of years spent working as a journalist is 8
Table: on_call
Question: What nurses are on call with block floor 1 and block code 1? Tell me their names.
SQL query:
SELECT nurse, blockcode, blockfloor 
 FROM on_call 
 WHERE blockfloor = 1 AND blockcode = 1
Result:
,Nurse,BlockCode,BlockFloor
0,101,1,1

Answer: The nurse 101 is on call with block floor 1 and block code 1.
Table: candidate
Question: find the highest support percentage, lowest consider rate and oppose rate of all candidates.
SQL query:
SELECT MAX(support_rate) AS "maximum support_rate", MIN(consider_rate) AS "minimum consider_rate", MIN(oppose_rate) AS "minimum oppose_rate" 
 FROM candidate
Result:
,minimum oppose_rate,maximum support_rate,minimum consider_rate
0,0.32,0.33,0.2

Answer:  The highest support percentage is 0.33, while the lowest oppose and consider percentages are 0.32 and 0.2, respectively.
Table: mountain
Question: Return the countries of the mountains that have a height larger than 5000.
SQL query:
SELECT Country, Height 
 FROM mountain 
 WHERE Height > 5000
Result:
,Height,Country
0,5895.0,Tanzania

Answer: The country with a mountain that has a height larger than 5000 is Tanzania and the mountain's height is 5895
Table: farm_competition
Question: What are the hosts of competitions whose theme is not "Aliens"?
SQL query:
SELECT Hosts, Theme 
 FROM farm_competition 
 WHERE Theme <> 'Aliens'
Result:
,Hosts,Theme
0,Miley Cyrus Jared Leto and Karen Mok,Carnival M is back!

Answer: The hosts of the farm competition with theme Carnival M is back! are Miley Cyrus Jared Leto and Karen Mok.
Table: campuses
Question: How many campuses are there in Los Angeles county?
SQL query:
SELECT COUNT(*) AS "count of campuses", county 
 FROM campuses 
 WHERE county = 'Los Angeles'
Result:
,County,count of campuses
0,Los Angeles,5

Answer: The county of Los Angeles has 5 campuses.
Table: captain
Question: What are the names, classes, and ranks of all captains?
SQL query:
SELECT name, CLASS, rank 
 FROM captain
Result:
,Name,Rank,Class
0,Captain Sir Henry Langford,Midshipman,Third-rate ship of the line

Answer: The captain named Captain Sir Henry Langford is ranked as Midshipman and has a class of Third-rate ship of the line
Table: DEPARTMENT
Question: What are the phones of departments in Room 268?
SQL query:
SELECT DPhone, Room 
 FROM DEPARTMENT 
 WHERE Room = 268
Result:
,Room,DPhone
0,268,7117

Answer: Room 268 has the phone 7117.
Table: authors, authorship, papers
Question: Who is the author of the paper titled "Binders Unbound"? Give me the last name.
SQL query:
SELECT t1.lname AS "authors lname", t3.title AS "papers title" 
 FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid 
 WHERE t3.title = 'Binders Unbound'
Result:
,papers title,authors lname
0,Binders Unbound,Weirich

Answer: The paper Binders Unbound was authored by Weirich.
Table: available_policies
Question: Find the policy type used by more than 4 customers.
SQL query:
SELECT policy_type_code 
 FROM available_policies 
 GROUP BY policy_type_code 
 HAVING COUNT(*) > 4
Result:
,policy_type_code
0,Mortgage Insurance

Answer: More than 4 customers have the Mortage Insurance policy
Table: film
Question: What are the title and director of each film?
SQL query:
SELECT title, directed_by 
 FROM film
Result:
,Title,Directed_by
0,The Case of the Mystery Weekend,Bill Schreiner

Answer: The film with title The Case of the Mystery Weekend was directed by Bill Schreiner.
Table: Document_locations
Question: What are the codes of the locations with at least three documents?
SQL query:
SELECT location_code 
 FROM Document_locations 
 GROUP BY location_code 
 HAVING COUNT(*) >= 3
Result:
,Location_Code
0,b

Answer: The location with the code b has at least three documents.
Table: departments
Question: What is all the information about the Marketing department?
SQL query:
SELECT * 
 FROM departments 
 WHERE department_name = 'Marketing'
Result:
,MANAGER_ID,LOCATION_ID,DEPARTMENT_ID,DEPARTMENT_NAME
0,201,1800,20,Marketing

Answer: The Marketing department has department ID 20, location ID 1800 and manager ID 201
Table: Staff
Question: What is the birthday of the staff member with first name as Janessa and last name as Sawayn?
SQL query:
SELECT date_of_birth, last_name, first_name 
 FROM Staff 
 WHERE first_name = 'Janessa' AND last_name = 'Sawayn'
Result:
,last_name,first_name,date_of_birth
0,Sawayn,Janessa,2010-12-08 16:55:14

Answer: The staff named Janessa Sawayn was born in 2010-12-08 16:55:14.
Table: invoices
Question: What are the names of the top 8 countries by total invoice size and what are those sizes?
SQL query:
SELECT billing_country, SUM(total) AS "sum of total" 
 FROM invoices 
 GROUP BY billing_country ORDER BY SUM(total) DESC
Result:
,sum of total,billing_country
0,523.0600000000003,USA

Answer: USA has a total invoice of 523.0600000000003
Table: artist
Question: Return the average and minimum ages across artists from the United States.
SQL query:
SELECT AVG(age) AS "average age", MIN(age) AS "minimum age", country 
 FROM artist 
 WHERE country = 'United States'
Result:
,Country,average age,minimum age
0,United States,49.6,46

Answer: The average age of artists if the US is 49.6 and the minimum age is 46
Table: enzyme
Question: What is the maximum Online Mendelian Inheritance in Man (OMIM) value of the enzymes?
SQL query:
SELECT MAX(OMIM) AS "maximum OMIM" 
 FROM enzyme
Result:
,maximum OMIM
0,606938

Answer: The maximum OMIM is 606938.
Table: Employees
Question: What are the name, role code, and date of birth of the employee named 'Armani'?
SQL query:
SELECT employee_name, role_code, date_of_birth, employee_Name 
 FROM Employees 
 WHERE employee_Name = 'Armani'
Result:
,Role_Code,Date_of_Birth,Employee_Name
0,ED,1988-12-08 06:13:33,Armani

Answer: The employee named Armani was born in 1988-12-08 06:13:33 and his role code is ED.
Table: projects
Question: What are the names of projects that require between 100 and 300 hours?
SQL query:
SELECT name, hours 
 FROM projects 
 WHERE hours BETWEEN 100 AND 300
Result:
,Name,Hours
0,Winds: Studying Bernoullis Principle,156

Answer: The project Winds: Studying Bernoullis Principle requires 156 hours.
Table: products
Question: How many products are there under the category "Seeds"?
SQL query:
SELECT COUNT(*) AS "count of products", product_category_code 
 FROM products 
 WHERE product_category_code = 'Seeds'
Result:
,count of products,product_category_code
0,5,Seeds

Answer: There are 5 products under the category "Seeds"
Table: people, candidate
Question: What is the name and sex of the candidate with the highest support rate?
SQL query:
SELECT t1.name AS "people name", t1.sex AS "people sex", t2.support_rate AS "candidate support_rate" 
 FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id ORDER BY t2.support_rate DESC
Result:
,people sex,people name,candidate support_rate
0,M,Vincent Montméat,0.33

Answer: The name of the candidate is Vincent Montméat, the sex is male and and the support rate is 0.33
Table: accounts, checking, savings
Question: Find the name of account that has the lowest total checking and saving balance.
SQL query:
SELECT T1.name AS "accounts name", T2.balance AS "checking balance", T3.balance AS "savings balance" 
 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
Result:
,accounts name,savings balance,checking balance
0,Porter,240.0,77.0

Answer: The account named Porter has a total checking balance of 77 and saving balance of 240
Table: Rooms
Question: What is the total number of rooms available in this inn?
SQL query:
SELECT COUNT(*) AS "count of Rooms" 
 FROM Rooms
Result:
,count of Rooms
0,10

Answer: There are 10 available rooms in this inn
Table: course, SECTION
Question: Find the building, room number, semester and year of all courses offered by Psychology department sorted by course titles.
SQL query:
SELECT T2.building AS "SECTION building", T2.room_number AS "SECTION room_number", T2.semester AS "SECTION semester", T2.year AS "SECTION year", T1.title AS "course title", T1.dept_name AS "course dept_name" 
 FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id 
 WHERE T1.dept_name = 'Psychology' ORDER BY T1.title
Result:
,SECTION year,course title,SECTION building,SECTION semester,course dept_name,SECTION room_number
0,2008,Animal Behavior,Nassau,Spring,Psychology,45

Answer: The course titled Animal Behavior was offered in 2008 in the Nassau building, room 45, in the spring semester on the department of psychology.
Table: festival_detail
Question: What is the average number of audience for festivals?
SQL query:
SELECT AVG(Num_of_Audience) AS "average Num_of_Audience" 
 FROM festival_detail
Result:
,average Num_of_Audience
0,157.6

Answer: The average number of audience festivals is 157.6
Table: artwork
Question: How many artworks are there?
SQL query:
SELECT COUNT(*) AS "count of artwork" 
 FROM artwork
Result:
,count of artwork
0,9

Answer: There are 9 artworks.
Table: WINE
Question: What are the names of wines with scores higher than 90?
SQL query:
SELECT Name, score 
 FROM WINE 
 WHERE score > 90
Result:
,Name,Score
0,Old Kraft Vineyard,93

Answer: The wine named Old Kraft Vineyard has a score of 93
Table: district
Question: What is the total number of residents for the districts with the 3 largest areas?
SQL query:
SELECT SUM(city_population) AS "sum of city_population", city_area 
 FROM district ORDER BY city_area DESC
Result:
,City_Area,sum of city_population
0,20.0,7478157.0

Answer: The population of the city with area 20 is 7478157.
Table: Customers_cards
Question: How many customer cards are there?
SQL query:
SELECT COUNT(*) AS "count of Customers_cards" 
 FROM Customers_cards
Result:
,count of Customers_cards
0,15

Answer: The customer cards count to 15
Table: employees
Question: List the full name (first and last name), and salary for those employees who earn below 6000.
SQL query:
SELECT first_name, last_name, salary 
 FROM employees 
 WHERE salary < 6000
Result:
,SALARY,LAST_NAME,FIRST_NAME
0,4800,Austin,David

Answer: David Austin receives a salary of 4800
Table: SportsInfo, Student
Question: Find the last and first name of students who are playing Football or Lacrosse.
SQL query:
SELECT T2.lname AS "Student lname", T2.fname AS "Student fname", T1.SportName AS "SportsInfo SportName" 
 FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID 
 WHERE T1.SportName = 'Football' OR T1.SportName = 'Lacrosse'
Result:
,Student fname,Student lname,SportsInfo SportName
0,Tracy,Kim,Football

Answer: The student Tracy Kim plays the sport football.
Table: list
Question: Find the last names of students studying in room 111.
SQL query:
SELECT lastname, classroom 
 FROM list 
 WHERE classroom = 111
Result:
,LastName,Classroom
0,DANESE,111

Answer: Danese's studying room is classroom 111.
Table: Employees
Question: Show all role codes with at least 3 employees.
SQL query:
SELECT role_code 
 FROM Employees 
 GROUP BY role_code 
 HAVING COUNT(*) >= 3
Result:
,Role_Code
0,ED

Answer: The role code ED has at least 3 employees.
Table: ROLES
Question: Find the name and description of the role with code "MG".
SQL query:
SELECT role_name, role_description, role_code 
 FROM ROLES 
 WHERE role_code = 'MG'
Result:
,Role_Code,Role_Name,Role_Description
0,MG,Manager,Vero harum corrupti odit ipsa vero et odio. Iste et recusandae temporibus maxime. Magni aspernatur fugit quis explicabo totam esse corrupti.

Answer: The role with code "MG" is the role of Manager. Its description is "Vero harum corrupti odit ipsa vero et odio. Iste et recusandae temporibus maxime. Magni aspernatur fugit quis explicabo totam esse corrupti."
Table: Course_Authors_and_Tutors
Question: What are the login names and family names of course author and tutors?
SQL query:
SELECT login_name, family_name 
 FROM Course_Authors_and_Tutors
Result:
,login_name,family_name
0,jmckenzie,Grant

Answer: The person with family name "Grant" has login name "jmckenzie"
Table: campuses
Question: Which university is in Los Angeles county and opened after 1950?
SQL query:
SELECT campus, YEAR, county 
 FROM campuses 
 WHERE county = 'Los Angeles' AND YEAR > 1950
Result:
,Year,Campus,County
0,1960,California State University-Dominguez Hills,Los Angeles

Answer: The campus California State University-Dominguez Hills in Los Angeles county opened in 1960.
Table: Video_games
Question: What type of game is Call of Destiny?
SQL query:
SELECT gtype, gname 
 FROM Video_games 
 WHERE gname = 'Call of Destiny'
Result:
,GName,GType
0,Call of Destiny,Frist-person shooter

Answer: The game Call of Destiny has a type of Frist-person shooter.
Table: station
Question: How many stations does Mountain View city has?
SQL query:
SELECT COUNT(*) AS "count of station", city 
 FROM station 
 WHERE city = 'Mountain View'
Result:
,city,count of station
0,Mountain View,7

Answer: There are 7 stations in the Mountain View city.
Table: list
Question: What are the last names of students in room 111?
SQL query:
SELECT lastname, classroom 
 FROM list 
 WHERE classroom = 111
Result:
,LastName,Classroom
0,DANESE,111

Answer: The classroom of the student "DANESE" is room 111.
Table: employees
Question: How many employees are living in Canada?
SQL query:
SELECT COUNT(*) AS "count of employees", country 
 FROM employees 
 WHERE country = 'Canada'
Result:
,country,count of employees
0,Canada,8

Answer: There are 8 employees that live in Canada.
Table: Sportsinfo
Question: What is the total number of all football games played by scholarship students?
SQL query:
SELECT SUM(gamesplayed) AS "sum of gamesplayed", sportname, onscholarship 
 FROM Sportsinfo 
 WHERE sportname = 'Football' AND onscholarship = 'Y'
Result:
,SportName,OnScholarship,sum of gamesplayed
0,Football,Y,38

Answer: There are 38 football games played by students on scholarship.
Table: club
Question: Count the number of clubs located at "HHH".
SQL query:
SELECT COUNT(*) AS "count of club", clublocation 
 FROM club 
 WHERE clublocation = 'HHH'
Result:
,ClubLocation,count of club
0,HHH,1

Answer: There is 1 club located at HHH.
Table: policies
Question: Which types of policy are chosen by more than 2 customers? Give me the policy type codes.
SQL query:
SELECT policy_type_code 
 FROM policies 
 GROUP BY policy_type_code 
 HAVING COUNT(*) > 2
Result:
,Policy_Type_Code
0,Deputy

Answer: The policy''s type code is Deputy.
Table: products
Question: Show the product type codes which have at least two products.
SQL query:
SELECT product_type_code 
 FROM products 
 GROUP BY product_type_code 
 HAVING COUNT(*) >= 2
Result:
,product_type_code
0,Clothes

Answer: The product type code Clothes has at least two products.
Table: Rating, Movie
Question: Find the title and star rating of the movie that got the least rating star for each reviewer.
SQL query:
SELECT T2.title AS "Movie title", T1.rID AS "Rating rID", T1.stars AS "Rating stars", MIN(T1.stars) AS "minimum stars" 
 FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID 
 GROUP BY T1.rID
Result:
,Rating rID,Movie title,Rating stars,minimum stars
0,201,Gone with the Wind,2,2

Answer: The movie title is Gone with the Wind, the star rating is 2 and the minimum stars are 2
Table: invoices
Question: What are the invoice numbers created before 1989-09-03 or after 2007-12-25?
SQL query:
SELECT invoice_number, invoice_date 
 FROM invoices 
 WHERE invoice_date < '1989-09-03' OR invoice_date > '2007-12-25'
Result:
,invoice_date,invoice_number
0,1985-04-27 08:38:49,4

Answer: The invoice number is 4 and the invoice date is 1985-04-27 08:38:49
Table: settlements
Question: Find the maximum and minimum settlement amount.
SQL query:
SELECT MAX(settlement_amount) AS "maximum settlement_amount", MIN(settlement_amount) AS "minimum settlement_amount" 
 FROM settlements
Result:
,maximum settlement_amount,minimum settlement_amount
0,9814.39,1588.45

Answer: The maximum settlement amount is 9814.39 and the minimum settlement amount is 1588.45.
Table: GENRE
Question: List the names of all music genres.
SQL query:
SELECT Name 
 FROM GENRE
Result:
,Name
0,Rock

Answer: One of the music genres is Rock
Table: addresses
Question: For which countries are there more than four distinct addresses listed?
SQL query:
SELECT country 
 FROM addresses 
 GROUP BY country 
 HAVING COUNT(address_id) > 4
Result:
,country
0,USA

Answer: The USA country.
Table: election, party
Question: Find the parties associated with the delegates from district 1 or 2. Who served as comptrollers of the parties?
SQL query:
SELECT T2.Comptroller AS "party Comptroller", T1.District AS "election District" 
 FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID 
 WHERE T1.District = 1 OR T1.District = 2
Result:
,election District,party Comptroller
0,1,Carl McCall

Answer: For the election district 1 the party comptroller was Carl McCall.
Table: technician
Question: How many technicians are there?
SQL query:
SELECT COUNT(*) AS "count of technician" 
 FROM technician
Result:
,count of technician
0,10

Answer: There are 10 technicians
Table: musical
Question: How many musicals has each nominee been nominated for?
SQL query:
SELECT Nominee, COUNT(*) AS "count of musical" 
 FROM musical 
 GROUP BY Nominee
Result:
,Nominee,count of musical
0,Bob Fosse,5

Answer: Bob Fosse was nominated for 5 musicals.
Table: Person
Question: What is average age for different job title?
SQL query:
SELECT AVG(age) AS "average age", job 
 FROM Person 
 GROUP BY job
Result:
,job,average age
0,doctor,45.0

Answer: The average age of doctors is 45
Table: enzyme
Question: List the names and the locations that the enzymes can make an effect.
SQL query:
SELECT name, LOCATION 
 FROM enzyme
Result:
,name,Location
0,ALA synthase,Mitochondrion

Answer: The ALA syntase enzyme is located in the mitochondrion
Table: faculty, campuses
Question: How many faculty lines are there in "San Francisco State University" in year 2004?
SQL query:
SELECT faculty, T1.year AS "faculty year", T2.campus AS "campuses campus" 
 FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id 
 WHERE T1.year = 2004 AND T2.campus = 'San Francisco State University'
Result:
,Faculty,faculty year,campuses campus
0,1083.3,2004,San Francisco State University

Answer: The San Francisco State University campus had 1083.3 faculty in 2004.
Table: Companies
Question: How many companies are in either "Banking" industry or "Conglomerate" industry?
SQL query:
SELECT COUNT(*) AS "count of Companies", Industry 
 FROM Companies 
 WHERE Industry = 'Banking' OR Industry = 'Conglomerate'
Result:
,Industry,count of Companies
0,Banking,10

Answer: In Banking industry there are 10 companies
Table: Rating, Movie
Question: Find the movies with the highest average rating. Return the movie titles and average rating.
SQL query:
SELECT T2.title AS "Movie title", AVG(T1.stars) AS "average stars", T1.mID AS "Rating mID" 
 FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID 
 GROUP BY T1.mID ORDER BY AVG(T1.stars) DESC
Result:
,Rating mID,Movie title,average stars
0,106,Snow White,4.5

Answer: The title of the movie with the highest average rating is Snow White and the average rating is 4.5
Table: enzyme
Question: What is the product, chromosome, and porphyria of the enzymes located at 'Cytosol'?
SQL query:
SELECT product, chromosome, porphyria, LOCATION 
 FROM enzyme 
 WHERE LOCATION = 'Cytosol'
Result:
,Product,Location,Porphyria,Chromosome
0,Porphobilinogen,Cytosol,ALA-Dehydratase deficiency,9q34

Answer: The enzyme located in Cytosol has product Porphobilinogen, Porphyria	ALA-Dehydratase deficiency and Chromosome	9q34
Table: STUDENT
Question: Show the advisors of the students whose city of residence has city code "BAL".
SQL query:
SELECT Advisor, city_code 
 FROM STUDENT 
 WHERE city_code = 'BAL'
Result:
,Advisor,city_code
0,1121,BAL

Answer: The advisors of the students with value 1121 have a city of residence that has city code BAL
Table: Products_for_hire
Question: What are the daily hire costs for the products with substring 'Book' in its name?
SQL query:
SELECT daily_hire_cost, product_name 
 FROM Products_for_hire 
 WHERE product_name LIKE '%Book%'
Result:
,product_name,daily_hire_cost
0,Book collection C,26.15

Answer: The product named Book collection C has a daily hire cost 26.15.