MikeXydas/qr2t_benchmark huggingface dataset:
Table: body_builder
Question: What is the minimum snatch score?
SQL query:
SELECT MIN(snatch) AS "minimum snatch" 
 FROM body_builder
Result:
,minimum snatch
0,130.0

Answer: The minimum snatch score is 130
Table: APPELLATIONS
Question: List the area and county of all appelations.
SQL query:
SELECT Area, County 
 FROM APPELLATIONS
Result:
,Area,County
0,North Coast,Sonoma

Answer: Sonoma is a count in the North Coast area
Table: races
Question: What are the names of 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: stadium, event
Question: Find the name and capacity of the stadium where the event named "World Junior" happened.
SQL query:
SELECT t1.name AS "stadium name", t1.capacity AS "stadium capacity", t2.name AS "event name" 
 FROM stadium AS t1 JOIN event AS t2 ON t1.id = t2.stadium_id 
 WHERE t2.name = 'World Junior'
Result:
,event name,stadium name,stadium capacity
0,World Junior,Baku Olympic Stadium,68000

Answer: The "World Junior" event happened at the Baku Olympic stadium, which has a capacity of 68000
Table: Ref_document_types
Question: What are the codes, names, and descriptions of the different document types?
SQL query:
SELECT document_type_code, document_type_name, document_type_description 
 FROM Ref_document_types
Result:
,Document_Type_Code,Document_Type_Name,Document_Type_Description
0,BK,Book,excellent

Answer: The document type code is excellent,  the document type name is Book, and the document type description is BK
Table: campuses
Question: List the campuses in Los Angeles county.
SQL query:
SELECT campus, county 
 FROM campuses 
 WHERE county = 'Los Angeles'
Result:
,Campus,County
0,California State University-Dominguez Hills,Los Angeles

Answer: The campus of California State University-Dominguez Hills is in the Los Angeles county.
Table: actor
Question: List the name of actors whose age is not 20.
SQL query:
SELECT Name, Age 
 FROM actor 
 WHERE Age <> 20
Result:
,age,Name
0,26,Ray Meagher

Answer: Actor Ray Meagher is 26 years old
Table: Apartment_Buildings
Question: Show the short names of the buildings managed by "Emma".
SQL query:
SELECT building_short_name, building_manager 
 FROM Apartment_Buildings 
 WHERE building_manager = 'Emma'
Result:
,building_manager,building_short_name
0,Emma,Normandie Court

Answer: The building whose manager is Emma has the short name Normandie Court
Table: classroom
Question: Count the number of classrooms in Lamberton.
SQL query:
SELECT COUNT(*) AS "count of classroom", building 
 FROM classroom 
 WHERE building = 'Lamberton'
Result:
,building,count of classroom
0,Lamberton,2

Answer: The Lamberton building has 2 classrooms
Table: dependent
Question: find all dependent names who have a spouse relation with some employee.
SQL query:
SELECT Dependent_name, relationship 
 FROM dependent 
 WHERE relationship = 'Spouse'
Result:
,Relationship,Dependent_name
0,Spouse,Joy

Answer: The dependent Joy has the relationship spouse.
Table: employees
Question: What is employee Nancy Edwards's phone number?
SQL query:
SELECT phone, last_name, first_name 
 FROM employees 
 WHERE first_name = 'Nancy' AND last_name = 'Edwards'
Result:
,phone,last_name,first_name
0,+1 (403) 262-3443,Edwards,Nancy

Answer: Nancy Edwards' phone number is +1 (403) 262-3443.
Table: catalog_contents, catalog_structure
Question: What is the level name of the cheapest catalog (in USD)?
SQL query:
SELECT t2.catalog_level_name AS "catalog_structure catalog_level_name", t1.price_in_dollars AS "catalog_contents price_in_dollars" 
 FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number = t2.catalog_level_number ORDER BY t1.price_in_dollars
Result:
,catalog_contents price_in_dollars,catalog_structure catalog_level_name
0,200.78,Category

Answer: The cheapest level costs 200.78 and is on the level named Category.
Table: party
Question: Give me the theme and location of each party.
SQL query:
SELECT Party_Theme, LOCATION 
 FROM party
Result:
,Location,Party_Theme
0,Hemkade 48 Zaandam,Spring

Answer: The party located in Hemkade 48 Zaandam has a Spring theme.
Table: Student
Question: What is the age of student Linda Smith?
SQL query:
SELECT Age, Lname, Fname 
 FROM Student 
 WHERE Fname = 'Linda' AND Lname = 'Smith'
Result:
,Age,Fname,LName
0,18,Linda,Smith

Answer: Linda Smith is 18 years old.
Table: physician, trained_in, procedures
Question: Compute the mean price of procedures physician John Wen was trained in.
SQL query:
SELECT AVG(T3.cost) AS "average cost", T1.name AS "physician name" 
 FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment 
 WHERE T1.name = 'John Wen'
Result:
,average cost,physician name
0,4324.857142857143,John Wen

Answer: Physician John Wen was trained in procedures whose average cost is 4324.85
Table: GENRE, TRACK
Question: What are the duration of the longest and shortest pop tracks in milliseconds?
SQL query:
SELECT MAX(Milliseconds) AS "maximum Milliseconds", MIN(Milliseconds) AS "minimum Milliseconds", T1.Name AS "GENRE Name" 
 FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId 
 WHERE T1.Name = 'Pop'
Result:
,GENRE Name,maximum Milliseconds,minimum Milliseconds
0,Pop,663426,129666

Answer: Pop tracks have 663426 milliseconds maximum duration and 129666 milliseconds minimum duration.
Table: COURSES
Question: How many courses are there in total?
SQL query:
SELECT COUNT(*) AS "count of COURSES" 
 FROM COURSES
Result:
,count of COURSES
0,15

Answer: There are 15 courses in total
Table: Organisations, organisation_Types
Question: What are the details of all organizations that are described as Sponsors and sort the results in ascending order?
SQL query:
SELECT organisation_details, T2.organisation_type_description AS "organisation_Types organisation_type_description" 
 FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type = T2.organisation_type 
 WHERE T2.organisation_type_description = 'Sponsor' ORDER BY organisation_details
Result:
,organisation_details,organisation_Types organisation_type_description
0,aperiam,Sponsor

Answer: The details of the organization that is described as Sponsor are aperiam
Table: club
Question: What is the description of the club named "Tennis Club"?
SQL query:
SELECT clubdesc, clubname 
 FROM club 
 WHERE clubname = 'Tennis Club'
Result:
,ClubDesc,ClubName
0,A competitive tennis club.,Tennis Club

Answer: Tennis Club has the description "A competitive tennis club".
Table: Aircraft
Question: What is the count of aircrafts that have a 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: TRANSACTIONS, Transactions_Lots
Question: Show the average amount of transactions for different lots.
SQL query:
SELECT T2.lot_id AS "Transactions_Lots lot_id", AVG(amount_of_transaction) AS "average amount_of_transaction" 
 FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id 
 GROUP BY T2.lot_id
Result:
,Transactions_Lots lot_id,average amount_of_transaction
0,1.0,101119.25319999999

Answer: Lot 1 has an average amount of transactions of 101119.25319999999
Table: accounts, checking, savings
Question: What is the name and checking balance of the account which has the lowest savings balance?
SQL query:
SELECT T2.balance AS "checking balance", T1.name AS "accounts name", 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 T3.balance
Result:
,accounts name,savings balance,checking balance
0,Weeks,60.0,7000.0

Answer: The account with name Weeks has a savings balance of 60 and a checking balance of 7000.
Table: captain
Question: Find the name, class and rank 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 name is Captain Sir Henry Langford, the rank is Midshipman and the class is Third-rate ship of the line.
Table: store
Question: For each type of store, how many of them are there?
SQL query:
SELECT TYPE, COUNT(*) AS "count of store" 
 FROM store 
 GROUP BY TYPE
Result:
,Type,count of store
0,City Mall,2

Answer: There are 2 stores with type City Mall.
Table: player, school
Question: For each player, show the team and the location of school they belong to.
SQL query:
SELECT T1.Team AS "player Team", T2.Location AS "school Location" 
 FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID
Result:
,player Team,school Location
0,Tampa Bay Devil Rays,Milsons Point

Answer: The Tampa Bay Devil Rays team is located in the school of Milsons Point.
Table: film
Question: How many films have the word 'Dummy' in their titles?
SQL query:
SELECT COUNT(*) AS "count of film", title 
 FROM film 
 WHERE title LIKE '%Dummy%'
Result:
,Title,count of film
0,The Case of the Smart Dummy,1

Answer: There is 1 film titled The Case of the Smart Dummy.
Table: customers, customer_contact_channels
Question: What are the name and active date of the customers whose contact channel code is email?
SQL query:
SELECT t1.customer_name AS "customers customer_name", t2.active_from_date AS "customer_contact_channels active_from_date", t2.channel_code AS "customer_contact_channels channel_code" 
 FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id 
 WHERE t2.channel_code = 'Email'
Result:
,customers customer_name,customer_contact_channels channel_code,customer_contact_channels active_from_date
0,Devin Mills,Email,2017-12-07 18:18:15

Answer: The customer named Devin Mills has email as his contact channel code and is active from 2017-12-07 18:18:15.
Table: HOTELS
Question: How many available hotels are there in total?
SQL query:
SELECT COUNT(*) AS "count of HOTELS" 
 FROM HOTELS
Result:
,count of HOTELS
0,20

Answer: There are 20 hotels.
Table: aircraft, airport_aircraft, airport
Question: What is the average total number of passengers of airports that are associated with aircraft "Robinson R-22"?
SQL query:
SELECT AVG(T3.Total_Passengers) AS "average Total_Passengers", T1.Aircraft AS "aircraft Aircraft" 
 FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID 
 WHERE T1.Aircraft = 'Robinson R-22'
Result:
,aircraft Aircraft,average Total_Passengers
0,Robinson R-22,34205887.0

Answer: The aircaft Robinson R-22 has 34205887 average number of total passengers.
Table: station
Question: What is the average latitude and longitude of stations located in San Jose city?
SQL query:
SELECT AVG(lat) AS "average lat", AVG(long) AS "average long", city 
 FROM station 
 WHERE city = 'San Jose'
Result:
,city,average lat,average long
0,San Jose,37.3364135625,-121.89160575

Answer: The city of San Jose has an average latitude of 37.3364135625 and average longitude of 	-121.89160575.
Table: STUDENT
Question: Find the average age of female students.
SQL query:
SELECT AVG(Age) AS "average Age", Sex 
 FROM STUDENT 
 WHERE Sex = 'F'
Result:
,Sex,average Age
0,F,19.7

Answer: Female's average age is 19.7.
Table: building
Question: How many buildings are there?
SQL query:
SELECT COUNT(*) AS "count of building" 
 FROM building
Result:
,count of building
0,8

Answer: There are 8 buildings.
Table: player
Question: What are the first name and last name of the players who have weight above 220 or height below 75?
SQL query:
SELECT name_first, name_last, height, weight 
 FROM player 
 WHERE weight > 220 OR height < 75
Result:
,height,weight,name_last,name_first
0,72,180,Aaron,Hank

Answer: The names of the players with heights above 220 and below 75 are Aaron and their last names are Hank. Their heights are 72 and their weights are 180 respectively.
Table: customers
Question: Find the name of all customers whose name contains "Alex".
SQL query:
SELECT customer_name 
 FROM customers 
 WHERE customer_name LIKE '%Alex%'
Result:
,customer_name
0,Prof. Alexzander Hamill

Answer: One of the customers whose name contains "Alex", is Prof. Alexzander Hamill
Table: aircraft, airport_aircraft, airport
Question: What are the names of all the aircrafts associated with London Gatwick airport?
SQL query:
SELECT T1.Aircraft AS "aircraft Aircraft", T3.Airport_Name AS "airport Airport_Name" 
 FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID 
 WHERE T3.Airport_Name = 'London Gatwick'
Result:
,aircraft Aircraft,airport Airport_Name
0,Robinson R-22,London Gatwick

Answer: The aircraft Robinson R-22 is associated with London Gatwick airport
Table: stadium
Question: How many stadiums are there?
SQL query:
SELECT COUNT(*) AS "count of stadium" 
 FROM stadium
Result:
,count of stadium
0,10

Answer: There are 10 stadiums
Table: airports
Question: What is the name, city, country, and elevation for every airport in the city of New York?
SQL query:
SELECT name, city, country, elevation 
 FROM airports 
 WHERE city = 'New York'
Result:
,city,name,country,elevation
0,New York,La Guardia Airport,United States,21

Answer: La Guardia Airport in NY, USA has an elevation of 21
Table: tryout, player
Question: For each position, what is the minimum time students spent practicing?
SQL query:
SELECT MIN(T2.HS) AS "minimum HS", T1.pPos AS "tryout pPos" 
 FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID 
 GROUP BY T1.pPos
Result:
,minimum HS,tryout pPos
0,1200,goalie

Answer: For the position of goalie the minimum practice time was 1200 hours.
Table: claims_processing_stages
Question: What is the description of the claim status "Open"?
SQL query:
SELECT claim_status_description, claim_status_name 
 FROM claims_processing_stages 
 WHERE claim_status_name = 'Open'
Result:
,Claim_Status_Name,Claim_Status_Description
0,Open,Open a new claim

Answer: The status name of the claim is Open and its description is Open a new claim.
Table: customers
Question: How many customers live in Prague city?
SQL query:
SELECT COUNT(*) AS "count of customers", city 
 FROM customers 
 WHERE city = 'Prague'
Result:
,city,count of customers
0,Prague,2

Answer: 2 customers live in the city of Prague.
Table: employees, employees
Question: Which employee manage most number of peoples? List employee's first and last name, and number of people report to that employee.
SQL query:
SELECT T2.first_name AS "employees first_name", T2.last_name AS "employees last_name", COUNT(T1.reports_to) AS "count of employees" 
 FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id 
 GROUP BY T1.reports_to ORDER BY COUNT(T1.reports_to) DESC
Result:
,count of employees,employees last_name,employees first_name
0,3,Edwards,Nancy

Answer: Nancy Edwards manages 3 employees.
Table: Marketing_Regions
Question: Find the marketing region description of China?
SQL query:
SELECT Marketing_Region_Descriptrion, Marketing_Region_Name 
 FROM Marketing_Regions 
 WHERE Marketing_Region_Name = 'China'
Result:
,Marketing_Region_Name,Marketing_Region_Descriptrion
0,China,Our largest market

Answer: The marketing region of Chine is our largest market
Table: COURSE
Question: Which courses are taught on days MTW?
SQL query:
SELECT CName, Days 
 FROM COURSE 
 WHERE Days = 'MTW'
Result:
,Days,CName
0,MTW,COMPUTER LITERACY

Answer: In Mondays, Tuesdays and Wednesdays, the course Computer Literacy is taught.
Table: film
Question: Count the number of films whose title contains the word 'Dummy'.
SQL query:
SELECT COUNT(*) AS "count of film", title 
 FROM film 
 WHERE title LIKE '%Dummy%'
Result:
,Title,count of film
0,The Case of the Smart Dummy,1

Answer: There is 1 film whose title contains the word Dummy.
Table: Faculty
Question: Count the number of Professors who have office in building NEB.
SQL query:
SELECT COUNT(*) AS "count of Faculty", Rank, building 
 FROM Faculty 
 WHERE Rank = 'Professor' AND building = 'NEB'
Result:
,Rank,Building,count of Faculty
0,Professor,NEB,5

Answer: 5 professors have office in building NEB
Table: roller_coaster
Question: Show the statuses of roller coasters longer than 3300 or higher than 100.
SQL query:
SELECT Status, LENGTH, Height 
 FROM roller_coaster 
 WHERE LENGTH > 3300 OR Height > 100
Result:
,Height,Length,Status
0,105.0,3914.0,Operating

Answer: The roller coaster had a height of 105, a length of 3914 and its status is operational.
Table: customer_orders, order_items
Question: What is the total amount of products purchased before 2018-03-17 07:13:53?
SQL query:
SELECT SUM(t2.order_quantity) AS "sum of order_quantity", t1.order_date AS "customer_orders order_date" 
 FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id 
 WHERE t1.order_date < '2018-03-17 07:13:53'
Result:
,sum of order_quantity,customer_orders order_date
0,45,2018-02-24 13:18:49

Answer: The sum of orders' quantity in 2018-02-24 13:18:49 is 45.
Table: gymnast
Question: Return the average horizontal bar points across all gymnasts.
SQL query:
SELECT AVG(Horizontal_Bar_Points) AS "average Horizontal_Bar_Points" 
 FROM gymnast
Result:
,average Horizontal_Bar_Points
0,9.603428571428571

Answer: The average horizontal bar points of gymnasts is 9.603428571428571.
Table: Movie
Question: What is the name of the movie produced after 2000 and directed by James Cameron?
SQL query:
SELECT title, director, YEAR 
 FROM Movie 
 WHERE director = 'James Cameron' AND YEAR > 2000
Result:
,year,title,director
0,2009,Avatar,James Cameron

Answer: The movie Avatar was released in 2009 and was directed by James Cameron.
Table: invoices
Question: List total amount of  invoice from Chicago, IL.
SQL query:
SELECT SUM(total) AS "sum of total", billing_state, billing_city 
 FROM invoices 
 WHERE billing_city = 'Chicago' AND billing_state = 'IL'
Result:
,billing_city,sum of total,billing_state
0,Chicago,43.62,IL

Answer: The total invoices in the city of Chicago, state IL, is 43.62.
Table: flight
Question: How many flights have a velocity larger than 200?
SQL query:
SELECT COUNT(*) AS "count of flight", velocity 
 FROM flight 
 WHERE velocity > 200
Result:
,Velocity,count of flight
0,240.0,12.0

Answer: There are 12 flights with a velocity larger than 200.
Table: ref_product_categories
Question: Return the unit of measure for 'Herb' products.
SQL query:
SELECT unit_of_measure, product_category_code 
 FROM ref_product_categories 
 WHERE product_category_code = 'Herbs'
Result:
,unit_of_measure,product_category_code
0,Handful             ,Herbs

Answer: The product with category code Herbs has the unit of measure of handful.
Table: Rooms
Question: How many king beds are there?
SQL query:
SELECT SUM(beds) AS "sum of beds", bedtype 
 FROM Rooms 
 WHERE bedtype = 'King'
Result:
,bedType,sum of beds
0,King,6

Answer: There 6 beds of type King.
Table: staff, complaints
Question: What is the last name of the staff who has handled the first ever complaint?
SQL query:
SELECT t1.last_name AS "staff last_name", t2.date_complaint_raised AS "complaints date_complaint_raised" 
 FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id ORDER BY t2.date_complaint_raised
Result:
,staff last_name,complaints date_complaint_raised
0,Lynch,1973-02-10 22:55:56

Answer: The first ever complaint was handled by Lynch in 1973-02-10 22:55:56
Table: artist, song
Question: What is the gender and name of the artist who sang the song with the smallest resolution?
SQL query:
SELECT T1.gender AS "artist gender", T1.artist_name AS "artist artist_name", T2.resolution AS "song resolution" 
 FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.resolution
Result:
,artist gender,song resolution,artist artist_name
0,Female,320,Farida

Answer: The gender of the artist Farida is Female, the resolution is 320.
Table: Financial_transactions
Question: What are the different transaction types, and how many transactions of each have taken place?
SQL query:
SELECT transaction_type, COUNT(*) AS "count of Financial_transactions" 
 FROM Financial_transactions 
 GROUP BY transaction_type
Result:
,transaction_type,count of Financial_transactions
0,Payment,6

Answer: The transcation type Payment had 3 financial transactions.
Table: Detention, Teachers
Question: Find the start and end dates of detentions of teachers with last name "Schultz".
SQL query:
SELECT T1.datetime_detention_start AS "Detention datetime_detention_start", datetime_detention_end, T2.last_name AS "Teachers last_name" 
 FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id 
 WHERE T2.last_name = 'Schultz'
Result:
,Teachers last_name,datetime_detention_end,Detention datetime_detention_start
0,Schultz,2018-03-08 02:08:32,2017-09-05 00:38:25

Answer: The teacher with last name Schultz had a detention with start date 2017-09-05 00:38:25 and end date 2018-03-08 02:08:32.
Table: people
Question: List all info about all people.
SQL query:
SELECT * 
 FROM people
Result:
,Sex,Name,Height,Weight,People_ID,Date_of_Birth
0,M,Hubert Henno,188.0,83.0,1,06.10.1976

Answer: Hubert Henno with id 1 is a male of height 188 and weight 83. He was born on the 6th of October 1976.
Table: STUDENT
Question: What are the first names of all the students aged above 22?
SQL query:
SELECT Fname, Age 
 FROM STUDENT 
 WHERE Age > 22
Result:
,Age,Fname
0,26,Paul

Answer: Paul is 26 years old
Table: phone
Question: How many phone hardware models are produced by the company named "Nokia Corporation"?
SQL query:
SELECT COUNT(*) AS "count of phone", Company_name 
 FROM phone 
 WHERE Company_name = 'Nokia Corporation'
Result:
,Company_name,count of phone
0,Nokia Corporation,2

Answer: There are two phones made by Nokia Corporation
Table: student, enroll
Question: What is the last name of the student who got a grade A in the class with code 10018.
SQL query:
SELECT T1.stu_lname AS "student stu_lname", T2.enroll_grade AS "enroll enroll_grade", T2.class_code AS "enroll class_code" 
 FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num 
 WHERE T2.enroll_grade = 'A' AND T2.class_code = 10018
Result:
,enroll class_code,student stu_lname,enroll enroll_grade
0,10018,Bowser,A

Answer: The student with last name is Bowser got a grade A in the class with code 10018.
Table: Flight
Question: What is the average price for flights from LA to Honolulu?
SQL query:
SELECT AVG(price) AS "average price", origin, destination 
 FROM Flight 
 WHERE origin = 'Los Angeles' AND destination = 'Honolulu'
Result:
,origin,destination,average price
0,Los Angeles,Honolulu,400.605

Answer: The average price for a flight from Los Angeles to Honolulu is 400.605
Table: Faculty
Question: What are the first name and last name of all the instructors?
SQL query:
SELECT fname, lname, Rank 
 FROM Faculty 
 WHERE Rank = 'Instructor'
Result:
,Rank,Fname,Lname
0,Instructor,Mark,Giuliano

Answer: Mark Giuliano has the instructor rank.
Table: physician
Question: Find the name of physicians whose position title contains the word 'senior'.
SQL query:
SELECT name, POSITION 
 FROM physician 
 WHERE POSITION LIKE '%senior%'
Result:
,Name,Position
0,Percival Cox,Senior Attending Physician

Answer: The physicial with name Percival Cox has position Senior Attending Physician.
Table: climber
Question: List the names of climbers whose country is not Switzerland.
SQL query:
SELECT Name, Country 
 FROM climber 
 WHERE Country <> 'Switzerland'
Result:
,Name,Country
0,Klaus Enders,West Germany

Answer: The climber Klaus Enders is from West Germany.
Table: payment
Question: Return the sum of all payment amounts.
SQL query:
SELECT SUM(amount) AS "sum of amount" 
 FROM payment
Result:
,sum of amount
0,67416.50999999208

Answer: The sum of all payment amounts is 67416.50999999208