question stringlengths 12 244 | context stringlengths 27 489 | answer stringlengths 18 557 |
|---|---|---|
How many games played when the points for is 369? | CREATE TABLE table_name_89 (played VARCHAR, points_for VARCHAR) | SELECT played FROM table_name_89 WHERE points_for = "369" |
What is the school of the player with a college hall of fame nevers hof profile? | CREATE TABLE table_name_50 (school VARCHAR, college_hall_of_fame VARCHAR) | SELECT school FROM table_name_50 WHERE college_hall_of_fame = "nevers hof profile" |
How many games were played against a team with a 9-19-6 record against the Islanders? | CREATE TABLE table_27539535_5 (december VARCHAR, record VARCHAR) | SELECT COUNT(december) FROM table_27539535_5 WHERE record = "9-19-6" |
where is the enrollment 4259? | CREATE TABLE table_1715730_2 (location VARCHAR, enrollment VARCHAR) | SELECT location FROM table_1715730_2 WHERE enrollment = 4259 |
What percentage of voters choise McCain in Burlington? | CREATE TABLE table_20278716_2 (mccain__percentage VARCHAR, county VARCHAR) | SELECT mccain__percentage FROM table_20278716_2 WHERE county = "Burlington" |
For the match that had detail of 2001 nrl grand final, what was the lowest total points? | CREATE TABLE table_name_73 (total_points INTEGER, details VARCHAR) | SELECT MIN(total_points) FROM table_name_73 WHERE details = "2001 nrl grand final" |
What player from the United States played in the western collegiate hockey association? | CREATE TABLE table_name_40 (player VARCHAR, nationality VARCHAR, league_from VARCHAR) | SELECT player FROM table_name_40 WHERE nationality = "united states" AND league_from = "western collegiate hockey association" |
How many perpetrators are there? | CREATE TABLE perpetrator (Id VARCHAR) | SELECT COUNT(*) FROM perpetrator |
When did the term end for the term that had government 27 and Minister Tzachi Hanegbi? | CREATE TABLE table_name_72 (term_end VARCHAR, governments VARCHAR, minister VARCHAR) | SELECT term_end FROM table_name_72 WHERE governments = "27" AND minister = "tzachi hanegbi" |
Who is the father that was born on January 2, 1842? | CREATE TABLE table_name_30 (father VARCHAR, date_of_birth VARCHAR) | SELECT father FROM table_name_30 WHERE date_of_birth = "january 2, 1842" |
What is the ENglish word for the Icelandic word hlaupa? | CREATE TABLE table_name_46 (english VARCHAR, icelandic VARCHAR) | SELECT english FROM table_name_46 WHERE icelandic = "hlaupa" |
What is the building's name that is 617 / 188 in height and ranked less than 6? | CREATE TABLE table_name_47 (name VARCHAR, rank VARCHAR, height_feet___m VARCHAR) | SELECT name FROM table_name_47 WHERE rank < 6 AND height_feet___m = "617 / 188" |
Name the number of administrative unit for number 4 | CREATE TABLE table_14465924_1 (name_of_administrative_unit VARCHAR, number VARCHAR) | SELECT name_of_administrative_unit FROM table_14465924_1 WHERE number = 4 |
How many candidates ran in the election where Mike Doyle was the incumbent? | CREATE TABLE table_1341453_40 (candidates VARCHAR, incumbent VARCHAR) | SELECT COUNT(candidates) FROM table_1341453_40 WHERE incumbent = "Mike Doyle" |
Who was the opponent for a game over 31 and a date over 30? | CREATE TABLE table_name_54 (opponent VARCHAR, game VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_54 WHERE game > 31 AND date > 30 |
List first name and last name of customers lived in city Lockmanfurt. | CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR, customer_address_id VARCHAR); CREATE TABLE Addresses (address_id VARCHAR, city VARCHAR) | SELECT T1.first_name, T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = "Lockmanfurt" |
What is the average high temperature for each day of week? | CREATE TABLE weekly_weather (day_of_week VARCHAR, high_temperature INTEGER) | SELECT AVG(high_temperature), day_of_week FROM weekly_weather GROUP BY day_of_week |
Show the names and main services for train stations that have the top three total number of passengers. | CREATE TABLE station (name VARCHAR, main_services VARCHAR, total_passengers VARCHAR) | SELECT name, main_services FROM station ORDER BY total_passengers DESC LIMIT 3 |
What Nationality is Dave Hynes? | CREATE TABLE table_name_74 (nationality VARCHAR, player VARCHAR) | SELECT nationality FROM table_name_74 WHERE player = "dave hynes" |
What is 2012 that has a winning % of 67%? | CREATE TABLE table_name_60 (win__percentage VARCHAR) | SELECT 2012 FROM table_name_60 WHERE win__percentage = "67%" |
What is the first names of the professors from the history department who do not teach a class. | CREATE TABLE professor (emp_num VARCHAR, dept_code VARCHAR); CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR) | SELECT T1.emp_fname 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 T3.dept_name = 'History' EXCEPT SELECT T4.emp_fname FROM employee AS T4 JOIN CLASS AS T5 ON T4.emp_num = T5.prof_num |
How many airports are there per city in the United States? Order the cities by decreasing number of airports. | CREATE TABLE airports (city VARCHAR, country VARCHAR) | SELECT COUNT(*), city FROM airports WHERE country = 'United States' GROUP BY city ORDER BY COUNT(*) DESC |
What was the film title nominated from the Netherlands? | CREATE TABLE table_name_18 (film_title_used_in_nomination VARCHAR, country VARCHAR) | SELECT film_title_used_in_nomination FROM table_name_18 WHERE country = "netherlands" |
what is the rank when the mountain peak is isthmus peak? | CREATE TABLE table_name_63 (rank VARCHAR, mountain_peak VARCHAR) | SELECT rank FROM table_name_63 WHERE mountain_peak = "isthmus peak" |
What was the crowd when the VFL played MCG? | CREATE TABLE table_name_49 (crowd INTEGER, venue VARCHAR) | SELECT MIN(crowd) FROM table_name_49 WHERE venue = "mcg" |
When 27,822 (72.3) is the percentage for how many electorate measurements are there? | CREATE TABLE table_20683381_3 (electorate VARCHAR, for___percentage_ VARCHAR) | SELECT COUNT(electorate) FROM table_20683381_3 WHERE for___percentage_ = "27,822 (72.3)" |
What's the code name of the wireless LAN with Chief River Centrino? | CREATE TABLE table_199666_1 (codename VARCHAR, centrino VARCHAR) | SELECT codename FROM table_199666_1 WHERE centrino = "Chief River" |
How many total laps for a grid of 3? | CREATE TABLE table_name_42 (laps VARCHAR, grid VARCHAR) | SELECT COUNT(laps) FROM table_name_42 WHERE grid = 3 |
In how many districts is the incumbent Dave E. Satterfield, Jr. | CREATE TABLE table_1342292_45 (result VARCHAR, incumbent VARCHAR) | SELECT COUNT(result) FROM table_1342292_45 WHERE incumbent = "Dave E. Satterfield, Jr." |
What player has a To Par of +1 with a score of 71-67-73=211? | CREATE TABLE table_name_89 (player VARCHAR, to_par VARCHAR, score VARCHAR) | SELECT player FROM table_name_89 WHERE to_par = "+1" AND score = 71 - 67 - 73 = 211 |
Who is the November playmate with the July playmate Hope Marie Carlton? | CREATE TABLE table_name_66 (november VARCHAR, july VARCHAR) | SELECT november FROM table_name_66 WHERE july = "hope marie carlton" |
What is the group B region with a Group E region of Georgia? | CREATE TABLE table_name_17 (group_b VARCHAR, group_e VARCHAR) | SELECT group_b FROM table_name_17 WHERE group_e = "georgia" |
What is the sum of To Par, when Year(s) Won is "1978 , 1985"? | CREATE TABLE table_name_35 (to_par INTEGER, year_s__won VARCHAR) | SELECT SUM(to_par) FROM table_name_35 WHERE year_s__won = "1978 , 1985" |
What was the result of the game on week 11? | CREATE TABLE table_name_55 (result VARCHAR, week VARCHAR) | SELECT result FROM table_name_55 WHERE week = 11 |
Which To Par has a Score smaller than 70, and a Player of matt kowal? | CREATE TABLE table_name_33 (to_par VARCHAR, score VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_33 WHERE score < 70 AND player = "matt kowal" |
What is the total number of top-25s for tournaments that had 0 wins, 1 cut made, and more than 5 events? | CREATE TABLE table_name_23 (top_25 VARCHAR, events VARCHAR, wins VARCHAR, cuts_made VARCHAR) | SELECT COUNT(top_25) FROM table_name_23 WHERE wins = 0 AND cuts_made = 1 AND events > 5 |
What is the method when the record was 3-2? | CREATE TABLE table_name_63 (method VARCHAR, record VARCHAR) | SELECT method FROM table_name_63 WHERE record = "3-2" |
Tell me the version for 1940-45 | CREATE TABLE table_name_71 (version VARCHAR, year VARCHAR) | SELECT version FROM table_name_71 WHERE year = "1940-45" |
Which Years in Orlando has a Nationality of united states, and a Player of doug overton? | CREATE TABLE table_name_43 (years_in_orlando VARCHAR, nationality VARCHAR, player VARCHAR) | SELECT years_in_orlando FROM table_name_43 WHERE nationality = "united states" AND player = "doug overton" |
What Republican District had Incumbent First Elected in 2000 then Re-elected? | CREATE TABLE table_name_90 (district VARCHAR, first_elected VARCHAR, party VARCHAR, results VARCHAR) | SELECT district FROM table_name_90 WHERE party = "republican" AND results = "re-elected" AND first_elected = 2000 |
Who was the other party nominee that ran against Democratic Rick Boucher? | CREATE TABLE table_name_98 (other_party VARCHAR, democratic VARCHAR) | SELECT other_party FROM table_name_98 WHERE democratic = "rick boucher" |
What is the average score with lee westwood as the player? | CREATE TABLE table_name_5 (score INTEGER, player VARCHAR) | SELECT AVG(score) FROM table_name_5 WHERE player = "lee westwood" |
Which writer had a producer DKA, JL, AS? | CREATE TABLE table_name_85 (writer VARCHAR, producer_executive_producer VARCHAR) | SELECT writer FROM table_name_85 WHERE producer_executive_producer = "dka, jl, as" |
If the visiting team is Clemson, when was the time? | CREATE TABLE table_26842217_8 (time VARCHAR, visiting_team VARCHAR) | SELECT time FROM table_26842217_8 WHERE visiting_team = "Clemson" |
how many assists did the player who played 195 minutes make | CREATE TABLE table_19722233_5 (assists VARCHAR, minutes VARCHAR) | SELECT assists FROM table_19722233_5 WHERE minutes = 195 |
Where was the game held when the attendance was 56,770? | CREATE TABLE table_name_63 (game_site VARCHAR, attendance VARCHAR) | SELECT game_site FROM table_name_63 WHERE attendance = "56,770" |
Who was Switzerland's alternate? | CREATE TABLE table_name_86 (alternate VARCHAR, nation VARCHAR) | SELECT alternate FROM table_name_86 WHERE nation = "switzerland" |
What is the minimum number of perfect 40s? | CREATE TABLE table_15988037_24 (perfect_40s INTEGER) | SELECT MIN(perfect_40s) FROM table_15988037_24 |
What place has a to par of E? | CREATE TABLE table_name_46 (place VARCHAR, to_par VARCHAR) | SELECT place FROM table_name_46 WHERE to_par = "e" |
What tournament that Fernando Roca is the runner-up? | CREATE TABLE table_name_14 (tournament VARCHAR, runner_s__up VARCHAR) | SELECT tournament FROM table_name_14 WHERE runner_s__up = "fernando roca" |
what is the wheel arrangement when the year made is 1881? | CREATE TABLE table_name_78 (wheel_arrangement VARCHAR, year_made VARCHAR) | SELECT wheel_arrangement FROM table_name_78 WHERE year_made = "1881" |
who is the opponent in the final when the year is before 1883? | CREATE TABLE table_name_8 (opponent_in_the_final VARCHAR, year INTEGER) | SELECT opponent_in_the_final FROM table_name_8 WHERE year < 1883 |
What is the lowest year that has edmonton, canada as the venue with a weight class (kg) greater than 100? | CREATE TABLE table_name_11 (year INTEGER, venue VARCHAR, weight_class__kg_ VARCHAR) | SELECT MIN(year) FROM table_name_11 WHERE venue = "edmonton, canada" AND weight_class__kg_ > 100 |
Who played in 1992? | CREATE TABLE table_name_25 (player VARCHAR, year VARCHAR) | SELECT player FROM table_name_25 WHERE year = 1992 |
Which Attendance has a Date of october 25? | CREATE TABLE table_name_43 (attendance INTEGER, date VARCHAR) | SELECT MAX(attendance) FROM table_name_43 WHERE date = "october 25" |
What is Label, when Region is Japan? | CREATE TABLE table_name_40 (label VARCHAR, region VARCHAR) | SELECT label FROM table_name_40 WHERE region = "japan" |
What is the capacity for Sangre Grande Ground, home of the North East Stars? | CREATE TABLE table_24039173_1 (capacity VARCHAR, team VARCHAR) | SELECT COUNT(capacity) FROM table_24039173_1 WHERE team = "North East Stars" |
How many ties did the Montreal Victorias have with a GA of less than 24? | CREATE TABLE table_name_57 (ties INTEGER, team VARCHAR, goals_against VARCHAR) | SELECT MAX(ties) FROM table_name_57 WHERE team = "montreal victorias" AND goals_against < 24 |
What is the average of all the years when the notes are “electronics brand?” | CREATE TABLE table_name_36 (year INTEGER, notes VARCHAR) | SELECT AVG(year) FROM table_name_36 WHERE notes = "electronics brand" |
What is the highest rank of the player with less than 32 points? | CREATE TABLE table_name_24 (rank INTEGER, points INTEGER) | SELECT MAX(rank) FROM table_name_24 WHERE points < 32 |
Which week was the game played on December 8, 1974? | CREATE TABLE table_name_39 (week VARCHAR, date VARCHAR) | SELECT week FROM table_name_39 WHERE date = "december 8, 1974" |
What was Melbourne's score when they were the home team? | CREATE TABLE table_name_37 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_37 WHERE home_team = "melbourne" |
What is the total when matches is less than 3, and rank is smaller than 2? | CREATE TABLE table_name_41 (total INTEGER, matches VARCHAR, rank VARCHAR) | SELECT MIN(total) FROM table_name_41 WHERE matches < 3 AND rank < 2 |
If the height is 185cm and the home team is Heaton Mersey, what is the date of birth? | CREATE TABLE table_22344463_2 (date_of_birth VARCHAR, height VARCHAR, home_team VARCHAR) | SELECT date_of_birth FROM table_22344463_2 WHERE height = "185cm" AND home_team = "Heaton Mersey" |
How old is the doctor named Zach? | CREATE TABLE Person (age VARCHAR, job VARCHAR, name VARCHAR) | SELECT age FROM Person WHERE job = 'doctor' AND name = 'Zach' |
What was the air date where there were 5.72 million viewers? | CREATE TABLE table_23483182_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR) | SELECT original_air_date FROM table_23483182_1 WHERE us_viewers__million_ = "5.72" |
What team had average speed of 107.063 mph? | CREATE TABLE table_2241101_1 (team VARCHAR, average_speed__mph_ VARCHAR) | SELECT team FROM table_2241101_1 WHERE average_speed__mph_ = "107.063" |
Name the sex ratio lowest for population 4773138 | CREATE TABLE table_231623_3 (sex_ratio INTEGER, population VARCHAR) | SELECT MAX(sex_ratio) FROM table_231623_3 WHERE population = 4773138 |
Which of the events only lasted no more than 0:55? | CREATE TABLE table_name_66 (event VARCHAR, time VARCHAR) | SELECT event FROM table_name_66 WHERE time = "0:55" |
Name the scientific linux release when delay is 28d | CREATE TABLE table_1500146_1 (scientific_linux_release VARCHAR, delay VARCHAR) | SELECT scientific_linux_release FROM table_1500146_1 WHERE delay = "28d" |
What institution is located in Watertown, Wisconsin? | CREATE TABLE table_1974443_1 (institution VARCHAR, location VARCHAR) | SELECT institution FROM table_1974443_1 WHERE location = "Watertown, Wisconsin" |
What's the score in al jefferson (24) high points? | CREATE TABLE table_27734286_1 (score VARCHAR, high_points VARCHAR) | SELECT COUNT(score) FROM table_27734286_1 WHERE high_points = "Al Jefferson (24)" |
What is the location attendance from Dwyane Wade (27) high points? | CREATE TABLE table_name_63 (location_attendance VARCHAR, high_points VARCHAR) | SELECT location_attendance FROM table_name_63 WHERE high_points = "dwyane wade (27)" |
Who was the opponent on August 30? | CREATE TABLE table_name_16 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_16 WHERE date = "august 30" |
what is the jewel power when the media debut is ep 17? | CREATE TABLE table_26615633_1 (jewel VARCHAR, media_debut VARCHAR) | SELECT jewel AS Power FROM table_26615633_1 WHERE media_debut = "EP 17" |
what number is associated with the name chartist (чартист)? | CREATE TABLE table_name_85 (number VARCHAR, name VARCHAR) | SELECT number FROM table_name_85 WHERE name = "chartist (чартист)" |
What was the competition when the score was 3-0? | CREATE TABLE table_name_33 (competition VARCHAR, score VARCHAR) | SELECT competition FROM table_name_33 WHERE score = "3-0" |
what is the race when the jockey is frankie dettori, the margin is more than 3 and the course is yarmouth? | CREATE TABLE table_name_48 (race VARCHAR, course VARCHAR, jockey VARCHAR, margin VARCHAR) | SELECT race FROM table_name_48 WHERE jockey = "frankie dettori" AND margin > 3 AND course = "yarmouth" |
What is every team with location attendance of Arco Arena 17,014? | CREATE TABLE table_27902171_5 (team VARCHAR, location_attendance VARCHAR) | SELECT team FROM table_27902171_5 WHERE location_attendance = "ARCO Arena 17,014" |
In the region where Roskilde is the largest city, what is the seat of administration? | CREATE TABLE table_16278602_1 (seat_of_administration VARCHAR, largest_city VARCHAR) | SELECT seat_of_administration FROM table_16278602_1 WHERE largest_city = "Roskilde" |
When is the Surface of hard (i), and a Tournament of brighton , united kingdom taken? | CREATE TABLE table_name_11 (date VARCHAR, surface VARCHAR, tournament VARCHAR) | SELECT date FROM table_name_11 WHERE surface = "hard (i)" AND tournament = "brighton , united kingdom" |
What is the highest number of the match with julio césar vásquez as the opponent? | CREATE TABLE table_name_74 (number INTEGER, opponent VARCHAR) | SELECT MAX(number) FROM table_name_74 WHERE opponent = "julio césar vásquez" |
What was the lowest pick when the position was OF with the Chicago White Sox? | CREATE TABLE table_name_35 (pick INTEGER, position VARCHAR, team VARCHAR) | SELECT MIN(pick) FROM table_name_35 WHERE position = "of" AND team = "chicago white sox" |
Find the number of complaints with Product Failure type for each complaint status. | CREATE TABLE complaints (complaint_status_code VARCHAR, complaint_type_code VARCHAR) | SELECT complaint_status_code, COUNT(*) FROM complaints WHERE complaint_type_code = "Product Failure" GROUP BY complaint_status_code |
What is taipei's lowest 2010 population? | CREATE TABLE table_name_99 (population__2010_ INTEGER, city VARCHAR) | SELECT MIN(population__2010_) FROM table_name_99 WHERE city = "taipei" |
What was the Purse for Owner Harold A. Allen prior to 2009? | CREATE TABLE table_name_41 (purse VARCHAR, year VARCHAR, owner VARCHAR) | SELECT purse FROM table_name_41 WHERE year < 2009 AND owner = "harold a. allen" |
What's the 2008 of the Australian Open when the 2011 was 1R? | CREATE TABLE table_name_87 (tournament VARCHAR) | SELECT 2008 FROM table_name_87 WHERE 2011 = "1r" AND tournament = "australian open" |
Who are the members of the club named "Hopkins Student Enterprises"? Show the last name. | CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) | SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Hopkins Student Enterprises" |
What is maximum number of episodes for a show? | CREATE TABLE table_18540104_1 (episodes INTEGER) | SELECT MAX(episodes) FROM table_18540104_1 |
What is the minimum length of the locations where the average climb percentage is exactly 59%? | CREATE TABLE table_206361_2 (length__in_m_ INTEGER, average_climb___percentage_ VARCHAR) | SELECT MIN(length__in_m_) FROM table_206361_2 WHERE average_climb___percentage_ = 59 |
What is the total heat number of sun yang, who has a lane less than 2? | CREATE TABLE table_name_37 (heat VARCHAR, name VARCHAR, lane VARCHAR) | SELECT COUNT(heat) FROM table_name_37 WHERE name = "sun yang" AND lane < 2 |
Which surfaces have the final score of 6–1, 6–7 (2–7) , 7–6 (7–5) , 7–6 (10–8)? | CREATE TABLE table_22834834_3 (surface VARCHAR, score_in_the_final VARCHAR) | SELECT surface FROM table_22834834_3 WHERE score_in_the_final = "6–1, 6–7 (2–7) , 7–6 (7–5) , 7–6 (10–8)" |
If the position is 12th, what was the series? | CREATE TABLE table_21795846_1 (series VARCHAR, position VARCHAR) | SELECT series FROM table_21795846_1 WHERE position = "12th" |
What are the investors that have invested in at least two entrepreneurs? | CREATE TABLE entrepreneur (Investor VARCHAR) | SELECT Investor FROM entrepreneur GROUP BY Investor HAVING COUNT(*) >= 2 |
What is the home team at the game with an Attendance of 2,029? | CREATE TABLE table_name_85 (home_team VARCHAR, attendance VARCHAR) | SELECT home_team FROM table_name_85 WHERE attendance = "2,029" |
What is the highest interview for Louisiana with an average above 9.324? | CREATE TABLE table_name_77 (interview INTEGER, average VARCHAR, state VARCHAR) | SELECT MAX(interview) FROM table_name_77 WHERE average > 9.324 AND state = "louisiana" |
What is the highest # Of Constituency Votes, when Election is before 1976, when Leader is Eisaku Satō, and when # Of Candidates is less than 328? | CREATE TABLE table_name_18 (_number_of_constituency_votes INTEGER, _number_of_candidates VARCHAR, election VARCHAR, leader VARCHAR) | SELECT MAX(_number_of_constituency_votes) FROM table_name_18 WHERE election < 1976 AND leader = "eisaku satō" AND _number_of_candidates < 328 |
Who led the metas volantes classification for stage 4? | CREATE TABLE table_name_36 (metas_volantes_classification VARCHAR, stage VARCHAR) | SELECT metas_volantes_classification FROM table_name_36 WHERE stage = 4 |
Which average S.R. has an Average of 39.13 and Balls Faced larger than 318? | CREATE TABLE table_name_48 (sr INTEGER, average VARCHAR, balls_faced VARCHAR) | SELECT AVG(sr) FROM table_name_48 WHERE average = 39.13 AND balls_faced > 318 |
What was the date of the game against seattle? | CREATE TABLE table_name_52 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_52 WHERE opponent = "seattle" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.