sentence
stringlengths
3
347
sql
stringlengths
18
804
Tell me his weight please.
SELECT Weight FROM people where Name = 'Ty Conklin'
in the ft pct .667 what is the number of gp-gs
SELECT COUNT(gp_gs) FROM table_23817012_6 WHERE ft_pct = ".667"
When did Collingwood play?
SELECT date FROM table_name_36 WHERE home_team = "collingwood"
please just show the first, last name, and gpa.
SELECT stu_fname , stu_lname , stu_gpa FROM student WHERE stu_gpa > 3 ORDER BY stu_dob DESC LIMIT 1
Tell me the average points with tyres of b and chassis of tf109
SELECT AVG(points) FROM table_name_23 WHERE tyres = "b" AND chassis = "tf109"
What are the allergies the girl named Lisa has? And what are the types of them? Order the result by allergy names.
SELECT T1.Allergy , T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = "Lisa" ORDER BY T1.Allergy
How many professors in the school?
SELECT count ( * ) FROM professor
What is the highest points for the JBW chassis with a climax straight-4 engine, later than 1961?
SELECT MAX(points) FROM table_name_53 WHERE chassis = "jbw" AND engine = "climax straight-4" AND year > 1961
Tell me the portfolio of minister of carlo giovanardi
SELECT portfolio FROM table_name_77 WHERE minister = "carlo giovanardi"
If the Position is Running Back what is the Total number of Pick #?
SELECT COUNT(pick__number) FROM table_name_84 WHERE position = "running back"
Tell me the date with week of 13
SELECT date FROM table_name_21 WHERE week = 13
What was the score for the game in which Al-Qadsia was Team 2?
SELECT score FROM table_name_55 WHERE team_2 = "al-qadsia"
What are the ids of stations that are located in San Francisco and have average bike availability above 10.
SELECT id FROM station WHERE city = "San Francisco" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING avg(bikes_available) > 10
For the event which happened at 23:33:34 on 2016/5/6, how many installed apps were involved?
SELECT COUNT(T1.event_id) FROM app_events AS T1 INNER JOIN events AS T2 ON T1.event_id = T2.event_id WHERE SUBSTR(T2.`timestamp`, 1, 10) = '2016-05-06' AND T1.is_installed = '1'
What is the user ID of the user, who was a subscriber when he created the list, who created a list for 10 consecutive years? If there are multiple users, indicate each of their user IDs.
SELECT user_id FROM lists_users WHERE user_subscriber = 1 GROUP BY user_id HAVING MAX(SUBSTR(list_creation_date_utc, 1, 4)) - MIN(SUBSTR(list_creation_date_utc, 1, 4)) >= 10
How many student in total participate in the tryout?
SELECT count ( * ) FROM tryout
Which Surface has a Result of fernando verdasco?
SELECT surface FROM table_name_10 WHERE result = "fernando verdasco"
Who wrote season 23?
SELECT written_by FROM table_2409041_3 WHERE no_in_season = 23
Return the names of all the poker players.
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID
Who won the Food World 250?
SELECT winner FROM table_name_14 WHERE race = "food world 250"
What is north melbourne's score as an away side?
SELECT away_team AS score FROM table_name_80 WHERE away_team = "north melbourne"
Mention the user average star, elite year and the compliment type of user ID 6027 whereby number of compliments reach uber.
SELECT T2.user_average_stars, T1.year_id, T4.compliment_type, T3.number_of_compliments FROM Elite AS T1 INNER JOIN Users AS T2 ON T1.user_id = T2.user_id INNER JOIN Users_Compliments AS T3 ON T2.user_id = T3.user_id INNER JOIN Compliments AS T4 ON T3.compliment_id = T4.compliment_id INNER JOIN Years AS T5 ON T1.year_id = T5.year_id WHERE T3.number_of_compliments = 'Uber' AND T3.user_id = 6027
List the titles of the papers whose authors are from the institution "Indiana University".
SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Indiana University"
What is the seat percentage when vote percentage is 2.4% (-8.3)?
SELECT seat_percentage FROM table_name_73 WHERE vote_percentage = "2.4% (-8.3)"
What is the date of the Cleveland home game with a 20-8 record?
SELECT date FROM table_name_74 WHERE home = "cleveland" AND record = "20-8"
What are the notes for Ford when the total is 5?
SELECT notes FROM table_name_23 WHERE builder = "ford" AND total = "5"
What is the most common competition type?
SELECT Competition_type FROM competition GROUP BY Competition_type ORDER BY COUNT(*) DESC LIMIT 1
What is the visitor team on April 4?
SELECT visitor FROM table_name_98 WHERE date = "april 4"
Which Captain 2 has a Result of final?
SELECT captain_2 FROM table_name_50 WHERE result = "final"
Opponent of @ edmonton oilers, and a Game smaller than 7, and a Series of oilers lead 3–2 had what score?
SELECT score FROM table_name_38 WHERE opponent = "@ edmonton oilers" AND game < 7 AND series = "oilers lead 3–2"
What brand of beer has been the worst rated most times?
SELECT T1.BrandName FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T2.BrandID = T1.BrandID WHERE T2.StarRating = 1 GROUP BY T1.BrandName ORDER BY COUNT(T1.BrandName) DESC LIMIT 1
Which company started the earliest the maintenance contract? Show the company name.
SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id ORDER BY T2.contract_start_date LIMIT 1
Which team did the MVP of 1997 NBA season play in?
SELECT DISTINCT T3.tmID FROM players_teams AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID INNER JOIN teams AS T3 ON T1.tmID = T3.tmID AND T1.year = T3.year WHERE T2.year = 1997 AND T2.award = 'Finals MVP' LIMIT 1
What is the cost for the sports?
SELECT T2.StandardCost FROM Product AS T1 INNER JOIN ProductCostHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name LIKE '%Sport%'
Which analog channel has a digital channel of 4.1?
SELECT analog_channel FROM table_name_31 WHERE digital_channel = "4.1"
Among the projects created by a teacher from New York, how many of them have a donor from the same city?
SELECT COUNT(T1.projectid) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.teacher_ny_teaching_fellow = 't' AND T2.donor_city = 'New York'
What is the earliest year where the result of the election was a retired republican hold?
SELECT MIN(first_elected) FROM table_1341472_40 WHERE result = "Retired Republican hold"
How many students and instructors are in each department?
SELECT count(DISTINCT T2.id) , count(DISTINCT T3.id) , T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name GROUP BY T3.dept_name
What is the name of the stadium which held the most events?
SELECT t1.name FROM stadium AS t1 JOIN event AS t2 ON t1.id = t2.stadium_id GROUP BY t2.stadium_id ORDER BY count(*) DESC LIMIT 1
What is the transfer fee of Diogo?
SELECT transfer_fee FROM table_name_53 WHERE name = "diogo"
Which 992 has a 1–2 of 1989 ?
SELECT 1992 FROM table_name_13 WHERE 1989 = "1–2"
What is the ID of the Publications Rank criteria?
SELECT id FROM ranking_criteria WHERE criteria_name = 'Publications Rank'
For the students who have been absent from school for the longest time, how many months have they been absent?
SELECT MAX(month) FROM longest_absense_from_school
What are the top 5 types of products with the highest selling price? ?
SELECT Name FROM Product ORDER BY ListPrice DESC LIMIT 5
Which opponent has a week smaller than 15, and a Result of l 23-17?
SELECT opponent FROM table_name_48 WHERE week < 15 AND result = "l 23-17"
How many statuses are there for the Durham district?
SELECT COUNT(status) FROM table_2801185_2 WHERE district = "Durham"
Which nations have hosts younger than 35?
SELECT distinct Nationality FROM HOST WHERE Age < 35
What was the highest attendance when the Atlanta Falcons played for a week smaller than 10?
SELECT MAX(attendance) FROM table_name_19 WHERE opponent = "atlanta falcons" AND week < 10
What position did he finish after 1998 and a note time of 2:31:40?
SELECT position FROM table_name_71 WHERE year > 1998 AND notes = "2:31:40"
Find out the average salary of professors?
SELECT avg ( salary ) FROM instructor
Find the last name of students who is either female (sex is F) and living in the city of code BAL or male (sex is M) and in age of below 20.
SELECT lname FROM student WHERE sex = 'F' AND city_code = 'BAL' UNION SELECT lname FROM student WHERE sex = 'M' AND age < 20
What is Score, when Country is "United States", and when To Par is "+4"?
SELECT score FROM table_name_56 WHERE country = "united states" AND to_par = "+4"
Could you get me the average as well, please?
SELECT avg ( used_kb ) FROM screen_mode
Who won the regular season when Missouri Valley Conference took place?
SELECT regular_season_winner FROM table_22779004_1 WHERE conference = "Missouri Valley conference"
How many different card types are there?
SELECT count(DISTINCT card_type_code) FROM Customers_Cards
What was coach Dick Bennett's overall win percentage?
SELECT overall_win_percentage FROM table_name_5 WHERE coach = "dick bennett"
List all the wines that use color white grapes. | What kinds of attributes of wines do you want? | List wines made with white grapes.
SELECT * FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = "White"
What is the average number of tweets posted by the users in a city in Argentina?
SELECT SUM(CASE WHEN T2.City = 'Buenos Aires' THEN 1.0 ELSE 0 END) / COUNT(T1.TweetID) AS avg FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T2.Country = 'Argentina'
Find names of colleges with enrollment greater than that of some (at least one) college in the FL state.
SELECT DISTINCT cName FROM college WHERE enr > (SELECT MIN(enr) FROM college WHERE state = 'FL')
What is every entry for description when the value of %yes is 51.82%?
SELECT description FROM table_256286_43 WHERE _percentage_yes = "51.82%"
What was the circumstance that happened on the road to Jalalabad?
SELECT circumstances FROM table_name_89 WHERE location = "road to jalalabad"
Which language is spoken by the largest number of countries?
SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1
What is the region where the customer who placed the order id 10276 located?
SELECT T1.Region FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.OrderID = 10276
What party did the incumbent Thomas P. Moore belong to?
SELECT party FROM table_2668254_8 WHERE incumbent = "Thomas P. Moore"
Which Vertices have a Dual Archimedean solid of truncated dodecahedron?
SELECT MAX(vertices) FROM table_name_28 WHERE dual_archimedean_solid = "truncated dodecahedron"
How many episodes received rating of 8.2?
SELECT COUNT(episode) FROM table_24910733_2 WHERE rating = "8.2"
Please show the names of aircrafts associated with airport with name "London Gatwick".
SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = "London Gatwick"
Please list any two character names in chapter 18708.
SELECT T1.CharName FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T2.chapter_id = 18708 LIMIT 2
How many goals does mitsuo kato have?
SELECT MAX(goals) FROM table_name_87 WHERE player = "mitsuo kato"
When was the most recently named feature named?
SELECT MAX(year_named) FROM table_16799784_13
Name the ICAO for julius nyerere international airport
SELECT icao FROM table_name_79 WHERE airport = "julius nyerere international airport"
find the number of medicines offered by each trade.
SELECT trade_name , count(*) FROM medicine GROUP BY trade_name
WHen jaime aff and christine langner are the performers what is the subject?
SELECT subject FROM table_191105_3 WHERE performed_by = "Jaime Aff and Christine Langner"
Which Pick # has a Nationality of canada, and a Team from of sudbury wolves?
SELECT MIN(pick__number) FROM table_name_44 WHERE nationality = "canada" AND team_from = "sudbury wolves"
What are the names of all instructors who advise students in the math depart sorted by total credits of the student.
SELECT T2.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' ORDER BY T3.tot_cred
Hi! What is the name of the institution that "Mathias Blume" is associated with?
SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = "Matthias" AND t1.lname = "Blume"
What are the full names of the 10 youngest married male production technicians?
SELECT T2.FirstName, T2.MiddleName, T2.LastName FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.JobTitle LIKE 'Production Technician%' AND T1.Gender = 'M' AND T1.MaritalStatus = 'M' ORDER BY T1.BirthDate DESC LIMIT 10
What was the type of ballot measures if the % of yes vote is 32.47%?
SELECT type FROM table_256286_8 WHERE _percentage_yes = "32.47%"
Please show the categories of the music festivals with count more than 1.
SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*) > 1
What school did the player attend who's hometown was Montvale, NJ?
SELECT school FROM table_11677100_18 WHERE hometown = "Montvale, NJ"
What was the circuit for alberto ascari josé froilán gonzález?
SELECT circuit FROM table_name_83 WHERE fastest_lap = "alberto ascari josé froilán gonzález"
What position is todd hammel?
SELECT position FROM table_name_99 WHERE player = "todd hammel"
Which manufacturer has a year made of 4-6-0 — ooooo — ten-wheeler?
SELECT manufacturer FROM table_name_22 WHERE year_made = "4-6-0 — ooooo — ten-wheeler"
what is the income class for area 75?
SELECT income_class FROM table_1691800_2 WHERE area__km²_ = 75
What is the stage of Fabiano Fontanelli, who had a Trofeo Fast Team of Gewiss Playbus and a point classification of Fabrizio Guidi?
SELECT stage FROM table_name_13 WHERE trofeo_fast_team = "gewiss playbus" AND points_classification = "fabrizio guidi" AND winner = "fabiano fontanelli"
List all product only MOQ of 1,000 and with standard cost more than 17.
SELECT T2.Name FROM ProductVendor AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Vendor AS T3 ON T1.BusinessEntityID = T3.BusinessEntityID WHERE T1.MaxOrderQty = 1000 AND T2.StandardCost > 17
How many transactions were paid through MasterCard in 2014?
SELECT COUNT(TransactionID) FROM `transaction` WHERE CreditCardType = 'MasterCard' AND TransactionDate LIKE '2014%'
Which player is associated with Temple?
SELECT player FROM table_name_22 WHERE school_country = "temple"
When the 1 is the rank what is the overall amount of international tourist arrivals in 2012?
SELECT COUNT(international_tourist_arrivals__2012_) FROM table_14752049_6 WHERE rank = 1
What are the first names of all students who are taking classes from the accounting department?
SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Accounting'
List all the territories where Laura Callahan is in charge.
SELECT T3.TerritoryDescription FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID WHERE T1.FirstName = 'Laura' AND T1.LastName = 'Callahan'
can you show their name? | Do you want their first and last names? | first name
SELECT customer_first_name FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Accounts )
What is the High points with a Team with boston?
SELECT high_points FROM table_name_95 WHERE team = "boston"
Which Away team score has a Home team of richmond?
SELECT away_team AS score FROM table_name_58 WHERE home_team = "richmond"
What is the location name of the document "Robin CV"?
SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = "Robin CV"
What are the facility codes of the apartments with more than four bedrooms?
SELECT T1.facility_code FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4
Show the most common type of artworks?
SELECT TYPE FROM artwork GROUP BY TYPE ORDER BY COUNT ( * ) DESC LIMIT 1
What are the names of the states that have some college students playing in the mid position but not the goalie position?
SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie'
What is Benito Cheng's Pick number?
SELECT pick FROM table_name_75 WHERE player = "benito cheng"
What are the lowest wins for Australia?
SELECT MIN(wins) FROM table_name_45 WHERE country = "australia"