question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What's the total that the position is less than 1?
CREATE TABLE table_name_31 (total INTEGER, position INTEGER)
SELECT MIN(total) FROM table_name_31 WHERE position < 1
How many loses does the team have that conceded 25 and won more than 6 games?
CREATE TABLE table_name_6 (losses INTEGER, conceded VARCHAR, wins VARCHAR)
SELECT SUM(losses) FROM table_name_6 WHERE conceded = 25 AND wins > 6
What years for the rockets did the player ford, phil phil ford play?
CREATE TABLE table_11734041_6 (years_for_rockets VARCHAR, player VARCHAR)
SELECT years_for_rockets FROM table_11734041_6 WHERE player = "Ford, Phil Phil Ford"
What are the titles for episodes prior to episode 4?
CREATE TABLE table_name_23 (title VARCHAR, no_in_series INTEGER)
SELECT title FROM table_name_23 WHERE no_in_series < 4
What was the average finish when the average start was 18.4?
CREATE TABLE table_1507423_4 (avg_finish VARCHAR, avg_start VARCHAR)
SELECT avg_finish FROM table_1507423_4 WHERE avg_start = "18.4"
Who was the opponent on 11 August 1991 when the H/A was H?
CREATE TABLE table_name_96 (opponents VARCHAR, h___a VARCHAR, date VARCHAR)
SELECT opponents FROM table_name_96 WHERE h___a = "h" AND date = "11 august 1991"
Which game site has a Week bigger than 13, and a Result of l 20–0?
CREATE TABLE table_name_76 (game_site VARCHAR, week VARCHAR, result VARCHAR)
SELECT game_site FROM table_name_76 WHERE week > 13 AND result = "l 20–0"
Who's average is 24.8?
CREATE TABLE table_16912000_13 (player VARCHAR, kr_avg VARCHAR)
SELECT player FROM table_16912000_13 WHERE kr_avg = "24.8"
How many yards have a Player of james macpherson, and a Long smaller than 1?
CREATE TABLE table_name_6 (yards VARCHAR, player VARCHAR, long VARCHAR)
SELECT COUNT(yards) FROM table_name_6 WHERE player = "james macpherson" AND long < 1
What is Venezuela's total rank?
CREATE TABLE table_150343_3 (total VARCHAR, country_territory VARCHAR)
SELECT total FROM table_150343_3 WHERE country_territory = "Venezuela"
Where did Maya Moore attend school?
CREATE TABLE table_name_6 (school VARCHAR, player VARCHAR)
SELECT school FROM table_name_6 WHERE player = "maya moore"
What is the smallest Earnings that has a Money list rank of 6 and Starts smaller than 22?
CREATE TABLE table_name_93 (earnings__ INTEGER, money_list_rank VARCHAR, starts VARCHAR)
SELECT MIN(earnings__) AS $_ FROM table_name_93 WHERE money_list_rank = "6" AND starts < 22
What is the sum of the ranks with a total of 1 and silver less than 0.
CREATE TABLE table_name_83 (rank INTEGER, total VARCHAR, silver VARCHAR)
SELECT SUM(rank) FROM table_name_83 WHERE total = 1 AND silver < 0
What was the state with the total electricity generated is 38380 gw-h?
CREATE TABLE table_25244412_2 (state VARCHAR, total_electricity__gw·h_ VARCHAR)
SELECT state FROM table_25244412_2 WHERE total_electricity__gw·h_ = 38380
Which Sydney has Auckland cancelled and Perth yes?
CREATE TABLE table_name_73 (sydney VARCHAR, auckland VARCHAR, perth VARCHAR)
SELECT sydney FROM table_name_73 WHERE auckland = "cancelled" AND perth = "yes"
What date were the high rebounds Evans (14)?
CREATE TABLE table_name_74 (date VARCHAR, high_rebounds VARCHAR)
SELECT date FROM table_name_74 WHERE high_rebounds = "evans (14)"
What type of paper is the 1 cent denominations made on?
CREATE TABLE table_name_3 (paper_type VARCHAR, denomination VARCHAR)
SELECT paper_type FROM table_name_3 WHERE denomination = "1 cent"
Which Date has Notes of notes?
CREATE TABLE table_name_21 (date VARCHAR)
SELECT date FROM table_name_21 WHERE "notes" = "notes"
What is Player, when Total is 292?
CREATE TABLE table_name_36 (player VARCHAR, total VARCHAR)
SELECT player FROM table_name_36 WHERE total = 292
Name the solo when name is briggs, diyral
CREATE TABLE table_15128839_22 (solo VARCHAR, name VARCHAR)
SELECT solo FROM table_15128839_22 WHERE name = "Briggs, Diyral"
Which driver won the iv j.c.c. jersey road race?
CREATE TABLE table_name_9 (winning_driver VARCHAR, race_name VARCHAR)
SELECT winning_driver FROM table_name_9 WHERE race_name = "iv j.c.c. jersey road race"
What locations are considered centre?
CREATE TABLE table_26387382_1 (power__mw·hr_yr_ VARCHAR, location__county_ VARCHAR)
SELECT power__mw·hr_yr_ FROM table_26387382_1 WHERE location__county_ = "Centre"
What is the average longitude for the water area of 0.093 and has a GEO ID tag larger than 3808174460?
CREATE TABLE table_name_46 (longitude INTEGER, water__sqmi_ VARCHAR, geo_id VARCHAR)
SELECT AVG(longitude) FROM table_name_46 WHERE water__sqmi_ = 0.093 AND geo_id > 3808174460
What is the largest number of silver that had 0 bronzes and total less than 1?
CREATE TABLE table_name_67 (silver INTEGER, bronze VARCHAR, total VARCHAR)
SELECT MAX(silver) FROM table_name_67 WHERE bronze = 0 AND total < 1
What is the most popular payment method?
CREATE TABLE Payments (Payment_Method_Code VARCHAR)
SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY COUNT(*) DESC LIMIT 1
What is the engine code for the model xdrive35i?
CREATE TABLE table_name_9 (engine_code VARCHAR, model VARCHAR)
SELECT engine_code FROM table_name_9 WHERE model = "xdrive35i"
What is every value for Polish when Balarusian is ноч?
CREATE TABLE table_25008327_8 (polish VARCHAR, belarusian VARCHAR)
SELECT polish FROM table_25008327_8 WHERE belarusian = "ноч"
If Tuesday 1 June is 20' 59.60 107.834mph, what is the rank maximum?
CREATE TABLE table_25220821_3 (rank INTEGER, tues_1_june VARCHAR)
SELECT MAX(rank) FROM table_25220821_3 WHERE tues_1_june = "20' 59.60 107.834mph"
What was the home team score when Brisbane lions was the home team?
CREATE TABLE table_16388398_1 (home_team VARCHAR)
SELECT home_team AS score FROM table_16388398_1 WHERE home_team = "Brisbane Lions"
What is the To par of Player Andy North with a Total larger than 153?
CREATE TABLE table_name_91 (to_par VARCHAR, player VARCHAR, total VARCHAR)
SELECT COUNT(to_par) FROM table_name_91 WHERE player = "andy north" AND total > 153
What is the lowest rank of the athlete with a taijiquan greater than 9.42 and a 19.02 total?
CREATE TABLE table_name_89 (rank INTEGER, taijiquan VARCHAR, total VARCHAR)
SELECT MIN(rank) FROM table_name_89 WHERE taijiquan > 9.42 AND total = 19.02
Who was the parter against Marin čilić lovro Zovko?
CREATE TABLE table_name_41 (partnering VARCHAR, opponents VARCHAR)
SELECT partnering FROM table_name_41 WHERE opponents = "marin čilić lovro zovko"
What is the status of the building with less than 18 floors and later than 2013?
CREATE TABLE table_name_18 (status VARCHAR, floors VARCHAR, year VARCHAR)
SELECT status FROM table_name_18 WHERE floors < 18 AND year > 2013
What is the minimum hydroelectricity with a less than 116.4 total, and a greater than 18.637 solar?
CREATE TABLE table_name_51 (hydroelectricity INTEGER, total VARCHAR, solar VARCHAR)
SELECT MIN(hydroelectricity) FROM table_name_51 WHERE total < 116.4 AND solar > 18.637
What is the 1st leg of the UEFA Champions League Compeition in the Skonto Riga Club?
CREATE TABLE table_name_52 (competition VARCHAR, club VARCHAR)
SELECT 1 AS st_leg FROM table_name_52 WHERE competition = "uefa champions league" AND club = "skonto riga"
On which date did the tournament final with the clay surface take place?
CREATE TABLE table_name_94 (date VARCHAR, surface VARCHAR)
SELECT date FROM table_name_94 WHERE surface = "clay"
what is the location when the event is k-1 world grand prix 2004 in saitama?
CREATE TABLE table_name_19 (location VARCHAR, event VARCHAR)
SELECT location FROM table_name_19 WHERE event = "k-1 world grand prix 2004 in saitama"
What is the average wins of a team with more than 0 ples and less than 3 podiums?
CREATE TABLE table_name_12 (wins INTEGER, poles VARCHAR, podiums VARCHAR)
SELECT AVG(wins) FROM table_name_12 WHERE poles > 0 AND podiums < 3
Which Name has a Reserved for of none, and a Constituency number of 7?
CREATE TABLE table_name_96 (name VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
SELECT name FROM table_name_96 WHERE reserved_for___sc___st__none_ = "none" AND constituency_number = "7"
who is the manager when the year is before 1994 and finish is 5th?
CREATE TABLE table_name_6 (manager VARCHAR, year VARCHAR, finish VARCHAR)
SELECT manager FROM table_name_6 WHERE year < 1994 AND finish = "5th"
What match points have 755 as the points against?
CREATE TABLE table_name_8 (match_points VARCHAR, points_against VARCHAR)
SELECT match_points FROM table_name_8 WHERE points_against = "755"
What is the name of the patient who made the most recent appointment?
CREATE TABLE patient (name VARCHAR, ssn VARCHAR); CREATE TABLE appointment (patient VARCHAR, start VARCHAR)
SELECT T1.name FROM patient AS T1 JOIN appointment AS T2 ON T1.ssn = T2.patient ORDER BY T2.start DESC LIMIT 1
What average year has international meeting & national championships as the tournament?
CREATE TABLE table_name_64 (year INTEGER, tournament VARCHAR)
SELECT AVG(year) FROM table_name_64 WHERE tournament = "international meeting & national championships"
Which Altitude (mslm) has a Density (inhabitants/km 2) smaller than 1233, and a Rank of 9th?
CREATE TABLE table_name_85 (altitude__mslm_ INTEGER, density__inhabitants_km_2__ VARCHAR, rank VARCHAR)
SELECT SUM(altitude__mslm_) FROM table_name_85 WHERE density__inhabitants_km_2__ < 1233 AND rank = "9th"
What was the highest number of lose for a player named Santos with more than 45 points?
CREATE TABLE table_name_88 (lose INTEGER, name VARCHAR, point VARCHAR)
SELECT MAX(lose) FROM table_name_88 WHERE name = "santos" AND point > 45
Name the number for margin of victory being 3 strokes
CREATE TABLE table_21469545_2 (no VARCHAR, margin_of_victory VARCHAR)
SELECT COUNT(no) FROM table_21469545_2 WHERE margin_of_victory = "3 strokes"
What was the role when the original broadway was Adam Riegler?
CREATE TABLE table_name_8 (role VARCHAR, original_broadway_cast VARCHAR)
SELECT role FROM table_name_8 WHERE original_broadway_cast = "adam riegler"
Name the frequence MHz for ERP W of 55
CREATE TABLE table_name_80 (frequency_mhz VARCHAR, erp_w VARCHAR)
SELECT frequency_mhz FROM table_name_80 WHERE erp_w = 55
What is the height of the player from club vk primorac kotor who plays gk?
CREATE TABLE table_name_96 (height VARCHAR, pos VARCHAR, club VARCHAR)
SELECT height FROM table_name_96 WHERE pos = "gk" AND club = "vk primorac kotor"
what is the space where the next winner is skee riegel
CREATE TABLE table_262383_1 (margin VARCHAR, runner_s__up VARCHAR)
SELECT margin FROM table_262383_1 WHERE runner_s__up = "Skee Riegel"
What stadium has kutina as the city?
CREATE TABLE table_name_13 (stadium VARCHAR, city VARCHAR)
SELECT stadium FROM table_name_13 WHERE city = "kutina"
Which Neon has a Argon of −189.6?
CREATE TABLE table_name_95 (neon VARCHAR, argon VARCHAR)
SELECT neon FROM table_name_95 WHERE argon = "−189.6"
How many points did the opposing team score on Dec. 19, 1982?
CREATE TABLE table_18847456_2 (opponents INTEGER, date VARCHAR)
SELECT MAX(opponents) FROM table_18847456_2 WHERE date = "Dec. 19"
Find the organisation ids and details of the organisations which are involved in
CREATE TABLE Grants (organisation_id VARCHAR, grant_amount INTEGER); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_details VARCHAR)
SELECT T2.organisation_id, T2.organisation_details FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY T2.organisation_id HAVING SUM(T1.grant_amount) > 6000
what had a score like roberto devicenzo
CREATE TABLE table_name_97 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_97 WHERE player = "roberto devicenzo"
Find the total hours of all projects.
CREATE TABLE projects (hours INTEGER)
SELECT SUM(hours) FROM projects
If the episode was number 234, what was it's timeslot?
CREATE TABLE table_2639433_4 (timeslot VARCHAR, episodes VARCHAR)
SELECT timeslot FROM table_2639433_4 WHERE episodes = 234
What is the rank for a strike rate of 91.67?
CREATE TABLE table_21100348_11 (rank INTEGER, strike_rate VARCHAR)
SELECT MAX(rank) FROM table_21100348_11 WHERE strike_rate = "91.67"
What is the position of digital channel 5 44 (+1)?
CREATE TABLE table_182410_10 (position VARCHAR, digital_terrestrial_channel VARCHAR)
SELECT position FROM table_182410_10 WHERE digital_terrestrial_channel = "5 44 (+1)"
What is the lowest bronze medal count for Italy with fewer than 6 gold medals and greater than 10 total medals?
CREATE TABLE table_name_14 (bronze INTEGER, total VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT MIN(bronze) FROM table_name_14 WHERE gold < 6 AND nation = "italy" AND total > 10
What Elector has the Title of Titulus S. Cecilia?
CREATE TABLE table_name_13 (elector VARCHAR, title VARCHAR)
SELECT elector FROM table_name_13 WHERE title = "titulus s. cecilia"
List the name of the shop with the latest open year.
CREATE TABLE shop (Shop_Name VARCHAR, Open_Year VARCHAR)
SELECT Shop_Name FROM shop ORDER BY Open_Year DESC LIMIT 1
What is the season number of the episode seen by 10.11 million people in the US?
CREATE TABLE table_19995378_1 (no_in_season VARCHAR, us_viewers__millions_ VARCHAR)
SELECT no_in_season FROM table_19995378_1 WHERE us_viewers__millions_ = "10.11"
What episode had 6.71 viewers?
CREATE TABLE table_name_97 (episode VARCHAR, viewers VARCHAR)
SELECT episode FROM table_name_97 WHERE viewers = 6.71
What is the neck measurement of the gun with a shoulder measurement of 10.688 (.420)?
CREATE TABLE table_name_16 (neck VARCHAR, shoulder VARCHAR)
SELECT neck FROM table_name_16 WHERE shoulder = "10.688 (.420)"
Name the Surface that of Tournament of valencia , spain?
CREATE TABLE table_name_92 (surface VARCHAR, tournament VARCHAR)
SELECT surface FROM table_name_92 WHERE tournament = "valencia , spain"
Which Club has a League Cup goals of 0, and a League goals of 11, and a Scorer of joe laidlaw?
CREATE TABLE table_name_74 (club VARCHAR, scorer VARCHAR, league_cup_goals VARCHAR, league_goals VARCHAR)
SELECT club FROM table_name_74 WHERE league_cup_goals = 0 AND league_goals = "11" AND scorer = "joe laidlaw"
What are the duration of the longest and shortest pop tracks in milliseconds?
CREATE TABLE TRACK (GenreId VARCHAR); CREATE TABLE GENRE (GenreId VARCHAR, Name VARCHAR)
SELECT MAX(Milliseconds), MIN(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Pop"
What Site had an Attendance of 45,000?
CREATE TABLE table_name_20 (site VARCHAR, attendance VARCHAR)
SELECT site FROM table_name_20 WHERE attendance = "45,000"
what is redskins (score) against tennessee titans 27
CREATE TABLE table_20074209_1 (redskins__score_ VARCHAR, opponent__score_ VARCHAR)
SELECT redskins__score_ FROM table_20074209_1 WHERE opponent__score_ = "Tennessee Titans 27"
What is Date, when Comment is Tailcone On, Lakebed Landing, and when Duration is 5min 34 s?
CREATE TABLE table_name_52 (date VARCHAR, comment VARCHAR, duration VARCHAR)
SELECT date FROM table_name_52 WHERE comment = "tailcone on, lakebed landing" AND duration = "5min 34 s"
What is the record listed when the high assists is earl watson (6)?
CREATE TABLE table_28768469_7 (record VARCHAR, high_assists VARCHAR)
SELECT record FROM table_28768469_7 WHERE high_assists = "Earl Watson (6)"
What is the Away with a Score that is 46-82?
CREATE TABLE table_name_70 (away VARCHAR, score VARCHAR)
SELECT away FROM table_name_70 WHERE score = "46-82"
Which winner has a Challenge Loser of alexcy?
CREATE TABLE table_name_44 (challenge_winner VARCHAR, challenge_loser VARCHAR)
SELECT challenge_winner FROM table_name_44 WHERE challenge_loser = "alexcy"
What is the highest year that has no more than 0 points?
CREATE TABLE table_name_85 (year INTEGER, points INTEGER)
SELECT MAX(year) FROM table_name_85 WHERE points < 0
What is the average lap time for retired time of +23.707 and a Grid greater than 21?
CREATE TABLE table_name_23 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT AVG(laps) FROM table_name_23 WHERE time_retired = "+23.707" AND grid > 21
what are all the positions of players who's hometown is concord, california
CREATE TABLE table_11677691_12 (position VARCHAR, hometown VARCHAR)
SELECT position FROM table_11677691_12 WHERE hometown = "Concord, California"
Who was the dirctor for season 13?
CREATE TABLE table_11715748_2 (director_s_ VARCHAR, season__number VARCHAR)
SELECT director_s_ FROM table_11715748_2 WHERE season__number = 13
what's the founder where moderate is ether
CREATE TABLE table_11256021_1 (founder VARCHAR, moderate VARCHAR)
SELECT founder FROM table_11256021_1 WHERE moderate = "ether"
What is the 3 June time for the rider with 2 June time of 17' 45.11 127.525mph?
CREATE TABLE table_25220821_4 (thurs_3_june VARCHAR, wed_2_june VARCHAR)
SELECT thurs_3_june FROM table_25220821_4 WHERE wed_2_june = "17' 45.11 127.525mph"
What is the position Bill Campbell played before round 6?
CREATE TABLE table_name_22 (position VARCHAR, round VARCHAR, player VARCHAR)
SELECT position FROM table_name_22 WHERE round < 6 AND player = "bill campbell"
When was the person(s) who were canonised before 1988 beatified?
CREATE TABLE table_name_17 (beatified VARCHAR, canonised INTEGER)
SELECT beatified FROM table_name_17 WHERE canonised < 1988
what is the number of the chosen club where the hc dukla trenčín (slovakia) is from
CREATE TABLE table_2840500_3 (pick VARCHAR, college_junior_club_team VARCHAR)
SELECT COUNT(pick) FROM table_2840500_3 WHERE college_junior_club_team = "HC Dukla Trenčín (Slovakia)"
What was Carlton's score when they were the away team?
CREATE TABLE table_name_86 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_86 WHERE away_team = "carlton"
What car does Scott Deware own that has rounds under 12?
CREATE TABLE table_name_24 (car_s_ VARCHAR, rounds VARCHAR, owner_s_ VARCHAR)
SELECT car_s_ FROM table_name_24 WHERE rounds < 12 AND owner_s_ = "scott deware"
What 2006 has 1r as the 2007?
CREATE TABLE table_name_74 (Id VARCHAR)
SELECT 2006 FROM table_name_74 WHERE 2007 = "1r"
Jeff Staples player for which College, Junior or Club league?
CREATE TABLE table_name_28 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_28 WHERE player = "jeff staples"
What is the Parts-per example of 2×10 −6?
CREATE TABLE table_name_75 (parts_per_example VARCHAR, value_of_quantity VARCHAR)
SELECT parts_per_example FROM table_name_75 WHERE value_of_quantity = "2×10 −6"
When peter kox roman rusinov is the gt1 of the winning team how many lmp1 winning teams are there?
CREATE TABLE table_19722436_2 (lmp1_winning_team VARCHAR, gt1_winning_team VARCHAR)
SELECT COUNT(lmp1_winning_team) FROM table_19722436_2 WHERE gt1_winning_team = "Peter Kox Roman Rusinov"
What is the lowest Attendance when Middlesbrough played at Venue A?
CREATE TABLE table_name_34 (attendance INTEGER, opponent VARCHAR, venue VARCHAR)
SELECT MIN(attendance) FROM table_name_34 WHERE opponent = "middlesbrough" AND venue = "a"
What was the score of the game on October 20 with a decision of Lundqvist?
CREATE TABLE table_name_42 (score VARCHAR, decision VARCHAR, october VARCHAR)
SELECT score FROM table_name_42 WHERE decision = "lundqvist" AND october = "20"
What are the notes for the shirt that says 名品+1 in the kit supplied by Rapido?
CREATE TABLE table_name_85 (notes VARCHAR, kit_supplier VARCHAR, shirt_printing VARCHAR)
SELECT notes FROM table_name_85 WHERE kit_supplier = "rapido" AND shirt_printing = "名品+1"
Which first round has a first team of angers sco (d1)?
CREATE TABLE table_name_90 (team_1 VARCHAR)
SELECT 1 AS st_round FROM table_name_90 WHERE team_1 = "angers sco (d1)"
Name the attendance with angels opponent for july 9
CREATE TABLE table_name_32 (attendance VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_32 WHERE opponent = "angels" AND date = "july 9"
WHAT IS THE RANK WITH A GROSS OF $96,773,200?
CREATE TABLE table_name_59 (rank VARCHAR, gross VARCHAR)
SELECT COUNT(rank) FROM table_name_59 WHERE gross = "$96,773,200"
What event took place in Erfurt, Germany?
CREATE TABLE table_name_56 (event VARCHAR, venue VARCHAR)
SELECT event FROM table_name_56 WHERE venue = "erfurt, germany"
What is the control type which was founded in 1991?
CREATE TABLE table_2076608_3 (control VARCHAR, founded VARCHAR)
SELECT control FROM table_2076608_3 WHERE founded = "1991"
Who was the tradition when Roberto Devicenzo won the U.S. Senior Open and the Senior British Open was founded in 1987?
CREATE TABLE table_name_83 (the_tradition VARCHAR, senior_british_open VARCHAR, us_senior_open VARCHAR)
SELECT the_tradition FROM table_name_83 WHERE senior_british_open = "founded in 1987" AND us_senior_open = "roberto devicenzo"
What candidates ran in the election when the incumbent was william j. driver?
CREATE TABLE table_1342292_4 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1342292_4 WHERE incumbent = "William J. Driver"
Name the most share for anhui satellite tv
CREATE TABLE table_name_42 (share___percentage_ INTEGER, channel VARCHAR)
SELECT MAX(share___percentage_) FROM table_name_42 WHERE channel = "anhui satellite tv"