MikeXydas/qr2t_benchmark huggingface dataset:
Table: ref_product_categories
Question: What is the product category description and unit of measurement of category "Herbs"?
SQL query:
SELECT product_category_description, unit_of_measure, product_category_code 
 FROM ref_product_categories 
 WHERE product_category_code = 'Herbs'
Result:
,unit_of_measure,product_category_code,product_category_description
0,Handful             ,Herbs,Herbs

Answer: The product category description of the product with category code Herbs, is Herbs and the its unit of measure is Handful
Table: INVESTORS
Question: Find the number of investors in total.
SQL query:
SELECT COUNT(*) AS "count of INVESTORS" 
 FROM INVESTORS
Result:
,count of INVESTORS
0,20

Answer: The count of investors is 20.
Table: musical
Question: Show the musical nominee with award "Bob Fosse" or "Cleavant Derricks".
SQL query:
SELECT Nominee, Award 
 FROM musical 
 WHERE Award = 'Tony Award' OR Award = 'Cleavant Derricks'
Result:
,Award,Nominee
0,Tony Award,Bob Fosse

Answer: Bob Fosse was nominated at the Tony Awards.
Table: tryout
Question: Which college has any student who is a goalie and succeeded in the tryout.
SQL query:
SELECT cName, pPos, decision 
 FROM tryout 
 WHERE decision = 'yes' AND pPos = 'goalie'
Result:
,pPos,cName,decision
0,goalie,ASU,yes

Answer: The student from college ASU succeeded the tryouts for the goalie position.
Table: party
Question: Show all ministers who do not belong to Progress Party.
SQL query:
SELECT minister, party_name 
 FROM party 
 WHERE party_name <> 'Progress Party'
Result:
,Minister,Party_name
0,Dr. Kwame Nkrumah (MP),Convention Peoples Party

Answer: The minister is named Dr. Kwame Nkrumah (MP) and he is in the Convention Peoples Party.
Table: farm
Question: How many farms are there?
SQL query:
SELECT COUNT(*) AS "count of farm" 
 FROM farm
Result:
,count of farm
0,8

Answer: There are 8 farms
Table: campuses
Question: How many campuses exist are in the county of LA?
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: There are 5 campuses in the county of LA
Table: Ref_Document_Types
Question: What document type codes do we have?
SQL query:
SELECT document_type_code 
 FROM Ref_Document_Types
Result:
,document_type_code
0,CD

Answer: The document's type code is CD.
Table: weekly_weather
Question: show the lowest low temperature and highest wind speed in miles per hour.
SQL query:
SELECT MIN(low_temperature) AS "minimum low_temperature", MAX(wind_speed_mph) AS "maximum wind_speed_mph" 
 FROM weekly_weather
Result:
,maximum wind_speed_mph,minimum low_temperature
0,24,46

Answer: The lowest low temperature is 46 and the highest wind speed in miles per hour is 24
Table: Course_Authors_and_Tutors, Courses
Question: Find the login name of the course author that teaches the course with name "advanced database".
SQL query:
SELECT T1.login_name AS "Course_Authors_and_Tutors login_name", T2.course_name AS "Courses course_name" 
 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id 
 WHERE T2.course_name = 'advanced database'
Result:
,Courses course_name,Course_Authors_and_Tutors login_name
0,advanced database,al75

Answer: The course advanced database has an author with the login name al75.
Table: Rooms
Question: What are the number of rooms for each bed type?
SQL query:
SELECT bedType, COUNT(*) AS "count of Rooms" 
 FROM Rooms 
 GROUP BY bedType
Result:
,bedType,count of Rooms
0,Double,2

Answer: There are two rooms with a double bed
Table: employees, departments, locations
Question: display those employees who contain a letter z to their first name and also display their last name, city.
SQL query:
SELECT T1.first_name AS "employees first_name", T1.last_name AS "employees last_name", T3.city AS "locations city" 
 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 T1.first_name LIKE '%z%'
Result:
,locations city,employees last_name,employees first_name
0,South San Francisco,Atkinson,Mozhe

Answer: The employee named Mozhe Atkinson is in the South San Francisco city.
Table: city
Question: Please give me a list of cities whose regional population is over 10000000.
SQL query:
SELECT city, regional_population 
 FROM city 
 WHERE regional_population > 10000000
Result:
,City,Regional_Population
0,Shanghai,23019148

Answer: The city of Shanghai has 23019148 regional population.
Table: Catalog_Contents
Question: Which catalog contents has price above 700 dollars? Show their catalog entry names and capacities.
SQL query:
SELECT catalog_entry_name, capacity, price_in_dollars 
 FROM Catalog_Contents 
 WHERE price_in_dollars > 700
Result:
,capacity,price_in_dollars,catalog_entry_name
0,6,745.02,Vimto

Answer: The catalog contents, which their price is above 700 dollars,  are Vimto and their capacities are 6 respectively.
Table: invoices
Question: Find the invoice numbers which are 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 with number 4 was created in 1985-04-27 08:38:49.
Table: Rating, Movie
Question: What are the movie titles with the highest average rating and what are those ratings?
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 movie Snow White has an id of 106 and 4.5 average stars.
Table: artist
Question: What are the names of all male British artists?
SQL query:
SELECT artist_name, gender, country 
 FROM artist 
 WHERE country = 'UK' AND gender = 'Male'
Result:
,gender,country,artist_name
0,Male,UK,Michel

Answer: Michel is a male artist from United Kingdom.
Table: APPELLATIONS
Question: How many appelations are in Napa Country?
SQL query:
SELECT COUNT(*) AS "count of APPELLATIONS", County 
 FROM APPELLATIONS 
 WHERE County = 'Napa'
Result:
,County,count of APPELLATIONS
0,Napa,11

Answer: There are 11 appelations in Napa Country
Table: Rooms
Question: What are the bed type and name of all the rooms with traditional decor?
SQL query:
SELECT roomName, bedType, decor 
 FROM Rooms 
 WHERE decor = 'traditional'
Result:
,decor,bedType,roomName
0,traditional,King,Interim but salutary

Answer: The room named Interim but salutary has a King bed type and its decor is traditional.
Table: Claims
Question: What is total amount claimed summed across all the claims?
SQL query:
SELECT SUM(Amount_Claimed) AS "sum of Amount_Claimed" 
 FROM Claims
Result:
,sum of Amount_Claimed
0,775458

Answer: The sum of amount claimed is 775458.
Table: Document_Types
Question: Which document type is described with the prefix 'Initial'?
SQL query:
SELECT document_type_code, document_description 
 FROM Document_Types 
 WHERE document_description LIKE 'Initial%'
Result:
,document_type_code,document_description
0,APP,Initial Application

Answer: The document with code APP has the description 'Initial Application'.
Table: station, trip
Question: What is the latitude, longitude, and city of the station from which the trip with smallest duration started?
SQL query:
SELECT T1.lat AS "station lat", T1.long AS "station long", T1.city AS "station city", T2.duration AS "trip duration" 
 FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id ORDER BY T2.duration
Result:
,station lat,station city,station long,trip duration
0,37.776617,San Francisco,-122.39526000000001,61

Answer: The station in the city of San Francisco has a latitude of 37.776617, a longitude of -122.39526000000001 and the trip duration is 61.
Table: classroom
Question: What are the room numbers and corresponding buildings for classrooms which can seat between 50 to 100 students?
SQL query:
SELECT building, room_number, capacity 
 FROM classroom 
 WHERE capacity BETWEEN 50 AND 100
Result:
,building,capacity,room_number
0,Nassau,92,45

Answer: The room with number 45 of the Nassau building has a capacity of 92.
Table: faculty, campuses
Question: What is the number of faculty at Long Beach State University in 2002?
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 = 2002 AND T2.campus = 'Long Beach State University'
Result:
,Faculty,faculty year,campuses campus
0,1429.0,2002,Long Beach State University

Answer: Long Beach State University had 1429 staff members in 2002
Table: employees
Question: What is the title, phone number and hire date for the employee named Nancy Edwards?
SQL query:
SELECT title, phone, hire_date, last_name, first_name 
 FROM employees 
 WHERE first_name = 'Nancy' AND last_name = 'Edwards'
Result:
,phone,title,hire_date,last_name,first_name
0,+1 (403) 262-3443,Sales Manager,2002-05-01 00:00:00,Edwards,Nancy

Answer: The employee Nancy Edwards has the phone +1 (403) 262-3443, she is a Sales Manager and was hired in 2002-05-01 00:00:00.
Table: store
Question: How many stores are there?
SQL query:
SELECT COUNT(*) AS "count of store" 
 FROM store
Result:
,count of store
0,0

Answer: There are 0 stores
Table: stock
Question: What is the average quantity of stocks?
SQL query:
SELECT AVG(Quantity) AS "average Quantity" 
 FROM stock
Result:
,average Quantity
0,110.875

Answer: The average quantity of stocks is 110.875.
Table: university
Question: What are the schools that were either founded before 1850 or are public?
SQL query:
SELECT school, founded, affiliation 
 FROM university 
 WHERE founded > 1850 OR affiliation = 'Public'
Result:
,School,Founded,Affiliation
0,University of Delaware,1743.0,Public

Answer: The University of Delaware was founded in 1743 and its affiliation is public.
Table: music_festival
Question: Return the categories of music festivals that have the result "Awarded".
SQL query:
SELECT Category, RESULT 
 FROM music_festival 
 WHERE RESULT = 'Awarded'
Result:
,Result,Category
0,Awarded,Best Song

Answer: The category Best Song has the result awarded.
Table: school
Question: Count the number of schools.
SQL query:
SELECT COUNT(*) AS "count of school" 
 FROM school
Result:
,count of school
0,6

Answer: There are 6 schools.
Table: employees
Question: What are the full names of employees who with in department 70 or 90?
SQL query:
SELECT first_name, last_name, department_id 
 FROM employees 
 WHERE department_id = 70 OR department_id = 90
Result:
,LAST_NAME,FIRST_NAME,DEPARTMENT_ID
0,King,Steven,90

Answer: The first and last names of the employees of department with id 90 are Steven King
Table: enzyme, medicine_enzyme_interaction, medicine
Question: What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'?
SQL query:
SELECT T1.name AS "enzyme name", T2.interaction_type AS "medicine_enzyme_interaction interaction_type", T3.name AS "medicine name" 
 FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id = T3.id 
 WHERE T3.name = 'Amisulpride' AND T2.interaction_type = 'inhibitor'
Result:
,enzyme name,medicine name,medicine_enzyme_interaction interaction_type
0,ALA synthase,Amisulpride,inhibitor

Answer: The medicine Amisulpride contains the enzyme ALA synthase, which can serve as an inhibitor.
Table: stadium
Question: Which stadium name contains the substring "Bank"?
SQL query:
SELECT name 
 FROM stadium 
 WHERE name LIKE '%Bank%'
Result:
,name
0,Bank of America Stadium

Answer: The name is Bank of America Stadium.
Table: dorm
Question: What is the student capacity and type of gender for the dorm whose name as the phrase Donor in it?
SQL query:
SELECT student_capacity, gender, dorm_name 
 FROM dorm 
 WHERE dorm_name LIKE '%Donor%'
Result:
,gender,dorm_name,student_capacity
0,F,Anonymous Donor Hall,128

Answer: The dorm named Anonymous Donor Hall with gender F has a student capacity of 128.
Table: Guests
Question: Sort the gender codes in descending order of their corresponding number of guests. Return both the gender codes and counts.
SQL query:
SELECT gender_code, COUNT(*) AS "count of Guests" 
 FROM Guests 
 GROUP BY gender_code ORDER BY COUNT(*) DESC
Result:
,gender_code,count of Guests
0,Female,9

Answer: There were 9 female guests.
Table: Student
Question: What are the full names of all students
SQL query:
SELECT Fname, Lname 
 FROM Student
Result:
,Fname,LName
0,Linda,Smith

Answer: The student's name is Linda Smith.
Table: track
Question: Show the name and location for all tracks.
SQL query:
SELECT name, LOCATION 
 FROM track
Result:
,Name,Location
0,Auto Club Speedway,"Fontana, CA"

Answer: The track named Auto Club Speedway is located in Fontana, CA.
Table: CHARACTERISTICS
Question: Count the number of characteristics.
SQL query:
SELECT COUNT(*) AS "count of CHARACTERISTICS" 
 FROM CHARACTERISTICS
Result:
,count of CHARACTERISTICS
0,15

Answer: There are 15 characteristics.
Table: campuses
Question: What are the campuses that opened in 1958?
SQL query:
SELECT campus, YEAR 
 FROM campuses 
 WHERE YEAR = 1958
Result:
,Year,Campus
0,1958,California State University-Northridge

Answer: The campus California State University-Northridge open in 1958
Table: Aircraft
Question: How many aircrafts exist in the database?
SQL query:
SELECT COUNT(*) AS "count of Aircraft" 
 FROM Aircraft
Result:
,count of Aircraft
0,16

Answer: There are 16 aircrafts.
Table: STUDENT
Question: Find the maximum age of all the students.
SQL query:
SELECT MAX(Age) AS "maximum Age" 
 FROM STUDENT
Result:
,maximum Age
0,27

Answer: The maximum age of all the students is 27.
Table: city, county_public_safety
Question: What are the names of cities, as well as the names of the counties they correspond to?
SQL query:
SELECT T1.Name AS "city Name", T2.Name AS "county_public_safety Name" 
 FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID
Result:
,city Name,county_public_safety Name
0,Adjuntas,Abbotsford

Answer: The city of Adjuntas corresponds to the county of Abbotsford
Table: enroll, student, CLASS
Question: What is the average GPA of students taking ACCT-211?
SQL query:
SELECT AVG(T2.stu_gpa) AS "average stu_gpa", T3.crs_code AS "CLASS crs_code" 
 FROM enroll AS T1 JOIN student AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T1.class_code = T3.class_code 
 WHERE T3.crs_code = 'ACCT-211'
Result:
,CLASS crs_code,average stu_gpa
0,ACCT-211,3.0549999999999997

Answer: The average GPA of students taking ACCT-211 is 3.0549999999999997
Table: city, county_public_safety
Question: What are the white percentages of cities, and the corresponding crime rates of the counties they correspond to?
SQL query:
SELECT T1.White AS "city White", T2.Crime_rate AS "county_public_safety Crime_rate" 
 FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID
Result:
,city White,county_public_safety Crime_rate
0,93.1,118.0

Answer: The white percentage is 93.1 and the crime rate is 118.
Table: wrestler
Question: Which locations are shared by more than two wrestlers?
SQL query:
SELECT LOCATION 
 FROM wrestler 
 GROUP BY LOCATION 
 HAVING COUNT(*) > 2
Result:
,Location
0,"Tijuana , Mexico"

Answer: Tijuana, Mexica is a location shared by more than two wrestlers.
Table: projects
Question: Find the total hours of all projects.
SQL query:
SELECT SUM(hours) AS "sum of hours" 
 FROM projects
Result:
,sum of hours
0,20183

Answer: The sum of hours of all projects is 20183
Table: Behavior_Incident
Question: What are the start and end dates for incidents with incident type code "NOISE"?
SQL query:
SELECT date_incident_start, date_incident_end, incident_type_code 
 FROM Behavior_Incident 
 WHERE incident_type_code = 'NOISE'
Result:
,date_incident_end,incident_type_code,date_incident_start
0,2018-03-08 14:08:54,NOISE,2017-07-09 10:04:13

Answer: Incidents with type code NOISE started in 2017-07-09 10:04:13 and ended in 2018-03-08 14:08:54.
Table: races
Question: What are the names of all races held between 2009 and 2011?
SQL query:
SELECT name, YEAR 
 FROM races 
 WHERE YEAR BETWEEN 2009 AND 2011
Result:
,name,year
0,Australian Grand Prix,2009

Answer: Australian Grand Prix was held in 2009.
Table: technician
Question: What is the team with at least 2 technicians?
SQL query:
SELECT Team 
 FROM technician 
 GROUP BY Team 
 HAVING COUNT(*) >= 2
Result:
,Team
0,CLE

Answer: Team CLE has at least 2 technicians
Table: player, tryout
Question: Find the name and college of students whose decisions are yes in the tryout.
SQL query:
SELECT T1.pName AS "player pName", T2.cName AS "tryout cName", T2.decision AS "tryout decision" 
 FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID 
 WHERE T2.decision = 'yes'
Result:
,player pName,tryout cName,tryout decision
0,Andrew,ASU,yes

Answer: The player named Andrew has tryout decision yes and tryout name ASU.
Table: Ref_document_types
Question: Find the code of the document type "Paper".
SQL query:
SELECT document_type_code, document_type_name 
 FROM Ref_document_types 
 WHERE document_type_name = 'Paper'
Result:
,Document_Type_Code,Document_Type_Name
0,PR,Paper

Answer: The code of the document type "Paper" is "PR"
Table: employees
Question: What is all the information about employees hired before June 21, 2002?
SQL query:
SELECT * 
 FROM employees 
 WHERE hire_date < '2002-06-21'
Result:
,EMAIL,JOB_ID,SALARY,HIRE_DATE,LAST_NAME,FIRST_NAME,MANAGER_ID,EMPLOYEE_ID,PHONE_NUMBER,DEPARTMENT_ID,COMMISSION_PCT
0,SKING,AD_PRES,24000,1987-06-17,King,Steven,0,100,515.123.4567,90,0

Answer: Steven King was hired on 1987-06-17, his email is SKING, his job id is AD_PRES, his salary is 24000, his manager_id is 0, employee id is 100, department id is 90 and his phone is 515.123.4567
Table: Restaurant
Question: What is the rating of the restaurant Subway?
SQL query:
SELECT Rating, ResName 
 FROM Restaurant 
 WHERE ResName = 'Subway'
Result:
,Rating,ResName
0,3,Subway

Answer: The Subway restaurant has a rating of 3.
Table: region
Question: Count the number of regions.
SQL query:
SELECT COUNT(*) AS "count of region" 
 FROM region
Result:
,count of region
0,5

Answer: The number of regions is 5
Table: driver
Question: List names for drivers from Hartford city and younger than 40.
SQL query:
SELECT name, age, home_city 
 FROM driver 
 WHERE home_city = 'Hartford' AND age < 40
Result:
,Age,Name,Home_city
0,36,Douglas McCrory,Hartford

Answer: The driver Douglas McCroy is from Hartford and 36 years old.
Table: player, player_college, college
Question: What is the average height of the players from the college named 'Yale University'?
SQL query:
SELECT AVG(T1.height) AS "average height", T3.name_full AS "college name_full" 
 FROM player AS T1 JOIN player_college AS T2 ON T1.player_id = T2.player_id JOIN college AS T3 ON T3.college_id = T2.college_id 
 WHERE T3.name_full = 'Yale University'
Result:
,average height,college name_full
0,59.13559322033898,Yale University

Answer: The average height of players from Yale University is 59.13
Table: Accounts
Question: What are the other account details for the account with the name 338?
SQL query:
SELECT other_account_details, account_name 
 FROM Accounts 
 WHERE account_name = '338'
Result:
,account_name,other_account_details
0,338,Regular

Answer: The account with name 338 has other account details Regular.
Table: products
Question: How many products have prices of at least 180?
SQL query:
SELECT COUNT(*) AS "count of products", price 
 FROM products 
 WHERE price >= 180
Result:
,Price,count of products
0,240,5

Answer: There are 5 products with a price of 240.
Table: song
Question: What are the names of all songs in English?
SQL query:
SELECT song_name, languages 
 FROM song 
 WHERE languages = 'english'
Result:
,languages,song_name
0,english,My love

Answer: Song "My love" is in english.
Table: Employee
Question: How many employees have salary between 100000 and 200000?
SQL query:
SELECT COUNT(*) AS "count of Employee", salary 
 FROM Employee 
 WHERE salary BETWEEN 100000 AND 200000
Result:
,salary,count of Employee
0,120433,7

Answer: 7 employees have a salary of 120433
Table: circuits
Question: What are the names of all the circuits that are in the UK or Malaysia?
SQL query:
SELECT name, country 
 FROM circuits 
 WHERE country = 'UK' OR country = 'Malaysia'
Result:
,name,country
0,Sepang International Circuit,Malaysia

Answer: The Sepang International Circuit is in Malaysia
Table: products
Question: Select the names and the prices of all the products in the store.
SQL query:
SELECT name, price 
 FROM products
Result:
,Name,Price
0,Hard drive,240

Answer: The prices for the products Hard drive are 240 respectively
Table: election, representative
Question: What are the lifespans of representatives in descending order of vote percent?
SQL query:
SELECT T2.Lifespan AS "representative Lifespan", Vote_Percent 
 FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY Vote_Percent DESC
Result:
,Vote_Percent,representative Lifespan
0,19.5,1918–

Answer: Representatives with lifespan 1918– have a vote percent of 19.5.
Table: company
Question: Show the names of companies in the banking or retailing industry?
SQL query:
SELECT Name, Industry 
 FROM company 
 WHERE Industry = 'Banking' OR Industry = 'Retailing'
Result:
,Name,Industry
0,JPMorgan Chase,Banking

Answer: The company JPMorgan Chase in the banking industry.
Table: CUSTOMERS
Question: Find the phone number and email address of customer "Harold".
SQL query:
SELECT Customer_Phone, Customer_Email_Address, Customer_Name 
 FROM CUSTOMERS 
 WHERE Customer_Name = 'Harold'
Result:
,Customer_Name,Customer_Phone,Customer_Email_Address
0,Harold,624-096-7791,jerde.harmon@example.com

Answer: The phone number of the customer with name Harold is 624-096-7791 and the email is jerde.harmon@example.com
Table: station
Question: List the name and the number of stations for all the cities that have at least 15 stations.
SQL query:
SELECT city, COUNT(*) AS "count of station" 
 FROM station 
 GROUP BY city 
 HAVING COUNT(*) >= 15
Result:
,city,count of station
0,San Francisco,35

Answer: The city of San Francisco has 35 stations.
Table: acceptance, submission
Question: For each submission, find its author and acceptance result.
SQL query:
SELECT T2.Author AS "submission Author", T1.Result AS "acceptance Result" 
 FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID
Result:
,acceptance Result,submission Author
0,Accepted,Sammy Green

Answer: The submission author Sammy Green was accepted.
Table: Staff
Question: What is the date of birth for the staff member named Janessa 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: Janessa Sawayn was born on 2010-12-08 16:55:14.
Table: gymnast
Question: Count the number of gymnasts.
SQL query:
SELECT COUNT(*) AS "count of gymnast" 
 FROM gymnast
Result:
,count of gymnast
0,7

Answer: There are 7 gymnasts.
Table: All_documents
Question: What is the date when the document "Marry CV" was stored?
SQL query:
SELECT date_stored, Document_name 
 FROM All_documents 
 WHERE Document_name = 'Marry CV'
Result:
,Date_Stored,Document_Name
0,1986-10-14 17:53:39,Marry CV

Answer: The document "Marry CV" was stored on 1986-10-14 17:53:39
Table: College
Question: What is the total enrollment number of all colleges?
SQL query:
SELECT SUM(enr) AS "sum of enr" 
 FROM College
Result:
,sum of enr
0,71000

Answer: The total enrollment number of all colleges is 71000
Table: journalist
Question: What are the nationalities and ages of journalists?
SQL query:
SELECT Nationality, Age 
 FROM journalist
Result:
,Age,Nationality
0,37,England

Answer: The age is 37 and the nationality is England.
Table: airlines
Question: What is the total number of airlines?
SQL query:
SELECT COUNT(*) AS "count of airlines" 
 FROM airlines
Result:
,count of airlines
0,6162

Answer: The total number of airlines is 6162