sentence
stringlengths
3
347
sql
stringlengths
18
804
What was the score at the Tie no. 1 game?
SELECT score FROM table_name_37 WHERE tie_no = "1"
Name the james e. holmes for erselle young
SELECT james_e_holmes FROM table_25330991_3 WHERE reidsville = "Erselle Young"
What is the country of Paavo Yrjölä?
SELECT country FROM table_26454128_4 WHERE athlete = "Paavo Yrjölä"
what is the phone number of employees whose salary is in the range of 8000 and 12000?
SELECT phone_number FROM employees WHERE salary BETWEEN 8000 AND 12000
What Pitch is located at Isle of Man?
SELECT pitch FROM table_name_97 WHERE location = "isle of man"
If the Country of Origin is Denmark and the year of introduction is 1962, what is the primary cartridge?
SELECT primary_cartridge FROM table_26389588_1 WHERE year_of_introduction = "1962" AND country_of_origin = "Denmark"
what's the former province with area (km 2 ) being 12,245.9
SELECT former_province FROM table_1404456_1 WHERE area__km_2__ = "12,245.9"
What is the kickoff time for the Hubert H. Humphrey Metrodome?
SELECT kickoff_[a_] FROM table_name_12 WHERE game_site = "hubert h. humphrey metrodome"
Which parts have more than 2 faults? Show the part name and id.
SELECT T1.part_name , T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_id HAVING count(*) > 2
Which motorway is in brod-posavina county and has a scheduled completion in 2013?
SELECT motorway FROM table_name_68 WHERE scheduled_completion = "2013" AND county = "brod-posavina"
What is the association agreement for bosnia and herzegovina?
SELECT association_agreement FROM table_name_69 WHERE state = "bosnia and herzegovina"
Which American Labor candidate ran against Republican Thomas E. Dewey?
SELECT american_labor_ticket FROM table_name_91 WHERE republican_ticket = "thomas e. dewey"
Which Name has a Nationality of nor, and Points of 136?
SELECT name FROM table_name_99 WHERE nationality = "nor" AND points = 136
What is the N117/2400 IEC3 associated with an N100IEC3 of 25?
SELECT n117_2400_iec3 FROM table_name_10 WHERE n100_iec3 = "25"
What's Russia's lane when they were ranked before 1?
SELECT MAX(lane) FROM table_name_60 WHERE nationality = "russia" AND rank < 1
Who is the January playmate with a September playmate Nikki Schieler?
SELECT january FROM table_name_15 WHERE september = "nikki schieler"
How many products using "roadster_black_small.gif" as the thumbnail photo?
SELECT COUNT(DISTINCT T2.ProductID) FROM ProductPhoto AS T1 INNER JOIN ProductProductPhoto AS T2 ON T1.ProductPhotoID = T2.ProductPhotoID WHERE T1.LargePhotoFileName = 'roadster_black_large.gif'
Who was the game on January 26 played against?
SELECT team FROM table_23285761_7 WHERE date = "January 26"
What was the average salary of players in 2010?
SELECT avg ( salary ) FROM salary WHERE YEAR = 2010
What are the first names of all teachers who have taught a course and the corresponding descriptions?
SELECT T2.emp_fname , T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code
For each origin, how many flights came from there?
SELECT origin , count(*) FROM Flight GROUP BY origin
How many of them involve in detention?
SELECT count ( distinct T2.teacher_id ) FROM Teachers AS T1 JOIN Detention AS T2 ON T1.teacher_id = T2.teacher_id
List down all of the film titles that are rated for general audiences.
SELECT title FROM film WHERE rating = 'G'
What was the nationality of five-eighth player Darren Lockyer?
SELECT nationality FROM table_name_96 WHERE player = "darren lockyer" AND position = "five-eighth"
What is the least number of silver medals won
SELECT MIN(silver) FROM table_22355_50
What was the number of Laps with a Grid of more than 3 and Time of 39:24.967?
SELECT MIN(laps) FROM table_name_8 WHERE grid > 3 AND time = "39:24.967"
What genre is Led Zeppelin?
SELECT genre FROM table_name_85 WHERE artist = "led zeppelin"
What is the song in the volume with the maximum weeks on top?
SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1
Among the matches in 2013, what is the percentage of winning of the team "Mumbai Indians"?
SELECT CAST(SUM(CASE WHEN T2.Match_Winner = 7 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.Match_Winner) FROM Team AS T1 INNER JOIN Match AS T2 ON T1.Team_Id = T2.Match_Winner WHERE T2.Match_Date LIKE '2013%'
What week number saw a w 31-16 result?
SELECT MIN(week) FROM table_name_21 WHERE result = "w 31-16"
List grade points by letter grade?
SELECT gradepoint,lettergrade FROM GRADECONVERSION
What is Elizabeth Simmonds' average lane number?
SELECT AVG(lane) FROM table_name_21 WHERE name = "elizabeth simmonds"
For the movies in English that are the oldest, how many of them have the lowest rating?
SELECT COUNT(DISTINCT T1.movieid) FROM movies AS T1 INNER JOIN u2base AS T2 ON T1.movieid = T2.movieid WHERE T1.year = 1 AND T2.rating = 1 AND T1.isEnglish = 'T'
What are the kinds of industries in the table?
select distinct Industry from company
What's the quarterfinals when the rank was bronze?
SELECT quarterfinals FROM table_name_79 WHERE rank = "bronze"
Which Extra points is the lowest one that has a Player of ross kidston, and Points smaller than 5?
SELECT MIN(extra_points) FROM table_name_86 WHERE player = "ross kidston" AND points < 5
Great! Can you please show me a list of Staff IDs for those who have the job_title_code of Department Manager?
SELECT T1.staff_id FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = "Department Manager"
Name the title for season number 35
SELECT title FROM table_25764073_3 WHERE season__number = 35
What is Place, when Player is "Arnold Palmer"?
SELECT place FROM table_name_23 WHERE player = "arnold palmer"
How many territories are there?
SELECT COUNT(TerritoryID) FROM Territories
What is the Country of the Championship with a Score of 293?
SELECT country FROM table_name_12 WHERE score = "293"
In which cities are the customers of Costa Rica located?
SELECT T1.city FROM address AS T1 INNER JOIN country AS T2 ON T2.country_id = T1.country_id WHERE T2.country_name = 'Costa Rica'
What is the career SR with a 1r in 1985?
SELECT career_sr FROM table_name_43 WHERE 1985 = "1r"
Who is Essendon's home team?
SELECT MIN(crowd) FROM table_name_94 WHERE home_team = "essendon"
Name the position for pick number 128
SELECT position FROM table_1473672_8 WHERE pick__number = 128
What was the record for the Sun Devils when they scored 44 points?
SELECT record FROM table_21007615_1 WHERE sun_devils_points = 44
Show names of cities and names of counties they are in.
SELECT T1.Name, T2.Name FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID
What year was the championship in Wimbledon (2)?
SELECT year FROM table_1028356_3 WHERE championship = "Wimbledon (2)"
How many flights do we have?
SELECT count(*) FROM FLIGHTS
Show all distinct positions of matches.
SELECT DISTINCT POSITION FROM match_season
Find the birth dates corresponding to employees who live in the city of Edmonton.
SELECT BirthDate FROM EMPLOYEE WHERE City = "Edmonton"
What is the postion of the player listed from Dooly County High School?
SELECT position FROM table_11677691_10 WHERE school = "Dooly County High school"
What is the most popular movie directed by Ron Clements?
SELECT T2.name FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T2.name = T1.movie_title WHERE T2.director = 'Ron Clements' ORDER BY CAST(REPLACE(SUBSTR(total_gross, 2), ',', '') AS int) DESC LIMIT 1
Date for less than 122 countries and a 47% rank?
SELECT date FROM table_name_60 WHERE countries_surveyed < 122 AND _percentage_rank = "47"
What is the average coldest temperature for the zip code of 94301 and what stations are within the zip code? Include the latitude and longitude as well.
SELECT AVG(T3.min_temperature_f), T1.long, T1.lat FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name INNER JOIN weather AS T3 ON T3.zip_code = T2.zip_code WHERE T3.zip_code = 94301
Name the award name for black ocean current
SELECT award_name FROM table_15584199_3 WHERE team_name = "BLACK OCEAN CURRENT"
Who constructed olivier panis' car that retired after +1 lap?
SELECT constructor FROM table_name_4 WHERE time_retired = "+1 lap" AND driver = "olivier panis"
Which year was Stanley open?
SELECT Open_year FROM branch WHERE name = "Stanley"
I want to know the number of public universities with over 20000 enrollment size.
SELECT count ( * ) FROM university WHERE affiliation = 'Public' and enrollment > 20000
what's the occupied territory with estimated deaths of 600,000
SELECT occupied_territory FROM table_10335_1 WHERE estimated_deaths = "600,000"
What 1983 has a 1975 of career statistics?
SELECT 1983 FROM table_name_44 WHERE 1975 = "career statistics"
Who wrote episode 27 in the series that was directed by Wendey Stanzler?
SELECT written_by FROM table_28768925_1 WHERE directed_by = "Wendey Stanzler" AND no_in_series = 27
List the tail number of flights that flew on August 17, 2018.
SELECT TAIL_NUM FROM Airlines WHERE FL_DATE = '2018/8/17' GROUP BY TAIL_NUM
What team belongs to Delmar?
SELECT team FROM table_name_36 WHERE school = "delmar"
When 6606 is the sail number what is the type of yacht?
SELECT yacht AS Type FROM table_1858574_2 WHERE sail_number = "6606"
How many points did the 2005 1st place team receive?
SELECT points FROM table_name_90 WHERE year = 2005
Return the text of tweets about the topic 'intern'.
SELECT text FROM tweets WHERE text LIKE '%intern%'
Driving Force EX of 25cm (10-inch) involves what feature?
SELECT feature FROM table_name_46 WHERE driving_force_ex = "25cm (10-inch)"
What is Second Vice President, when Inaugurated is "26 March 1928"?
SELECT second_vice_president FROM table_name_85 WHERE inaugurated = "26 march 1928"
how many times was the candidates phil crane (r) 58.0% edward a. warman (d) 42.0%?
SELECT COUNT(incumbent) FROM table_1341718_14 WHERE candidates = "Phil Crane (R) 58.0% Edward A. Warman (D) 42.0%"
What is the first name of the professor who is teaching CIS-220 and QM-261?
SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'CIS-220' INTERSECT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'QM-261'
When the Points 1 were 44 and the Goals For were larger than 65, what was the total number of Goals Against?
SELECT COUNT(goals_against) FROM table_name_14 WHERE points_1 = 44 AND goals_for > 65
Name the most number of leitrim
SELECT MAX(no) FROM table_1705429_1 WHERE constituency = "Leitrim"
Which Leading Scorer has an Opponent of @ seattle, and a Record of 14-16?
SELECT Leading AS scorer FROM table_name_59 WHERE opponent = "@ seattle" AND record = "14-16"
What is the highest value for SF round for the country of England?
SELECT MAX(sf_round) FROM table_23293785_2 WHERE country = "England"
Loss of de la rosa (8–8) has what average attendance?
SELECT AVG(attendance) FROM table_name_97 WHERE loss = "de la rosa (8–8)"
What is the HDTV of the Music Content Channel?
SELECT hdtv FROM table_name_60 WHERE content = "music"
In the state of Connecticut, what is the name of the instution with the highest percent rank for freshman retention percentage within the sector?
SELECT chronname FROM institution_details WHERE state = 'Connecticut' AND retain_percentile = ( SELECT MAX(retain_percentile) FROM institution_details WHERE state = 'Connecticut' )
What's the average total cargo in metric tonnes that has an 11.8% Change?
SELECT AVG(total_cargo__metric_tonnes_) FROM table_name_97 WHERE _percentage_change = "11.8%"
What is the rank for Omni nashville hotel?
SELECT SUM(rank) FROM table_name_89 WHERE name = "omni nashville hotel"
Find the name and hours of project that has the most number of scientists.
SELECT T1.name , T1.hours FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T2.project ORDER BY count(*) DESC LIMIT 1
Show all template ids and number of documents using each template.
SELECT template_id , count(*) FROM Documents GROUP BY template_id
What's the engine used for rounds 5-6?
SELECT engine FROM table_name_1 WHERE rounds = "5-6"
List down the ID of toss winners who decided to bat after winning the "toss of the coin".
SELECT Toss_Winner FROM Match WHERE Toss_Decide = 2
What's the frequency of the call sign DYFR with 10KW of power?
SELECT frequency FROM table_name_50 WHERE power__kw_ = "10kw" AND call_sign = "dyfr"
How many long reviews does user No. 36139 give for the Yelp businesses?
SELECT COUNT(review_length) FROM Reviews WHERE user_id = 36139 AND review_length LIKE 'long'
Show the lieutenant governor and comptroller from the democratic party.
SELECT Lieutenant_Governor , Comptroller FROM party WHERE Party = "Democratic"
What is the mountain classification of Mario Cipollini, who has a general classification of Pavel tonkov?
SELECT mountains_classification FROM table_name_60 WHERE winner = "mario cipollini" AND general_classification = "pavel tonkov"
What are the country of FTE_AY 178?
SELECT t1.county FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id = t2.campus where t2.FTE_AY = 178
Which sponsor has Mark Hughes as manager?
SELECT shirt_sponsor FROM table_name_23 WHERE manager = "mark hughes"
What is the lowest crowd at corio oval?
SELECT MIN(crowd) FROM table_name_20 WHERE venue = "corio oval"
List the hardware model name for the phones that have screen mode type "Text" or RAM size greater than 32.
SELECT T2.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 T3.Type = "Text" OR T1.RAM_MiB > 32;
How many laps did Jo Bonnier driver when the grid number was smaller than 11?
SELECT SUM(laps) FROM table_name_6 WHERE driver = "jo bonnier" AND grid < 11
What was the location and the attendance for the game on October 12?
SELECT location_attendance FROM table_27756572_2 WHERE date = "October 12"
Among the games published by Nintendo, what is the percentage of those in the genre of sports?
SELECT CAST(COUNT(CASE WHEN T4.genre_name = 'Sports' THEN T1.id ELSE NULL END) AS REAL) * 100/ COUNT(T1.id) FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id INNER JOIN genre AS T4 ON T1.genre_id = T4.id WHERE T3.publisher_name = 'Nintendo'
How old are the students with allergies to food and animal types on average?
SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "animal")
How many times this institution was founded that was nicknamed Beavers?
SELECT COUNT(founded) FROM table_255205_1 WHERE nickname = "Beavers"
Who is the publisher of 3D Lemmings?
SELECT T3.publisher_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id WHERE T1.game_name = '3D Lemmings'
what instructors teach courses? | Do you mean the first names of instructors who teach courses? | Yes, the first names of all instructors who teach courses,
SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num
Find the team of each player and sort them in ascending alphabetical order.
SELECT Team FROM player ORDER BY Team ASC