sentence
stringlengths
3
347
sql
stringlengths
18
804
Which company supplies Gula Malacca?
SELECT T2.CompanyName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.ProductName = 'Gula Malacca'
Who was in sixth place in series 7?
SELECT sixth_place FROM table_name_34 WHERE series = 7
What is the total price of all the books ordered by Lucas Wyldbore?
SELECT SUM(T1.price) FROM order_line AS T1 INNER JOIN cust_order AS T2 ON T2.order_id = T1.order_id INNER JOIN customer AS T3 ON T3.customer_id = T2.customer_id WHERE T3.first_name = 'Lucas' AND T3.last_name = 'Wyldbore'
What player's original team are the Buffalo Bills?
SELECT player FROM table_name_31 WHERE original_nfl_team = "buffalo bills"
Do they all have all amenities? | Did you mean whether all dorms have all amenities? | Yes.
SELECT DISTINCT dormid FROM Has_amenity
names of buildings whose status is on-hold in ascending order | In what ascending order? | In ascending order of stories
SELECT name FROM buildings WHERE Status = "on-hold" ORDER BY Stories ASC
What is the Location when the time was 11:55?
SELECT location FROM table_name_22 WHERE time = "11:55"
Can you tell me America Jaskolski's policy id?
SELECT t2.policy_id FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id where t1.customer_name = "America Jaskolski"
What is the Power (kW) for the station located in Cebu?
SELECT power__kw_ FROM table_name_83 WHERE location = "cebu"
What fraction has a value for dots of 0.\dot{3}?
SELECT fraction FROM table_name_85 WHERE dots = "0.\dot{3}"
Name the number of outgoing manager for rijeka
SELECT COUNT(outgoing_manager) FROM table_27225944_3 WHERE team = "Rijeka"
Whcih was the Class AAA in school year 2006-07?
SELECT class_aAA FROM table_name_85 WHERE school_year = "2006-07"
What is the To Par of the player with a t8 Finish?
SELECT to_par FROM table_name_32 WHERE finish = "t8"
What is the antiparticle symbol with a rest mess (mev/c2) of .47 ± .33?
SELECT antiparticle_symbol FROM table_name_16 WHERE rest_mass___mev___c_2__ = ".47 ± .33"
What are the employee ids of employees who report to Payam, and what are their salaries?
SELECT employee_id , salary FROM employees WHERE manager_id = (SELECT employee_id FROM employees WHERE first_name = 'Payam' )
What is the status of the city/state of Indor, Madhya Pradesh?
SELECT status AS Date FROM table_name_1 WHERE city_state = "indor, madhya pradesh"
Give the repository ID for the solution of method "Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal".
SELECT DISTINCT T1.RepoId FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Name = 'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal'
What is the mean round number for center position when the pick number is less than 23?
SELECT AVG(round) FROM table_name_39 WHERE position = "center" AND pick__number < 23
Find the names of employees who never won any award in the evaluation.
SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation)
How much is HL Grip Tape's profit ratio?
SELECT (T1.LastReceiptCost - T1.StandardPrice) / T1.StandardPrice FROM ProductVendor AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Name = 'HL Grip Tape'
Which school did harold duvall attend?
SELECT college_junior_club_team FROM table_2679061_12 WHERE player = "Harold Duvall"
Among all players drafted by the Toronto Maple Leafs in 2008, identify the player with the highest prospects for the draft.
SELECT PlayerName FROM PlayerInfo WHERE overallby = 'Toronto Maple Leafs' AND draftyear = '2008' ORDER BY CSS_rank DESC LIMIT 1
What is the highest attendace of the game with the Lakers as the home team?
SELECT MAX(attendance) FROM table_name_56 WHERE home = "lakers"
What date has 136-134 as the score?
SELECT date FROM table_name_83 WHERE score = "136-134"
WHich states have no employees?
SELECT state_province_county FROM addresses WHERE address_id NOT IN ( SELECT employee_address_id FROM Employees )
Show the status of the city that has hosted the greatest number of competitions.
SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID ORDER BY COUNT(*) DESC LIMIT 1
what is the park name of Anaheim city | Angel Stadium of Anaheim is the name of the park in city Anaheim. | what is the state of Columbia Park
SELECT state FROM park where park_name = "Columbia Park"
Give the number of inactive customers.
SELECT COUNT(customer_id) FROM customer WHERE active = 0
How many male and female assistant professors do we have?
SELECT sex , count(*) FROM Faculty WHERE rank = "AsstProf" GROUP BY sex
Name the total number of japanese for amagasaki
SELECT COUNT(japanese) FROM table_1585609_2 WHERE name = "Amagasaki"
What are the lessons thought by jenessa
SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa"
What is its checking account balance?
SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name IN ( SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance > ( SELECT avg ( balance ) FROM savings ) )
What is the highest Population per km² (2009) that is in western province, with an Area (km²) larger than 5,475?
SELECT MAX(population_per_km²__2009_) FROM table_name_33 WHERE province = "western province" AND area__km²_ > 5 OFFSET 475
How many employees work as an Account Representative?
SELECT COUNT(*) FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T2.positiontitle = 'Account Representative'
What are the details of the student who registered for the most number of courses?
SELECT T1.student_details FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1
Show me the employ id of the highest employee who doesn't have a middle name.
SELECT emp_id FROM employee WHERE minit = '' ORDER BY job_lvl DESC LIMIT 1
How many settlements does each claim correspond to? List the claim id and the number of settlements.
SELECT T1.Claim_id , count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id
What is the id of the appointment that started most recently?
SELECT appointmentid FROM appointment ORDER BY START DESC LIMIT 1
What was the score on 15 march 2006?
SELECT score FROM table_name_85 WHERE date = "15 march 2006"
Please show me the names of editors of age 25.
SELECT Name FROM editor WHERE Age = 25
Show the names of counties that have at least two delegates.
SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id HAVING COUNT(*) >= 2
Find out the first name and last name of staff lived in city Damianfort.
SELECT T2.first_name, T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = "Damianfort"
Which department has the lowest budget?
SELECT dept_name FROM department ORDER BY budget LIMIT 1
What is the total number of opponents played against the bears in game 4?
SELECT COUNT(opponents) FROM table_21035326_1 WHERE game = 4
How many throws did james get?
SELECT throws FROM table_name_39 WHERE first = "james"
Name the most ending with for peyalvar
SELECT MAX(ending_with) FROM table_1852650_1 WHERE sung_by = "Peyalvar"
Where has an IATA of BVA?
SELECT city FROM table_name_69 WHERE iata = "bva"
What are the names of all customers, ordered by account balance?
SELECT cust_name FROM customer ORDER BY acc_bal
What is the largest lap number when the time was +31.982?
SELECT MAX(laps) FROM table_name_5 WHERE time = "+31.982"
Compute the average number of hosts for parties.
SELECT avg(Number_of_hosts) FROM party
Name the championship for 1980 hard surface
SELECT championship FROM table_22597626_6 WHERE year = 1980 AND surface = "Hard"
Show flight number for all flights with more than 2000 distance.
SELECT flno FROM Flight WHERE distance > 2000
What is the fastest lap of the race where Giuseppe Farina was the winning driver?
SELECT fastest_lap FROM table_name_76 WHERE winning_driver = "giuseppe farina"
What name is the goals of 25?
SELECT name FROM table_name_18 WHERE goals = 25
Excellent! Would you be able to provide me with a list of the names and genders of those 7 employees?
SELECT employee_name,gender_MFU FROM Employees where role_code = "ED"
How many venues were used on 10 Mar 2007?
SELECT venue FROM table_14981555_3 WHERE date = "10 Mar 2007"
What date did the Boston Celtics play at Richfield Coliseum?
SELECT date FROM table_name_99 WHERE location = "richfield coliseum"
What rank is Vaud with the lowest point is Lake Geneva?
SELECT SUM(rank) FROM table_name_19 WHERE lowest_point = "lake geneva" AND canton = "vaud"
What are the highest cost, lowest cost and average cost of procedures?
SELECT MAX ( cost ) , MIN ( cost ) , AVG ( cost ) FROM procedures
What year has a not nominated result and a nomination title of "the color of fame"?
SELECT year__ceremony_ FROM table_name_62 WHERE result = "not nominated" AND film_title_used_in_nomination = "the color of fame"
ok, how many teams are the total in this data range? | What data range are you referring to? | Team salaries
SELECT count ( distinct team_id ) from salary
What is Postition, when Nationality is United States, when Jersey Number(s) is 12, and when Player is Tom Black Category:Articles With hCards?
SELECT position FROM table_name_50 WHERE nationality = "united states" AND jersey_number_s_ = "12" AND player = "tom black category:articles with hcards"
Find the number of amenities for each of the dorms that can accommodate more than 100 students.
SELECT count(*) , T1.dormid FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid WHERE T1.student_capacity > 100 GROUP BY T1.dormid
yes, i want to know about the mascots for schools. | What about the mascot for schools do you want to know? | I want to know that what are the mascots for schools with enrollments above the average?
SELECT mascot FROM school WHERE enrollment > ( SELECT avg ( enrollment ) FROM school )
Among Frank Welker's voice-acted movies, list the movie titles and the total gross when the estimated inflation rate was less than 2.
SELECT T1.movie_title, T1.total_gross FROM movies_total_gross AS T1 INNER JOIN `voice-actors` AS T2 ON T1.movie_title = T2.movie WHERE T2.`voice-actor` = 'Frank Welker' AND CAST(REPLACE(trim(T1.inflation_adjusted_gross, '$'), ',', '') AS REAL) * 1.0 / CAST(REPLACE(trim(T1.total_gross, '$'), ',', '') AS REAL) * 1.0 < 2
What rank is the title with a gross of $26,589,355?
SELECT rank FROM table_name_21 WHERE gross = "$26,589,355"
What is the margin of victory in a semgroup championship?
SELECT margin_of_victory FROM table_name_39 WHERE tournament = "semgroup championship"
I need to know the names of artists with at least one English Song
SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "english" GROUP BY T2.artist_name HAVING count ( * ) > = 1
Which Location Attendance has a Game larger than 5?
SELECT location_attendance FROM table_name_32 WHERE game > 5
What was the first job position that the company needed, and who was hired? Indicate his/her full name.
SELECT T1.JobTitle, T2.FirstName, T2.MiddleName, T2.LastName FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID ORDER BY T1.HireDate LIMIT 1
Name the Runs that has a Venue of bellerive oval , hobart, and a Player of travis birt?
SELECT runs FROM table_name_2 WHERE venue = "bellerive oval , hobart" AND player = "travis birt"
Who is in December when November has Alexus Winston?
SELECT december FROM table_name_32 WHERE november = "alexus winston"
What winning score has in-kyung kim as the runner(s)-up?
SELECT winning_score FROM table_name_64 WHERE runner_s__up = "in-kyung kim"
List the players' names who were born in 1971.
SELECT Player_name FROM Player WHERE DOB LIKE '1971%'
What are the register ids of electoral registries that have the cross reference source system code 'Electoral' or 'Tax'?
SELECT T1.electoral_register_id FROM Electoral_Register AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id WHERE T2.source_system_code = 'Electoral' OR T2.source_system_code = 'Tax'
how rooms are presented on the table | Did you mean to ask how many entries are in the table rooms? | exactly
SELECT COUNT ( * ) FROM Rooms
How many students are there?
SELECT count(*) FROM list
What Assembled has Elected of 1562/63?
SELECT assembled FROM table_name_30 WHERE elected = "1562/63"
What is the Riding, when the Rank is 4th?
SELECT riding FROM table_name_47 WHERE rank = "4th"
Which county do the delegates on "Appropriations" committee belong to? Give me the county names.
SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = "Appropriations"
What is the first and last name of artist who performed "Le Pop"?
SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Le Pop"
what is Gold Medals that has salem blue devils and a Silver Medals less than 1?
SELECT MIN(gold_medals) FROM table_name_18 WHERE ensemble = "salem blue devils" AND silver_medals < 1
Return the names of wrestlers with fewer than 100 days held.
SELECT Name FROM wrestler WHERE Days_held < 100
Which movie is the character Dr. Archibald 'Moonlight' Graham from?
SELECT T1.Title FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID WHERE T2.`Character Name` = 'Dr. Archibald ''Moonlight'' Graham'
What is the word id of the catalan language that was repeated no more than 10 times in the said language?
SELECT wid FROM langs_words WHERE occurrences <= 10
What are the titles and studios of films that have been produced by a studio whose name contains "Universal"?
SELECT title , Studio FROM film WHERE Studio LIKE "%Universal%"
Find the total number of students in each department.
SELECT COUNT(*), dept_name FROM student GROUP BY dept_name
What is the average market value with a revenue greater than 6.2, a Company of national bank of greece, and a Rank smaller than 1?
SELECT AVG(market_value__us) AS $_billion_ FROM table_name_87 WHERE revenues__us$_billion_ > 6.2 AND company = "national bank of greece" AND rank < 1
What was the lowest attendance for games played on december 23?
SELECT MIN(attendance) FROM table_23308178_6 WHERE date = "December 23"
Which customer made the smallest amount of claim in one claim? Return the customer details.
SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_piad = (SELECT min(amount_piad) FROM claim_headers)
On average, how many papers are under the ML class?
SELECT CAST(COUNT(CASE WHEN class_label = 'ML' THEN paper_id ELSE NULL END) AS REAL) / COUNT(paper_id) FROM paper
Who was the entrant for Gary Brabham?
SELECT entrant FROM table_name_5 WHERE driver = "gary brabham"
List the last name of the owner owning the youngest dog.
SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = ( SELECT max(age) FROM Dogs )
What is the headquarter of the company with the largest sales?
SELECT Headquarters FROM company ORDER BY Sales_in_Billion DESC LIMIT 1
What the score of the 1992 game?
SELECT score FROM table_name_71 WHERE year = "1992"
Was this complaint closed? | Do you mean whether the complaint which raised at 2007-10-14 21:50:43 was closed? | Correct. Has the complaint raised at 2007-10-14 21:50:43 been closed?
SELECT date_complaint_closed from complaints where date_complaint_raised = '2007-10-14 21:50:43'
Please list the levels of the all courses taught by teacher no.79.
SELECT T1.courseLevel FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T2.p_id = 79
Calculate the total net profit of the store located in highest median income city.
SELECT SUM(REPLACE(T1.`Unit Price`, ',', '') - REPLACE(T1.`Unit Cost`, ',', '')) FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID ORDER BY T2.`Median Income` DESC LIMIT 1
What is the total number of words in page containing pair of word id "100" and "317"?
SELECT words FROM langs WHERE lid = ( SELECT lid FROM biwords WHERE w1st = 100 AND w2nd = 317 )
When موسم زيتون is the arabic title when is the year (ceremony)?
SELECT year__ceremony_ FROM table_26555737_1 WHERE arabic_title = "موسم زيتون"