MikeXydas/qr2t_benchmark huggingface dataset:
Table: addresses, customer_addresses
Question: Return the address of customer 10.
SQL query:
SELECT T1.address_details AS "addresses address_details", T2.customer_id AS "customer_addresses customer_id" 
 FROM addresses AS T1 JOIN customer_addresses AS T2 ON T1.address_id = T2.address_id 
 WHERE T2.customer_id = 10
Result:
,addresses address_details,customer_addresses customer_id
0,"36594 O'Keefe Lock
New Cali, RI 42319",10

Answer: The address of customer 10 is 36594 O'Keefe Lock New Cali, RI 42319.
Table: people, perpetrator
Question: What is the name of the perpetrator with the biggest weight.
SQL query:
SELECT T1.Name AS "people Name", T1.Weight AS "people Weight" 
 FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Weight DESC
Result:
,people Name,people Weight
0,Tyrone Brayan,220.0

Answer: Tyrone Brayan weights 220.
Table: people
Question: Find the average height and weight for all males (sex is M).
SQL query:
SELECT AVG(height) AS "average height", AVG(weight) AS "average weight", sex 
 FROM people 
 WHERE sex = 'M'
Result:
,Sex,average height,average weight
0,M,195.14285714285714,86.71428571428571

Answer: The average weight and height of males are 86.71428571428571 and 195.14285714285714, respectively.
Table: film_market_estimation
Question: Return the low and high estimates for all film markets.
SQL query:
SELECT Low_Estimate, High_Estimate 
 FROM film_market_estimation
Result:
,Low_Estimate,High_Estimate
0,80000.0,80400.0

Answer: The low and high estimates of all film markets are 80000 and 80400, respectively.
Table: Flight
Question: What are the numbers of all flights coming from Los Angeles?
SQL query:
SELECT flno, origin 
 FROM Flight 
 WHERE origin = 'Los Angeles'
Result:
,flno,origin
0,99,Los Angeles

Answer: The flight number of the flight coming from Los Angeles is 99
Table: medicine
Question: How many medicines have the FDA approval status 'No' ?
SQL query:
SELECT COUNT(*) AS "count of medicine", FDA_approved 
 FROM medicine 
 WHERE FDA_approved = 'No'
Result:
,FDA_approved,count of medicine
0,No,11

Answer: There are 11 medicines that have the FDA approval status 'No'
Table: university
Question: How many universities have a location that contains NY?
SQL query:
SELECT COUNT(*) AS "count of university", LOCATION 
 FROM university 
 WHERE LOCATION LIKE '%NY%'
Result:
,Location,count of university
0,"Stony Brook, NY",1

Answer: The location	Stony Brook, NY has 1 university.
Table: people
Question: What is the most common birth place of people?
SQL query:
SELECT Birth_Place 
 FROM people 
 GROUP BY Birth_Place ORDER BY COUNT(*) DESC
Result:
,Birth_Place
0,"Port Huron, Michigan"

Answer: The most common birth place is Port Huron, Michigan.
Table: Course_Authors_and_Tutors, Courses
Question: Which course author teaches the "advanced database" course? Give me his or her login name.
SQL query:
SELECT T1.login_name AS "Course_Authors_and_Tutors login_name", T2.course_name AS "Courses course_name" 
 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id 
 WHERE T2.course_name = 'advanced database'
Result:
,Courses course_name,Course_Authors_and_Tutors login_name
0,advanced database,al75

Answer: The author of the course advanced database has the login name al75.
Table: documents
Question: What document types do have more than 10000 total access number.
SQL query:
SELECT document_type_code 
 FROM documents 
 GROUP BY document_type_code 
 HAVING SUM(access_count) > 10000
Result:
,document_type_code
0,Advertisement

Answer: The type code Advertisement has more than 10000 total accesses.
Table: chip_model, phone, screen_mode
Question: What are the wifi and screen mode type of the hardware model named "LG-P760"?
SQL query:
SELECT T1.WiFi AS "chip_model WiFi", T3.Type AS "screen_mode Type", T2.Hardware_Model_name AS "phone Hardware_Model_name" 
 FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode 
 WHERE T2.Hardware_Model_name = 'LG-P760'
Result:
,chip_model WiFi,screen_mode Type,phone Hardware_Model_name
0,802.11b,Text,LG-P760

Answer: The chip model WiFi is 802.11b and the screen mode type is Text, for the hardware model named "LG-P760"
Table: documents
Question: What is the average access count of documents?
SQL query:
SELECT AVG(access_count) AS "average access_count" 
 FROM documents
Result:
,average access_count
0,4939.133333333333

Answer: The average access count of documents is 4939.133333333333
Table: Person
Question: How old is the average person for each job?
SQL query:
SELECT AVG(age) AS "average age", job 
 FROM Person 
 GROUP BY job
Result:
,job,average age
0,doctor,45.0

Answer: The average age of doctors is 45 years
Table: APPELLATIONS, WINE
Question: What is the average price of wines produced in appelations in Sonoma County?
SQL query:
SELECT AVG(T2.Price) AS "average Price", T1.County AS "APPELLATIONS County" 
 FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation 
 WHERE T1.County = 'Sonoma'
Result:
,average Price,APPELLATIONS County
0,43.5,Sonoma

Answer: The average price of wines produced in appelations in the country of Sonoma have an average price of 43.5
Table: Ref_locations
Question: What is the location code for the country "Canada"?
SQL query:
SELECT location_code, location_name 
 FROM Ref_locations 
 WHERE location_name = 'Canada'
Result:
,Location_Code,Location_Name
0,c,Canada

Answer: The location code c is for the location Canada.
Table: student_course_registrations, students
Question: What details do we have on the students who registered for courses most recently?
SQL query:
SELECT T2.student_details AS "students student_details", T1.registration_date AS "student_course_registrations registration_date" 
 FROM student_course_registrations AS T1 JOIN students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.registration_date DESC
Result:
,students student_details,student_course_registrations registration_date
0,Martin,2008-11-14 10:35:13

Answer: The student named Martin registered on 2008-11-14 10:35:13
Table: employees
Question: What are the full names and salaries for any employees earning less than 6000?
SQL query:
SELECT first_name, last_name, salary 
 FROM employees 
 WHERE salary < 6000
Result:
,SALARY,LAST_NAME,FIRST_NAME
0,4800,Austin,David

Answer: The employee with last name Austin and first name David has a salary of 4800.
Table: head
Question: How many heads of the departments are older than 56 ?
SQL query:
SELECT COUNT(*) AS "count of head", age 
 FROM head 
 WHERE age > 56
Result:
,age,count of head
0,67.0,5.0

Answer: There are 5 heads of the departments with age of 67
Table: entrepreneur, people
Question: List the names of entrepreneurs and their companies in descending order 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 Roberto Calcaterra with the company IV Cam has a money request of 50000.
Table: driver
Question: How many drivers are from Hartford city or younger than 40?
SQL query:
SELECT COUNT(*) AS "count of driver", age, home_city 
 FROM driver 
 WHERE home_city = 'Hartford' OR age < 40
Result:
,Age,Home_city,count of driver
0,40,Hartford,11

Answer: There are 11 drivers from Hartford city or younger than 40.
Table: station, trip
Question: What is the average latitude and longitude of all starting stations for the trips?
SQL query:
SELECT AVG(T1.lat) AS "average lat", AVG(T1.long) AS "average long" 
 FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id
Result:
,average lat,average long
0,37.74618133538529,-122.36134722346611

Answer: The average latitude is 37.74618133538529 and the average longitude is -122.36134722346611.
Table: Ref_locations
Question: Show the location code of the country "Canada".
SQL query:
SELECT location_code, location_name 
 FROM Ref_locations 
 WHERE location_name = 'Canada'
Result:
,Location_Code,Location_Name
0,c,Canada

Answer: Country Canada has location code "c".
Table: VISITORS
Question: What is the detail of each visitor?
SQL query:
SELECT Tourist_Details 
 FROM VISITORS
Result:
,Tourist_Details
0,Toney

Answer: The tourist details is Toney
Table: ARTIST
Question: Find the names of all artists that have "a" in their names.
SQL query:
SELECT Name 
 FROM ARTIST 
 WHERE Name LIKE '%a%'
Result:
,Name
0,AC/DC

Answer: The artist's name is AC/DC.
Table: Student
Question: How many students are 18 years old?
SQL query:
SELECT COUNT(*) AS "count of Student", age 
 FROM Student 
 WHERE age = 18
Result:
,Age,count of Student
0,18,10

Answer: There are 10 students who are 18 years old
Table: station_company, company, gas_station
Question: Show all locations where a gas station for company with market value greater than 100 is located.
SQL query:
SELECT T3.location AS "gas_station location", T2.market_value AS "company market_value" 
 FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id 
 WHERE T2.market_value > 100
Result:
,company market_value,gas_station location
0,227.6,Herne Hill

Answer: The gas station located in Herne Hill has a market value of 227.6.
Table: employees
Question: Display the first name, and department number for all employees whose last name is "McEwen".
SQL query:
SELECT first_name, department_id, last_name 
 FROM employees 
 WHERE last_name = 'McEwen'
Result:
,LAST_NAME,FIRST_NAME,DEPARTMENT_ID
0,McEwen,Allan,80

Answer: The employee Allan McEwen belongs in the department with id 80.
Table: Marketing_Regions, Stores
Question: Return the name of the marketing region the store Rob Dinning is located in.
SQL query:
SELECT T1.Marketing_Region_Name AS "Marketing_Regions Marketing_Region_Name", T2.Store_Name AS "Stores Store_Name" 
 FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code = T2.Marketing_Region_Code 
 WHERE T2.Store_Name = 'Rob Dinning'
Result:
,Stores Store_Name,Marketing_Regions Marketing_Region_Name
0,Rob Dinning,Canada

Answer: The store Rob Dining is located in the marketing region of Canada
Table: musical
Question: What are the names of musicals with nominee "Bob Fosse"?
SQL query:
SELECT Name, Nominee 
 FROM musical 
 WHERE Nominee = 'Bob Fosse'
Result:
,Name,Nominee
0,The Phantom of the Opera,Bob Fosse

Answer: Bob Fosse from the musical "The Phantom of the Opera" was nominated.
Table: Settlements
Question: Tell me the the claim date and settlement date for each settlement case.
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 date that the claim was made is 2018-08-07 and it was settled in 2018-01-16.
Table: Financial_transactions
Question: Show the transaction types and the total amount of transactions.
SQL query:
SELECT transaction_type, SUM(transaction_amount) AS "sum of transaction_amount" 
 FROM Financial_transactions 
 GROUP BY transaction_type
Result:
,transaction_type,sum of transaction_amount
0,Payment,8743.15

Answer: The Payment transactions types have 8743.15 of total amount of transactions
Table: departments
Question: Display all the information about the department Marketing.
SQL query:
SELECT * 
 FROM departments 
 WHERE department_name = 'Marketing'
Result:
,MANAGER_ID,LOCATION_ID,DEPARTMENT_ID,DEPARTMENT_NAME
0,201,1800,20,Marketing

Answer: The department with name Marketing has department id 20, location id 1800 and manger id 201
Table: county
Question: On average how large is the population of the counties?
SQL query:
SELECT AVG(Population) AS "average Population" 
 FROM county
Result:
,average Population
0,58100.0

Answer: Countries' population are on average 58100.
Table: school
Question: Please show different denominations and the corresponding number of schools.
SQL query:
SELECT Denomination, COUNT(*) AS "count of school" 
 FROM school 
 GROUP BY Denomination
Result:
,Denomination,count of school
0,Anglican,3

Answer: The denominations are Anglican and their number of schools are 3 respectively
Table: player
Question: Show the residences that have at least two players.
SQL query:
SELECT Residence 
 FROM player 
 GROUP BY Residence 
 HAVING COUNT(*) >= 2
Result:
,Residence
0,Winnipeg

Answer: The residence Winnipeg has at least 2 players.
Table: jobs
Question: What are the job titles, and range of salaries for jobs with maximum salary between 12000 and 18000?
SQL query:
SELECT job_title, max_salary - min_salary 
 FROM jobs 
 WHERE max_salary BETWEEN 12000 AND 18000
Result:
,JOB_TITLE,max_salary - min_salary
0,Finance Manager,7800

Answer: The range of salaries for jobs with title Finance Manager is 7800.
Table: races, results
Question: What is the maximum fastest lap speed in the Monaco Grand Prix in 2008?
SQL query:
SELECT MAX(T2.fastestlapspeed) AS "maximum 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,maximum fastestlapspeed
0,Monaco Grand Prix,2008,156.789

Answer: The maximum fastest lap speed in the Monaco Grand Prix in 2008 is 156.789
Table: customers, customer_contact_channels
Question: Find the name and active date of the customer that use email as the contact channel.
SQL query:
SELECT t1.customer_name AS "customers customer_name", t2.active_from_date AS "customer_contact_channels active_from_date", t2.channel_code AS "customer_contact_channels channel_code" 
 FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id 
 WHERE t2.channel_code = 'Email'
Result:
,customers customer_name,customer_contact_channels channel_code,customer_contact_channels active_from_date
0,Devin Mills,Email,2017-12-07 18:18:15

Answer: The customer Devin Mills has the channel code email and is active from 2017-12-07 18:18:15.
Table: APPELLATIONS, WINE
Question: What is the maximum price of wines from the appelation in the Central Coast area, which was produced before 2005?
SQL query:
SELECT MAX(T2.Price) AS "maximum Price", T1.Area AS "APPELLATIONS Area", T2.year AS "WINE year" 
 FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation 
 WHERE T1.Area = 'Central Coast' AND T2.year < 2005
Result:
,WINE year,maximum Price,APPELLATIONS Area
0,2004,60,Central Coast

Answer: The maximum price of wines in the Central Coast apellation area is 60, for a wine produced in 2004
Table: Flight
Question: Show origins of all flights with destination Honolulu.
SQL query:
SELECT origin, destination 
 FROM Flight 
 WHERE destination = 'Honolulu'
Result:
,origin,destination
0,Los Angeles,Honolulu

Answer: The origin is Los Angeles and the destination is Honolulu.
Table: branch
Question: Show all city with a branch opened in 2001 and a branch with more than 100 membership.
SQL query:
SELECT city, open_year, membership_amount 
 FROM branch 
 WHERE open_year = 2001 AND membership_amount > 100
Result:
,City,Open_year,membership_amount
0,London,2001,112

Answer: The London city branch opened in 2001 and has a membership amount of 112.
Table: Students
Question: Find the latest logon date of the students whose family name is "Jaskolski" or "Langosh".
SQL query:
SELECT date_of_latest_logon, family_name 
 FROM Students 
 WHERE family_name = 'Jaskolski' OR family_name = 'Langosh'
Result:
,family_name,date_of_latest_logon
0,Jaskolski,2017-06-24 22:16:27

Answer: The latest logon of the student with family name Jaskolski was at 2017-06-24 22:16:27
Table: artist, song
Question: What is the country of origin of the artist who is female and produced a song in Bangla?
SQL query:
SELECT T1.country AS "artist country", T2.languages AS "song languages", T1.gender AS "artist gender" 
 FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name 
 WHERE T1.gender = 'Female' AND T2.languages = 'bangla'
Result:
,artist gender,artist country,song languages
0,Female,Bangladesh,bangla

Answer: The country of origin of the artist is Bangladesh
Table: affected_region, region, storm
Question: Find the names of the regions which were affected by the storm that killed the greatest number of people.
SQL query:
SELECT T2.region_name AS "region region_name", T3.Number_Deaths AS "storm Number_Deaths" 
 FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id ORDER BY T3.Number_Deaths DESC
Result:
,region region_name,storm Number_Deaths
0,Algeria,52

Answer: The region name is Algeria and the number of deaths is 52
Table: customers
Question: What is the email and phone number of Astrid Gruber the customer?
SQL query:
SELECT email, phone, last_name, first_name 
 FROM customers 
 WHERE first_name = 'Astrid' AND last_name = 'Gruber'
Result:
,email,phone,last_name,first_name
0,astrid.gruber@apple.at,+43 01 5134505,Gruber,Astrid

Answer: Astrid Gruber has email astrid.gruber@apple.at and phone +43 01 5134505.
Table: College
Question: What is the average enrollment number?
SQL query:
SELECT AVG(enr) AS "average enr" 
 FROM College
Result:
,average enr
0,17750.0

Answer: The average enrollment number is 17750
Table: instructor
Question: Find the name of the department which has the highest average salary of professors.
SQL query:
SELECT dept_name, salary 
 FROM instructor 
 GROUP BY dept_name ORDER BY AVG(salary) DESC
Result:
,salary,dept_name
0,108011.81,Physics

Answer: The department of Physics has a salary of 108011.81.
Table: Allergy_type
Question: What is the type of allergy Cat?
SQL query:
SELECT allergytype, allergy 
 FROM Allergy_type 
 WHERE allergy = 'Cat'
Result:
,Allergy,AllergyType
0,Cat,animal

Answer: The allergy of cats belongs to the animal type.
Table: campuses
Question: What are the names of all campuses located at Chico?
SQL query:
SELECT campus, LOCATION 
 FROM campuses 
 WHERE LOCATION = 'Chico'
Result:
,Campus,Location
0,California State University-Chico,Chico

Answer: The campus California State University-Chico is in Chico.
Table: Ref_budget_codes
Question: What is the description for the budget type with 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: Τhe budget type with code ORG has description Organisation
Table: employee, professor, department
Question: What is department name and office for the professor whose last name is Heffington?
SQL query:
SELECT T3.dept_name AS "department dept_name", T2.prof_office AS "professor prof_office", T1.emp_lname AS "employee emp_lname" 
 FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code 
 WHERE T1.emp_lname = 'Heffington'
Result:
,employee emp_lname,department dept_name,professor prof_office
0,Heffington,Accounting,KLR 229D

Answer: The professor Heffington is in the Accounting department and her office is the KLR 229D.
Table: book_club
Question: List categories that have at least two books after year 1989.
SQL query:
SELECT category, YEAR 
 FROM book_club 
 WHERE YEAR > 1989 
 GROUP BY category 
 HAVING COUNT(*) >= 2
Result:
,Year,Category
0,1990,Gay SF/F

Answer: The categort Gay SD/F has at least two books after 1989.
Table: airport
Question: What is the average number of international passengers for an airport?
SQL query:
SELECT AVG(International_Passengers) AS "average International_Passengers" 
 FROM airport
Result:
,average International_Passengers
0,16443156.6

Answer: The average international passengers is 16443156.6.
Table: products_for_hire
Question: What are the names and descriptions of the products that are of 'Cutlery' type and have daily hire cost lower than 20?
SQL query:
SELECT product_name, product_description, product_type_code, daily_hire_cost 
 FROM products_for_hire 
 WHERE product_type_code = 'Cutlery' AND daily_hire_cost < 20
Result:
,product_name,daily_hire_cost,product_type_code,product_description
0,Book collection B,15.62,Cutlery,War and Peace

Answer: The product with name Book collection B has a hire cost of 15.62, a type code Cutlery and its description is War and Peace.
Table: INVOICES
Question: What is the payment method code used by the most orders?
SQL query:
SELECT payment_method_code 
 FROM INVOICES 
 GROUP BY payment_method_code ORDER BY COUNT(*) DESC
Result:
,payment_method_code
0,MasterCard

Answer: The payment method code used by the most orders is MasterCard.
Table: Ref_locations
Question: How many locations are listed in the database?
SQL query:
SELECT COUNT(*) AS "count of Ref_locations" 
 FROM Ref_locations
Result:
,count of Ref_locations
0,5

Answer: 5 locations are listed in the database.
Table: county, election
Question: Show the delegates and the names of county they belong to.
SQL query:
SELECT T2.Delegate AS "election Delegate", T1.County_name AS "county County_name" 
 FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District
Result:
,election Delegate,county County_name
0,"Bates, Gail H. Gail H. Bates",Howard

Answer: The election delegate Bates, Gail H. Gail H. Bates is in the county named Howard.
Table: Rooms
Question: Return the decor of the room named "Recluse and defiance".
SQL query:
SELECT decor, roomName 
 FROM Rooms 
 WHERE roomName = 'Recluse and defiance'
Result:
,decor,roomName
0,modern,Recluse and defiance

Answer: The room Recluse and defiance has a modern decor.
Table: course, CLASS
Question: Find the total credits of all classes offered by each department.
SQL query:
SELECT SUM(T1.crs_credit) AS "sum of crs_credit", T1.dept_code AS "course dept_code" 
 FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code = T2.crs_code 
 GROUP BY T1.dept_code
Result:
,course dept_code,sum of crs_credit
0,ACCT,15.0

Answer: The total credits of class with code ACCT are 15.
Table: DEPARTMENT
Question: Find the department name that is in Building "Mergenthaler".
SQL query:
SELECT DName, Building 
 FROM DEPARTMENT 
 WHERE Building = 'Mergenthaler'
Result:
,DName,Building
0,History of Art,Mergenthaler

Answer: The History of Art department is in the Mergenthaler building.
Table: candidate
Question: How many candidates are there?
SQL query:
SELECT COUNT(*) AS "count of candidate" 
 FROM candidate
Result:
,count of candidate
0,6

Answer: There are 6 candidates
Table: airlines
Question: What are the countries of all airlines whose names start with Orbit?
SQL query:
SELECT country, name 
 FROM airlines 
 WHERE name LIKE 'Orbit%'
Result:
,name,country
0,Orbit Express Airlines,Turkey

Answer: The airline Orbit Express Airlines is from Turkey.
Table: documents
Question: What is the total access count of documents that are of the most common document type?
SQL query:
SELECT SUM(access_count) AS "sum of access_count", document_type_code 
 FROM documents 
 GROUP BY document_type_code ORDER BY COUNT(*) DESC
Result:
,document_type_code,sum of access_count
0,Book,11807

Answer: The total access count of books is 11807.
Table: manufacturers
Question: Return the total revenue of companies with headquarters in Tokyo or Taiwan.
SQL query:
SELECT SUM(revenue) AS "sum of revenue", Headquarter 
 FROM manufacturers 
 WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan'
Result:
,Headquarter,sum of revenue
0,Tokyo,250.0

Answer: The headquarter in Tokyo had a total revenue of 250.
Table: artist
Question: What are the names of artists who are Male and are from UK?
SQL query:
SELECT artist_name, gender, country 
 FROM artist 
 WHERE country = 'UK' AND gender = 'Male'
Result:
,gender,country,artist_name
0,Male,UK,Michel

Answer: The artist named Michel is Male and is from UK
Table: customer
Question: How many customers have an active value of 1?
SQL query:
SELECT COUNT(*) AS "count of customer", active 
 FROM customer 
 WHERE active = '1'
Result:
,active,count of customer
0,1,584

Answer: There are 584 customers with active 1.