MikeXydas/qr2t_benchmark huggingface dataset:
Table: phone
Question: What are the chip model and screen mode of the phone with hardware model name "LG-P760"?
SQL query:
SELECT chip_model, screen_mode, Hardware_Model_name 
 FROM phone 
 WHERE Hardware_Model_name = 'LG-P760'
Result:
,chip_model,screen_mode,Hardware_Model_name
0,X51v,3,LG-P760

Answer: The phone with hardware model name "LG-P760" has chip model of X51v and has 3 screen modes
Table: products
Question: Find the detail of products whose detail contains the word "Latte" or the word "Americano"
SQL query:
SELECT product_details 
 FROM products 
 WHERE product_details LIKE '%Latte%' OR product_details LIKE '%Americano%'
Result:
,product_details
0,Americano

Answer: The product details are Americano.
Table: Ref_document_types
Question: Show all document type codes, document type names, document type descriptions.
SQL query:
SELECT document_type_code, document_type_name, document_type_description 
 FROM Ref_document_types
Result:
,Document_Type_Code,Document_Type_Name,Document_Type_Description
0,BK,Book,excellent

Answer: The document with code BK is a book with a description of excellent.
Table: Financial_transactions
Question: Return the average, minimum, maximum, and total transaction amounts.
SQL query:
SELECT AVG(transaction_amount) AS "average transaction_amount", MIN(transaction_amount) AS "minimum transaction_amount", MAX(transaction_amount) AS "maximum transaction_amount", SUM(transaction_amount) AS "sum of transaction_amount" 
 FROM Financial_transactions
Result:
,sum of transaction_amount,average transaction_amount,maximum transaction_amount,minimum transaction_amount
0,19935.839999999997,1329.0559999999998,1979.66,368.46

Answer: The transaction amounts have a sum of 19935.839999999997, an average of 1329.0559999999998, a maximum of 1979.66 and a minimum of 368.46.
Table: ROLES
Question: What are all role codes?
SQL query:
SELECT role_code 
 FROM ROLES
Result:
,role_code
0,ED

Answer: The role codes are ED
Table: phone
Question: Show the names of phones with carrier either "Sprint" or "TMobile".
SQL query:
SELECT Name, Carrier 
 FROM phone 
 WHERE Carrier = 'Sprint' OR Carrier = 'TMobile'
Result:
,Name,Carrier
0,IPhone 5s,Sprint

Answer: The phone named IPhone 5s has carrier Sprint.
Table: product
Question: What are the products with the maximum page size A4 that also have a 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: The Xerox Travel Scanner 100 product has a maximum page size A4 and a pages per minute color of 4
Table: Apartment_Bookings
Question: Show the start dates and end dates of all the apartment bookings.
SQL query:
SELECT booking_start_date, booking_end_date 
 FROM Apartment_Bookings
Result:
,booking_end_date,booking_start_date
0,2017-10-07 11:38:48,2016-09-26 17:13:49

Answer: The bookings date start from 2016-09-26 17:13:49 and end on the date 2017-10-07 11:38:48
Table: bank
Question: What is the total number of customers across banks?
SQL query:
SELECT SUM(no_of_customers) AS "sum of no_of_customers" 
 FROM bank
Result:
,sum of no_of_customers
0,1146

Answer: There are 1146 customers across banks
Table: university
Question: Find the schools that were either founded after 1850 or public.
SQL query:
SELECT school, founded, affiliation 
 FROM university 
 WHERE founded > 1850 OR affiliation = 'Public'
Result:
,School,Founded,Affiliation
0,University of Delaware,1743.0,Public

Answer: The school University of Delaware was founded in 1743 and is public.
Table: channel
Question: Find the names of channels that are not owned by CCTV.
SQL query:
SELECT name, OWNER 
 FROM channel 
 WHERE OWNER <> 'CCTV'
Result:
,Name,Owner
0,Hunan Satellite TV,HBS

Answer: The channel Hunan Satellite TV is owned by HBS.
Table: products, Manufacturers
Question: Select the name of each manufacturer along with the name and price of its most expensive product.
SQL query:
SELECT T1.Name AS "products Name", MAX(T1.Price) AS "maximum Price", T2.name AS "Manufacturers name" 
 FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code 
 GROUP BY T2.name
Result:
,maximum Price,products Name,Manufacturers name
0,180,DVD drive,Creative Labs

Answer: The product DVD drive is manufactured by Creative Labs and has a price of 180.
Table: Sportsinfo, Student
Question: Show total hours per week and number of games played for students under 20.
SQL query:
SELECT SUM(hoursperweek) AS "sum of hoursperweek", SUM(gamesplayed) AS "sum of gamesplayed", T2.age AS "Student age" 
 FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID 
 WHERE T2.age < 20
Result:
,Student age,sum of gamesplayed,sum of hoursperweek
0,18,257,158

Answer: Students whose age is 18 played a total of 257 games and a total of 158 hours per week
Table: wrestler
Question: Show the reign and days held of wrestlers.
SQL query:
SELECT Reign, Days_held 
 FROM wrestler
Result:
,Reign,Days_held
0,1,344

Answer: The reign of wrestlers is 1 and it held 344 days
Table: Person
Question: What is the name of the person whose age is below 30?
SQL query:
SELECT name, age 
 FROM Person 
 WHERE age < 30
Result:
,age,name
0,25,Alice

Answer: Alice is 25 years old.
Table: Settlements
Question: What are the claim dates and settlement dates of all the settlements?
SQL query:
SELECT Date_Claim_Made, Date_Claim_Settled 
 FROM Settlements
Result:
,Date_Claim_Made,Date_Claim_Settled
0,2018-08-07,2018-01-16

Answer: The settlement claim was made in 2018-08-07 and it was settled in 2018-01-16.
Table: city
Question: Return the different statuses of cities, ascending by frequency.
SQL query:
SELECT Status 
 FROM city 
 GROUP BY Status ORDER BY COUNT(*) ASC
Result:
,Status
0,Town

Answer: City's status is town.
Table: CLASS, enroll, student
Question: What is the first name of each student enrolled in class ACCT-211?
SQL query:
SELECT T3.stu_fname AS "student stu_fname", T1.crs_code AS "CLASS crs_code" 
 FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num 
 WHERE T1.crs_code = 'ACCT-211'
Result:
,CLASS crs_code,student stu_fname
0,ACCT-211,William

Answer: The student with first name William is enrolled in the course ACCT-211.
Table: invoices
Question: What are the total amount of money in the invoices billed from Chicago, Illinois?
SQL query:
SELECT SUM(total) AS "sum of total", billing_state, billing_city 
 FROM invoices 
 WHERE billing_city = 'Chicago' AND billing_state = 'IL'
Result:
,billing_city,sum of total,billing_state
0,Chicago,43.62,IL

Answer: The total invoices in the city of Chicago, state of IL, is 43.62.
Table: Ref_locations
Question: What are all the location codes and location names?
SQL query:
SELECT location_code, location_name 
 FROM Ref_locations
Result:
,Location_Code,Location_Name
0,b,Brazil

Answer: The location name is Brazil and the location code is b
Table: accounts, checking, savings
Question: What is the savings balance of the account belonging to the customer with the highest checking balance?
SQL query:
SELECT T3.balance AS "savings balance", T2.balance AS "checking balance" 
 FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance DESC
Result:
,savings balance,checking balance
0,200000.0,10000.0

Answer: The savings balance is 200000 and the checking balance is 10000.
Table: student
Question: How many girl students who are younger than 25?
SQL query:
SELECT COUNT(*) AS "count of student", age, sex 
 FROM student 
 WHERE sex = 'F' AND age < 25
Result:
,Age,Sex,count of student
0,18,F,9

Answer: 9 female students are 18 years old
Table: Companies
Question: Find the number of companies whose industry is "Banking" or "Conglomerate",
SQL query:
SELECT COUNT(*) AS "count of Companies", Industry 
 FROM Companies 
 WHERE Industry = 'Banking' OR Industry = 'Conglomerate'
Result:
,Industry,count of Companies
0,Banking,10

Answer: There are 10 companies in the industry of Banking.
Table: ALBUM
Question: Find the number of albums.
SQL query:
SELECT COUNT(*) AS "count of ALBUM" 
 FROM ALBUM
Result:
,count of ALBUM
0,347

Answer: There are 347 albums.
Table: Customers
Question: What is the status code with the least number of customers?
SQL query:
SELECT customer_status_code 
 FROM Customers 
 GROUP BY customer_status_code ORDER BY COUNT(*) ASC
Result:
,customer_status_code
0,Good Customer

Answer: The status code Good Customer has the least number of customers.
Table: country
Question: What are the names and capitals of each country?
SQL query:
SELECT Country_name, Capital 
 FROM country
Result:
,Capital,Country_name
0,Jakarta,Indonesia

Answer: Jakarta is the capital of Indonesia.
Table: HOTELS
Question: Find the total number of available hotels.
SQL query:
SELECT COUNT(*) AS "count of HOTELS" 
 FROM HOTELS
Result:
,count of HOTELS
0,20

Answer: There are 20 hotels in total.
Table: Representative
Question: What are the names of representatives whose party is not "Republican"?
SQL query:
SELECT Name, Party 
 FROM Representative 
 WHERE Party <> 'Republican'
Result:
,Name,Party
0,John Quayle,Democratic

Answer: John Quayle belongs to a "Democratic" party.
Table: race
Question: Give the class of races that is most common.
SQL query:
SELECT CLASS 
 FROM race 
 GROUP BY CLASS ORDER BY COUNT(*) DESC
Result:
,Class
0,DP/GT

Answer: The most common class is DP/GT.
Table: Students
Question: What is the email of the student with first name "Emma" and last name "Rohan"?
SQL query:
SELECT email_address, last_name, first_name 
 FROM Students 
 WHERE first_name = 'Emma' AND last_name = 'Rohan'
Result:
,last_name,first_name,email_address
0,Rohan,Emma,derrick.jenkins@example.com

Answer: The student with first name Emma and last name Rohan has the email address derrick.jenkins@example.com.
Table: authors
Question: Count the number of authors.
SQL query:
SELECT COUNT(*) AS "count of authors" 
 FROM authors
Result:
,count of authors
0,13

Answer: There are 13 authors.
Table: dorm
Question: Find the name of dorms that can accommodate more than 300 students.
SQL query:
SELECT dorm_name, student_capacity 
 FROM dorm 
 WHERE student_capacity > 300
Result:
,dorm_name,student_capacity
0,Fawlty Towers,355

Answer: The Fawlty Towers dorms can accommodate 355 students
Table: enzyme
Question: How many kinds of enzymes are there?
SQL query:
SELECT COUNT(*) AS "count of enzyme" 
 FROM enzyme
Result:
,count of enzyme
0,8

Answer: There are 8 enzymes in the database
Table: mountain
Question: Show the names of mountains with height more than 5000 or prominence more than 1000.
SQL query:
SELECT Name, Prominence, Height 
 FROM mountain 
 WHERE Height > 5000 OR Prominence > 1000
Result:
,Name,Height,Prominence
0,Kibo (Uhuru Pk),5895.0,5885.0

Answer: The mountain Kibo (Uhuru Pk) has a height of 5895 and a prominence of 5885
Table: school
Question: What is the average enrollment of schools?
SQL query:
SELECT AVG(Enrollment) AS "average Enrollment" 
 FROM school
Result:
,average Enrollment
0,1663.3333333333333

Answer: The average school enrollment is 1663.3333333333333.
Table: products
Question: Compute the average price of all the products.
SQL query:
SELECT AVG(price) AS "average price" 
 FROM products
Result:
,average price
0,153.72727272727272

Answer: The average price of all the products is 153.72727272727272.
Table: country
Question: What are the official native languages that contain the string "English".
SQL query:
SELECT Official_native_language 
 FROM country 
 WHERE Official_native_language LIKE '%English%'
Result:
,Official_native_language
0,Irish English

Answer: The official native language is Irish English.
Table: customers
Question: List the names and emails of customers who payed by Visa card.
SQL query:
SELECT customer_email, customer_name, payment_method 
 FROM customers 
 WHERE payment_method = 'Visa'
Result:
,customer_name,customer_email,payment_method
0,Ron Emard,shaniya45@example.net,Visa

Answer: The customer named Ron Emard has the email shaniya45@example.net and they payed by Visa card.
Table: Customers
Question: When did Carole Bernhard first become a customer?
SQL query:
SELECT date_became_customer, last_name, first_name 
 FROM Customers 
 WHERE first_name = 'Carole' AND last_name = 'Bernhard'
Result:
,last_name,first_name,date_became_customer
0,Bernhard,Carole,2016-05-11 17:03:48

Answer: Carol Berbhard first become customer at 2016-05-11 17:03:48
Table: acceptance, submission
Question: Which submission received the highest score in acceptance result. Show me the result.
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 highest submission score that got rejected was 82.
Table: HOST
Question: Which nationality has the most hosts?
SQL query:
SELECT Nationality 
 FROM HOST 
 GROUP BY Nationality ORDER BY COUNT(*) DESC
Result:
,Nationality
0,United States

Answer: The nationality is United States.
Table: product, store_product, store
Question: What products are available at store named "Miramichi"?
SQL query:
SELECT t1.product AS "product product", t3.store_name AS "store store_name" 
 FROM product AS t1 JOIN store_product AS t2 ON t1.product_id = t2.product_id JOIN store AS t3 ON t2.store_id = t3.store_id 
 WHERE t3.store_name = 'Miramichi'
Result:
,product product,store store_name
0,Fujitsu fi-6130 A4 Series Scanner,Miramichi

Answer: The product Fujitsu fi-6130 A4 Series Scanner is available in the store Miramichi.
Table: artist
Question: How many artists are there?
SQL query:
SELECT COUNT(*) AS "count of artist" 
 FROM artist
Result:
,count of artist
0,7

Answer: There are 7 artists.
Table: airport
Question: Which of the airport names contains the word 'international'?
SQL query:
SELECT name 
 FROM airport 
 WHERE name LIKE '%international%'
Result:
,name
0,Logan International Airport

Answer: The airport with name Logan International Airport
Table: student, lives_in, dorm
Question: What is the average age for each dorm and what are the names of each dorm?
SQL query:
SELECT AVG(T1.age) AS "average age", T3.dorm_name AS "dorm dorm_name" 
 FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid 
 GROUP BY T3.dorm_name
Result:
,average age,dorm dorm_name
0,19.666666666666668,Anonymous Donor Hall

Answer: The average age in the Anonymous Donor Hall is 19.66
Table: artist, song
Question: What is the average rating of songs produced by female artists?
SQL query:
SELECT AVG(T2.rating) AS "average rating", T1.gender AS "artist gender" 
 FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name 
 WHERE T1.gender = 'Female'
Result:
,artist gender,average rating
0,Female,7.333333333333333

Answer: The female gender has an average rating of 7.333333333333333.
Table: payments
Question: What are the payment date of the payment with amount paid higher than 300 or with payment type is 'Check'
SQL query:
SELECT payment_date, amount_paid, payment_type_code 
 FROM payments 
 WHERE amount_paid > 300 OR payment_type_code = 'Check'
Result:
,amount_paid,payment_date,payment_type_code
0,206.27,2018-03-09 16:28:00,Check

Answer: The amount paid in 2018-03-09 16:28:00 was with payment code check.
Table: university
Question: List all public schools and 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 University of Delaware is located in Newark, DE and it is public.
Table: College
Question: What are the names and enrollment numbers for colleges that have more than 10000 enrolled and are located in Louisiana?
SQL query:
SELECT cName, enr, state 
 FROM College 
 WHERE enr > 10000 AND state = 'LA'
Result:
,enr,cName,state
0,18000,LSU,LA

Answer: The college named LSU in the state of LA has enr 18000.
Table: Project_outcomes
Question: How many Patent outcomes are generated from all the projects?
SQL query:
SELECT COUNT(*) AS "count of Project_outcomes", outcome_code 
 FROM Project_outcomes 
 WHERE outcome_code = 'Patent'
Result:
,outcome_code,count of Project_outcomes
0,Patent,5

Answer: There are 5 patent outcomes generated from the projects
Table: Allergy_type
Question: How many animal type allergies exist?
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 exist 4 animal allergies.
Table: camera_lens
Question: List the camera lens names containing substring "Digital".
SQL query:
SELECT name 
 FROM camera_lens 
 WHERE name LIKE '%Digital%'
Result:
,name
0,Olympus M.Zuiko Digital ED 45mm f/1.8

Answer: The name of the camera lens is Olympus M.Zuiko Digital ED 45mm f/1.8.
Table: employees
Question: what is the phone number of employees whose salary is in the range of 8000 and 12000?
SQL query:
SELECT phone_number, salary 
 FROM employees 
 WHERE salary BETWEEN 8000 AND 12000
Result:
,SALARY,PHONE_NUMBER
0,9000,590.423.4567

Answer: The salary of the employee is 9000 and the phone number is 590.423.4567.
Table: Project_Staff
Question: Which role is most common for the staff?
SQL query:
SELECT role_code 
 FROM Project_Staff 
 GROUP BY role_code ORDER BY COUNT(*) DESC
Result:
,role_code
0,researcher

Answer: The most common staff role is "researcher"
Table: chip_model
Question: Count the number of chip model that do not have wifi.
SQL query:
SELECT COUNT(*) AS "count of chip_model", wifi 
 FROM chip_model 
 WHERE wifi = 'No'
Result:
,WiFi,count of chip_model
0,No,7

Answer: The number of chip models that do not have wifi is 7
Table: Attribute_Definitions
Question: Find the attribute data type for the attribute named "Green".
SQL query:
SELECT attribute_data_type, attribute_name 
 FROM Attribute_Definitions 
 WHERE attribute_name = 'Green'
Result:
,attribute_name,attribute_data_type
0,Green,Bool

Answer: The attribute name is Green and the data type is Bool.
Table: program
Question: List the name, origin and owner of each program.
SQL query:
SELECT name, origin, OWNER 
 FROM program
Result:
,Name,Owner,Origin
0,Aniworld,Hunan Broadcasting System (HBS),Hunan

Answer: The program Aniworld is owned by Hunan Broadcasting System (HBS) and its origin is in Hunan.
Table: Staff
Question: How many staff in total?
SQL query:
SELECT COUNT(*) AS "count of Staff" 
 FROM Staff
Result:
,count of Staff
0,15

Answer: In total there are 15 staff.
Table: products, Manufacturers
Question: For each manufacturer name, what are the names and prices of their most expensive product?
SQL query:
SELECT T1.Name AS "products Name", MAX(T1.Price) AS "maximum Price", T2.name AS "Manufacturers name" 
 FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code 
 GROUP BY T2.name
Result:
,maximum Price,products Name,Manufacturers name
0,180,DVD drive,Creative Labs

Answer: The manufacturer Creative Labs has DVD drive priced 180.
Table: customer_contact_channels
Question: Compute the average active time span of contact channels.
SQL query:
SELECT AVG(active_to_date - active_from_date) AS "average active_to_date - active_from_date" 
 FROM customer_contact_channels
Result:
,average active_to_date - active_from_date
0,0.85

Answer: The average active time span of contact channels is 0.85
Table: customer_address_history, customers, addresses
Question: Show the customer name, customer address city, date from, and date to for each customer address history.
SQL query:
SELECT T2.customer_name AS "customers customer_name", T3.city AS "addresses city", T1.date_from AS "customer_address_history date_from", T1.date_to AS "customer_address_history date_to" 
 FROM customer_address_history AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id JOIN addresses AS T3 ON T1.address_id = T3.address_id
Result:
,addresses city,customers customer_name,customer_address_history date_to,customer_address_history date_from
0,East Rickey,Madaline,2018-03-07 12:04:20,2015-07-23 14:37:18

Answer: The customer named Madaline lives in East Rickey, and has an address history from 2015-07-23 14:37:18 to 2018-03-07 12:04:20
Table: book
Question: What are the titles of the books whose writer is not "Elaine Lee"?
SQL query:
SELECT Title, Writer 
 FROM book 
 WHERE Writer <> 'Elaine Lee'
Result:
,Title,Writer
0,The Black Lamb,Timothy Truman

Answer: The Black Lamb was written by Timothy Truman
Table: Employee, Certificate, Aircraft
Question: What are the names of all aircrafts that John Williams have certificates to be able to fly?
SQL query:
SELECT T3.name AS "Aircraft name", T1.name AS "Employee name" 
 FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid 
 WHERE T1.name = 'John Williams'
Result:
,Aircraft name,Employee name
0,Boeing 737-800,John Williams

Answer: The employee John Williams flies the aircraft Boeing 737-800.
Table: party_host, HOST, party
Question: For each party, find its location and the name of its host. Sort the result in ascending order of the age of the host.
SQL query:
SELECT T3.Location AS "party Location", T2.Name AS "HOST Name", T2.Age AS "HOST Age" 
 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 ORDER BY T2.Age
Result:
,HOST Age,HOST Name,party Location
0,30,Carlos Delfino,Various locations

Answer: Carlos Delfino is 30 year old host of a party located in Various locations.
Table: physician
Question: What are the names of the physicians who have 'senior' in their titles.
SQL query:
SELECT name, POSITION 
 FROM physician 
 WHERE POSITION LIKE '%senior%'
Result:
,Name,Position
0,Percival Cox,Senior Attending Physician

Answer: The physician Percival Cox has the title Senior Attending Physician.
Table: College
Question: How many different colleges are there?
SQL query:
SELECT COUNT(*) AS "count of College" 
 FROM College
Result:
,count of College
0,4

Answer: There are 4 colleges
Table: teachers
Question: Which teachers teach in classroom 110? Give me their first names.
SQL query:
SELECT firstname, classroom 
 FROM teachers 
 WHERE classroom = 110
Result:
,Classroom,FirstName
0,110, GEORGETTA

Answer: A person with first name GEORGETTA is in classroom 110.
Table: entrepreneur
Question: List the companies and the investors of entrepreneurs.
SQL query:
SELECT Company, Investor 
 FROM entrepreneur
Result:
,Company,Investor
0,Umbrolly,Duncan Bannatyne

Answer: The company is Umbrolly and the investor is Duncan Bannatyne.
Table: party
Question: Show the minister who took office after 1961 or before 1959.
SQL query:
SELECT minister, took_office 
 FROM party 
 WHERE took_office > 1961 OR took_office < 1959
Result:
,Minister,Took_office
0,Dr. Kwame Nkrumah (MP),1957

Answer: The minister Dr. Kwame Nkrumah (MP) took office in 1957.
Table: item, review
Question: Find the names of goods that receive a rating of 10.
SQL query:
SELECT T1.title AS "item title", T2.rating AS "review rating" 
 FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id 
 WHERE T2.rating = 10
Result:
,item title,review rating
0,orange,10

Answer: The orange has a rating equal to 10
Table: Project_Staff
Question: When did researchers start and stop working?
SQL query:
SELECT date_from, date_to, role_code 
 FROM Project_Staff 
 WHERE role_code = 'researcher'
Result:
,date_to,date_from,role_code
0,2004-12-16 13:03:36,1981-10-09 21:32:53,researcher

Answer: The date researchers started working from is 1981-10-09 21:32:53 until the date 2004-12-16 13:03:36
Table: news_report, event, journalist
Question: Show the names of journalists and the dates of the events they reported.
SQL query:
SELECT T3.Name AS "journalist Name", T2.Date AS "event Date" 
 FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID
Result:
,event Date,journalist Name
0,7 October 2010,Herbert Swindells

Answer: Reporter Herbert Swindells reported an event at October 7 2010