sentence
stringlengths
3
347
sql
stringlengths
18
804
What college did Jim Bennett attend?
SELECT college FROM table_26996293_1 WHERE player = "Jim Bennett"
how about the number of checking accounts?
select count ( * ) from checking
What years does Kakahi school, with a decile of 3, have?
SELECT years FROM table_name_9 WHERE decile = 3 AND name = "kakahi school"
WhichScore has a Location Attendance of seattle center coliseum 11,497?
SELECT score FROM table_name_15 WHERE location_attendance = "seattle center coliseum 11,497"
Which winery is the wine that has the highest score from?
SELECT Winery FROM WINE ORDER BY SCORE LIMIT 1
What country has a to par larger than 5 and a player John Mahaffey?
SELECT country FROM table_name_38 WHERE to_par > 5 AND player = "john mahaffey"
How was Sammy Lee's team doing on the table before being replaced?
SELECT position_in_table FROM table_name_49 WHERE outgoing_manager = "sammy lee"
who is the constructor when the laps is less than 68, the grid is more than 20 and the driver is thierry boutsen?
SELECT constructor FROM table_name_62 WHERE laps < 68 AND grid > 20 AND driver = "thierry boutsen"
Ok. Can you show me the models produced by Nokia Corporation?
SELECT Hardware_Model_name FROM phone where Company_name = "Nokia Corporation"
The Fall Nationals has what sessions?
SELECT session FROM table_name_84 WHERE event = "fall nationals"
What was the attendance at the Fitzroy home game?
SELECT SUM(crowd) FROM table_name_36 WHERE home_team = "fitzroy"
Which label has a catalog of y8hr 1006 in 1972?
SELECT label FROM table_name_91 WHERE catalog = "y8hr 1006" AND date = "1972"
If the Venue was princes park, which Date did the game take place on?
SELECT date FROM table_name_58 WHERE venue = "princes park"
List the movie titles and associated songs directed by Ron Clements.
SELECT T1.movie_title, T1.song FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Ron Clements'
Please list the names of the Olympic games that were held in London.
SELECT T3.games_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T2.city_name = 'London'
which friend of zachs has the longest year relationship?
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Zach' AND T2.year = ( SELECT max ( YEAR ) FROM PersonFriend WHERE name = 'Zach' )
From the trip record, find the number of unique bikes.
SELECT count(DISTINCT bike_id) FROM trip
How many flights from Dallas to Santa Ana departed on time?
SELECT COUNT(*) FROM Airlines WHERE DEST = 'SNA' AND ORIGIN = 'DFW' AND DEP_DELAY = 0
What is the weeks rank for the episode with the production code 1alf05?
SELECT MAX(rank__week_) FROM table_26198709_1 WHERE production_code = "1ALF05"
Find the number of papers published by the institution "University of Pennsylvania".
SELECT count(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 = "University of Pennsylvania"
What was the Regionalliga Nord-Ost for the team that had a Regionalliga Sud of SpVgg Unterhaching?
SELECT regionalliga_nord - Ost FROM table_name_61 WHERE regionalliga_süd = "spvgg unterhaching"
Who was the away team that had attendance under 2614 and a home team of Victoria?
SELECT away FROM table_name_69 WHERE attendance < 2614 AND home = "victoria"
What pick number was marc deschamps?
SELECT pick__number FROM table_2897457_5 WHERE player = "Marc Deschamps"
What is the elevation of Vanuatu, when the rank is smaller than 3?
SELECT AVG(elevation__m_) FROM table_name_22 WHERE country = "vanuatu" AND rank < 3
Show the hometowns shared by people older than 23 and younger than 20.
SELECT Hometown FROM people WHERE Age > 23 INTERSECT SELECT Hometown FROM people WHERE Age < 20
What grid has 2 laps?
SELECT grid FROM table_name_93 WHERE laps = "2"
How many users participated in the mental health survey for 2014?
SELECT COUNT(DISTINCT T1.UserID) FROM Answer AS T1 INNER JOIN Survey AS T2 ON T1.SurveyID = T2.SurveyID WHERE T2.Description = 'mental health survey for 2014'
When is the rhel release date when scientific linux release is 3.0.4
SELECT rhel_release_date FROM table_1500146_1 WHERE scientific_linux_release = "3.0.4"
Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs.
SELECT T1.owner_id , T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1
For each country and airline name, how many routes are there?
SELECT T1.country, T1.name, count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.country, T1.name
Could you give the list of all projects along with the names of scientists that worked on them? | Do you mean a list of the names of all the projects and the names of scientists that worked on them? | Yes Please!
SELECT T3.name,T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN
What's the percentage of people in Cayman Islands speak English?
SELECT T1.Percentage FROM language AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T2.Name = 'Cayman Islands' AND T1.Name = 'English'
What is the last name of the professor whose office is located in DRE 102, and when were they hired?
SELECT T1.emp_lname , T1.emp_hiredate FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num WHERE T2.prof_office = 'DRE 102'
Great! Can you tell me what the total number of papers are for each of these author IDs?...in other words, how many papers have each of these authors published?
SELECT authID,count ( * ) from Authorship group by authID
What start has a year later than 2010, and chip ganassi racing as the team?
SELECT start FROM table_name_17 WHERE year > 2010 AND team = "chip ganassi racing"
Which Time/Retired has Laps smaller than 14, and a Rider of darren barton?
SELECT time_retired FROM table_name_78 WHERE laps < 14 AND rider = "darren barton"
What are the names of the schools with the top 3 largest class sizes?
SELECT cName FROM college ORDER BY enr DESC LIMIT 3
When mcg is the Venue what's the Away team?
SELECT away_team FROM table_name_99 WHERE venue = "mcg"
Which tournament had Richard Krajicek as a finalist?
SELECT tournament FROM table_name_85 WHERE finalist = "richard krajicek"
What is the project detail for the project with document "King Book"?
SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id WHERE T2.document_name = "King Book"
Find the government form name and total population for each government form whose average life expectancy is longer than 72.
SELECT sum(Population) , GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72
What is the company name of Fabrizio Buonocore?
SELECT T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Name = "Fabrizio Buonocore"
Who's leading in the general classification in stage 1a?
SELECT general_classification FROM table_12261714_2 WHERE stage = "1a"
What is the total pages of Wikipedia in Catalan language?
SELECT pages FROM langs WHERE lang = 'ca'
Where was the high school of the player who had the most rebounds in the NBA allstar history?
SELECT T2.highSchool FROM player_allstar AS T1 INNER JOIN players AS T2 ON T1.playerID = T2.playerID ORDER BY T1.rebounds DESC LIMIT 1
What were their denominations?
SELECT denomination FROM school WHERE Founded > 1900
Name the number of ranks for international tourist arrivals being 6.2 million
SELECT COUNT(rank) FROM table_14752049_5 WHERE international_tourist_arrivals__2011_ = "6.2 million"
What is the total Hours Played of all Students?
SELECT sum ( hours_played ) FROM Plays_games
When 8 is the public and the result is safe what is the highest rank?
SELECT MAX(rank) FROM table_19744915_18 WHERE result = "Safe" AND public = 8
What is the card type code with most number of cards?
SELECT card_type_code FROM Customers_cards GROUP BY card_type_code ORDER BY count(*) DESC LIMIT 1
What are the last names for all scholarship students?
SELECT T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.onscholarship = 'Y'
And the amount of courses?
SELECT count ( DISTINCT t1.course_id ) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id
What are the names of the countries with no car makers?
SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country;
Which Japanese name has a Korean name ² of 경칩 (驚蟄) gyeongchip?
SELECT japanese_name FROM table_name_8 WHERE korean_name_² = "경칩 (驚蟄) gyeongchip"
When mixed doubles is didit juang indrianto yayu rahayu what is the most current year?
SELECT MAX(year) FROM table_14319023_2 WHERE mixed_doubles = "Didit Juang Indrianto Yayu Rahayu"
Find the name of department that offers the class whose description has the word "Statistics".
SELECT T2.dept_name FROM course AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.crs_description LIKE '%Statistics%'
Which buildings have apartments that have more than two bathrooms? Give me the addresses of the buildings.
SELECT T1.building_address FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T2.bathroom_count > 2
How many engineer visits are required at most for a single fault log? List the number and the log entry id.
SELECT COUNT(*), T1.fault_log_entry_id FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY COUNT(*) DESC LIMIT 1
What is the greatest length of the border between 2 independent countries?
SELECT MAX(T3.Length) FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN borders AS T3 ON T3.Country1 = T2.Country WHERE T2.Independence IS NOT NULL
Name the partner for opponents of františek čermák michal mertiňák
SELECT partner FROM table_name_46 WHERE opponents_in_the_final = "františek čermák michal mertiňák"
Who had a high rebound where the associated record is 11-13?
SELECT high_rebounds FROM table_17104539_10 WHERE record = "11-13"
Name the phoneme for realizaiton of [ɪj]
SELECT phoneme FROM table_name_13 WHERE realization = "[ɪj]"
Who is directed by The Sound of Music?
SELECT director FROM Movie WHERE title = 'The Sound of Music'
How many orders of more than 10 items have been returned?
SELECT COUNT(l_linenumber) FROM lineitem WHERE l_quantity > 10 AND l_returnflag = 'R'
How many different students are involved in sports?
SELECT count(DISTINCT StuID) FROM Sportsinfo
what is the song name of tagore
SELECT song_name from song where genre_is = 'tagore'
What is the name of the department with an instructure who has a name like 'Soisalon'?
SELECT dept_name FROM instructor WHERE name LIKE '%Soisalon%'
Find the number of times ROY SWEAZY has reserved a room.
SELECT count(*) FROM Reservations WHERE FirstName = "ROY" AND LastName = "SWEAZY";
What is the earliest year a song with a position less than 1 has?
SELECT MIN(year) FROM table_name_5 WHERE position < 1
Who is the oldest captain?
SELECT name FROM captain order by age desc limit 1
How many kinds of products did order No. 10252 contain?
SELECT COUNT(t.productCode) FROM orderdetails t WHERE t.orderNumber = '10252'
What is the start source of the irl country, which ended on 13 April?
SELECT start_source FROM table_name_7 WHERE country = "irl" AND ended = "13 april"
Where was the game played on January 23, 2008?
SELECT location FROM table_name_8 WHERE date = "january 23, 2008"
What round had a result of 6–7 (6–8) , 1–6?
SELECT round FROM table_name_83 WHERE result = "6–7 (6–8) , 1–6"
What is the 2010 Lukoil oil prodroduction when in 2009 oil production 21.662 million tonnes?
SELECT 2010 FROM table_name_25 WHERE 2009 = "21.662"
What is the transfer window when moving to alianza atlético by the name of v. zapata?
SELECT transfer_window FROM table_name_76 WHERE moving_to = "alianza atlético" AND name = "v. zapata"
What was the score for the game with a record of 11-22 and a H/A/N of A?
SELECT score FROM table_name_60 WHERE h_a_n = "a" AND record = "11-22"
How many total team penalties are there when cross country penalties is 30.40?
SELECT total_team_penalties FROM table_18666752_3 WHERE cross_country_penalties = "30.40"
Which Position player was born June 30, 1981?
SELECT position FROM table_name_90 WHERE birthdate = "june 30, 1981"
Give the ids of documents that have between one and two paragraphs.
SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2
Give me a list of distinct product ids from orders placed between 1975-01-01 and 1976-01-01?
SELECT DISTINCT T2.product_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id WHERE T1.date_order_placed >= "1975-01-01" AND T1.date_order_placed <= "1976-01-01"
Name the title that aired on 5 august 1967
SELECT COUNT(title) FROM table_20345624_2 WHERE original_airdate = "5 August 1967"
What are the committee names for the counties with population smaller than 100000?
SELECT T2.Committee FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population < 100000
Find the number of scientists involved for the projects that require more than 300 hours.
SELECT count(*) , T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project WHERE T1.hours > 300 GROUP BY T1.name
What is terry's record when he fights julio paulino?
SELECT record FROM table_name_21 WHERE opponent = "julio paulino"
Find the id of the item whose title is "orange".
SELECT i_id FROM item WHERE title = "orange"
List the 3 highest salaries of players on ATL in 2001.
SELECT salary FROM salary WHERE YEAR = 2001 and team_id = "ATL" ORDER BY salary DESC LIMIT 3
What is the number of starts for 1987?
SELECT COUNT(starts) FROM table_13026799_3 WHERE year = 1987
Which country does Ranchi city belong to?
SELECT T2.Country_Name FROM City AS T1 INNER JOIN Country AS T2 ON T1.Country_Id = T2.Country_Id WHERE T1.City_Name = 'Ranchi'
What is the phone number of the station located at 53 Dayton Road?
SELECT phone FROM table_name_46 WHERE address = "53 dayton road"
What is the lowest tier for a postseason result of quarterfinalist?
SELECT MIN(tier) FROM table_name_68 WHERE postseason = "quarterfinalist"
How many numbers were recorded under Obama when he had 29.9% voters?
SELECT COUNT(obama_number) FROM table_20693870_1 WHERE obama_percentage = "29.9%"
What are the name, independence year, and surface area of the country with the smallest population?
SELECT Name , SurfaceArea , IndepYear FROM country ORDER BY Population LIMIT 1
What are the staff ids and genders of all staffs whose job title is Department Manager?
SELECT T1.staff_id , T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = "Department Manager"
Count the number of distinct player positions.
SELECT count(DISTINCT POSITION) FROM player
Which To par has a Country of united states, and a Player of duffy waldorf?
SELECT to_par FROM table_name_22 WHERE country = "united states" AND player = "duffy waldorf"
List the sources for the Net Migration in South American countries in 2002.
SELECT T2.Source FROM CountryNotes AS T1 INNER JOIN Series AS T2 ON T1.Seriescode = T2.SeriesCode INNER JOIN Country AS T3 ON T1.Countrycode = T3.CountryCode INNER JOIN SeriesNotes AS T4 ON T2.SeriesCode = T4.Seriescode WHERE T4.Year LIKE '%2002%' AND T2.IndicatorName = 'Net migration'
What is the tries for when 52 was the tries against?
SELECT tries_for FROM table_name_89 WHERE tries_against = "52"
What was the total opponents points for the game were the Oilers scored 21?
SELECT opponents FROM table_15986020_3 WHERE oilers_points = 21
how many purchases did each member make?
SELECT T1.member_id, count ( * ) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id group by T1.member_id