MikeXydas/qr2t_benchmark huggingface dataset:
Table: member, round
Question: Show the names of members in ascending order of their rank in rounds.
SQL query:
SELECT T1.Name AS "member Name", Rank_in_Round 
 FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID ORDER BY Rank_in_Round ASC
Result:
,member Name,Rank_in_Round
0,Jack Nicklaus,1

Answer: Jack Nicklaus has a rank in round of 1
Table: city
Question: Show the census ranking of cities whose status are not "Village".
SQL query:
SELECT Census_Ranking, Status 
 FROM city 
 WHERE Status <> 'Village'
Result:
,Status,Census_Ranking
0,Town,636 of 5008

Answer: The town has a Census Ranking of 636 of 50008.
Table: phone_market, market, phone
Question: Show the names of phones that are on market with number of shops greater than 50.
SQL query:
SELECT T3.Name AS "phone Name", T2.Num_of_shops AS "market Num_of_shops" 
 FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID 
 WHERE T2.Num_of_shops > 50
Result:
,phone Name,market Num_of_shops
0,IPhone 5s,54.0

Answer: The phone IPhone 5s has 54 shops on market.
Table: Course_Authors_and_Tutors
Question: List all the login names and family names of course author and tutors.
SQL query:
SELECT login_name, family_name 
 FROM Course_Authors_and_Tutors
Result:
,login_name,family_name
0,jmckenzie,Grant

Answer: The user with login name jmckenzie has the family name Grant.
Table: enzyme
Question: What are the names of enzymes that include the string 'ALA'?
SQL query:
SELECT name 
 FROM enzyme 
 WHERE name LIKE '%ALA%'
Result:
,name
0,ALA synthase

Answer: The name is ALA synthase.
Table: customers, customer_addresses, addresses
Question: What are the names of customers who live in Colorado state?
SQL query:
SELECT t1.customer_name AS "customers customer_name", t3.state_province_county AS "addresses state_province_county" 
 FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id 
 WHERE t3.state_province_county = 'Colorado'
Result:
,customers customer_name,addresses state_province_county
0,Miss Aliyah Witting,Colorado

Answer: The name of the customer who lives in the state of Colorado is Miss Aliyah Witting
Table: artist
Question: Return the average age across all artists.
SQL query:
SELECT AVG(Age) AS "average Age" 
 FROM artist
Result:
,average Age
0,31.428571428571427

Answer: The average age is 31.428571428571427.
Table: STUDENT, VOTING_RECORD
Question: What is the average age of the female students with 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 average age of the female students with secretary votes in the Spring election cycle is 21.
Table: rooms
Question: Which rooms cost between 120 and 150? Give me the room names.
SQL query:
SELECT roomname, baseprice 
 FROM rooms 
 WHERE baseprice BETWEEN 120 AND 150
Result:
,roomName,basePrice
0,Recluse and defiance,150

Answer: The room named Recluse and defiance has the base price of 150.
Table: campuses
Question: Find all the campuses opened in 1958.
SQL query:
SELECT campus, YEAR 
 FROM campuses 
 WHERE YEAR = 1958
Result:
,Year,Campus
0,1958,California State University-Northridge

Answer: California State University-Northridge campus opened in 1958
Table: inventory
Question: How many items in inventory does store 1 have?
SQL query:
SELECT COUNT(*) AS "count of inventory", store_id 
 FROM inventory 
 WHERE store_id = 1
Result:
,store_id,count of inventory
0,1,2270

Answer: Store 1 has 2270 inventories.
Table: COURSE
Question: How many courses are there in total?
SQL query:
SELECT COUNT(*) AS "count of COURSE" 
 FROM COURSE
Result:
,count of COURSE
0,76

Answer: There are 76 courses in total.
Table: catalog_contents
Question: Find the names of the products with length smaller than 3 or height greater than 5.
SQL query:
SELECT catalog_entry_name, width, LENGTH 
 FROM catalog_contents 
 WHERE LENGTH < 3 OR width > 5
Result:
,width,length,catalog_entry_name
0,6,6,Root beer

Answer: The width is 6, the length is 6 and the catalog's entry name is Root beer.
Table: employees, departments, locations
Question: What are the full names, departments, cities, and state provinces for each employee?
SQL query:
SELECT T1.first_name AS "employees first_name", T1.last_name AS "employees last_name", T2.department_name AS "departments department_name", T3.city AS "locations city", T3.state_province AS "locations state_province" 
 FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id
Result:
,locations city,employees last_name,employees first_name,locations state_province,departments department_name
0,Seattle,King,Steven,Washington,Executive

Answer: Steven King works in the Executive dept. in Seattle, Washington
Table: film
Question: What are the titles and studios of films that have been produced by a studio whose name contains "Universal"?
SQL query:
SELECT title, Studio 
 FROM film 
 WHERE Studio LIKE '%Universal%'
Result:
,Title,Studio
0,ET the Extra-Terrestrial,Universal

Answer: The film ET the Extra-Terrestrial has been produced by Universal studio
Table: body_builder, people
Question: What is the name of the body builder with the greatest body weight?
SQL query:
SELECT T2.Name AS "people Name", T2.Weight AS "people Weight" 
 FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC
Result:
,people Name,people Weight
0,Al Montoya,100.0

Answer: The heaviest body builder is Al Montoya, weighing 100
Table: district
Question: Find the name all districts with city area greater than 10 or population larger than 100000
SQL query:
SELECT district_name, City_Population, city_area 
 FROM district 
 WHERE city_area > 10 OR City_Population > 100000
Result:
,City_Area,District_name,City_Population
0,20.0,Attock District,94620.0

Answer: The Attock District has a city area of 20 and city population of 94620
Table: Ref_document_types
Question: List all 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 the document type name is CV
Table: Catalog_Structure
Question: What are the name and level of catalog structure with level number between 5 and 10
SQL query:
SELECT catalog_level_name, catalog_level_number 
 FROM Catalog_Structure 
 WHERE catalog_level_number BETWEEN 5 AND 10
Result:
,catalog_level_name,catalog_level_number
0,Sub-Category,8

Answer: The name of the catalog level is Sub-Category and the catalog level number is 8
Table: exhibition
Question: Show theme and year for all exhibitions with ticket prices lower than 15.
SQL query:
SELECT theme, YEAR, ticket_price 
 FROM exhibition 
 WHERE ticket_price < 15
Result:
,Year,Theme,Ticket_Price
0,2006,Santa Claus and Rudolph the Red-Nosed Reindeer,14.95

Answer: Exhibition "Santa Claus and Rudolph the Red-Nosed Reindeer" was held in 2006 and its ticket price was 14.95.
Table: services
Question: How many services are there?
SQL query:
SELECT COUNT(*) AS "count of services" 
 FROM services
Result:
,count of services
0,4

Answer: There are 4 services.
Table: film_market_estimation
Question: What are the low and high estimates of film markets?
SQL query:
SELECT Low_Estimate, High_Estimate 
 FROM film_market_estimation
Result:
,Low_Estimate,High_Estimate
0,80000.0,80400.0

Answer: Film markets have a low estimate of 80000 and a high estimate of 80400.
Table: Allergy_type
Question: How many allergies have type animal?
SQL query:
SELECT COUNT(*) AS "count of Allergy_type", allergytype 
 FROM Allergy_type 
 WHERE allergytype = 'animal'
Result:
,AllergyType,count of Allergy_type
0,animal,4

Answer: There are 4 types of animal allergies.
Table: product
Question: Find the most prominent max page size among all the products.
SQL query:
SELECT max_page_size 
 FROM product 
 GROUP BY max_page_size ORDER BY COUNT(*) DESC
Result:
,max_page_size
0,A4

Answer: The most prominent max page size is A4.
Table: Street_Markets, TOURIST_ATTRACTIONS
Question: Find the details of all the markets that are accessible by walk or bus.
SQL query:
SELECT T1.Market_Details AS "Street_Markets Market_Details", T2.How_to_Get_There AS "TOURIST_ATTRACTIONS How_to_Get_There" 
 FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID = T2.Tourist_Attraction_ID 
 WHERE T2.How_to_Get_There = 'walk' OR T2.How_to_Get_There = 'bus'
Result:
,Street_Markets Market_Details,TOURIST_ATTRACTIONS How_to_Get_There
0,Broadway,walk

Answer: The market with details Broadway is accessible by walk.
Table: Ref_calendar
Question: How many calendar items do we have?
SQL query:
SELECT COUNT(*) AS "count of Ref_calendar" 
 FROM Ref_calendar
Result:
,count of Ref_calendar
0,15

Answer: There are 15 ref calendars.
Table: Document_locations
Question: Show the location code, the starting date and ending data in that location for all the documents.
SQL query:
SELECT location_code, date_in_location_from, date_in_locaton_to 
 FROM Document_locations
Result:
,Location_Code,Date_in_Locaton_To,Date_in_Location_From
0,e,2008-06-08 12:45:38,2017-01-06 23:17:22

Answer: Location code "e" has a starting date of 2008-06-08 12:45:38 and an ending date of 2017-01-06 23:17:22
Table: products, ref_colors
Question: Return the color code and description for the product with the name '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 product named chervil has the color code 7 with description black.
Table: campuses
Question: What campuses are located in the county of Los Angeles?
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 California State University-Dominguez Hills is in the county of Los Angeles.
Table: Restaurant_Type
Question: What is the description of the restaurant type Sandwich?
SQL query:
SELECT ResTypeDescription, ResTypeName 
 FROM Restaurant_Type 
 WHERE ResTypeName = 'Sandwich'
Result:
,ResTypeName,ResTypeDescription
0,Sandwich,Simplest there is.

Answer: The restaurant type Sandwich has the description Simplest there is.
Table: documents
Question: What is the type 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 named David CV is of type CV.
Table: university
Question: What is the maximum enrollment across all schools?
SQL query:
SELECT MAX(Enrollment) AS "maximum Enrollment" 
 FROM university
Result:
,maximum Enrollment
0,56868.0

Answer: The maximum enrollment is 56868.
Table: Band
Question: Find the number of bands.
SQL query:
SELECT COUNT(*) AS "count of Band" 
 FROM Band
Result:
,count of Band
0,0

Answer: There are 0 bands.
Table: loan, bank, customer
Question: Find the names of bank branches that have provided a loan to any customer whose credit score is below 100.
SQL query:
SELECT T2.bname AS "bank bname", T3.credit_score AS "customer credit_score" 
 FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id 
 WHERE T3.credit_score < 100
Result:
,bank bname,customer credit_score
0,morningside,30

Answer: The morningside bank has a customer with credit score 30.
Table: city, temperature
Question: Which cities' temperature in March is lower than that in July or higher than that in Oct?
SQL query:
SELECT T1.city AS "city city" 
 FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id 
 WHERE T2.Mar < T2.Jul OR T2.Mar > T2.Oct
Result:
,city city
0,Shanghai

Answer: The city Shanghai
Table: playlists
Question: What are the names of all the playlists?
SQL query:
SELECT name 
 FROM playlists
Result:
,name
0,Music

Answer: The name is Music.
Table: technician
Question: What is the name of the technician whose team is not 'NYY'?
SQL query:
SELECT Name, Team 
 FROM technician 
 WHERE Team <> 'NYY'
Result:
,Name,Team
0,Tony Sewell,CLE

Answer: The technician named Tony Sewell supports the CLE team.
Table: Tourist_Attractions, VISITS, VISITORS
Question: Show the tourist attractions visited by the tourist whose detail is 'Vincent'.
SQL query:
SELECT T1.Name AS "Tourist_Attractions Name", T3.Tourist_Details AS "VISITORS Tourist_Details" 
 FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID JOIN VISITORS AS T3 ON T2.Tourist_ID = T3.Tourist_ID 
 WHERE T3.Tourist_Details = 'Vincent'
Result:
,Tourist_Attractions Name,VISITORS Tourist_Details
0,flying elephant,Vincent

Answer: The tourist with details Vincent has visited the flying elephant attraction.
Table: manager
Question: What is the maximum level of managers in countries that are not "Australia"?
SQL query:
SELECT MAX(LEVEL) AS "maximum LEVEL", Country 
 FROM manager 
 WHERE Country <> 'Australia	'
Result:
,Country,maximum LEVEL
0,Australia,12

Answer: The maxium level of managers in Australia is 12
Table: advisor, instructor, student
Question: Find the name and salary of instructors who are advisors of the students from the Math department.
SQL query:
SELECT T2.name AS "instructor name", T2.salary AS "instructor salary", T3.dept_name AS "student dept_name" 
 FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id 
 WHERE T3.dept_name = 'Math'
Result:
,instructor name,instructor salary,student dept_name
0,Sullivan,90038.09,Math

Answer: The salary of the instructors Sullivan from the Math department are 90038.09
Table: catalog_contents, catalog_structure
Question: Find the level name of the catalog with the lowest price (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 catalog level name with the lowest price in dollars is "Category", with a price of 200.78
Table: WINE
Question: What are the names of all wines produced in 2008?
SQL query:
SELECT Name, YEAR 
 FROM WINE 
 WHERE YEAR = '2008'
Result:
,Name,Year
0,Old Kraft Vineyard,2008

Answer: The wine Old Kraft Vineyard was produced in 2008.
Table: College
Question: What is average enrollment of colleges in the state FL?
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 enrollment of colleges in Florida is 19000
Table: order_items
Question: What is the average amount of items ordered in each order?
SQL query:
SELECT AVG(order_quantity) AS "average order_quantity" 
 FROM order_items
Result:
,average order_quantity
0,6.333333333333333

Answer: The average order quantity is 6.333333333333333.
Table: SUBJECTS
Question: What are the names of all the subjects.
SQL query:
SELECT subject_name 
 FROM SUBJECTS
Result:
,subject_name
0,Computer Science

Answer: The name of the subject is Computer Science
Table: classroom
Question: Count the number of rooms that are not in the Lamberton building.
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: entrepreneur, people
Question: Which company was started by the entrepreneur with the greatest height?
SQL query:
SELECT T1.Company AS "entrepreneur Company", T2.Height AS "people Height" 
 FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Height DESC
Result:
,people Height,entrepreneur Company
0,1.95,Elizabeth Galton Ltd

Answer: The company Elizabeth Galton Ltd was started by an en entrepreneur with a height of 1.95
Table: repair_assignment, machine, technician
Question: What are the names of the technicians by ascending order of quality rank for 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 named John Brown uses the machine with quality rank 1.
Table: festival_detail
Question: What are the names and locations of festivals?
SQL query:
SELECT Festival_Name, LOCATION 
 FROM festival_detail
Result:
,Location,Festival_Name
0,United States,Panasonic Awards

Answer: Panasonic Awards are held in United States.
Table: Allergy_type
Question: What are the allergies and their types?
SQL query:
SELECT allergy, allergytype 
 FROM Allergy_type
Result:
,Allergy,AllergyType
0,Eggs,food

Answer: The allergy on eggs is of type food.
Table: Apartment_Facilities, Apartments
Question: Find the total number of rooms in the apartments that have facility code "Gym".
SQL query:
SELECT SUM(T2.room_count) AS "sum of room_count", T1.facility_code AS "Apartment_Facilities facility_code" 
 FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id 
 WHERE T1.facility_code = 'Gym'
Result:
,sum of room_count,Apartment_Facilities facility_code
0,15,Gym

Answer: There are 15 rooms in the apartments that have facility code "Gym".
Table: Person
Question: How old is the doctor named Zach?
SQL query:
SELECT age, job, name 
 FROM Person 
 WHERE job = 'doctor' AND name = 'Zach'
Result:
,age,job,name
0,45,doctor,Zach

Answer: The doctor named Zach is 45 years old
Table: Drama_Workshop_Groups
Question: Show all the Store_Name 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: music_festival
Question: What are the category of music festivals with result "Awarded"?
SQL query:
SELECT Category, RESULT 
 FROM music_festival 
 WHERE RESULT = 'Awarded'
Result:
,Result,Category
0,Awarded,Best Song

Answer: The category of music festivals with result Awarded is Best Song
Table: Ref_budget_codes
Question: Return the description of the budget type that has the code ORG.
SQL query:
SELECT budget_type_description, budget_type_code 
 FROM Ref_budget_codes 
 WHERE budget_type_code = 'ORG'
Result:
,Budget_Type_Code,Budget_Type_Description
0,ORG,Organisation

Answer: The description of the budget type code "ORG" is "Organisation"
Table: employees
Question: How many employees live in Canada?
SQL query:
SELECT COUNT(*) AS "count of employees", country 
 FROM employees 
 WHERE country = 'Canada'
Result:
,country,count of employees
0,Canada,8

Answer: In the country of Canada 8 employees live.
Table: csu_fees
Question: What is the average fee for a CSU campus in the year of 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: The average campus fee on year 1996 is  1936.090909090909
Table: Faculty, Faculty_participates_in, Activity
Question: What are the names of the activities Mark Giuliano is involved in
SQL query:
SELECT T3.activity_name AS "Activity activity_name", T1.fname AS "Faculty fname", T1.lname AS "Faculty lname" 
 FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN Activity AS T3 ON T3.actid = T2.actid 
 WHERE T1.fname = 'Mark' AND T1.lname = 'Giuliano'
Result:
,Faculty fname,Faculty lname,Activity activity_name
0,Mark,Giuliano,Canasta

Answer: The faculty memebr Mark Giuliano is involved in the Canasta activity.
Table: city, county_public_safety
Question: Show white percentages of cities and the crime rates of counties they are in.
SQL query:
SELECT T1.White AS "city White", T2.Crime_rate AS "county_public_safety Crime_rate" 
 FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID
Result:
,city White,county_public_safety Crime_rate
0,93.1,118.0

Answer: City white with value 93.1 has a crime rate of 118.
Table: entrepreneur
Question: How many entrepreneurs are there?
SQL query:
SELECT COUNT(*) AS "count of entrepreneur" 
 FROM entrepreneur
Result:
,count of entrepreneur
0,6

Answer: There are 6 entrepreneurs.
Table: SHOPS, TOURIST_ATTRACTIONS
Question: Find the details of the shops that can be reached by walk.
SQL query:
SELECT T1.Shop_Details AS "SHOPS Shop_Details", T2.How_to_Get_There AS "TOURIST_ATTRACTIONS How_to_Get_There" 
 FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID = T2.Tourist_Attraction_ID 
 WHERE T2.How_to_Get_There = 'walk'
Result:
,SHOPS Shop_Details,TOURIST_ATTRACTIONS How_to_Get_There
0,soup,walk

Answer: The shop selling soup can be reached by walking
Table: EMPLOYEE
Question: List the phone numbers of all employees.
SQL query:
SELECT Phone 
 FROM EMPLOYEE
Result:
,Phone
0,+1 (780) 428-9482

Answer: The phone number is +1 (780) 428-9482.
Table: users
Question: How many users are logged in?
SQL query:
SELECT COUNT(*) AS "count of users", user_login 
 FROM users 
 WHERE user_login = 1
Result:
,user_login,count of users
0,1,7

Answer: There 7 users logged in.
Table: ARTIST
Question: What are the names of artist who have the letter 'a' in their names?
SQL query:
SELECT Name 
 FROM ARTIST 
 WHERE Name LIKE '%a%'
Result:
,Name
0,AC/DC

Answer: The name of the artist is AC/DC.
Table: discipline_enrollments, campuses
Question: What is the number of graduates in "San Francisco State University" in year 2004?
SQL query:
SELECT SUM(t1.graduate) AS "sum of graduate", t1.year AS "discipline_enrollments year", t2.campus AS "campuses campus" 
 FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id 
 WHERE t1.year = 2004 AND t2.campus = 'San Francisco State University'
Result:
,campuses campus,sum of graduate,discipline_enrollments year
0,San Francisco State University,5017,2004

Answer: The number of graduates in campus called San Francisco State University in year 2004 is 5017
Table: Customers
Question: What is the status code, phone number, and email address of the customer whose last name is Kohler or whose first name is Marina?
SQL query:
SELECT customer_status_code, cell_mobile_phone_number, email_address, last_name, first_name 
 FROM Customers 
 WHERE first_name = 'Marina' OR last_name = 'Kohler'
Result:
,last_name,first_name,email_address,customer_status_code,cell_mobile_phone_number
0,Koelpin,Marina,mayert.judy@example.com,Bad Customer,848-099-2095x785

Answer: The customer Marina Koelpin has a status code of Bad Customer, the phone number is 848-099-2095x785 and the email address is mayert.judy@example.com
Table: elimination, wrestler
Question: Give the names of wrestlers and their elimination moves.
SQL query:
SELECT T2.Name AS "wrestler Name", T1.Elimination_Move AS "elimination Elimination_Move" 
 FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID
Result:
,wrestler Name,elimination Elimination_Move
0,Rey Misterio Sr.,Go To Sleep

Answer: The elimination move of Rey Misterio Sr. is called "Go To Sleep".
Table: GENRE, TRACK
Question: Find the average millisecond length of Latin and Pop tracks.
SQL query:
SELECT AVG(Milliseconds) AS "average Milliseconds", T1.Name AS "GENRE Name" 
 FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId 
 WHERE T1.Name = 'Latin' OR T1.Name = 'Pop'
Result:
,GENRE Name,average Milliseconds
0,Latin,232566.4274322169

Answer: For the Latin genre, the average millisecond length is 232566.4274322169