MikeXydas/qr2t_benchmark huggingface dataset:
Table: constructors, constructorstandings
Question: What are the names of all the Japanese constructors that have earned more than 5 points?
SQL query:
SELECT T1.name AS "constructors name", T1.nationality AS "constructors nationality", T2.points AS "constructorstandings points" 
 FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid 
 WHERE T1.nationality = 'Japanese' AND T2.points > 5
Result:
,constructors name,constructors nationality,constructorstandings points
0,Toyota,Japanese,8.0

Answer: Toyota is a Japanese constructor with 8 points
Table: party
Question: Show the lieutenant governor and comptroller from the democratic party.
SQL query:
SELECT Lieutenant_Governor, Comptroller, Party 
 FROM party 
 WHERE Party = 'Democratic'
Result:
,Party,Comptroller,Lieutenant_Governor
0,Democratic,Carl McCall,Sandra Frankel

Answer: The Democratic party has the comptroller Carl McCall and the lieutenant governor Sandra Frankel.
Table: Student
Question: Which city does student Linda Smith live in?
SQL query:
SELECT city_code, Lname, Fname 
 FROM Student 
 WHERE Fname = 'Linda' AND Lname = 'Smith'
Result:
,Fname,LName,city_code
0,Linda,Smith,BAL

Answer: The student Linda Smith lives in the city with code BAL
Table: COURSE, DEPARTMENT
Question: What are the department name and room for the course INTRODUCTION TO COMPUTER SCIENCE?
SQL query:
SELECT T2.Dname AS "DEPARTMENT Dname", T2.Room AS "DEPARTMENT Room", T1.CName AS "COURSE CName" 
 FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO 
 WHERE T1.CName = 'INTRODUCTION TO COMPUTER SCIENCE'
Result:
,COURSE CName,DEPARTMENT Room,DEPARTMENT Dname
0,INTRODUCTION TO COMPUTER SCIENCE,224,Computer Science

Answer: The course named INTRODUCTION TO COMPUTER SCIENCE is in the department of Computer Science, in room 224.
Table: player
Question: List the name and residence for players whose occupation is not "Researcher".
SQL query:
SELECT Player_name, residence, Occupation 
 FROM player 
 WHERE Occupation <> 'Researcher'
Result:
,Residence,Occupation,Player_name
0,Brandon,Locomotive Engineer,Jean Luc Bouché

Answer: The player name is Jean Luc Bouché, the occupation is Locomotive Engineer and the residence is Brandon
Table: Employee
Question: What is the average and largest salary of all employees?
SQL query:
SELECT AVG(salary) AS "average salary", MAX(salary) AS "maximum salary" 
 FROM Employee
Result:
,average salary,maximum salary
0,109915.3870967742,289950.0

Answer: The average salary is 109915.3870967742 and the largest salary is 289950 of all employees
Table: party
Question: Which ministers are not a part of the Progress Party?
SQL query:
SELECT minister, party_name 
 FROM party 
 WHERE party_name <> 'Progress Party'
Result:
,Minister,Party_name
0,Dr. Kwame Nkrumah (MP),Convention Peoples Party

Answer: MP Dr. Kwame Nkrumah belongs to the Convention Peoples Party
Table: professor, employee, department
Question: What are the first names and offices of history professors who don't have Ph.D.s?
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: The employee named James is in the department of History, he has the office DRE 156 and his high degree is MA.
Table: track
Question: What are the names and locations of all tracks?
SQL query:
SELECT name, LOCATION 
 FROM track
Result:
,Name,Location
0,Auto Club Speedway,"Fontana, CA"

Answer: The name is Auto Club Speedway and the location is Fontana, CA.
Table: Player
Question: What are the names of players whose training hours is between 500 and 1500?
SQL query:
SELECT pName, HS 
 FROM Player 
 WHERE HS BETWEEN 500 AND 1500
Result:
,HS,pName
0,1200,Andrew

Answer: The player name Andrew has 1200 hours.
Table: Accounts
Question: Show other account details for account with name 338.
SQL query:
SELECT other_account_details, account_name 
 FROM Accounts 
 WHERE account_name = '338'
Result:
,account_name,other_account_details
0,338,Regular

Answer: The account with name 338 has Regular as other account details
Table: county, election
Question: What are the names of the county that the delegates on "Appropriations" committee belong to?
SQL query:
SELECT T1.County_name AS "county County_name", T2.Committee AS "election Committee" 
 FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District 
 WHERE T2.Committee = 'Appropriations'
Result:
,county County_name,election Committee
0,Howard,Appropriations

Answer: The appropriations committee belongs to the county of Howard
Table: Flight
Question: What is the number of flights?
SQL query:
SELECT COUNT(*) AS "count of Flight" 
 FROM Flight
Result:
,count of Flight
0,10

Answer: The number of flights is 10
Table: manufacturer
Question: Find the average number of factories for the manufacturers that have more than 20 shops.
SQL query:
SELECT AVG(Num_of_Factories) AS "average Num_of_Factories", num_of_shops 
 FROM manufacturer 
 WHERE num_of_shops > 20
Result:
,Num_of_Shops,average Num_of_Factories
0,35.0,19.5

Answer: The average number of factories for the manufacturer is 19.5 and the number of shops is 35
Table: BOOKINGS
Question: Show all the planned delivery dates and actual delivery dates of bookings.
SQL query:
SELECT Planned_Delivery_Date, Actual_Delivery_Date 
 FROM BOOKINGS
Result:
,Actual_Delivery_Date,Planned_Delivery_Date
0,1997-11-21 10:07:40,2013-03-10 18:47:05

Answer: The planned delivery date is 2013-03-10 18:47:05 and the actual delivery date is 1997-11-21 10:07:40.
Table: Rating
Question: What is the maximum and mininum number of stars a rating can receive?
SQL query:
SELECT MAX(stars) AS "maximum stars", MIN(stars) AS "minimum stars" 
 FROM Rating
Result:
,maximum stars,minimum stars
0,5,2

Answer: The maximum and minimum number of stars are 5 and 2, respectively.
Table: campuses, degrees
Question: What is the total number of degrees granted after 2000 for each Orange county campus?
SQL query:
SELECT T1.campus AS "campuses campus", SUM(T2.degrees) AS "sum of degrees", T1.county AS "campuses county", T2.year AS "degrees year" 
 FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus 
 WHERE T1.county = 'Orange' AND T2.year >= 2000 
 GROUP BY T1.campus
Result:
,degrees year,sum of degrees,campuses campus,campuses county
0,2000,26211,California State University-Fullerton,Orange

Answer: In 2000, the California State University-Fullerton in Orange County awarded 26211 degrees
Table: Student
Question: Show the minimum, average, and maximum age of all students.
SQL query:
SELECT MIN(age) AS "minimum age", AVG(age) AS "average age", MAX(age) AS "maximum age" 
 FROM Student
Result:
,average age,maximum age,minimum age
0,19.558823529411764,27.0,16.0

Answer: The minimum age is 16, the average age is 19.558823529411764, and the maximum age is 27 of all students
Table: employee
Question: Return the first names and last names of employees who earn more than 30000 in salary.
SQL query:
SELECT fname, lname, salary 
 FROM employee 
 WHERE salary > 30000
Result:
,Fname,Lname,Salary
0,Franklin,Wong,40000

Answer: The employee first name is Franklin, the last name is Wong and his salary is 40000.
Table: organizations, organization_contact_individuals, individuals
Question: What is the last name of the contact individual from the Labour party organization who was contacted most recently?
SQL query:
SELECT t3.individual_last_name AS "individuals individual_last_name", t1.organization_name AS "organizations organization_name", t2.date_contact_to AS "organization_contact_individuals date_contact_to" 
 FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id 
 WHERE t1.organization_name = 'Labour Party' ORDER BY t2.date_contact_to DESC
Result:
,organizations organization_name,individuals individual_last_name,organization_contact_individuals date_contact_to
0,Labour Party,Bradtke,2018-03-25 10:27:18

Answer: Bradtke from the Labour Party organization has contacted at 2018-03-25 10:27:18.
Table: Student
Question: Which major has most number of students?
SQL query:
SELECT major 
 FROM Student 
 GROUP BY major ORDER BY COUNT(*) DESC
Result:
,Major
0,600

Answer: The major 600 has the most number of students.
Table: film
Question: What is the name of teh studio that created the most films?
SQL query:
SELECT Studio 
 FROM film 
 GROUP BY Studio ORDER BY COUNT(*) DESC
Result:
,Studio
0,Paramount

Answer: The studio is Paramount.
Table: party_events
Question: Count the number of party events.
SQL query:
SELECT COUNT(*) AS "count of party_events" 
 FROM party_events
Result:
,count of party_events
0,8

Answer: There are 8 party events
Table: home_game, park
Question: Which park did the most people attend in 2008?
SQL query:
SELECT T2.park_name AS "park park_name", T1.attendance AS "home_game attendance", T1.year AS "home_game year" 
 FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id 
 WHERE T1.year = 2008 ORDER BY T1.attendance DESC
Result:
,home_game year,park park_name,home_game attendance
0,2008,Yankee Stadium I,4298655

Answer: The name of the park with attendance of 4298655 people in 2008 was Yankee Stadium I
Table: artist
Question: What are the names and year of joining for artists that do not have the country "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: Vijay Singh frin Fiji joined in 1998
Table: student
Question: Count the total number of students.
SQL query:
SELECT COUNT(*) AS "count of student" 
 FROM student
Result:
,count of student
0,34

Answer: There are 34 students in total.
Table: station
Question: What is the average and maximum number of total passengers for train stations in London or Glasgow?
SQL query:
SELECT AVG(total_passengers) AS "average total_passengers", MAX(total_passengers) AS "maximum total_passengers", LOCATION 
 FROM station 
 WHERE LOCATION = 'London' OR LOCATION = 'Glasgow'
Result:
,Location,average total_passengers,maximum total_passengers
0,London,48.01500000000001,103.534

Answer: In London the average total passengers are 48.01500000000001 while the maximum is 103.534.
Table: member_attendance, member, performance
Question: Show the names of members and the location of performances they attended in ascending alphabetical order of their names.
SQL query:
SELECT T2.Name AS "member Name", T3.Location AS "performance Location" 
 FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID ORDER BY T2.Name ASC
Result:
,member Name,performance Location
0,Charlie Burke,Madison Square Garden

Answer: Charlie Burke attended a performance in Madison Square Garden
Table: races, results
Question: What is the average fastest lap speed for the 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 Monaco Grand Prix in 2008 had an average fastest lap speed of 146.49920000000003
Table: technician
Question: Show the name of technicians aged either 36 or 37
SQL query:
SELECT Name, Age 
 FROM technician 
 WHERE Age = 36 OR Age = 37
Result:
,Age,Name
0,37,Joe Sewell

Answer: The names of technicians are Joe Sewell and their ages are 37
Table: Student_Course_Enrolment, Student_Tests_Taken
Question: What are the completion dates of all the tests that have result "Fail"?
SQL query:
SELECT T1.date_of_completion AS "Student_Course_Enrolment date_of_completion", T2.test_result AS "Student_Tests_Taken test_result" 
 FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id 
 WHERE T2.test_result = 'Fail'
Result:
,Student_Tests_Taken test_result,Student_Course_Enrolment date_of_completion
0,Fail,2018-03-02 14:38:49

Answer: The test completed at 2018-03-02 14:38:49 has the result Fail.
Table: follows
Question: How many followers does each user have?
SQL query:
SELECT COUNT(*) AS "count of follows" 
 FROM follows
Result:
,count of follows
0,9

Answer: Each user has 9 follows.
Table: employees, jobs
Question: display job title and average salary of employees.
SQL query:
SELECT job_title, AVG(salary) AS "average salary", T2.job_title AS "jobs job_title" 
 FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id = T2.job_id 
 GROUP BY T2.job_title
Result:
,JOB_TITLE,average salary,jobs job_title
0,Accountant,7920.0,Accountant

Answer: The average salary of an accountant is 7920.
Table: Rooms
Question: How many rooms cost more than 120, for each different decor?
SQL query:
SELECT decor, COUNT(*) AS "count of Rooms", basePrice 
 FROM Rooms 
 WHERE basePrice > 120 
 GROUP BY decor
Result:
,decor,basePrice,count of Rooms
0,modern,150,2

Answer: There are 2 rooms with modern decor and price 150.
Table: Video_games
Question: What is the type of video game Call of Destiny.
SQL query:
SELECT gtype, gname 
 FROM Video_games 
 WHERE gname = 'Call of Destiny'
Result:
,GName,GType
0,Call of Destiny,Frist-person shooter

Answer: The video game Call of Destiny is a Frist-person shooter.
Table: county_public_safety
Question: What is the location shared by most counties?
SQL query:
SELECT LOCATION 
 FROM county_public_safety 
 GROUP BY LOCATION ORDER BY COUNT(*) DESC
Result:
,Location
0,East

Answer: East is the location shared by most counties
Table: albums, artists
Question: List Aerosmith's albums.
SQL query:
SELECT T1.title AS "albums title", T2.name AS "artists name" 
 FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id 
 WHERE T2.name = 'Aerosmith'
Result:
,albums title,artists name
0,Big Ones,Aerosmith

Answer: The album titled Big Ones is from the artists Aerosmith.
Table: Ref_document_types
Question: What is the document type code for document type "Paper"?
SQL query:
SELECT document_type_code, document_type_name 
 FROM Ref_document_types 
 WHERE document_type_name = 'Paper'
Result:
,Document_Type_Code,Document_Type_Name
0,PR,Paper

Answer: The document type Paper has code PR.
Table: Movie
Question: Who is the director of movie Avatar?
SQL query:
SELECT director, title 
 FROM Movie 
 WHERE title = 'Avatar'
Result:
,title,director
0,Avatar,James Cameron

Answer: Avatar was directed by James Cameron
Table: Rooms
Question: Find the names of all modern rooms with a base price below $160 and two beds.
SQL query:
SELECT roomName, basePrice, beds, decor 
 FROM Rooms 
 WHERE basePrice < 160 AND beds = 2 AND decor = 'modern'
Result:
,beds,decor,roomName,basePrice
0,2,modern,Mendicant with cryptic,125

Answer: The room Mendicant with cryptic has 2 beds,  modern decor and base price 125.
Table: DEPARTMENT
Question: What is the number of departments in Division "AS"?
SQL query:
SELECT COUNT(*) AS "count of DEPARTMENT", Division 
 FROM DEPARTMENT 
 WHERE Division = 'AS'
Result:
,Division,count of DEPARTMENT
0,AS,19

Answer: The division AS has 19 departments.
Table: WINE
Question: What are the maximum price and score of wines produced by St. Helena appelation?
SQL query:
SELECT MAX(Price) AS "maximum Price", MAX(Score) AS "maximum Score", Appelation 
 FROM WINE 
 WHERE Appelation = 'St. Helena'
Result:
,Appelation,maximum Price,maximum Score
0,St. Helena,150,97

Answer: The wines produced by St. Helena have a maximum price of 150 and a maximum score of 97
Table: perpetrator
Question: In which year did the most recent crime happen?
SQL query:
SELECT MAX(YEAR) AS "maximum YEAR" 
 FROM perpetrator
Result:
,maximum YEAR
0,1995.0

Answer: The maximum year is 1995.
Table: Student_Tests_Taken
Question: Which tests have "Pass" results? Return the dates when the tests were taken.
SQL query:
SELECT date_test_taken, test_result 
 FROM Student_Tests_Taken 
 WHERE test_result = 'Pass'
Result:
,test_result,date_test_taken
0,Pass,2018-03-25 21:50:22

Answer: The test that has Pass result was taken at 2018-03-25 21:50:22
Table: files, song
Question: What is the average song duration for the songs that are in mp3 format and whose resolution below 800?
SQL query:
SELECT AVG(T1.duration) AS "average duration", T2.resolution AS "song resolution", T1.formats AS "files formats" 
 FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id 
 WHERE T1.formats = 'mp3' AND T2.resolution < 800
Result:
,files formats,song resolution,average duration
0,mp3,512,3.0

Answer: The songs that are in mp3 format and whose resolution is below 800 have a duration of 3 and a resolution of 512
Table: PERFORMERS
Question: What is the phone number of the performer Ashley?
SQL query:
SELECT Customer_Phone, Customer_Name 
 FROM PERFORMERS 
 WHERE Customer_Name = 'Ashley'
Result:
,Customer_Name,Customer_Phone
0,Ashley,893-536-8857

Answer: The customer named Ashley has the phone 893-536-8857.
Table: employees
Question: On what dates were employees without the letter M in their first names hired?
SQL query:
SELECT hire_date, first_name 
 FROM employees 
 WHERE first_name NOT LIKE '%M%'
Result:
,HIRE_DATE,FIRST_NAME
0,1987-06-17,Steven

Answer: Steven was hired on the 17th of June 1987.
Table: entrepreneur, people
Question: What are the names of entrepreneurs and their corresponding investors, ordered descending by the amount of money requested?
SQL query:
SELECT T2.Name AS "people Name", T1.Company AS "entrepreneur Company", T1.Money_Requested AS "entrepreneur Money_Requested" 
 FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested
Result:
,people Name,entrepreneur Company,entrepreneur Money_Requested
0,Roberto Calcaterra,IV Cam,50000.0

Answer: The entrepreneur with name Roberto Calcaterra works in the company IV Cam and has requested the amount of 50000 money.
Table: Apartment_Bookings, Guests
Question: Which guests have apartment bookings with status code "Confirmed"? Return their first names and last names.
SQL query:
SELECT T2.guest_first_name AS "Guests guest_first_name", T2.guest_last_name AS "Guests guest_last_name", T1.booking_status_code AS "Apartment_Bookings booking_status_code" 
 FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id 
 WHERE T1.booking_status_code = 'Confirmed'
Result:
,Guests guest_last_name,Guests guest_first_name,Apartment_Bookings booking_status_code
0,Roberts,Else,Confirmed

Answer: The first name of the guest that has apartment booking with status code Confirmed is Else and the last name is Roberts
Table: Student
Question: What is the total number of students?
SQL query:
SELECT COUNT(*) AS "count of Student" 
 FROM Student
Result:
,count of Student
0,34

Answer: The number of students is 34.
Table: Faculty
Question: How many male and female assistant professors do we have?
SQL query:
SELECT sex, COUNT(*) AS "count of Faculty", rank 
 FROM Faculty 
 WHERE rank = 'AsstProf' 
 GROUP BY sex
Result:
,Sex,Rank,count of Faculty
0,F,AsstProf,3

Answer: We have 3 female assistant professors.
Table: Student_Addresses, Students
Question: What is the cell phone number of the student whose address has the lowest monthly rental?
SQL query:
SELECT T2.cell_mobile_number AS "Students cell_mobile_number", T1.monthly_rental AS "Student_Addresses monthly_rental" 
 FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.monthly_rental ASC
Result:
,Students cell_mobile_number,Student_Addresses monthly_rental
0,08605192839,620.2801

Answer: The student with mobile number 08605192839 has a monthly rental of 620.2801.
Table: ship
Question: For each type, what is the average tonnage?
SQL query:
SELECT TYPE, AVG(Tonnage) AS "average Tonnage" 
 FROM ship 
 GROUP BY TYPE
Result:
,Type,average Tonnage
0,Battle ship,4845.0

Answer: Battleships have an average tonnage of 4845
Table: schedule, film
Question: Give me the title and highest price for each film.
SQL query:
SELECT T2.title AS "film title", MAX(T1.price) AS "maximum price", T1.film_id AS "schedule film_id" 
 FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id 
 GROUP BY T1.film_id
Result:
,film title,maximum price,schedule film_id
0,The Case of the Mystery Weekend,15.99,1

Answer: The movie The Case of the Mystery Weekend had a maximum price of 15.99 and an id of 1.
Table: body_builder
Question: Show all information about each body builder.
SQL query:
SELECT * 
 FROM body_builder
Result:
,Total,Snatch,People_ID,Clean_Jerk,Body_Builder_ID
0,317.5,142.5,1.0,175.0,1.0

Answer: The body builder with id 1 has a total of 317.5, a 142.5 snatch, a person id 1 and 175 clean jerks.
Table: customer
Question: What are the names and account balances of customers with the letter a in their names?
SQL query:
SELECT cust_name, acc_bal 
 FROM customer 
 WHERE cust_name LIKE '%a%'
Result:
,acc_bal,cust_name
0,2000,Mary

Answer: Customer Mary has account balance equal to 2000
Table: enroll, student, CLASS
Question: What is the average gpa of the students enrolled in the course with code ACCT-211?
SQL query:
SELECT AVG(T2.stu_gpa) AS "average stu_gpa", T3.crs_code AS "CLASS crs_code" 
 FROM enroll AS T1 JOIN student AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T1.class_code = T3.class_code 
 WHERE T3.crs_code = 'ACCT-211'
Result:
,CLASS crs_code,average stu_gpa
0,ACCT-211,3.0549999999999997

Answer: The average GPA of students enrolled in the course with code ACCT-211 is 3.05
Table: employees, departments, locations
Question: display the full name (first and last name), and salary of those employees who working in any department located in London.
SQL query:
SELECT first_name, last_name, salary, T3.city AS "locations city" 
 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 
 WHERE T3.city = 'London'
Result:
,SALARY,LAST_NAME,FIRST_NAME,locations city
0,6500,Mavris,Susan,London

Answer: Susan Mavris works in London. Her salary is 6500.
Table: phone
Question: How many phones are there?
SQL query:
SELECT COUNT(*) AS "count of phone" 
 FROM phone
Result:
,count of phone
0,5

Answer: There are 5 phones.
Table: ship
Question: What are the types and nationalities of every ship?
SQL query:
SELECT TYPE, Nationality 
 FROM ship
Result:
,Type,Nationality
0,Cargo ship,United Kingdom

Answer: The ship of type Cargo has the United Kingdom nationality.
Table: Movie, Movie
Question: For directors who had more than one movie, return the titles and produced years of all movies directed by them.
SQL query:
SELECT T1.title AS "Movie title", T1.year AS "Movie year" 
 FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director 
 WHERE T1.title <> T2.title
Result:
,Movie year,Movie title
0,1982,E.T.

Answer: The movie titles E.T. was released in 1982.
Table: gymnast, people
Question: Return the average age across all gymnasts.
SQL query:
SELECT AVG(T2.Age) AS "average Age" 
 FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID
Result:
,average Age
0,21.714285714285715

Answer: The average gymnast age is 21.714285714285715.
Table: ship, captain
Question: Find the name of the ship that is steered by the youngest captain.
SQL query:
SELECT t1.name AS "ship name", t2.age AS "captain age" 
 FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id ORDER BY t2.age
Result:
,ship name,captain age
0,HMS Destiny,38

Answer: The ship named HMS Destiny has a captain aged 38.