question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Name the melbourne with perth, adelaide and auckland of no with sydney of yes
CREATE TABLE table_name_38 (melbourne VARCHAR, sydney VARCHAR, auckland VARCHAR, perth VARCHAR, adelaide VARCHAR)
SELECT melbourne FROM table_name_38 WHERE perth = "no" AND adelaide = "no" AND auckland = "no" AND sydney = "yes"
What is Points, when Played is "20", and when Club is "Caldicot RFC"?
CREATE TABLE table_name_64 (points VARCHAR, played VARCHAR, club VARCHAR)
SELECT points FROM table_name_64 WHERE played = "20" AND club = "caldicot rfc"
What is the smallest round for the welterweight class with a preliminary card?
CREATE TABLE table_name_11 (round INTEGER, weight_class VARCHAR, card VARCHAR)
SELECT MIN(round) FROM table_name_11 WHERE weight_class = "welterweight" AND card = "preliminary"
How many schools do not participate in the basketball match?
CREATE TABLE university (school_id VARCHAR); CREATE TABLE basketball_match (school_id VARCHAR)
SELECT COUNT(*) FROM university WHERE NOT school_id IN (SELECT school_id FROM basketball_match)
When nº is 3, what are all the ministires?
CREATE TABLE table_21422977_1 (ministries VARCHAR, nº VARCHAR)
SELECT COUNT(ministries) FROM table_21422977_1 WHERE nº = 3
How many wins did West Ham get when Millwall had more than 23 goal and 5 wins, and they tied 8 times?
CREATE TABLE table_name_56 (west_ham_wins VARCHAR, drawn VARCHAR, millwall_wins VARCHAR, millwall_goals VARCHAR)
SELECT west_ham_wins FROM table_name_56 WHERE millwall_wins > 5 AND millwall_goals > 23 AND drawn = 8
Show the name and distance of the aircrafts with more than 5000 distance and which at least 5 people have its certificate.
CREATE TABLE Certificate (aid VARCHAR); CREATE TABLE Aircraft (name VARCHAR, aid VARCHAR, distance INTEGER)
SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid WHERE T2.distance > 5000 GROUP BY T1.aid ORDER BY COUNT(*) >= 5
What is the record after the Phoenix game?
CREATE TABLE table_27723526_13 (record VARCHAR, team VARCHAR)
SELECT record FROM table_27723526_13 WHERE team = "Phoenix"
What is Geust, when Result is 0:9?
CREATE TABLE table_name_45 (geust VARCHAR, result VARCHAR)
SELECT geust FROM table_name_45 WHERE result = "0:9"
How much February has a Game larger than 37, and an Opponent of chicago black hawks?
CREATE TABLE table_name_95 (february VARCHAR, game VARCHAR, opponent VARCHAR)
SELECT COUNT(february) FROM table_name_95 WHERE game > 37 AND opponent = "chicago black hawks"
What is the highest Total for the rank 12, and gold less than 0?
CREATE TABLE table_name_53 (total INTEGER, rank VARCHAR, gold VARCHAR)
SELECT MAX(total) FROM table_name_53 WHERE rank = "12" AND gold < 0
What was the score on September 8?
CREATE TABLE table_name_52 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_52 WHERE date = "september 8"
What is IATA, when ICAO is "VHHH"?
CREATE TABLE table_name_8 (iata VARCHAR, icao VARCHAR)
SELECT iata FROM table_name_8 WHERE icao = "vhhh"
What kind of Guest Host has a Episode Number of 7?
CREATE TABLE table_name_19 (guest_host VARCHAR, episode_number VARCHAR)
SELECT guest_host FROM table_name_19 WHERE episode_number = 7
What is the round number when nationality was United States, and player is Jeffrey Foss?
CREATE TABLE table_name_20 (round VARCHAR, nationality VARCHAR, player VARCHAR)
SELECT COUNT(round) FROM table_name_20 WHERE nationality = "united states" AND player = "jeffrey foss"
Which Silver has a Bronze smaller than 618, and a Country of laos?
CREATE TABLE table_name_65 (silver VARCHAR, bronze VARCHAR, country VARCHAR)
SELECT silver FROM table_name_65 WHERE bronze < 618 AND country = "laos"
Who did the Texans play when there were 70,724 people in attendance?
CREATE TABLE table_name_11 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_11 WHERE attendance = "70,724"
Which Score has an Outcome of runner-up, and a Tournament of johannesburg?
CREATE TABLE table_name_69 (score VARCHAR, outcome VARCHAR, tournament VARCHAR)
SELECT score FROM table_name_69 WHERE outcome = "runner-up" AND tournament = "johannesburg"
What player has 69-70-68-73=280 as the score?
CREATE TABLE table_name_52 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_52 WHERE score = 69 - 70 - 68 - 73 = 280
What event did tedd williams fight bill parker?
CREATE TABLE table_name_94 (event VARCHAR, opponent VARCHAR)
SELECT event FROM table_name_94 WHERE opponent = "bill parker"
What was the resolution of the fight against steve schneider?
CREATE TABLE table_name_25 (res VARCHAR, opponent VARCHAR)
SELECT res FROM table_name_25 WHERE opponent = "steve schneider"
Who is the Brazil scorer who scored 6-0?
CREATE TABLE table_name_41 (brazil_scorers VARCHAR, score VARCHAR)
SELECT brazil_scorers FROM table_name_41 WHERE score = "6-0"
What is John Davis's home town?
CREATE TABLE table_name_95 (hometown VARCHAR, name VARCHAR)
SELECT hometown FROM table_name_95 WHERE name = "john davis"
How many wins did they have when they had 5 losses?
CREATE TABLE table_name_80 (wins VARCHAR, losses VARCHAR)
SELECT wins FROM table_name_80 WHERE losses = 5
What is the earliest year that kim hyun-soo won the gold?
CREATE TABLE table_name_51 (year INTEGER, gold VARCHAR)
SELECT MIN(year) FROM table_name_51 WHERE gold = "kim hyun-soo"
Who is the opponent on November 20, 1966?
CREATE TABLE table_name_88 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_88 WHERE date = "november 20, 1966"
Which ship was sunk at 01:00?
CREATE TABLE table_name_96 (name_of_ship VARCHAR, fate VARCHAR, time VARCHAR)
SELECT name_of_ship FROM table_name_96 WHERE fate = "sunk at" AND time = "01:00"
What home has 136-134 as the score?
CREATE TABLE table_name_6 (home VARCHAR, score VARCHAR)
SELECT home FROM table_name_6 WHERE score = "136-134"
Who directed what was written by Michael G. Moye & Ron Leavitt & J. Stanford Parker?
CREATE TABLE table_2226817_3 (directed_by VARCHAR, written_by VARCHAR)
SELECT directed_by FROM table_2226817_3 WHERE written_by = "Michael G. Moye & Ron Leavitt & J. Stanford Parker"
What's the Year average that's got Trim of LS/LT and Power of HP (KW)?
CREATE TABLE table_name_51 (year INTEGER, trim VARCHAR, power VARCHAR)
SELECT AVG(year) FROM table_name_51 WHERE trim = "ls/lt" AND power = "hp (kw)"
Which Outcome has a Score in the final of 4–6, 5–7?
CREATE TABLE table_name_96 (outcome VARCHAR, score_in_the_final VARCHAR)
SELECT outcome FROM table_name_96 WHERE score_in_the_final = "4–6, 5–7"
Name the least week for opponent of washington redskins
CREATE TABLE table_name_87 (week INTEGER, opponent VARCHAR)
SELECT MIN(week) FROM table_name_87 WHERE opponent = "washington redskins"
What is the day Number and date of all the documents?
CREATE TABLE All_documents (Date_Stored VARCHAR, date_stored VARCHAR); CREATE TABLE Ref_calendar (day_Number VARCHAR, calendar_date VARCHAR)
SELECT T2.day_Number, T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored = T2.calendar_date
How many to pars were won in 1993?
CREATE TABLE table_name_86 (to_par VARCHAR, year_s__won VARCHAR)
SELECT COUNT(to_par) FROM table_name_86 WHERE year_s__won = "1993"
Can you tell me the Team that has the Date of march 17?
CREATE TABLE table_name_77 (team VARCHAR, date VARCHAR)
SELECT team FROM table_name_77 WHERE date = "march 17"
What is the player from England's To Par?
CREATE TABLE table_name_68 (to_par VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_68 WHERE country = "england"
What engine with more than 2 points has Brabham bt58 as Chassis?
CREATE TABLE table_name_66 (engine VARCHAR, chassis VARCHAR, points VARCHAR)
SELECT engine FROM table_name_66 WHERE chassis = "brabham bt58" AND points > 2
What year did the B-Side of Just Squeeze Me come out?
CREATE TABLE table_name_46 (year VARCHAR, b_side VARCHAR)
SELECT year FROM table_name_46 WHERE b_side = "just squeeze me"
What is the Tenure of the Officer with a Date of death of 2001-08-31?
CREATE TABLE table_name_16 (tenure VARCHAR, date_of_death VARCHAR)
SELECT tenure FROM table_name_16 WHERE date_of_death = "2001-08-31"
What is the lowest medal total with less than 3 gold medals?
CREATE TABLE table_name_89 (total INTEGER, gold INTEGER)
SELECT MIN(total) FROM table_name_89 WHERE gold < 3
Where does Geelong play their home game?
CREATE TABLE table_name_7 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_7 WHERE home_team = "geelong"
Which Points have a Score of 4–1, and a Game smaller than 39?
CREATE TABLE table_name_91 (points INTEGER, score VARCHAR, game VARCHAR)
SELECT SUM(points) FROM table_name_91 WHERE score = "4–1" AND game < 39
What is the Score of the tournament played on Clay Surface against Pablo Martin-Adalia?
CREATE TABLE table_name_97 (score VARCHAR, surface VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_97 WHERE surface = "clay" AND opponent = "pablo martin-adalia"
Where is moving to the type loaned out under the name tragodara?
CREATE TABLE table_name_74 (moving_to VARCHAR, type VARCHAR, name VARCHAR)
SELECT moving_to FROM table_name_74 WHERE type = "loaned out" AND name = "tragodara"
What skip has denmark as the country?
CREATE TABLE table_name_58 (skip VARCHAR, country VARCHAR)
SELECT skip FROM table_name_58 WHERE country = "denmark"
What Poles do Team jva have?
CREATE TABLE table_name_2 (poles VARCHAR, team VARCHAR)
SELECT poles FROM table_name_2 WHERE team = "team jva"
What was the winning score of the Masters Tournament?
CREATE TABLE table_13026799_1 (winning_score VARCHAR, championship VARCHAR)
SELECT winning_score FROM table_13026799_1 WHERE championship = "Masters Tournament"
What are panoz motor sports' lowest number of laps before 2002?
CREATE TABLE table_name_68 (laps INTEGER, team VARCHAR, year VARCHAR)
SELECT MIN(laps) FROM table_name_68 WHERE team = "panoz motor sports" AND year < 2002
Agri culture b larger than 12.6, what is the lowest vehicles per 1000?
CREATE TABLE table_name_14 (vehicles__per_1000__d INTEGER, agri_culture_b INTEGER)
SELECT MIN(vehicles__per_1000__d) FROM table_name_14 WHERE agri_culture_b > 12.6
Name the most 2012/13 for university of cambridge
CREATE TABLE table_25057928_1 (institute VARCHAR)
SELECT MAX(2012 AS _13) FROM table_25057928_1 WHERE institute = "University of Cambridge"
Who was the athlete that covered biking within 58:52?
CREATE TABLE table_17085947_32 (athlete VARCHAR, bike__40km_ VARCHAR)
SELECT athlete FROM table_17085947_32 WHERE bike__40km_ = "58:52"
How many wins for the team with fewer than 2 byes?
CREATE TABLE table_name_1 (wins INTEGER, byes INTEGER)
SELECT AVG(wins) FROM table_name_1 WHERE byes < 2
Show the role code with the least employees.
CREATE TABLE Employees (role_code VARCHAR)
SELECT role_code FROM Employees GROUP BY role_code ORDER BY COUNT(*) LIMIT 1
Which rd. took place at Hockenheimring?
CREATE TABLE table_1137718_2 (rd INTEGER, location VARCHAR)
SELECT MIN(rd) FROM table_1137718_2 WHERE location = "Hockenheimring"
Ken Wright of the National Party was from which province?
CREATE TABLE table_name_79 (province VARCHAR, party VARCHAR, name VARCHAR)
SELECT province FROM table_name_79 WHERE party = "national" AND name = "ken wright"
What seasons had a finale on May 25, 2004?
CREATE TABLE table_175980_2 (season VARCHAR, finale VARCHAR)
SELECT season FROM table_175980_2 WHERE finale = "May 25, 2004"
Which Home has a Tie no of 6?
CREATE TABLE table_name_26 (home_team VARCHAR, tie_no VARCHAR)
SELECT home_team FROM table_name_26 WHERE tie_no = "6"
When was the start of the construction of the unit that's been in commercial operation since 04.03.1987?
CREATE TABLE table_12983929_1 (construction_start VARCHAR, commercial_operation VARCHAR)
SELECT construction_start FROM table_12983929_1 WHERE commercial_operation = "04.03.1987"
What was the Open Cup results for the year 2003?
CREATE TABLE table_2402864_1 (open_cup VARCHAR, year VARCHAR)
SELECT open_cup FROM table_2402864_1 WHERE year = 2003
Where was Steve Stricker from?
CREATE TABLE table_name_10 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_10 WHERE player = "steve stricker"
Which station that sat 54m above seal level is now Closed?
CREATE TABLE table_name_15 (station VARCHAR, height_above_sea_level__m_ VARCHAR)
SELECT station FROM table_name_15 WHERE height_above_sea_level__m_ = "54m" AND "closed" = "closed"
Can you tell me the Score that has the December of 10?
CREATE TABLE table_name_55 (score VARCHAR, december VARCHAR)
SELECT score FROM table_name_55 WHERE december = 10
Who was the team when the category is field goal percentage?
CREATE TABLE table_28628309_6 (team VARCHAR, category VARCHAR)
SELECT team FROM table_28628309_6 WHERE category = "Field goal percentage"
What was 1961's qual?
CREATE TABLE table_name_98 (qual VARCHAR, year VARCHAR)
SELECT qual FROM table_name_98 WHERE year = "1961"
What is the total number of races in the 2006 season with 0 poles and more than 0 podiums?
CREATE TABLE table_name_54 (races VARCHAR, podiums VARCHAR, poles VARCHAR, season VARCHAR)
SELECT COUNT(races) FROM table_name_54 WHERE poles = 0 AND season = "2006" AND podiums > 0
How many years did the school have a mathetmatics score of 98.02?
CREATE TABLE table_2534578_1 (science VARCHAR, mathematics VARCHAR)
SELECT COUNT(science) FROM table_2534578_1 WHERE mathematics = "98.02"
Which Category has an Award of monte carlo tv festival awards, and a Year larger than 2010?
CREATE TABLE table_name_89 (category VARCHAR, award VARCHAR, year VARCHAR)
SELECT category FROM table_name_89 WHERE award = "monte carlo tv festival awards" AND year > 2010
What is the longest Time (seconds), when the Nation - athlete(s) is Sylke Otto - Germany?
CREATE TABLE table_name_99 (time__seconds_ INTEGER, nation___athlete_s_ VARCHAR)
SELECT MAX(time__seconds_) FROM table_name_99 WHERE nation___athlete_s_ = "sylke otto - germany"
What is the primary conference with a IHSAA Football Class of A, at South Decatur school?
CREATE TABLE table_name_56 (primary_conference VARCHAR, ihsaa_football_class VARCHAR, school VARCHAR)
SELECT primary_conference FROM table_name_56 WHERE ihsaa_football_class = "a" AND school = "south decatur"
What is the total number of Date, when Partner is "Carl-Uwe Steeb"?
CREATE TABLE table_name_67 (date VARCHAR, partner VARCHAR)
SELECT COUNT(date) FROM table_name_67 WHERE partner = "carl-uwe steeb"
What is the total of lane(s) for swimmers from Sweden with a 50m split of faster than 26.25?
CREATE TABLE table_name_24 (lane INTEGER, nationality VARCHAR, split__50m_ VARCHAR)
SELECT SUM(lane) FROM table_name_24 WHERE nationality = "sweden" AND split__50m_ < 26.25
Find the names of scientists who are not working on the project with the highest hours.
CREATE TABLE scientists (name VARCHAR, SSN VARCHAR); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR); CREATE TABLE projects (code VARCHAR, hours INTEGER); CREATE TABLE scientists (name VARCHAR, hours INTEGER); CREATE TABLE projects (name VARCHAR, hours INTEGER)
SELECT name FROM scientists EXCEPT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT MAX(hours) FROM projects)
Rank larger than 5, and a Rider of paul shoesmith belongs to what team?
CREATE TABLE table_name_53 (team VARCHAR, rank VARCHAR, rider VARCHAR)
SELECT team FROM table_name_53 WHERE rank > 5 AND rider = "paul shoesmith"
Show names of technicians and series of machines they are assigned to repair.
CREATE TABLE machine (Machine_series VARCHAR, machine_id VARCHAR); CREATE TABLE repair_assignment (machine_id VARCHAR, technician_ID VARCHAR); CREATE TABLE technician (Name VARCHAR, technician_ID VARCHAR)
SELECT T3.Name, T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID
What is the First elected that has a republican party and california 4?
CREATE TABLE table_name_4 (first_elected VARCHAR, party VARCHAR, district VARCHAR)
SELECT first_elected FROM table_name_4 WHERE party = "republican" AND district = "california 4"
What party did hilda solis represent?
CREATE TABLE table_1805191_6 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1805191_6 WHERE incumbent = "Hilda Solis"
In what place did Tom Lehman finish?
CREATE TABLE table_name_29 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_29 WHERE player = "tom lehman"
Which Score in the final has an Outcome of winner, and a Surface of hard (i)?
CREATE TABLE table_name_12 (score_in_the_final VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT score_in_the_final FROM table_name_12 WHERE outcome = "winner" AND surface = "hard (i)"
What Edition had a Result of 6-3, 6-0, 6-2?
CREATE TABLE table_name_45 (edition VARCHAR, result VARCHAR)
SELECT edition FROM table_name_45 WHERE result = "6-3, 6-0, 6-2"
What is the Name with Goals that are 135?
CREATE TABLE table_name_61 (name VARCHAR, goals VARCHAR)
SELECT name FROM table_name_61 WHERE goals = 135
What was the score of Ken Still (3) when he won first place?
CREATE TABLE table_name_14 (score VARCHAR, winner VARCHAR)
SELECT score FROM table_name_14 WHERE winner = "ken still (3)"
What was the score when the jazz played against toronto?
CREATE TABLE table_name_34 (score VARCHAR, team VARCHAR)
SELECT score FROM table_name_34 WHERE team = "toronto"
In what year was Lindenwood University founded?
CREATE TABLE table_10082596_1 (founded INTEGER, school VARCHAR)
SELECT MIN(founded) FROM table_10082596_1 WHERE school = "Lindenwood University"
What is 2012, when Tournament is "French Open"?
CREATE TABLE table_name_55 (tournament VARCHAR)
SELECT 2012 FROM table_name_55 WHERE tournament = "french open"
What's the 1st leg score when Team 1 was Gor Mahia?
CREATE TABLE table_name_1 (team_1 VARCHAR)
SELECT 1 AS st_leg FROM table_name_1 WHERE team_1 = "gor mahia"
What's the least amount of goals for a game that had a tied bigger than 15?
CREATE TABLE table_name_73 (goals_for INTEGER, tied INTEGER)
SELECT MIN(goals_for) FROM table_name_73 WHERE tied > 15
How many different results of the population count in 2001 are there for the census division whose population in 1996 is 880859?
CREATE TABLE table_2134521_1 (pop__2001_ VARCHAR, pop__1996_ VARCHAR)
SELECT COUNT(pop__2001_) FROM table_2134521_1 WHERE pop__1996_ = 880859
What amount of points where points were 389?
CREATE TABLE table_12807904_5 (points VARCHAR, points_against VARCHAR)
SELECT COUNT(points) FROM table_12807904_5 WHERE points_against = "389"
Who held the fastest lap in the race in texas and dario franchitti is the winning driver?
CREATE TABLE table_19850806_3 (fastest_lap VARCHAR, race VARCHAR, winning_driver VARCHAR)
SELECT fastest_lap FROM table_19850806_3 WHERE race = "Texas" AND winning_driver = "Dario Franchitti"
What is the result of the team with the 4-2 record?
CREATE TABLE table_name_67 (res VARCHAR, record VARCHAR)
SELECT res FROM table_name_67 WHERE record = "4-2"
How many weeks in total has bye as the date?
CREATE TABLE table_name_23 (week VARCHAR, date VARCHAR)
SELECT COUNT(week) FROM table_name_23 WHERE date = "bye"
What is the to par of Tiger Woods, where his score was less than 67, and he was in t1 place?
CREATE TABLE table_name_98 (to_par VARCHAR, player VARCHAR, score VARCHAR, place VARCHAR)
SELECT to_par FROM table_name_98 WHERE score < 67 AND place = "t1" AND player = "tiger woods"
What was the position of the Slavia team in 1998?
CREATE TABLE table_name_10 (position_in_1998 VARCHAR, team VARCHAR)
SELECT position_in_1998 FROM table_name_10 WHERE team = "slavia"
Which score has t3 as the place?
CREATE TABLE table_name_27 (score VARCHAR, place VARCHAR)
SELECT score FROM table_name_27 WHERE place = "t3"
What was the score for the home team when the away team was Sydney?
CREATE TABLE table_16388398_1 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_16388398_1 WHERE away_team = "Sydney"
What is Tries Against, when Points For is 98?
CREATE TABLE table_name_22 (tries_against VARCHAR, points_for VARCHAR)
SELECT tries_against FROM table_name_22 WHERE points_for = "98"
who won mixed doubles when wang yihan won womens singles
CREATE TABLE table_20361783_1 (mixed_doubles VARCHAR, womens_singles VARCHAR)
SELECT mixed_doubles FROM table_20361783_1 WHERE womens_singles = "Wang Yihan"
How many u.s. viewers (million) have 6 as the #?
CREATE TABLE table_2866456_1 (us_viewers__million_ VARCHAR, _number VARCHAR)
SELECT us_viewers__million_ FROM table_2866456_1 WHERE _number = 6
What is the name of the tournament with 11 or more events a top-5 of 0 and a top-25 of 2?
CREATE TABLE table_name_58 (tournament VARCHAR, top_25 VARCHAR, events VARCHAR, top_5 VARCHAR)
SELECT tournament FROM table_name_58 WHERE events > 11 AND top_5 = 0 AND top_25 = 2
What is the total number of losses where the byes were greater than 0?
CREATE TABLE table_name_36 (losses VARCHAR, byes INTEGER)
SELECT COUNT(losses) FROM table_name_36 WHERE byes > 0