answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT MIN(year) FROM table_name_67 WHERE final_position___tour > 72 AND final_position___vuelta < 77 AND final_position___giro < 57 AND rider = "valdimir poelnikov"
CREATE TABLE table_name_67 (year INTEGER, rider VARCHAR, final_position___giro VARCHAR, final_position___tour VARCHAR, final_position___vuelta VARCHAR)
What is the earliest year of Valdimir Poelnikov, who has a final position-tour bigger than 72, a final position-vuelta less than 77, and a final position-giro less than 57?
SELECT COUNT(final_position___tour) FROM table_name_95 WHERE final_position___giro > 20 AND rider = "mariano piccoli" AND year < 1999
CREATE TABLE table_name_95 (final_position___tour VARCHAR, year VARCHAR, final_position___giro VARCHAR, rider VARCHAR)
What is the number of final position-tours Mariano Piccoli, who has more than 20 final position-giros, before 1999 has?
SELECT SUM(year) FROM table_name_29 WHERE final_position___tour = 88 AND final_position___giro < 11
CREATE TABLE table_name_29 (year INTEGER, final_position___tour VARCHAR, final_position___giro VARCHAR)
What year was the rider with a final position-tour of 88 and less than 11 final position-giros?
SELECT loss FROM table_name_67 WHERE date = "april 26"
CREATE TABLE table_name_67 (loss VARCHAR, date VARCHAR)
How much did they lose by on April 26?
SELECT MAX(attendance) FROM table_name_99 WHERE opponent = "indians" AND record = "13-4"
CREATE TABLE table_name_99 (attendance INTEGER, opponent VARCHAR, record VARCHAR)
What was the highest attendance when the opponent was the Indians and the record was 13-4?
SELECT date FROM table_name_75 WHERE record = "15-4"
CREATE TABLE table_name_75 (date VARCHAR, record VARCHAR)
What day did the record reach 15-4?
SELECT SUM(ranking) FROM table_name_2 WHERE nationality = "england" AND goals > 53
CREATE TABLE table_name_2 (ranking INTEGER, nationality VARCHAR, goals VARCHAR)
What is the number of ranking when the nationalits is England with more than 53 goals?
SELECT MIN(ranking) FROM table_name_67 WHERE name = "paul mctiernan"
CREATE TABLE table_name_67 (ranking INTEGER, name VARCHAR)
What is the lowest ranking for Paul Mctiernan?
SELECT years FROM table_name_38 WHERE ranking < 8 AND goals < 66 AND name = "paul mcgee"
CREATE TABLE table_name_38 (years VARCHAR, name VARCHAR, ranking VARCHAR, goals VARCHAR)
What are the years when the ranking is less than 8 with less than 66 goals and name is Paul McGee?
SELECT entrant FROM table_name_59 WHERE year > 1999
CREATE TABLE table_name_59 (entrant VARCHAR, year INTEGER)
Which entrant has a year after 1999?
SELECT COUNT(place) FROM table_name_40 WHERE round_1 = "beat lee janzen 3&2" AND year < 1998
CREATE TABLE table_name_40 (place VARCHAR, round_1 VARCHAR, year VARCHAR)
Round 1 of beat lee janzen 3&2, and a Year smaller than 1998 has what total number of place?
SELECT MAX(money__) AS $_ FROM table_name_33 WHERE round_1 = "71"
CREATE TABLE table_name_33 (money__ INTEGER, round_1 VARCHAR)
Round 1 of 71 has how many highest money?
SELECT SUM(year) FROM table_name_19 WHERE round_1 = "66" AND money__$_ > 400 OFFSET 000
CREATE TABLE table_name_19 (year INTEGER, round_1 VARCHAR, money__$_ VARCHAR)
Round 1 of 66, and a Money ($) larger than 400,000 has what sum of year?
SELECT MAX(year) FROM table_name_72 WHERE round_1 = "70" AND money__$_ > 500 OFFSET 000
CREATE TABLE table_name_72 (year INTEGER, round_1 VARCHAR, money__$_ VARCHAR)
Round 1 of 70, and a Money ($) larger than 500,000 has the highest year?
SELECT MAX(debut_in_europe) FROM table_name_57 WHERE player = "henrik larsson" AND games < 108
CREATE TABLE table_name_57 (debut_in_europe INTEGER, player VARCHAR, games VARCHAR)
When was the latest debut in Europe for Henrik Larsson, with less than 108 games?
SELECT MIN(goals) FROM table_name_53 WHERE debut_in_europe < 1961
CREATE TABLE table_name_53 (goals INTEGER, debut_in_europe INTEGER)
What were the lowest goals with a debut before 1961 in Europe?
SELECT AVG(goals) FROM table_name_17 WHERE player = "thierry henry" AND rank > 7
CREATE TABLE table_name_17 (goals INTEGER, player VARCHAR, rank VARCHAR)
What was Thierry Henry's average goal when his rank was higher than 7?
SELECT surface FROM table_name_58 WHERE date = "february 25, 1996"
CREATE TABLE table_name_58 (surface VARCHAR, date VARCHAR)
Name the surface for february 25, 1996
SELECT tournament FROM table_name_90 WHERE date = "may 18, 1997"
CREATE TABLE table_name_90 (tournament VARCHAR, date VARCHAR)
Name the tournament for may 18, 1997
SELECT partner FROM table_name_8 WHERE date = "may 2, 1993"
CREATE TABLE table_name_8 (partner VARCHAR, date VARCHAR)
Name the partner for may 2, 1993
SELECT opponents FROM table_name_80 WHERE date = "may 18, 1997"
CREATE TABLE table_name_80 (opponents VARCHAR, date VARCHAR)
Name the opponents for may 18, 1997
SELECT MIN(erp_w) FROM table_name_21 WHERE call_sign = "wpib"
CREATE TABLE table_name_21 (erp_w INTEGER, call_sign VARCHAR)
When the call sign is wpib, what is lowest ERP W?
SELECT class FROM table_name_44 WHERE call_sign = "wokg"
CREATE TABLE table_name_44 (class VARCHAR, call_sign VARCHAR)
Which class's call sign is wokg?
SELECT class FROM table_name_79 WHERE frequency_mhz = 89.3
CREATE TABLE table_name_79 (class VARCHAR, frequency_mhz VARCHAR)
The frequency 89.3 belongs to what class?
SELECT SUM(high_estimate) FROM table_name_51 WHERE type = "mass suicide" AND location = "france" AND low_estimate > 16
CREATE TABLE table_name_51 (high_estimate INTEGER, low_estimate VARCHAR, type VARCHAR, location VARCHAR)
With a type of mass suicide located in France and a low estimate greater than 16, the sum of the high estimate numbers listed is what number?
SELECT SUM(low_estimate) FROM table_name_66 WHERE date = "1978"
CREATE TABLE table_name_66 (low_estimate INTEGER, date VARCHAR)
What is the sum of low estimate(s) that is listed for the date of 1978?
SELECT MAX(total_finals) FROM table_name_56 WHERE runners_up > 2 AND winners < 1
CREATE TABLE table_name_56 (total_finals INTEGER, runners_up VARCHAR, winners VARCHAR)
What is the highest total number of finals a club with more than 2 runners-up and fewer than 1 winner went to?
SELECT COUNT(receptions) FROM table_name_6 WHERE receiving_yards < 161 AND rushing_tds < 14
CREATE TABLE table_name_6 (receptions VARCHAR, receiving_yards VARCHAR, rushing_tds VARCHAR)
How many receptions were smaller than 161 receiving yards but also had less than 14 rushing TDs?
SELECT MAX(rushing_yards) FROM table_name_16 WHERE rushes = 283 AND rushing_tds < 10
CREATE TABLE table_name_16 (rushing_yards INTEGER, rushes VARCHAR, rushing_tds VARCHAR)
What was the greatest number of rushing yards for a runner who had 283 rushes and less than 10 rushing TDs?
SELECT agg FROM table_name_38 WHERE team_1 = "vsadc"
CREATE TABLE table_name_38 (agg VARCHAR, team_1 VARCHAR)
What was the Agg., when Team 1 was VSADC?
SELECT MAX(goals_for) FROM table_name_15 WHERE points = "47+9" AND played < 38
CREATE TABLE table_name_15 (goals_for INTEGER, points VARCHAR, played VARCHAR)
How many goals were scored by the team that played less than 38 games, and had points of 47+9?
SELECT AVG(wins) FROM table_name_15 WHERE draws > 13 AND goal_difference = -14 AND losses < 14
CREATE TABLE table_name_15 (wins INTEGER, losses VARCHAR, draws VARCHAR, goal_difference VARCHAR)
What is the average wins of the team with more than 13 draws, a goal difference of -14, and losses less than 14?
SELECT points FROM table_name_39 WHERE goal_difference < 38 AND wins = 12 AND club = "real oviedo"
CREATE TABLE table_name_39 (points VARCHAR, club VARCHAR, goal_difference VARCHAR, wins VARCHAR)
In the club of Real Oviedo, what were the points of the competitor with a goal difference less than 38, and 12 wins?
SELECT record FROM table_name_26 WHERE date = "february 25"
CREATE TABLE table_name_26 (record VARCHAR, date VARCHAR)
Name the record for february 25
SELECT nationality FROM table_name_63 WHERE appearances = 116
CREATE TABLE table_name_63 (nationality VARCHAR, appearances VARCHAR)
What nationality has 116 appearances?
SELECT captaincy FROM table_name_89 WHERE appearances < 212 AND goals = 12 AND position_[a_] = "defender"
CREATE TABLE table_name_89 (captaincy VARCHAR, appearances VARCHAR, goals VARCHAR, position_ VARCHAR, a_ VARCHAR)
What is the captaincy for Defender that has less than 212 appearances and 12 goals?
SELECT AVG(game) FROM table_name_25 WHERE attendance > 55 OFFSET 189
CREATE TABLE table_name_25 (game INTEGER, attendance INTEGER)
Attendance larger than 55,189 is which average game?
SELECT score FROM table_name_15 WHERE game > 4 AND time = "2:26"
CREATE TABLE table_name_15 (score VARCHAR, game VARCHAR, time VARCHAR)
Game larger than 4, and a Time of 2:26 resulted in what score?
SELECT record FROM table_name_19 WHERE round = 2 AND event = "dream 9"
CREATE TABLE table_name_19 (record VARCHAR, round VARCHAR, event VARCHAR)
What record does the event of dream 9 with a round of 2 hold?
SELECT time FROM table_name_68 WHERE opponent = "fredson paixão"
CREATE TABLE table_name_68 (time VARCHAR, opponent VARCHAR)
What time was Opponent Fredson Paixão beaten in?
SELECT leagues_entering_at_this_round FROM table_name_39 WHERE clubs_remaining = 24
CREATE TABLE table_name_39 (leagues_entering_at_this_round VARCHAR, clubs_remaining VARCHAR)
What league is entering this round with 24 clubs remaining?
SELECT new_entries_this_round FROM table_name_71 WHERE phase = "second phase" AND winners_from_previous_round = "4"
CREATE TABLE table_name_71 (new_entries_this_round VARCHAR, phase VARCHAR, winners_from_previous_round VARCHAR)
How many new entries are there for a second phase that has 4 winners from previous rounds?
SELECT MAX(laps) FROM table_name_42 WHERE start = "21"
CREATE TABLE table_name_42 (laps INTEGER, start VARCHAR)
What is the highest number of laps with a 21 start?
SELECT qual FROM table_name_5 WHERE rank = "20"
CREATE TABLE table_name_5 (qual VARCHAR, rank VARCHAR)
What is the qual for rank 20?
SELECT AVG(laps) FROM table_name_15 WHERE year = "1949"
CREATE TABLE table_name_15 (laps INTEGER, year VARCHAR)
What is the average number of laps in 1949?
SELECT COUNT(laps) FROM table_name_29 WHERE qual = "128.260"
CREATE TABLE table_name_29 (laps VARCHAR, qual VARCHAR)
What is the total number of laps with a 128.260 qual?
SELECT start FROM table_name_36 WHERE laps < 200 AND rank = "11"
CREATE TABLE table_name_36 (start VARCHAR, laps VARCHAR, rank VARCHAR)
What is the start number for a rank 11 race with less than 200 laps?
SELECT state_s__on_the_ballot FROM table_name_98 WHERE candidate = "jack herer"
CREATE TABLE table_name_98 (state_s__on_the_ballot VARCHAR, candidate VARCHAR)
Name the staes on the ballot for jack herer
SELECT loss FROM table_name_87 WHERE record = "45-59"
CREATE TABLE table_name_87 (loss VARCHAR, record VARCHAR)
Name the loss with record of 45-59
SELECT loss FROM table_name_48 WHERE record = "38-53"
CREATE TABLE table_name_48 (loss VARCHAR, record VARCHAR)
Name the loss with record of 38-53
SELECT score FROM table_name_30 WHERE record = "33-47"
CREATE TABLE table_name_30 (score VARCHAR, record VARCHAR)
Name the score for record 33-47
SELECT attendance FROM table_name_61 WHERE record = "34-51"
CREATE TABLE table_name_61 (attendance VARCHAR, record VARCHAR)
Name the attendance with record of 34-51
SELECT opponent FROM table_name_6 WHERE attendance = "31,777"
CREATE TABLE table_name_6 (opponent VARCHAR, attendance VARCHAR)
Name the opponent with attendance of 31,777
SELECT points_for FROM table_name_12 WHERE drawn = "2" AND losing_bonus = "5"
CREATE TABLE table_name_12 (points_for VARCHAR, drawn VARCHAR, losing_bonus VARCHAR)
How many points drew 2 with a losing bonus of 5?
SELECT tries_for FROM table_name_74 WHERE tries_against = "30"
CREATE TABLE table_name_74 (tries_for VARCHAR, tries_against VARCHAR)
What is the number of tries for that has 30 tries against?
SELECT points FROM table_name_42 WHERE club = "bridgend athletic rfc"
CREATE TABLE table_name_42 (points VARCHAR, club VARCHAR)
How many points did the Bridgend Athletic RFC have?
SELECT points_against FROM table_name_60 WHERE drawn = "3" AND points = "50"
CREATE TABLE table_name_60 (points_against VARCHAR, drawn VARCHAR, points VARCHAR)
How many points were scored against the club that drew 3 and scored 50 points?
SELECT try_bonus FROM table_name_83 WHERE drawn = "0" AND points_for = "427"
CREATE TABLE table_name_83 (try_bonus VARCHAR, drawn VARCHAR, points_for VARCHAR)
What try bonus drew 0 and scored 427 points for?
SELECT qual FROM table_name_97 WHERE year = "1959"
CREATE TABLE table_name_97 (qual VARCHAR, year VARCHAR)
What was the qualifying time of Jim Rathmann in 1959?
SELECT MAX(year) FROM table_name_26 WHERE entrant = "fisa"
CREATE TABLE table_name_26 (year INTEGER, entrant VARCHAR)
What is the most recent championship for FISA?
SELECT AVG(points) FROM table_name_12 WHERE engine = "ats v8"
CREATE TABLE table_name_12 (points INTEGER, engine VARCHAR)
What is the average points earned for entrants with ATS V8 engines?
SELECT outcome FROM table_name_44 WHERE year = 2009 AND opponent_in_final = "chong wei feng"
CREATE TABLE table_name_44 (outcome VARCHAR, year VARCHAR, opponent_in_final VARCHAR)
What was the outcome from the 2009 match in the final against Chong Wei Feng?
SELECT try_bonus FROM table_name_56 WHERE tries_for = "25"
CREATE TABLE table_name_56 (try_bonus VARCHAR, tries_for VARCHAR)
What was the try bonus for the team with 25 tries for?
SELECT points_for FROM table_name_86 WHERE club = "bridgend athletic rfc"
CREATE TABLE table_name_86 (points_for VARCHAR, club VARCHAR)
How many points for did Bridgend Athletic RFC score?
SELECT tries_for FROM table_name_49 WHERE try_bonus = "5"
CREATE TABLE table_name_49 (tries_for VARCHAR, try_bonus VARCHAR)
How many tries for did the team with a try bonus of 5 score?
SELECT points_against FROM table_name_65 WHERE tries_against = "42"
CREATE TABLE table_name_65 (points_against VARCHAR, tries_against VARCHAR)
How many points against did the team that allowed 42 tries against allow?
SELECT AVG(bronze) FROM table_name_58 WHERE total = 1 AND silver = 0 AND rank > 16
CREATE TABLE table_name_58 (bronze INTEGER, rank VARCHAR, total VARCHAR, silver VARCHAR)
What is the average number of bronze medals associated with 0 silver, 1 total, and ranks over 16?
SELECT MAX(total) FROM table_name_33 WHERE bronze = 2 AND gold = 1 AND silver > 0
CREATE TABLE table_name_33 (total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR)
What is the highest total number of medals associated with 1 gold, more than 0 silver, and 2 bronze?
SELECT COUNT(total) FROM table_name_53 WHERE silver > 3 AND rank = 3 AND bronze > 2
CREATE TABLE table_name_53 (total VARCHAR, bronze VARCHAR, silver VARCHAR, rank VARCHAR)
What is the total number of Total values associated with mroe than 3 silvers, more than 2 bronze, and a rank of 3?
SELECT MIN(silver) FROM table_name_75 WHERE bronze = 0 AND rank = 14 AND gold > 0
CREATE TABLE table_name_75 (silver INTEGER, gold VARCHAR, bronze VARCHAR, rank VARCHAR)
What is the smallest Silver value associated with teams having more than 0 gold, 0 bronze, and a rank of 14?
SELECT qual_1 FROM table_name_41 WHERE team = "conquest racing"
CREATE TABLE table_name_41 (qual_1 VARCHAR, team VARCHAR)
What is the qual 1 for conquest racing?
SELECT MIN(best) FROM table_name_34 WHERE team = "n/h/l racing" AND name = "graham rahal" AND qual_2 > 59.384
CREATE TABLE table_name_34 (best INTEGER, qual_2 VARCHAR, team VARCHAR, name VARCHAR)
Graham rahal for n/h/l racing has a qual 2 greater than 59.384 and how much lowest best?
SELECT SUM(best) FROM table_name_32 WHERE name = "bruno junqueira"
CREATE TABLE table_name_32 (best INTEGER, name VARCHAR)
What is the total best for Bruno junqueira
SELECT mascot FROM table_name_25 WHERE location = "brook"
CREATE TABLE table_name_25 (mascot VARCHAR, location VARCHAR)
What is the Mascot of Brook?
SELECT MIN(year_left) FROM table_name_73 WHERE location = "fowler"
CREATE TABLE table_name_73 (year_left INTEGER, location VARCHAR)
When was the first year when Fowler joined?
SELECT molecular_target FROM table_name_10 WHERE marine_organism_α = "bacterium"
CREATE TABLE table_name_10 (molecular_target VARCHAR, marine_organism_α VARCHAR)
What is the molecular target of bacterium?
SELECT marine_organism_α FROM table_name_96 WHERE disease_area = "cancer" AND clinical_trials_β = "4/4"
CREATE TABLE table_name_96 (marine_organism_α VARCHAR, disease_area VARCHAR, clinical_trials_β VARCHAR)
What is the organism that has a disease area of cancer and has 4/4 clinical trial b?
SELECT molecular_target FROM table_name_45 WHERE disease_area = "antiviral"
CREATE TABLE table_name_45 (molecular_target VARCHAR, disease_area VARCHAR)
What is the molecular target of the organism that has a disease area of antiviral?
SELECT date FROM table_name_38 WHERE record = "62–84"
CREATE TABLE table_name_38 (date VARCHAR, record VARCHAR)
On what date was the record 62–84?
SELECT record FROM table_name_26 WHERE date = "september 4"
CREATE TABLE table_name_26 (record VARCHAR, date VARCHAR)
What was the record on September 4?
SELECT record FROM table_name_79 WHERE date = "september 26"
CREATE TABLE table_name_79 (record VARCHAR, date VARCHAR)
What was the record on September 26?
SELECT opponent FROM table_name_35 WHERE loss = "leal (1–4)"
CREATE TABLE table_name_35 (opponent VARCHAR, loss VARCHAR)
Who was the opponent with a Loss of Leal (1–4)?
SELECT COUNT(1958 AS _uta) FROM "t" AS able_name_49 WHERE class = "t"
CREATE TABLE t (Id VARCHAR)
In the Class T, what is the total of the 1958 UTA?
SELECT result FROM table_name_93 WHERE date = "13 october 1993"
CREATE TABLE table_name_93 (result VARCHAR, date VARCHAR)
What was the result of the match played on 13 October 1993?
SELECT date FROM table_name_67 WHERE goal = 21
CREATE TABLE table_name_67 (date VARCHAR, goal VARCHAR)
When did the team score 21 goals?
SELECT score FROM table_name_59 WHERE date = "14 october 1998" AND goal > 10
CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR, goal VARCHAR)
What was the score of the match played on 14 October 1998, resulting in more than 10 goals?
SELECT COUNT(year) FROM table_name_24 WHERE entrant = "scuderia guastalla"
CREATE TABLE table_name_24 (year VARCHAR, entrant VARCHAR)
What is the total number of years that Scuderia Guastalla was an entrant?
SELECT MIN(year) FROM table_name_88 WHERE points = "0" AND entrant = "scuderia ferrari"
CREATE TABLE table_name_88 (year INTEGER, points VARCHAR, entrant VARCHAR)
What was the earliest year that Scuderia Ferrari was an entrant with 0 points?
SELECT COUNT(year) FROM table_name_24 WHERE chassis = "ferrari 625" AND points = "2"
CREATE TABLE table_name_24 (year VARCHAR, chassis VARCHAR, points VARCHAR)
What is the total number of years that has a chassis of Ferrari 625 and 2 points?
SELECT song FROM table_name_53 WHERE work_done = "guest vocals" AND year = 2006 AND artist_s_ = "cobra starship"
CREATE TABLE table_name_53 (song VARCHAR, artist_s_ VARCHAR, work_done VARCHAR, year VARCHAR)
Which 2006 Cobra Starship song has work done of guest vocals?
SELECT SUM(decile) FROM table_name_37 WHERE roll < 25 AND area = "franz josef"
CREATE TABLE table_name_37 (decile INTEGER, roll VARCHAR, area VARCHAR)
What is the decile sum with a roll smaller than 25, and franz josef area?
SELECT area FROM table_name_67 WHERE decile = 8 AND roll = 25
CREATE TABLE table_name_67 (area VARCHAR, decile VARCHAR, roll VARCHAR)
What is the area with decile of 8, and a 25 roll?
SELECT AVG(overall) FROM table_name_26 WHERE pick__number < 15
CREATE TABLE table_name_26 (overall INTEGER, pick__number INTEGER)
What is the overall pick average with the pick # lower than 15?
SELECT MIN(rank) FROM table_name_3 WHERE bronze = 3 AND total > 10
CREATE TABLE table_name_3 (rank INTEGER, bronze VARCHAR, total VARCHAR)
What is the lowest rank for Spain when more than 10 medals were won, 3 of which were bronze?
SELECT qual FROM table_name_38 WHERE year = "1954"
CREATE TABLE table_name_38 (qual VARCHAR, year VARCHAR)
What is the Qual listed on the Year of 1954?
SELECT year FROM table_name_66 WHERE laps > 27 AND qual = "144.683"
CREATE TABLE table_name_66 (year VARCHAR, laps VARCHAR, qual VARCHAR)
Which Year has a Qual of 144.683 and Lap larger than 27?
SELECT qual FROM table_name_41 WHERE rank = "27"
CREATE TABLE table_name_41 (qual VARCHAR, rank VARCHAR)
What's the Qual listed with a Rank of 27?
SELECT team FROM table_name_45 WHERE year = 1978
CREATE TABLE table_name_45 (team VARCHAR, year VARCHAR)
Which Team has a Year of 1978?
SELECT engine FROM table_name_51 WHERE team = "chesterfield racing" AND chassis = "march 761"
CREATE TABLE table_name_51 (engine VARCHAR, team VARCHAR, chassis VARCHAR)
Which Engine has a Team of Chesterfield Racing and include a Chassis of March 761?
SELECT MIN(year) FROM table_name_37 WHERE mintage < 10 OFFSET 000
CREATE TABLE table_name_37 (year INTEGER, mintage INTEGER)
What is the smallest year with a Mintage smaller than 10,000?