MikeXydas/qr2t_benchmark huggingface dataset:
Table: airlines
Question: Which countries has the most number of airlines whose active status is 'Y'?
SQL query:
SELECT country, active 
 FROM airlines 
 WHERE active = 'Y' 
 GROUP BY country ORDER BY COUNT(*) DESC
Result:
,active,country
0,Y,United States

Answer: The US has the most airlines with an active status "Y"
Table: club, player
Question: What is the average number of points for players from the "AIB" club?
SQL query:
SELECT AVG(T2.Points) AS "average Points", T1.name AS "club name" 
 FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID 
 WHERE T1.name = 'AIB'
Result:
,club name,average Points
0,AIB,28.0

Answer: "AIB" club has on average 28 points.
Table: policies, customers
Question: Find all the policy type codes associated with the customer "Dayana Robel"
SQL query:
SELECT policy_type_code, t2.customer_details AS "customers customer_details" 
 FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id 
 WHERE t2.customer_details = 'Dayana Robel'
Result:
,Policy_Type_Code,customers customer_details
0,Uniformed,Dayana Robel

Answer: The customer Dayana Robel is associated with the policy type Uniformed.
Table: races, circuits
Question: What are the names of the races held after 2017 in Spain?
SQL query:
SELECT T1.name AS "races name", T2.country AS "circuits country", T1.year AS "races year" 
 FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid 
 WHERE T2.country = 'Spain' AND T1.year > 2017
Result:
,races name,races year,circuits country
0,Spanish Grand Prix,2018,Spain

Answer: The 2018 Spanish Grand Prix was held in Spain.
Table: journal_committee, editor, journal
Question: Show the names of editors that are on the committee of journals with sales bigger than 3000.
SQL query:
SELECT T2.Name AS "editor Name", T3.Sales AS "journal Sales" 
 FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID 
 WHERE T3.Sales > 3000
Result:
,editor Name,journal Sales
0,Kamila Porczyk,4271

Answer: The names of the editors are Kamila Porczyk with 4271 journal sales
Table: channel
Question: What is the total share (in percent) of all the channels owned by CCTV?
SQL query:
SELECT SUM(Share_in_percent) AS "sum of Share_in_percent", OWNER 
 FROM channel 
 WHERE OWNER = 'CCTV'
Result:
,Owner,sum of Share_in_percent
0,CCTV,22.090000000000003

Answer: The total percentage share of channels owned by CCTV is 22.09
Table: professor, employee, department
Question: Find the first name and office of history professor who did not get a Ph.D. degree.
SQL query:
SELECT T2.emp_fname AS "employee emp_fname", T1.prof_office AS "professor prof_office", T1.prof_high_degree AS "professor prof_high_degree", T3.dept_name AS "department dept_name" 
 FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T1.dept_code = T3.dept_code 
 WHERE T3.dept_name = 'History' AND T1.prof_high_degree <> 'Ph.D.'
Result:
,employee emp_fname,department dept_name,professor prof_office,professor prof_high_degree
0,James,History,DRE 156,MA

Answer: James from the history department, where his office is DRE 156, holds a MA degree.
Table: Student
Question: Show all cities and corresponding number of students.
SQL query:
SELECT city_code, COUNT(*) AS "count of Student" 
 FROM Student 
 GROUP BY city_code
Result:
,city_code,count of Student
0,ATL,1

Answer: There is 1 student in the city with code ATL.
Table: races
Question: Find the names of all races held in 2017.
SQL query:
SELECT name, YEAR 
 FROM races 
 WHERE YEAR = 2017
Result:
,name,year
0,Australian Grand Prix,2017

Answer: The race of the Australian Grand Prix was held in 2017.
Table: bank
Question: Find the city and state of the bank branch named morningside.
SQL query:
SELECT city, state, bname 
 FROM bank 
 WHERE bname = 'morningside'
Result:
,city,bname,state
0,New York City,morningside,New York

Answer: The bank named morningside is in New York City.
Table: media_types
Question: What are the names of all the media types?
SQL query:
SELECT name 
 FROM media_types
Result:
,name
0,MPEG audio file

Answer: The name of the media is MPEG audio file.
Table: volume
Question: What are the songs in volumes with more than 1 week on top?
SQL query:
SELECT Song, Weeks_on_Top 
 FROM volume 
 WHERE Weeks_on_Top > 1
Result:
,Song,Weeks_on_Top
0, The Way,3.0

Answer: The Way is a song with 3 weeks on top in volumes.
Table: student, department
Question: What is the name and the average gpa of department whose students have the highest average gpa?
SQL query:
SELECT T2.dept_name AS "department dept_name", AVG(T1.stu_gpa) AS "average stu_gpa", T1.dept_code AS "student dept_code" 
 FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code 
 GROUP BY T1.dept_code ORDER BY AVG(T1.stu_gpa) DESC
Result:
,average stu_gpa,student dept_code,department dept_name
0,3.1799999999999997,CIS,Computer Info. Systems

Answer: The department name is Computer Info. Systems with code CIS and the average gap of the students is 3.1799999999999997
Table: course, SECTION
Question: What is the title of the course that was offered at building Chandler during the fall semester in the year of 2010?
SQL query:
SELECT T1.title AS "course title", building, YEAR, semester 
 FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id 
 WHERE building = 'Chandler' AND semester = 'Fall' AND YEAR = 2010
Result:
,year,building,semester,course title
0,2010,Chandler,Fall,International Trade

Answer: In 2020, during the fall semester the course International Trade was offered in the Chandler building.
Table: performance
Question: Show the locations that have at least two performances.
SQL query:
SELECT LOCATION 
 FROM performance 
 GROUP BY LOCATION 
 HAVING COUNT(*) >= 2
Result:
,Location
0,Verizon Center

Answer: The location Verizon Center has at least two performances.
Table: phone
Question: Find all phones that have word 'Full' in their accreditation types. List the Hardware Model name and Company name.
SQL query:
SELECT Hardware_Model_name, Company_name, Accreditation_type 
 FROM phone 
 WHERE Accreditation_type LIKE 'Full'
Result:
,Company_name,Accreditation_type,Hardware_Model_name
0,Sony Mobile Communications,Full,"XPERIA T, XPERIA J"

Answer: The company Sony Mobile Communications has the phones XPERIA T, XPERIA J with accreditation type Full.
Table: products
Question: What are the names of products with category "Spices"?
SQL query:
SELECT product_name, product_category_code 
 FROM products 
 WHERE product_category_code = 'Spices'
Result:
,product_name,product_category_code
0,cumin,Spices

Answer: Cumin is one of the products in the category of spices
Table: Faculty
Question: How many Professors are 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: The count of faculty with rank Professor, in the building NEB, is 5.
Table: Staff
Question: How many staff have the first name Ludie?
SQL query:
SELECT COUNT(*) AS "count of Staff", first_name 
 FROM Staff 
 WHERE first_name = 'Ludie'
Result:
,first_name,count of Staff
0,Ludie,1

Answer: There is one staff named Ludie
Table: Faculty
Question: What are the rank, first name, and last name of the faculty members?
SQL query:
SELECT rank, Fname, Lname 
 FROM Faculty
Result:
,Rank,Fname,Lname
0,Instructor,Mark,Giuliano

Answer: Mark Giuliano has the instructor rank.
Table: medicine_enzyme_interaction, medicine, enzyme
Question: What is the type of interaction for the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'?
SQL query:
SELECT T1.interaction_type AS "medicine_enzyme_interaction interaction_type", T3.name AS "enzyme name", T2.name AS "medicine name" 
 FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id = T2.id JOIN enzyme AS T3 ON T1.enzyme_id = T3.id 
 WHERE T3.name = 'ALA synthase' AND T2.name = 'Aripiprazole'
Result:
,enzyme name,medicine name,medicine_enzyme_interaction interaction_type
0,ALA synthase,Aripiprazole,inhibitor

Answer: The ezyme named ALA synthase and the medicine named Aripiprazole have an inhibitor type of interaction
Table: product
Question: Find products with max page size as "A4" and pages per minute color smaller than 5.
SQL query:
SELECT product, max_page_size, pages_per_minute_color 
 FROM product 
 WHERE max_page_size = 'A4' AND pages_per_minute_color < 5
Result:
,product,max_page_size,pages_per_minute_color
0,Xerox Travel Scanner 100,A4,4.0

Answer: Xerox Travel Scanner 100 has a max page size of A4 and 4 color pages per minute
Table: manufacturers
Question: How many manufacturers have headquarters in either Tokyo or Beijing?
SQL query:
SELECT COUNT(*) AS "count of manufacturers", headquarter 
 FROM manufacturers 
 WHERE headquarter = 'Tokyo' OR headquarter = 'Beijing'
Result:
,Headquarter,count of manufacturers
0,Tokyo,2

Answer: The headquarter in Tokyo has 2 manufacturers.
Table: inst
Question: How many institutions are there?
SQL query:
SELECT COUNT(*) AS "count of inst" 
 FROM inst
Result:
,count of inst
0,8

Answer: There are 8 institutions.
Table: home_game
Question: For each year, return the year and the average number of attendance at home games.
SQL query:
SELECT YEAR, AVG(attendance) AS "average attendance" 
 FROM home_game 
 GROUP BY YEAR
Result:
,year,average attendance
0,1871.0,17125.0

Answer: For the year 1871 the average number of attendance at home games was 17125
Table: channel
Question: What is the total rating of channel for each channel owner?
SQL query:
SELECT SUM(Rating_in_percent) AS "sum of Rating_in_percent", OWNER 
 FROM channel 
 GROUP BY OWNER
Result:
,Owner,sum of Rating_in_percent
0,Anhui Television,0.2

Answer: The channel owned by Anhui Television has a total rating of 0.2
Table: university
Question: What are the public schools and what are their locations?
SQL query:
SELECT school, LOCATION, affiliation 
 FROM university 
 WHERE affiliation = 'Public'
Result:
,School,Location,Affiliation
0,University of Delaware,"Newark, DE",Public

Answer: The school University of Delaware is located in Newark, DE and its affiliation is Public.
Table: COURSE
Question: How many courses have more than 2 credits?
SQL query:
SELECT COUNT(*) AS "count of COURSE", Credits 
 FROM COURSE 
 WHERE Credits > 2
Result:
,Credits,count of COURSE
0,3,71

Answer: There are 71 courses with 3 credits.
Table: candidate
Question: Count the number of candidates.
SQL query:
SELECT COUNT(*) AS "count of candidate" 
 FROM candidate
Result:
,count of candidate
0,6

Answer: There are 6 candidates.
Table: user_profiles
Question: Find the maximum and total number of followers of all users.
SQL query:
SELECT MAX(followers) AS "maximum followers", SUM(followers) AS "sum of followers" 
 FROM user_profiles
Result:
,sum of followers,maximum followers
0,260392178,99999998

Answer: All users have a combined 260392178 followers, while the maximum number of followers is 99999998
Table: device
Question: What are the carriers of devices whose software platforms are not "Android"?
SQL query:
SELECT Carrier, Software_Platform 
 FROM device 
 WHERE Software_Platform <> 'Android'
Result:
,Carrier,Software_Platform
0,Verizon Wireless,iOS

Answer: Verizon Wireless is the carrier of devices whose software platform is iOS.
Table: campuses
Question: What campuses are located in Chico?
SQL query:
SELECT campus, LOCATION 
 FROM campuses 
 WHERE LOCATION = 'Chico'
Result:
,Campus,Location
0,California State University-Chico,Chico

Answer: The campus of California State University-Chico is located in Chico
Table: party_host, HOST, party
Question: Show the themes of parties and the names of the party hosts.
SQL query:
SELECT T3.Party_Theme AS "party Party_Theme", T2.Name AS "HOST Name" 
 FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID
Result:
,HOST Name,party Party_Theme
0,Austin Daye,Spring

Answer: Host Austin Daye has a party with theme "Spring".
Table: HOTELS
Question: What are the price ranges of hotels?
SQL query:
SELECT price_range 
 FROM HOTELS
Result:
,price_range
0,2914989.571

Answer: The price range of the hotels is 2914989.571.
Table: Apartments
Question: Find the average room count of the apartments that have the "Studio" type code.
SQL query:
SELECT AVG(room_count) AS "average room_count", apt_type_code 
 FROM Apartments 
 WHERE apt_type_code = 'Studio'
Result:
,apt_type_code,average room_count
0,Studio,7.5

Answer: The average room count of the apartments that have the "Studio" type code is 7.5
Table: GENRE, TRACK
Question: Find the average unit price of jazz tracks.
SQL query:
SELECT AVG(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 = 'Jazz'
Result:
,GENRE Name,average UnitPrice
0,Jazz,0.9899999999999978

Answer: The average unit price of the music genre Jazz is 0.9899999999999978
Table: city
Question: Which cities have regional population above 10000000?
SQL query:
SELECT city, regional_population 
 FROM city 
 WHERE regional_population > 10000000
Result:
,City,Regional_Population
0,Shanghai,23019148

Answer: The city Shanghai has regional population 23019148.
Table: acceptance, submission
Question: Show the result of the submission with the highest score.
SQL query:
SELECT T1.Result AS "acceptance Result", T2.Scores AS "submission Scores" 
 FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID ORDER BY T2.Scores DESC
Result:
,acceptance Result,submission Scores
0,Rejected,82.0

Answer: The submission score is 82 and the acceptance result is Rejected.
Table: people, candidate
Question: Find the name of the candidates whose oppose percentage is the lowest for each 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: artist
Question: Show all artist names and the year joined who are not from United States.
SQL query:
SELECT name, year_join, country 
 FROM artist 
 WHERE country <> 'United States'
Result:
,Name,Country,Year_Join
0,Vijay Singh,Fiji,1998

Answer: The join year of Vijay Singh who is from Fiji is 1998.
Table: Student
Question: How many students are age 18?
SQL query:
SELECT COUNT(*) AS "count of Student", age 
 FROM Student 
 WHERE age = 18
Result:
,Age,count of Student
0,18,10

Answer: 10 students are at the age of 18
Table: people, perpetrator
Question: What are the names of perpetrators whose country is not "China"?
SQL query:
SELECT T1.Name AS "people Name", T2.Country AS "perpetrator Country" 
 FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID 
 WHERE T2.Country <> 'China'
Result:
,people Name,perpetrator Country
0,Ron Baxter,South Korea

Answer: Perpetrator Ron Baxter is from South Korea
Table: useracct, review
Question: Find the name of the user who gave the highest rating.
SQL query:
SELECT T1.name AS "useracct name", T2.rating AS "review rating" 
 FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id ORDER BY T2.rating DESC
Result:
,review rating,useracct name
0,10,Helen

Answer: The user account Helen has a review rating of 10.
Table: Projects, Project_outcomes, Research_outcomes
Question: List the project details of the projects with the research outcome described with the substring 'Published'.
SQL query:
SELECT T1.project_details AS "Projects project_details", T3.outcome_description AS "Research_outcomes outcome_description" 
 FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id JOIN Research_outcomes AS T3 ON T2.outcome_code = T3.outcome_code 
 WHERE T3.outcome_description LIKE '%Published%'
Result:
,Projects project_details,Research_outcomes outcome_description
0,doloremque,Published Research Paper

Answer: The project with the detail 'doloremque' had a Published Research Paper as an outcome.
Table: artist
Question: How many Bangladeshi artists are listed?
SQL query:
SELECT COUNT(*) AS "count of artist", country 
 FROM artist 
 WHERE country = 'Bangladesh'
Result:
,country,count of artist
0,Bangladesh,2

Answer: Bangladesh has two artists
Table: match_season
Question: Show the draft pick numbers and draft classes of players whose positions are defenders.
SQL query:
SELECT Draft_Pick_Number, Draft_Class, POSITION 
 FROM match_season 
 WHERE POSITION = 'Defender'
Result:
,Position,Draft_Class,Draft_Pick_Number
0,Defender,1996 MLS Inaugural Player Draft,87

Answer: Pick number 87 of the 1996 MLS Inaugural Player Draft is a Defender
Table: film
Question: List the studios which average gross is above 4500000.
SQL query:
SELECT Studio 
 FROM film 
 GROUP BY Studio 
 HAVING AVG(Gross_in_dollar) >= 4500000
Result:
,Studio
0,20th Century Fox

Answer: The studio with average gross above 4500000 is 20th Century Fox
Table: actor
Question: What are the names of actors who are not 20 years old?
SQL query:
SELECT Name, Age 
 FROM actor 
 WHERE Age <> 20
Result:
,age,Name
0,26,Ray Meagher

Answer: The actor Ray Meagher is 26 years old.
Table: WINE
Question: List the names and scores of all wines.
SQL query:
SELECT Name, Score 
 FROM WINE
Result:
,Name,Score
0,Old Kraft Vineyard,93

Answer: The wine Old Kraft Vineyard has a score of 93.
Table: body_builder
Question: What is the average snatch score of body builders?
SQL query:
SELECT AVG(Snatch) AS "average Snatch" 
 FROM body_builder
Result:
,average Snatch
0,137.5

Answer: The average snatch score of body builders is 137.5.
Table: Tasks
Question: How many tasks are there?
SQL query:
SELECT COUNT(*) AS "count of Tasks" 
 FROM Tasks
Result:
,count of Tasks
0,15

Answer: There are 15 tasks.
Table: Student
Question: Which city does the student whose last name is "Kim" live in?
SQL query:
SELECT city_code, LName 
 FROM Student 
 WHERE LName = 'Kim'
Result:
,LName,city_code
0,Kim,HKG

Answer: The student with last name Kim, live in the city with code "HKG"
Table: club
Question: Where us the club named "Tennis Club" located?
SQL query:
SELECT clublocation, clubname 
 FROM club 
 WHERE clubname = 'Tennis Club'
Result:
,ClubName,ClubLocation
0,Tennis Club,AKW

Answer: The club named Tennis Club is located in AKW
Table: artist
Question: How many artists do we have?
SQL query:
SELECT COUNT(*) AS "count of artist" 
 FROM artist
Result:
,count of artist
0,7

Answer: There are 7 artists in total.
Table: Order_items, Products
Question: What are the different product names, and what is the sum of quantity ordered for each product?
SQL query:
SELECT T2.product_name AS "Products product_name", SUM(T1.product_quantity) AS "sum of product_quantity" 
 FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id 
 GROUP BY T2.product_name
Result:
,Products product_name,sum of product_quantity
0,Arts,5

Answer: There are 5 Art products ordered
Table: music_festival
Question: What are the dates of ceremony and results for each music festival?
SQL query:
SELECT Date_of_ceremony, RESULT 
 FROM music_festival
Result:
,Result,Date_of_ceremony
0,Nominated,18 February 2011

Answer: The result was Nominated and the date of the ceremony was 18 February 2011.
Table: STUDENT, VOTING_RECORD
Question: Find the average age of female (sex is F) students who have secretary votes in the spring election cycle.
SQL query:
SELECT AVG(T1.Age) AS "average Age", T1.Sex AS "STUDENT Sex", T2.Election_Cycle AS "VOTING_RECORD Election_Cycle" 
 FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote 
 WHERE T1.Sex = 'F' AND T2.Election_Cycle = 'Spring'
Result:
,STUDENT Sex,average Age,VOTING_RECORD Election_Cycle
0,F,21.0,Spring

Answer: The female students who have votes in the spring election cycle have an average age of 21.
Table: products, ref_colors
Question: What is the color code and description of the product named "chervil"?
SQL query:
SELECT t1.color_code AS "products color_code", t2.color_description AS "ref_colors color_description", t1.product_name AS "products product_name" 
 FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code 
 WHERE t1.product_name = 'chervil'
Result:
,products color_code,products product_name,ref_colors color_description
0,7,chervil,black

Answer: The color code of the product named chervil is 7 and the color description is black
Table: Rooms
Question: List the name of rooms with king or queen bed.
SQL query:
SELECT roomName, bedType 
 FROM Rooms 
 WHERE bedType = 'King' OR bedType = 'Queen'
Result:
,bedType,roomName
0,King,Recluse and defiance

Answer: The name of room with bed type King is Recluse and defiance
Table: customers, invoices
Question: What are the first and last names of the 5 customers who purchased something most recently?
SQL query:
SELECT T1.first_name AS "customers first_name", T1.last_name AS "customers last_name", T2.invoice_date AS "invoices invoice_date" 
 FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC
Result:
,customers last_name,customers first_name,invoices invoice_date
0,Pareek,Manoj,2011-12-22 00:00:00

Answer: Manoj Pareek purchased something on 2011-12-22 00:00:00
Table: Staff
Question: When did the staff member with first name as Janessa and last name as Sawayn join the company?
SQL query:
SELECT date_joined_staff, last_name, first_name 
 FROM Staff 
 WHERE first_name = 'Janessa' AND last_name = 'Sawayn'
Result:
,last_name,first_name,date_joined_staff
0,Sawayn,Janessa,2017-04-27 03:21:26

Answer: Sawayn Janessa joinded the staff in 2017-04-27 03:21:26.
Table: technician
Question: What is the team and starting year for each technician?
SQL query:
SELECT Team, Starting_Year 
 FROM technician
Result:
,Team,Starting_Year
0,NYY,2012.0

Answer: A technician in the NYY team started in 2012
Table: invoices
Question: List the number of invoices and the invoice total from California.
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: There are 21 invoices from California with a combined total of 115.85
Table: party, region
Question: Show all party names and their region names.
SQL query:
SELECT T1.party_name AS "party party_name", T2.region_name AS "region region_name" 
 FROM party AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id
Result:
,party party_name,region region_name
0,Convention Peoples Party,United Kingdom

Answer: The party named Convention Peoples Party was in the United Kingdom region.
Table: Rating, Movie
Question: What are the titles and average ratings for all movies that have the lowest average rating?
SQL query:
SELECT T2.title AS "Movie title", AVG(T1.stars) AS "average stars", T1.mID AS "Rating mID" 
 FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID 
 GROUP BY T1.mID ORDER BY AVG(T1.stars)
Result:
,Rating mID,Movie title,average stars
0,103,The Sound of Music,2.5

Answer: The movie with id 103 and title The Sound of Music has 2.5 stars in average.
Table: Faculty
Question: Show the first name, last name, and phone number for all female faculty members.
SQL query:
SELECT Fname, Lname, phone, Sex 
 FROM Faculty 
 WHERE Sex = 'F'
Result:
,Sex,Fname,Lname,Phone
0,F,Stacey,Jones,3550

Answer: Faculty member Stacey Jones has phone number 3550 and is female
Table: Video_games
Question: Show all video games with type Collectible card game.
SQL query:
SELECT gname, gtype 
 FROM Video_games 
 WHERE gtype = 'Collectible card game'
Result:
,GName,GType
0,RNG Stone,Collectible card game

Answer: The game RNG Stone is a a collectible card game.
Table: participants
Question: What is the most common participant type?
SQL query:
SELECT participant_type_code 
 FROM participants 
 GROUP BY participant_type_code ORDER BY COUNT(*) DESC
Result:
,Participant_Type_Code
0,Participant

Answer: The participant type code is Participant.