MikeXydas/qr2t_benchmark huggingface dataset:
Table: schedule, cinema
Question: What is total number of show times per dat for each cinema?
SQL query:
SELECT T2.name AS "cinema name", SUM(T1.show_times_per_day) AS "sum of show_times_per_day", T1.cinema_id AS "schedule cinema_id" 
 FROM schedule AS T1 JOIN cinema AS T2 ON T1.cinema_id = T2.cinema_id 
 GROUP BY T1.cinema_id
Result:
,cinema name,schedule cinema_id,sum of show_times_per_day
0,Codling,1,10

Answer: The cinema named Codling, with id 1, has a total of 10 shows per day.
Table: Movie, Movie
Question: For all directors who have directed more than one movie, what movies have they directed and what are their names?
SQL query:
SELECT T1.title AS "Movie title", T1.director AS "Movie director" 
 FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director 
 WHERE T1.title <> T2.title ORDER BY T1.director, T1.title
Result:
,Movie title,Movie director
0,Avatar,James Cameron

Answer: The movie Avatar was directed by James Cameron.
Table: Staff_Roles
Question: What is the complete description of the job of a researcher?
SQL query:
SELECT role_description, role_code 
 FROM Staff_Roles 
 WHERE role_code = 'researcher'
Result:
,role_code,role_description
0,researcher,Project Researcher

Answer: The complete description of the job of a researcher is Project Researcher with role code equal to researcher
Table: election, party
Question: Who were the governors of the parties associated with delegates from district 1?
SQL query:
SELECT T2.Governor AS "party Governor", T1.District AS "election District" 
 FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID 
 WHERE T1.District = 1
Result:
,party Governor,election District
0,Peter Vallone,1

Answer: The governor Peter Vallone is from election district 1.
Table: Accounts
Question: Count the number of accounts.
SQL query:
SELECT COUNT(*) AS "count of Accounts" 
 FROM Accounts
Result:
,count of Accounts
0,15

Answer: There are 15 accounts
Table: people, candidate
Question: For each sex, what is the name and sex of the candidate with the oppose rate for their sex?
SQL query:
SELECT t1.name AS "people name", t1.sex AS "people sex", MIN(oppose_rate) AS "minimum oppose_rate" 
 FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id 
 GROUP BY t1.sex
Result:
,people sex,people name,minimum oppose_rate
0,F,Stéphane Antiga,0.32

Answer: Stéphane Antiga is a female with a minimum oppose rate of 0.32.
Table: instructor
Question: What are the names of all instructors in the Comp. Sci. department?
SQL query:
SELECT name, dept_name 
 FROM instructor 
 WHERE dept_name = 'Comp. Sci.'
Result:
,name,dept_name
0,Bondi,Comp. Sci.

Answer: Bondi is the name of an instructor of the Comp. Sci. department.
Table: Customers
Question: Show the number of customers for each gender.
SQL query:
SELECT gender, COUNT(*) AS "count of Customers" 
 FROM Customers 
 GROUP BY gender
Result:
,gender,count of Customers
0,0,9

Answer: For the gender 0 there are 9 customers.
Table: Lessons, Customers
Question: How long is the total lesson time took by customer with first name as Rylan and last name as Goodwin?
SQL query:
SELECT SUM(T1.lesson_time) AS "sum of lesson_time", T2.last_name AS "Customers last_name", T2.first_name AS "Customers first_name" 
 FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id 
 WHERE T2.first_name = 'Rylan' AND T2.last_name = 'Goodwin'
Result:
,sum of lesson_time,Customers last_name,Customers first_name
0,11,Goodwin,Rylan

Answer: The total lesson time took by customer with first name as Rylan and last name as Goodwin is 11
Table: mountain
Question: What are the name, height and prominence of mountains which do not belong to the range 'Aberdare Range'?
SQL query:
SELECT name, height, prominence, range 
 FROM mountain 
 WHERE range <> 'Aberdare Range'
Result:
,name,Range,Height,Prominence
0,Abune Yosef / Guliba Amba,Lasta Massif,4260.0,1909.0

Answer: The mountain with name Abune Yosef / Guliba Amba, height 4260 and prominence 1909 belongs to the range Lasta Massif.
Table: Apartment_Bookings, Apartments
Question: What are the booking start and end dates of the apartments with type code "Duplex"?
SQL query:
SELECT T1.booking_start_date AS "Apartment_Bookings booking_start_date", T1.booking_start_date AS "Apartment_Bookings booking_start_date", T2.apt_type_code AS "Apartments apt_type_code" 
 FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id 
 WHERE T2.apt_type_code = 'Duplex'
Result:
,Apartments apt_type_code,Apartment_Bookings booking_start_date
0,Duplex,2016-09-26 17:13:49

Answer: The apartments with type code Duplex has a booking start date of 2016-09-26 17:13:49
Table: users
Question: Find the number of users in each role.
SQL query:
SELECT COUNT(*) AS "count of users", role_code 
 FROM users 
 GROUP BY role_code
Result:
,role_code,count of users
0,DBA,8

Answer: For the role code DBA there are 8 users.
Table: county
Question: Count the total number of counties.
SQL query:
SELECT COUNT(*) AS "count of county" 
 FROM county
Result:
,count of county
0,5

Answer: The total number of countries is 5
Table: mountain
Question: What are the maximum and average height of the mountains?
SQL query:
SELECT MAX(height) AS "maximum height", AVG(height) AS "average height" 
 FROM mountain
Result:
,average height,maximum height
0,4061.2608695652175,4260.0

Answer: The maximum height of the mountains is 4260 and the average is 4061.2608695652175
Table: submission
Question: What are the authors of submissions and their colleges?
SQL query:
SELECT Author, College 
 FROM submission
Result:
,Author,College
0,Steve Niehaus,Notre Dame

Answer: The author Steve Niehaus is in the Notre Dame college.
Table: invoices
Question: A list of the top 10 countries by average invoice size. List country name and average invoice size.
SQL query:
SELECT billing_country, AVG(total) AS "average total" 
 FROM invoices 
 GROUP BY billing_country ORDER BY AVG(total) DESC
Result:
,average total,billing_country
0,6.659999999999999,Chile

Answer: Chile has an average invoice size of 6.659999999999999
Table: Activity
Question: How many activities do we have?
SQL query:
SELECT COUNT(*) AS "count of Activity" 
 FROM Activity
Result:
,count of Activity
0,16

Answer: There are 16 activities.
Table: player
Question: Show the names of sponsors of players whose residence is either "Brandon" or "Birtle".
SQL query:
SELECT Sponsor_name, Residence 
 FROM player 
 WHERE Residence = 'Brandon' OR Residence = 'Birtle'
Result:
,Residence,Sponsor_name
0,Brandon,Brandon—Souris

Answer: Sponsor Brandon—Souris stays in residence Brandon.
Table: Student
Question: How many students are there?
SQL query:
SELECT COUNT(*) AS "count of Student" 
 FROM Student
Result:
,count of Student
0,34

Answer: The number of students is 34
Table: member
Question: How many members have the black membership card?
SQL query:
SELECT COUNT(*) AS "count of member", Membership_card 
 FROM member 
 WHERE Membership_card = 'Black'
Result:
,Membership_card,count of member
0,Black,6

Answer: There are 6 members with a black membership card
Table: station
Question: What are the names of all stations with a latitude smaller than 37.5?
SQL query:
SELECT name, lat 
 FROM station 
 WHERE lat < 37.5
Result:
,lat,name
0,37.329732,San Jose Diridon Caltrain Station

Answer: San Jose Diridon Caltrain station's latitude is 37.329732
Table: products, product_characteristics, CHARACTERISTICS
Question: Return the characteristic names of the 'sesame' product.
SQL query:
SELECT t3.characteristic_name AS "CHARACTERISTICS characteristic_name", t1.product_name AS "products product_name" 
 FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id 
 WHERE t1.product_name = 'sesame'
Result:
,products product_name,CHARACTERISTICS characteristic_name
0,sesame,error

Answer: The product "seasame" has the characteristics "error"
Table: Reviewer
Question: How many reviewers are there?
SQL query:
SELECT COUNT(*) AS "count of Reviewer" 
 FROM Reviewer
Result:
,count of Reviewer
0,8

Answer: There are 8 reviewers.
Table: complaints
Question: Of complaints with the type code "Product Failure", how many had each different status code?
SQL query:
SELECT complaint_status_code, COUNT(*) AS "count of complaints", complaint_type_code 
 FROM complaints 
 WHERE complaint_type_code = 'Product Failure' 
 GROUP BY complaint_status_code
Result:
,complaint_type_code,count of complaints,complaint_status_code
0,Product Failure,1,Closed

Answer: There is 1 complaint of type "Product Failure" that is closed
Table: DEPARTMENT
Question: What is the name of the department in the Building Mergenthaler?
SQL query:
SELECT DName, Building 
 FROM DEPARTMENT 
 WHERE Building = 'Mergenthaler'
Result:
,DName,Building
0,History of Art,Mergenthaler

Answer: The department named History of Art is in the Building Mergenthaler
Table: documents
Question: Find the average access count across all documents?
SQL query:
SELECT AVG(access_count) AS "average access_count" 
 FROM documents
Result:
,average access_count
0,4939.133333333333

Answer: The average access count is 4939.133333333333.
Table: song
Question: Find the names of songs whose genre is modern or language is English.
SQL query:
SELECT song_name, genre_is, languages 
 FROM song 
 WHERE genre_is = 'modern' OR languages = 'english'
Result:
,genre_is,languages,song_name
0,blues,english,My love

Answer: The song name is My love
Table: Companies
Question: List the industry shared by the most companies.
SQL query:
SELECT Industry 
 FROM Companies 
 GROUP BY Industry ORDER BY COUNT(*) DESC
Result:
,Industry
0,Banking

Answer: The industry shared by the most companies is Banking
Table: Movie
Question: What are the names of all movies made before 1980 or had James Cameron as the director?
SQL query:
SELECT title, director, YEAR 
 FROM Movie 
 WHERE director = 'James Cameron' OR YEAR < 1980
Result:
,year,title,director
0,1939,Gone with the Wind,Victor Fleming

Answer: Gone with the Wind was directed by Victor Fleming in 1939.
Table: College
Question: What is average number of students enrolled in Florida colleges?
SQL query:
SELECT AVG(enr) AS "average enr", state 
 FROM College 
 WHERE state = 'FL'
Result:
,state,average enr
0,FL,19000.0

Answer: The average number of students enrolled in colleges located in Florida is 19000.
Table: exhibition
Question: What are the average, minimum, and maximum ticket prices for exhibitions that happened prior to 2009?
SQL query:
SELECT AVG(ticket_price) AS "average ticket_price", MIN(ticket_price) AS "minimum ticket_price", MAX(ticket_price) AS "maximum ticket_price", YEAR 
 FROM exhibition 
 WHERE YEAR < 2009
Result:
,Year,average ticket_price,maximum ticket_price,minimum ticket_price
0,2008.0,20.35,29.95,14.95

Answer: In 2008 the ticket price had an average value of 20.35, maximum value of 29.95 and minimum value of 14.95.
Table: Rooms
Question: How many rooms have a king bed?
SQL query:
SELECT COUNT(*) AS "count of Rooms", bedType 
 FROM Rooms 
 WHERE bedType = 'King'
Result:
,bedType,count of Rooms
0,King,4

Answer: There are 4 rooms with bed type King.
Table: TEACHERS
Question: What is the gender of the teacher with last name "Medhurst"?
SQL query:
SELECT gender, last_name 
 FROM TEACHERS 
 WHERE last_name = 'Medhurst'
Result:
,gender,last_name
0,1,Medhurst

Answer: The gender of the teacher with last name Medhurst is 1
Table: invoices
Question: List the number of invoices from Chicago, IL.
SQL query:
SELECT COUNT(*) AS "count of invoices", billing_state, billing_city 
 FROM invoices 
 WHERE billing_city = 'Chicago' AND billing_state = 'IL'
Result:
,billing_city,billing_state,count of invoices
0,Chicago,IL,7

Answer: There are 7 invoices from Chicago, IL.
Table: climber, mountain
Question: What are the names of climbers and the corresponding names of mountains that they climb?
SQL query:
SELECT T1.Name AS "climber Name", T2.Name AS "mountain Name" 
 FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID
Result:
,climber Name,mountain Name
0,Klaus Enders,Kibo (Uhuru Pk)

Answer: Klaus Enders climbed Kibo (Uhuru Pk)
Table: payments
Question: What is the average amount due for all the payments?
SQL query:
SELECT AVG(amount_due) AS "average amount_due" 
 FROM payments
Result:
,average amount_due
0,564.3860000000001

Answer: The average amount due for all the payments is 564.3860000000001
Table: body_builder, people
Question: What are the heights of body builders with total score smaller than 315?
SQL query:
SELECT T2.Height AS "people Height", T1.Total AS "body_builder Total" 
 FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID 
 WHERE T1.Total < 315
Result:
,people Height,body_builder Total
0,196.0,312.5

Answer: A body builder with 312.5 total score has the height of 196.
Table: Movie
Question: What are names of the movies that are either made before 1980 or directed by James Cameron?
SQL query:
SELECT title, director, YEAR 
 FROM Movie 
 WHERE director = 'James Cameron' OR YEAR < 1980
Result:
,year,title,director
0,1939,Gone with the Wind,Victor Fleming

Answer: The movie titled Gone with the Wind was directed by Victor Fleming in 1939
Table: files, song
Question: What are the shortest duration and lowest rating of songs grouped by genre and ordered by genre?
SQL query:
SELECT MIN(T1.duration) AS "minimum duration", MIN(T2.rating) AS "minimum rating", T2.genre_is AS "song genre_is" 
 FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id 
 GROUP BY T2.genre_is ORDER BY T2.genre_is
Result:
,song genre_is,minimum rating,minimum duration
0,blues,6,5:23

Answer: The minimum rating for the songs with genre blues is 6, while the minimum duration is 5:23.
Table: customer
Question: Find the total account balance of each customer from Utah or Texas.
SQL query:
SELECT SUM(acc_bal) AS "sum of acc_bal", state 
 FROM customer 
 WHERE state = 'Utah' OR state = 'Texas'
Result:
,state,sum of acc_bal
0,Utah,3000

Answer: The total account balance of customers from Utah is 3000
Table: stay, patient, Prescribes, Medication
Question: What is the name of the medication used for the patient staying 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: The patient staying in room 111 uses the medication named Procrastin-X.
Table: ROLES
Question: What are the name and description for role 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" has the name Manager and 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: student, enroll
Question: What is the last name of the student who received an A in the class with the 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: Student with last name Bowser was enrolled in class 10018 and received an A
Table: student
Question: Find the first name of students who is older than 20.
SQL query:
SELECT fname, age 
 FROM student 
 WHERE age > 20
Result:
,Age,Fname
0,21,Shiela

Answer: Shiela is a 21 years old student.
Table: song
Question: What is the name of the artist, for each language, that has the most songs with a higher resolution than 500?
SQL query:
SELECT artist_name, resolution, languages 
 FROM song 
 WHERE resolution > 500 
 GROUP BY languages ORDER BY COUNT(*) DESC
Result:
,languages,resolution,artist_name
0,english,1080,Enrique

Answer: Artist "Enrique" has songs in English with a resolution of 1080
Table: Customers
Question: Show the number of customers.
SQL query:
SELECT COUNT(*) AS "count of Customers" 
 FROM Customers
Result:
,count of Customers
0,15

Answer: The count of customers is 15
Table: Products
Question: Show the most common type code across products.
SQL query:
SELECT Product_Type_Code 
 FROM Products 
 GROUP BY Product_Type_Code ORDER BY COUNT(*) DESC
Result:
,Product_Type_Code
0,Food

Answer: The most common product type code is food
Table: bridge
Question: What is the average length in feet of the bridges?
SQL query:
SELECT AVG(length_feet) AS "average length_feet" 
 FROM bridge
Result:
,average length_feet
0,244.64

Answer: The average length in feet of the bridges is 244.64.
Table: wrestler
Question: Return the names of wrestlers with fewer than 100 days held.
SQL query:
SELECT Name, Days_held 
 FROM wrestler 
 WHERE Days_held < 100
Result:
,Name,Days_held
0,El Samurai,1

Answer: The wrestler El Samurai held 1 day.
Table: city, farm_competition
Question: Please show the themes of competitions with host cities having populations larger than 1000.
SQL query:
SELECT T2.Theme AS "farm_competition Theme", T1.Population AS "city Population" 
 FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID 
 WHERE T1.Population > 1000
Result:
,city Population,farm_competition Theme
0,5706.0,Carnival M is back!

Answer: In a city of population 5706, the farm competition theme was Carnival M is back!
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's manager id is 201, location id is 1800 and departmentd id is 20
Table: genres, tracks
Question: What is the name of tracks whose genre is Rock?
SQL query:
SELECT T2.name AS "tracks name", T1.name AS "genres name" 
 FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id 
 WHERE T1.name = 'Rock'
Result:
,genres name,tracks name
0,Rock,For Those About To Rock (We Salute You)

Answer: The track "For Those About To Rock (We Salute You)" is of type rock.
Table: Rating, Reviewer
Question: What is the average number of stars that each reviewer awards for a movie?
SQL query:
SELECT T2.name AS "Reviewer name", AVG(T1.stars) AS "average stars" 
 FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID 
 GROUP BY T2.name
Result:
,Reviewer name,average stars
0,Ashley White,3.0

Answer: The reviewer named Ashley White has 3 average stars.
Table: csu_fees
Question: Find the average fee on a CSU campus in 1996
SQL query:
SELECT AVG(campusfee) AS "average campusfee", YEAR 
 FROM csu_fees 
 WHERE YEAR = 1996
Result:
,Year,average campusfee
0,1996.0,1936.090909090909

Answer: In 1996 the average campus fee was 1936.090909090909.
Table: TRANSACTIONS
Question: Show the maximum share count of transactions where the amount is smaller than 10000
SQL query:
SELECT MAX(share_count) AS "maximum share_count", amount_of_transaction 
 FROM TRANSACTIONS 
 WHERE amount_of_transaction < 10000
Result:
,maximum share_count,amount_of_transaction
0,93191,8.9

Answer: The maximum share count of transactions with the amount of 8.9 is 93191
Table: department
Question: what is the address of history department?
SQL query:
SELECT dept_address, dept_name 
 FROM department 
 WHERE dept_name = 'History'
Result:
,DEPT_NAME,DEPT_ADDRESS
0,History,"DRE 156, Box 284"

Answer: The department of History has address DRE 156, Box 284.
Table: catalog_contents
Question: Find the names of all the products whose stock number starts with "2".
SQL query:
SELECT catalog_entry_name, product_stock_number 
 FROM catalog_contents 
 WHERE product_stock_number LIKE '2%'
Result:
,catalog_entry_name,product_stock_number
0,Sprite Lemo,24 ec

Answer: The product named Sprite Lemo has a stock number of 24 ec
Table: College
Question: How many students are enrolled in college?
SQL query:
SELECT SUM(enr) AS "sum of enr" 
 FROM College
Result:
,sum of enr
0,71000

Answer: There are 71000 enrolled
Table: races, results
Question: What is the average fastest lap speed in race named 'Monaco Grand Prix' in 2008 ?
SQL query:
SELECT AVG(T2.fastestlapspeed) AS "average fastestlapspeed", T1.year AS "races year", T1.name AS "races name" 
 FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid 
 WHERE T1.year = 2008 AND T1.name = 'Monaco Grand Prix'
Result:
,races name,races year,average fastestlapspeed
0,Monaco Grand Prix,2008,146.49920000000003

Answer: The race of the Monaco Grand Prix was held in 2008 and the average lap speed was 146.49920000000003.
Table: WINE
Question: List the names of all distinct wines that have 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 with name Old Kraft Vineyard has a score of 93
Table: repair_assignment, machine, technician
Question: What are the names of the technicians that are assigned to repair machines with more point values than 70?
SQL query:
SELECT T3.Name AS "technician Name", T2.value_points AS "machine value_points" 
 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 
 WHERE T2.value_points > 70
Result:
,technician Name,machine value_points
0,Joe Sewell,105.0

Answer: The technician Joe Sewell has to repair machines with more than 105 value points.
Table: CLASS, enroll, student
Question: What are the course codes for every class that the student with the last name Smithson took?
SQL query:
SELECT T1.crs_code AS "CLASS crs_code", T3.stu_lname AS "student stu_lname" 
 FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num 
 WHERE T3.stu_lname = 'Smithson'
Result:
,CLASS crs_code,student stu_lname
0,ACCT-211,Smithson

Answer: The class with the course code ACCT-211 has been taken from a student with last name Smithson.
Table: stock, device, shop
Question: Show names of shops and the carriers of devices they have in stock.
SQL query:
SELECT T3.Shop_Name AS "shop Shop_Name", T2.Carrier AS "device Carrier" 
 FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID = T3.Shop_ID
Result:
,device Carrier,shop Shop_Name
0,Bell Mobility,Dinas Device

Answer: The Dinas Device shop has devices with Bell Mobility carrier.
Table: county_public_safety
Question: How many counties are there?
SQL query:
SELECT COUNT(*) AS "count of county_public_safety" 
 FROM county_public_safety
Result:
,count of county_public_safety
0,6

Answer: There are 6 counties
Table: FACULTY
Question: Find the first names and last names of male (sex is M) faculties who live in building NEB.
SQL query:
SELECT Fname, Lname, sex, Building 
 FROM FACULTY 
 WHERE sex = 'M' AND Building = 'NEB'
Result:
,Sex,Fname,Lname,Building
0,M,Mark,Giuliano,NEB

Answer: The male faculty who lives in building NEB is named Mark Giuliano
Table: cinema
Question: Which locations have 2 or more cinemas with capacity over 300?
SQL query:
SELECT LOCATION, capacity 
 FROM cinema 
 WHERE capacity > 300 
 GROUP BY LOCATION 
 HAVING COUNT(*) >= 2
Result:
,Capacity,Location
0,305,County Clare

Answer: County Clare is a location with cinema capacity of 305
Table: Financial_transactions
Question: What is the average and total transaction amount?
SQL query:
SELECT AVG(transaction_amount) AS "average transaction_amount", SUM(transaction_amount) AS "sum of transaction_amount" 
 FROM Financial_transactions
Result:
,sum of transaction_amount,average transaction_amount
0,19624.4,1308.2933333333335

Answer: The average transaction amount is 1308.2933333333335 and the total transaction amount is 19624.4