MikeXydas/qr2t_benchmark huggingface dataset:
Table: web_client_accelerator
Question: What are the name and os of web client accelerators that do not work with only a 'Broadband' type connection?
SQL query:
SELECT name, operating_system, CONNECTION 
 FROM web_client_accelerator 
 WHERE CONNECTION <> 'Broadband'
Result:
,name,Connection,Operating_system
0,CACHEbox,"Broadband, Satellite, Wireless, Fiber, DSL",Appliance (Linux)

Answer: CACHEbox has connection Broadband, Satellite, Wireless, Fiber, DSL and operating system Appliance (Linux).
Table: wrestler
Question: What are the names and location of the wrestlers?
SQL query:
SELECT Name, LOCATION 
 FROM wrestler
Result:
,Name,Location
0,Rey Misterio Sr.,"Tijuana , Mexico"

Answer: The name of the wrestler is Rey Misterio Sr. and the location is Tijuana , Mexico
Table: salary, player
Question: How much did the the player with first name Len and last name Barker earn between 1985 to 1990 in total?
SQL query:
SELECT SUM(T1.salary) AS "sum of salary", T2.name_last AS "player name_last", T1.year AS "salary year", T2.name_first AS "player name_first" 
 FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id 
 WHERE T2.name_first = 'Len' AND T2.name_last = 'Barker' AND T1.year BETWEEN 1985 AND 1990
Result:
,salary year,sum of salary,player name_last,player name_first
0,1985,3612500,Barker,Len

Answer: Barker Len in 1985 had a total salary of 3612500.
Table: park
Question: How many parks are there in the state of NY?
SQL query:
SELECT COUNT(*) AS "count of park", state 
 FROM park 
 WHERE state = 'NY'
Result:
,state,count of park
0,NY,40

Answer: There are 40 parks in the state of NY
Table: accounts, savings
Question: What is the total balance of savings accounts not belonging to someone with the name Brown?
SQL query:
SELECT SUM(T2.balance) AS "sum of balance", T1.name AS "accounts name" 
 FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid 
 WHERE T1.name <> 'Brown'
Result:
,accounts name,sum of balance
0,Wang,1000310299.0

Answer: The accounts under the name Wang have a total balance of 1000310299
Table: Aircraft
Question: Show name and distance for all aircrafts.
SQL query:
SELECT name, distance 
 FROM Aircraft
Result:
,name,distance
0,Boeing 747-400,8430

Answer: The distance of aircraft Boeing 747-400 is 8430.
Table: address
Question: What is the phone number and postal code of the address 1031 Daugavpils Parkway?
SQL query:
SELECT phone, postal_code, address 
 FROM address 
 WHERE address = '1031 Daugavpils Parkway'
Result:
,phone,address,postal_code
0,107137400143,1031 Daugavpils Parkway,59025

Answer: Address 1031 Daugavpils Parkway has the phone number 107137400143 and the postal code 59025.
Table: invoices
Question: What is the number of invoices and total money billed in them from CA?
SQL query:
SELECT billing_state, COUNT(*) AS "count of invoices", SUM(total) AS "sum of total" 
 FROM invoices 
 WHERE billing_state = 'CA'
Result:
,sum of total,billing_state,count of invoices
0,115.85999999999997,CA,21

Answer: For the state of CA there are 21 invoices with a sum of 115.85999999999997.
Table: albums
Question: List every album's title.
SQL query:
SELECT title 
 FROM albums
Result:
,title
0,For Those About To Rock We Salute You

Answer: One of the available albums is "For Those About To Rock We Salute You"
Table: county_public_safety
Question: Return the minimum and maximum crime rates across all counties.
SQL query:
SELECT MIN(Crime_rate) AS "minimum Crime_rate", MAX(Crime_rate) AS "maximum Crime_rate" 
 FROM county_public_safety
Result:
,maximum Crime_rate,minimum Crime_rate
0,178.0,49.0

Answer: The maximum crime rate across all counties is 178 and the minimum is 49
Table: club
Question: Find the location of the club "Pen and Paper Gaming".
SQL query:
SELECT clublocation, clubname 
 FROM club 
 WHERE clubname = 'Pen and Paper Gaming'
Result:
,ClubName,ClubLocation
0,Pen and Paper Gaming,HHH

Answer: The club with name Pen and Paper Gaming is located in HHH
Table: people, perpetrator
Question: What is the total kills of the perpetrators with height more than 1.84.
SQL query:
SELECT SUM(T2.Killed) AS "sum of Killed", T1.Height AS "people Height" 
 FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID 
 WHERE T1.Height > 1.84
Result:
,people Height,sum of Killed
0,6.4,163.0

Answer: There were 163 people totally killed with height 6.4.
Table: ship
Question: Return the flag that is most common among all ships.
SQL query:
SELECT flag 
 FROM ship 
 GROUP BY flag ORDER BY COUNT(*) DESC
Result:
,Flag
0,Panama

Answer: The flag of Panama
Table: customers
Question: What are lines 1 and 2 of the addressed of the customer with the email "vbogisich@example.org"?
SQL query:
SELECT address_line_1, address_line_2, email_address 
 FROM customers 
 WHERE email_address = 'vbogisich@example.org'
Result:
,email_address,address_line_1,address_line_2
0,vbogisich@example.org,72144 Katlynn Flat Suite 512,Suite 959

Answer: The address line 1 of the customer with email address vbogisich@example.org is 72144 Katlynn Flat Suite 512 and the address line 2 is Suite 959
Table: Aircraft
Question: How many aircrafts have distance between 1000 and 5000?
SQL query:
SELECT COUNT(*) AS "count of Aircraft", distance 
 FROM Aircraft 
 WHERE distance BETWEEN 1000 AND 5000
Result:
,distance,count of Aircraft
0,3383,9

Answer: 9 aircrafts have a distance of 3383
Table: races, results
Question: What is the average fastest lap speed for races held after 2004, for each race, ordered by year?
SQL query:
SELECT AVG(T2.fastestlapspeed) AS "average fastestlapspeed", T1.name AS "races name", T1.year AS "races year" 
 FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid 
 WHERE T1.year > 2014 
 GROUP BY T1.name ORDER BY T1.year
Result:
,races name,races year,average fastestlapspeed
0,Abu Dhabi Grand Prix,2015,184.10512903225808

Answer: The Abu Dhabi Grand Prix race, held in 2015, had an average fastest lap speed of 184.10512903225808.
Table: Course_Authors_and_Tutors
Question: List the addresses of all the course authors or tutors.
SQL query:
SELECT address_line_1 
 FROM Course_Authors_and_Tutors
Result:
,address_line_1
0,"756 Monahan Mews
Spinkashire, NJ 64230-5098"

Answer: There is a course author or tutor that lives in 756 Monahan Mews Spinkashire, NJ 64230-5098.
Table: Documents
Question: Count the number of documents.
SQL query:
SELECT COUNT(*) AS "count of Documents" 
 FROM Documents
Result:
,count of Documents
0,15

Answer: The number of documents is 15.
Table: pilot
Question: What are the name of pilots aged 25 or older?
SQL query:
SELECT Name, Age 
 FROM pilot 
 WHERE Age >= 25
Result:
,Age,Name
0,25,Ayana Spencer

Answer: The pilot named Ayana Spencer is 25 years old.
Table: documents
Question: Return the type code of the document named "David CV".
SQL query:
SELECT document_type_code, document_name 
 FROM documents 
 WHERE document_name = 'David CV'
Result:
,document_name,document_type_code
0,David CV,CV

Answer: The document with name David CV has a document type code of CV
Table: roller_coaster
Question: What are the lengths and heights of roller coasters?
SQL query:
SELECT LENGTH, Height 
 FROM roller_coaster
Result:
,Height,Length
0,96.0,3236.0

Answer: The lengths of roller coasters are 3236 and their heights are 96
Table: Course_Authors_and_Tutors, Courses
Question: Find the names of courses taught by the tutor who has personal name "Julio".
SQL query:
SELECT T2.course_name AS "Courses course_name", T1.personal_name AS "Course_Authors_and_Tutors personal_name" 
 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id 
 WHERE T1.personal_name = 'Julio'
Result:
,Courses course_name,Course_Authors_and_Tutors personal_name
0,Japanese,Julio

Answer: The Japanese's course author and tutor has personal name Julio.
Table: captain
Question: Which rank is the most common among captains?
SQL query:
SELECT rank 
 FROM captain 
 GROUP BY rank ORDER BY COUNT(*) DESC
Result:
,Rank
0,Midshipman

Answer: The most common rank among captains is Midshipman
Table: body_builder, people
Question: What are the birth date and birth place of the body builder with the highest total points?
SQL query:
SELECT T2.Birth_Date AS "people Birth_Date", T2.Birth_Place AS "people Birth_Place", T1.Total AS "body_builder Total" 
 FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC
Result:
,people Birth_Date,body_builder Total,people Birth_Place
0,"January 1, 1992",317.5,"Port Huron, Michigan"

Answer: The are totally 317.5 body builders that were born in January 1, 1992 in Port Huron, Michigan.
Table: Drama_Workshop_Groups
Question: What are the store names of drama workshop groups?
SQL query:
SELECT Store_Name 
 FROM Drama_Workshop_Groups
Result:
,Store_Name
0,Amely Cafe

Answer: The store name is Amely Cafe
Table: GENRE, TRACK
Question: Find the average unit price of tracks from the Rock genre.
SQL query:
SELECT AVG(T2.UnitPrice) AS "average UnitPrice", T1.Name AS "GENRE Name" 
 FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId 
 WHERE T1.Name = 'Rock'
Result:
,GENRE Name,average UnitPrice
0,Rock,0.9900000000000079

Answer: The genre of rock has an average unit price of 0.9900000000000079.
Table: tryout, player
Question: Which colleges does each player with a name that starts with the letter D  who tried out go to?
SQL query:
SELECT T1.cName AS "tryout cName", T2.pName AS "player pName" 
 FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID 
 WHERE T2.pName LIKE 'D%'
Result:
,player pName,tryout cName
0,David,ASU

Answer: The player named David tried out for ASU
Table: users
Question: List all the username and passwords of users with the most popular role.
SQL query:
SELECT user_name, password, role_code 
 FROM users 
 GROUP BY role_code ORDER BY COUNT(*) DESC
Result:
,password,role_code,user_name
0,9bc25a040d5647ced5ec32e1a455e90fafc10bcb,DBA,tremblay.raheem

Answer: The user named tremblay.raheem has role code value of DBA and their password is 9bc25a040d5647ced5ec32e1a455e90fafc10bcb
Table: Allergy_type, Has_allergy, Student
Question: What are the allergies the girl named Lisa has? And what are the types of them? Order the result by allergy names.
SQL query:
SELECT T1.Allergy AS "Allergy_type Allergy", T1.AllergyType AS "Allergy_type AllergyType", T3.Fname AS "Student Fname" 
 FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID 
 WHERE T3.Fname = 'Lisa' ORDER BY T1.Allergy
Result:
,Student Fname,Allergy_type Allergy,Allergy_type AllergyType
0,Lisa,Anchovies,food

Answer: The student named Lisa has an allergy in anchovies which are of type food.
Table: Apartment_Bookings, Guests
Question: Show the start dates and end dates of all the apartment bookings made by guests with gender code "Female".
SQL query:
SELECT T1.booking_start_date AS "Apartment_Bookings booking_start_date", T1.booking_start_date AS "Apartment_Bookings booking_start_date", T2.gender_code AS "Guests gender_code" 
 FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id 
 WHERE T2.gender_code = 'Female'
Result:
,Guests gender_code,Apartment_Bookings booking_start_date
0,Female,2016-04-01 06:28:08

Answer: The start date of all the apartment bookings made by guests with gender code "Female" is 2016-04-01 06:28:08
Table: ENROLLED_IN, GRADECONVERSION, STUDENT
Question: Give the maximum and minimum gradepoints for students living in NYC?
SQL query:
SELECT MAX(T2.gradepoint) AS "maximum gradepoint", MIN(T2.gradepoint) AS "minimum gradepoint", T3.city_code AS "STUDENT city_code" 
 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'
Result:
,STUDENT city_code,maximum gradepoint,minimum gradepoint
0,NYC,4.0,2.0

Answer: Student that live in NYC have a minimum gradepoint of 2 and a maximum of 4
Table: files, song
Question: What is the maximum and minimum resolution of all songs that are approximately 3 minutes long?
SQL query:
SELECT MAX(T2.resolution) AS "maximum resolution", MIN(T2.resolution) AS "minimum resolution", T1.duration AS "files duration" 
 FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id 
 WHERE T1.duration LIKE '3:%'
Result:
,files duration,maximum resolution,minimum resolution
0,3:45,1080,1080

Answer: The minimum and maximum resolution for files with duration 3:45 are 1080 and 1080 respectively
Table: enzyme
Question: What is the maximum OMIM value in the database?
SQL query:
SELECT MAX(OMIM) AS "maximum OMIM" 
 FROM enzyme
Result:
,maximum OMIM
0,606938

Answer: The maximum OMIM value in the database is 606938
Table: club
Question: Count the total number of clubs.
SQL query:
SELECT COUNT(*) AS "count of club" 
 FROM club
Result:
,count of club
0,4

Answer: There are 4 clubs.
Table: school_bus, school, driver
Question: Show the school name and driver name for all school buses.
SQL query:
SELECT T2.school AS "school school", T3.name AS "driver name" 
 FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id JOIN driver AS T3 ON T1.driver_id = T3.driver_id
Result:
,driver name,school school
0,Henry Genga,Noelani Elementary School

Answer: Henry Genga is a school driver in Noelani Elementary School.
Table: Guests
Question: What are the first names and last names of all the guests?
SQL query:
SELECT guest_first_name, guest_last_name 
 FROM Guests
Result:
,guest_last_name,guest_first_name
0,DuBuque,Kip

Answer: One of the guests is named Kip DuBuque
Table: country, match_season
Question: Who are the players from Indonesia?
SQL query:
SELECT T2.Player AS "match_season Player", T1.Country_name AS "country Country_name" 
 FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country 
 WHERE T1.Country_name = 'Indonesia'
Result:
,match_season Player,country Country_name
0,Damani Ralph Category:Articles with hCards,Indonesia

Answer: The player Damani Ralph is from Indonesia.
Table: pilot
Question: What are the different nationalities of pilots? Show each nationality and the number of pilots of each nationality.
SQL query:
SELECT Nationality, COUNT(*) AS "count of pilot" 
 FROM pilot 
 GROUP BY Nationality
Result:
,Nationality,count of pilot
0,Nigeria,1

Answer: There is 1 pilot that is from Nigeria
Table: county
Question: What are the maximum and minimum population of the counties?
SQL query:
SELECT MAX(Population) AS "maximum Population", MIN(Population) AS "minimum Population" 
 FROM county
Result:
,maximum Population,minimum Population
0,90000.0,13300.0

Answer: The max country population is 90000, while the minimum is 13300
Table: market
Question: How many markets have number of cities smaller than 300?
SQL query:
SELECT COUNT(*) AS "count of market", Number_cities 
 FROM market 
 WHERE Number_cities < 300
Result:
,Number_cities,count of market
0,209,3

Answer: There are three markets with 209 cities
Table: city
Question: What are the percentage of hispanics in cities with the black percentage higher than 10?
SQL query:
SELECT Hispanic, Black 
 FROM city 
 WHERE Black > 10
Result:
,Black,Hispanic
0,12.6,99.5

Answer: The percentage of black people is 12.6 and of hispanic people is 99.5.
Table: COURSE
Question: List all names of courses with 1 credit?
SQL query:
SELECT CName, Credits 
 FROM COURSE 
 WHERE Credits = 1
Result:
,CName,Credits
0,INTRODUCTION TO COMPUTER SCIENCE,1

Answer: The course INTRODUCTION TO COMPUTER SCIENCE has 1 credit.
Table: teachers
Question: Which teachers teach in classroom 109? Give me their last names.
SQL query:
SELECT lastname, classroom 
 FROM teachers 
 WHERE classroom = 109
Result:
,LastName,Classroom
0,KAWA,109

Answer: The last name of teachers, who teach in classroom 109, is KAWA
Table: mountain
Question: Which range contains the most mountains?
SQL query:
SELECT Range 
 FROM mountain 
 GROUP BY Range ORDER BY COUNT(*) DESC
Result:
,Range
0,Rwenzori

Answer: The range is Rwenzori.
Table: Sportsinfo, Student
Question: What are the last names for all scholarship students?
SQL query:
SELECT T2.Lname AS "Student Lname", T1.onscholarship AS "Sportsinfo onscholarship" 
 FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID 
 WHERE T1.onscholarship = 'Y'
Result:
,Student Lname,Sportsinfo onscholarship
0,Kim,Y

Answer: Kim got a scholarship.
Table: home_game, team
Question: How many home games did the team Boston Red Stockings play from 1990 to 2000 in total?
SQL query:
SELECT SUM(T1.games) AS "sum of games", T2.name AS "team name", T1.year AS "home_game year" 
 FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br 
 WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000
Result:
,team name,sum of games,home_game year
0,Boston Red Stockings,4325,1990

Answer: The team Boston Red Stockings had 4325 games in the year 1990.
Table: film
Question: What are all the movies rated as R? List the titles.
SQL query:
SELECT title, rating 
 FROM film 
 WHERE rating = 'R'
Result:
,title,rating
0,AIRPORT POLLOCK,R

Answer: The movie titled AIRPORT POLLOCK is rated as R
Table: Customers
Question: How many customers in total?
SQL query:
SELECT COUNT(*) AS "count of Customers" 
 FROM Customers
Result:
,count of Customers
0,15

Answer: There are 15 customers in total
Table: faculty
Question: How many faculty, in total, are there in the year 2002?
SQL query:
SELECT SUM(faculty) AS "sum of faculty", YEAR 
 FROM faculty 
 WHERE YEAR = 2002
Result:
,Year,sum of faculty
0,2002.0,16592.1

Answer: In the year 2002 there were 16592.1 faculty.
Table: train
Question: What are the names and arrival times of trains?
SQL query:
SELECT Name, Arrival 
 FROM train
Result:
,Name,Arrival
0,Wardha-Ballarshah Pass,08:54

Answer: The train Wardha-Ballarshah Pass arrives in 08:54.
Table: club, member_of_club, student
Question: Find the average age of the members in the club "Bootup Baltimore".
SQL query:
SELECT AVG(t3.age) AS "average age", t1.clubname AS "club clubname" 
 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'
Result:
,average age,club clubname
0,17.5,Bootup Baltimore

Answer: The members in the club "Bootup Baltimore" have an average age of 17.5
Table: Ref_locations
Question: Show the number of locations.
SQL query:
SELECT COUNT(*) AS "count of Ref_locations" 
 FROM Ref_locations
Result:
,count of Ref_locations
0,5

Answer: There are 5 locations.
Table: classroom
Question: How many classrooms are not in Lamberton?
SQL query:
SELECT COUNT(*) AS "count of classroom", building 
 FROM classroom 
 WHERE building <> 'Lamberton'
Result:
,building,count of classroom
0,Alumni,28

Answer: There are 28 classrooms in the Alumni building
Table: customer_contact_channels
Question: List all the contact channel codes that were used less than 5 times.
SQL query:
SELECT channel_code 
 FROM customer_contact_channels 
 GROUP BY channel_code 
 HAVING COUNT(customer_id) < 5
Result:
,channel_code
0,Cell

Answer: The channel code Cell was used less than 5 times.
Table: manufacturers
Question: What is the total revenue of companies started by founder?
SQL query:
SELECT SUM(revenue) AS "sum of revenue", founder 
 FROM manufacturers 
 GROUP BY founder
Result:
,Founder,sum of revenue
0,Andy,120.0

Answer: The total revenue by companies founded by Andy is 120
Table: repair_assignment, machine, technician
Question: Show names of technicians in ascending order of quality rank of the machine they are assigned.
SQL query:
SELECT T3.Name AS "technician Name", T2.quality_rank AS "machine quality_rank" 
 FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID ORDER BY T2.quality_rank
Result:
,technician Name,machine quality_rank
0,John Brown,1

Answer: The technician John Brown has a quality rank of 1.
Table: customers, customer_orders, order_items
Question: Tell me the total quantity of products bought by the customer called "Rodrick Heaney".
SQL query:
SELECT SUM(t3.order_quantity) AS "sum of order_quantity", t1.customer_name AS "customers customer_name" 
 FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id 
 WHERE t1.customer_name = 'Rodrick Heaney'
Result:
,sum of order_quantity,customers customer_name
0,21,Rodrick Heaney

Answer: The customer Rodrick Heaney has 21 order quantities in total.
Table: staff, complaints, products
Question: Find the last name of the staff member who processed the complaint of the cheapest product.
SQL query:
SELECT t1.last_name AS "staff last_name", t3.product_price AS "products product_price" 
 FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id JOIN products AS t3 ON t2.product_id = t3.product_id ORDER BY t3.product_price
Result:
,staff last_name,products product_price
0,Boehm,2.88

Answer: The staff with last name Boehm processed the complaint for a product priced at 2.88.
Table: employees
Question: Return the phone numbers of employees with salaries between 8000 and 12000.
SQL query:
SELECT phone_number, salary 
 FROM employees 
 WHERE salary BETWEEN 8000 AND 12000
Result:
,SALARY,PHONE_NUMBER
0,9000,590.423.4567

Answer: The salary of employee with number "590.423.4567" is 9000.
Table: CLASS, enroll, student
Question: What are the first names of all students who took ACCT-211 and received a C?
SQL query:
SELECT T3.stu_fname AS "student stu_fname", T1.crs_code AS "CLASS crs_code", T2.enroll_grade AS "enroll enroll_grade" 
 FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num 
 WHERE T1.crs_code = 'ACCT-211' AND T2.enroll_grade = 'C'
Result:
,CLASS crs_code,student stu_fname,enroll enroll_grade
0,ACCT-211,William,C

Answer: The student William got a C in the course with code ACCT-211.
Table: Customer_Payments
Question: List all payment methods and number of payments using each payment methods.
SQL query:
SELECT payment_method_code, COUNT(*) AS "count of Customer_Payments" 
 FROM Customer_Payments 
 GROUP BY payment_method_code
Result:
,payment_method_code,count of Customer_Payments
0,Credit Card,5

Answer: The number of payments with the Credit Card payment method is 5
Table: checking, savings
Question: What is the sum of checking and savings balances for all customers, ordered by the total balance?
SQL query:
SELECT T1.balance + T2.balance 
 FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance
Result:
,T1.balance + T2.balance
0,317.0

Answer: The sum of two balances is 317.
Table: Payments
Question: Compute the total amount of payment processed.
SQL query:
SELECT SUM(Amount_Payment) AS "sum of Amount_Payment" 
 FROM Payments
Result:
,sum of Amount_Payment
0,3736533

Answer: The total amount of payments processed is 3736533
Table: WINE
Question: How many wines are produced at Robert Biale winery?
SQL query:
SELECT COUNT(*) AS "count of WINE", Winery 
 FROM WINE 
 WHERE Winery = 'Robert Biale'
Result:
,Winery,count of WINE
0,Robert Biale,4

Answer: The Robert Biale winery produces 4 different wines
Table: Ref_document_types
Question: What are all the document type codes and document type names?
SQL query:
SELECT document_type_code, document_type_name 
 FROM Ref_document_types
Result:
,Document_Type_Code,Document_Type_Name
0,CV,CV

Answer: The document type code is CV and document type name is CV
Table: market
Question: Return the maximum and minimum number of cities across all markets.
SQL query:
SELECT MAX(Number_cities) AS "maximum Number_cities", MIN(Number_cities) AS "minimum Number_cities" 
 FROM market
Result:
,maximum Number_cities,minimum Number_cities
0,700,209

Answer: The market with the most cities has 700 cities, while the one with the least cities has 209
Table: faculty
Question: How many faculty is there in total in the year of 2002?
SQL query:
SELECT SUM(faculty) AS "sum of faculty", YEAR 
 FROM faculty 
 WHERE YEAR = 2002
Result:
,Year,sum of faculty
0,2002.0,16592.1

Answer: In 2002 the number of faculty was 16592.1