instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: what is the assists when the club is chicago fire and goals is more than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (assists INTEGER, club VARCHAR, goals VARCHAR)
SELECT SUM(assists) FROM table_name_82 WHERE club = "chicago fire" AND goals > 2
Write a SQL query that answers the following question: what is the most assists when the goals is less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (assists INTEGER, goals INTEGER)
SELECT MAX(assists) FROM table_name_48 WHERE goals < 0
Write a SQL query that answers the following question: What is Score in The Final, when Date is "1981"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (score_in_the_final VARCHAR, date VARCHAR)
SELECT score_in_the_final FROM table_name_41 WHERE date = 1981
Write a SQL query that answers the following question: What is Opponent in The Final, when Date is "1976"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (opponent_in_the_final VARCHAR, date VARCHAR)
SELECT opponent_in_the_final FROM table_name_40 WHERE date = 1976
Write a SQL query that answers the following question: What is Location Attendance, when Date is "December 30"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (location_attendance VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_name_63 WHERE date = "december 30"
Write a SQL query that answers the following question: What is Date, when High Rebounds is "Amar'e Stoudemire (13)"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (date VARCHAR, high_rebounds VARCHAR)
SELECT date FROM table_name_28 WHERE high_rebounds = "amar'e stoudemire (13)"
Write a SQL query that answers the following question: What is Score, when Location Attendance is "US Airways Center 18,422", and when Game is less than 22?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (score VARCHAR, location_attendance VARCHAR, game VARCHAR)
SELECT score FROM table_name_27 WHERE location_attendance = "us airways center 18,422" AND game < 22
Write a SQL query that answers the following question: What is Score, when Game is "19"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_11 WHERE game = 19
Write a SQL query that answers the following question: What is Location Attendance, when Team is "Orlando"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (location_attendance VARCHAR, team VARCHAR)
SELECT location_attendance FROM table_name_16 WHERE team = "orlando"
Write a SQL query that answers the following question: What is Record, when Date is "December 30"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_22 WHERE date = "december 30"
Write a SQL query that answers the following question: Name the Theaters that has a Rank larger than 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (theaters INTEGER, rank INTEGER)
SELECT MAX(theaters) FROM table_name_83 WHERE rank > 7
Write a SQL query that answers the following question: Name the Gross-to-date which has a Date of august 23–25?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (gross_to_date VARCHAR, date VARCHAR)
SELECT gross_to_date FROM table_name_53 WHERE date = "august 23–25"
Write a SQL query that answers the following question: Name the Round which has a Position of defensive back and a Pick of 226?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (round INTEGER, position VARCHAR, pick VARCHAR)
SELECT MIN(round) FROM table_name_84 WHERE position = "defensive back" AND pick = 226
Write a SQL query that answers the following question: Name the Round which has a Player of zack walz?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (round VARCHAR, player VARCHAR)
SELECT round FROM table_name_68 WHERE player = "zack walz"
Write a SQL query that answers the following question: Name the Round which has a Position of defensive back and corey chavous?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (round INTEGER, position VARCHAR, player VARCHAR)
SELECT MIN(round) FROM table_name_57 WHERE position = "defensive back" AND player = "corey chavous"
Write a SQL query that answers the following question: Name all Pick that has a Round of 7, and a School/Club Team of arizona st.?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (pick VARCHAR, round VARCHAR, school_club_team VARCHAR)
SELECT COUNT(pick) FROM table_name_46 WHERE round = 7 AND school_club_team = "arizona st."
Write a SQL query that answers the following question: Which Year has a Regular Season of 7th?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (the_year INTEGER, regular_season VARCHAR)
SELECT MAX(the_year) FROM table_name_18 WHERE regular_season = "7th"
Write a SQL query that answers the following question: Which Year has a Division larger than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (the_year INTEGER, division INTEGER)
SELECT MAX(the_year) FROM table_name_97 WHERE division > 3
Write a SQL query that answers the following question: Which Year did not qualify for Playoffs, and had a Division smaller than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (the_year INTEGER, playoffs VARCHAR, division VARCHAR)
SELECT SUM(the_year) FROM table_name_97 WHERE playoffs = "did not qualify" AND division < 3
Write a SQL query that answers the following question: Which league did not qualify for the Playoffs, and had a Year larger than 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (league VARCHAR, playoffs VARCHAR, the_year VARCHAR)
SELECT league FROM table_name_59 WHERE playoffs = "did not qualify" AND the_year > 2008
Write a SQL query that answers the following question: What is Lowest Crowd, when Home Team is Brisbane Lions?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (crowd INTEGER, home_team VARCHAR)
SELECT MIN(crowd) FROM table_name_5 WHERE home_team = "brisbane lions"
Write a SQL query that answers the following question: What is Date, when Away Team is Kangaroos?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_38 WHERE away_team = "kangaroos"
Write a SQL query that answers the following question: What is the smallest round with a time of 1:12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (round INTEGER, time VARCHAR)
SELECT MIN(round) FROM table_name_96 WHERE time = "1:12"
Write a SQL query that answers the following question: How long was the time for the Legacy Fighting Championship 12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (time VARCHAR, event VARCHAR)
SELECT time FROM table_name_68 WHERE event = "legacy fighting championship 12"
Write a SQL query that answers the following question: WHAT COUNTRY HAS A TO PAR OF +1, WITH WOODY AUSTIN?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (country VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT country FROM table_name_68 WHERE to_par = "+1" AND player = "woody austin"
Write a SQL query that answers the following question: WHAT IS THE TO PAR FOR ERNIE ELS?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_44 WHERE player = "ernie els"
Write a SQL query that answers the following question: WHAT PLACE DOES TOM LEHMAN HAVE?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_65 WHERE player = "tom lehman"
Write a SQL query that answers the following question: WHAT IS THE TO PAR FOR NUMBER 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (to_par VARCHAR, place VARCHAR)
SELECT to_par FROM table_name_18 WHERE place = "1"
Write a SQL query that answers the following question: WHAT IS TEH PLAYER WITH A TO PAR OF +1 FOR SCOTLAND?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (player VARCHAR, to_par VARCHAR, country VARCHAR)
SELECT player FROM table_name_29 WHERE to_par = "+1" AND country = "scotland"
Write a SQL query that answers the following question: Who won the Paris-Roubaix in 2006?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (paris_roubaix___fra__ VARCHAR, year VARCHAR)
SELECT paris_roubaix___fra__ FROM table_name_33 WHERE year = 2006
Write a SQL query that answers the following question: Who built the conant creek pegram truss railroad bridge?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (built VARCHAR, name VARCHAR)
SELECT built FROM table_name_71 WHERE name = "conant creek pegram truss railroad bridge"
Write a SQL query that answers the following question: Where is the historic place that was built in 1910?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (location VARCHAR, built VARCHAR)
SELECT location FROM table_name_11 WHERE built = "1910"
Write a SQL query that answers the following question: What is the list date of the historic place that was built 1896, 1914?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (listed VARCHAR, built VARCHAR)
SELECT listed FROM table_name_88 WHERE built = "1896, 1914"
Write a SQL query that answers the following question: When was the historic place listed that's in canyon county?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (listed VARCHAR, county VARCHAR)
SELECT listed FROM table_name_79 WHERE county = "canyon"
Write a SQL query that answers the following question: what is the averaging time when the regulatory citation is 40 cfr 50.4(b)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (averaging_time VARCHAR, regulatory_citation VARCHAR)
SELECT averaging_time FROM table_name_53 WHERE regulatory_citation = "40 cfr 50.4(b)"
Write a SQL query that answers the following question: what is the regulatory citation when the standard is 15 μg/m³?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (regulatory_citation VARCHAR, standard VARCHAR)
SELECT regulatory_citation FROM table_name_11 WHERE standard = "15 μg/m³"
Write a SQL query that answers the following question: what is the standard when the pollutant is o 3 and averaging time is 8-hour?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (standard VARCHAR, pollutant VARCHAR, averaging_time VARCHAR)
SELECT standard FROM table_name_79 WHERE pollutant = "o 3" AND averaging_time = "8-hour"
Write a SQL query that answers the following question: what is the polluntant when the regulatory citation is 40 cfr 50.7(a) and the type is primary?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (pollutant VARCHAR, regulatory_citation VARCHAR, type VARCHAR)
SELECT pollutant FROM table_name_27 WHERE regulatory_citation = "40 cfr 50.7(a)" AND type = "primary"
Write a SQL query that answers the following question: what is the type when the averaging time is 1-hour and the standard is 0.12 ppm (235 μg/m³)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (type VARCHAR, averaging_time VARCHAR, standard VARCHAR)
SELECT type FROM table_name_62 WHERE averaging_time = "1-hour" AND standard = "0.12 ppm (235 μg/m³)"
Write a SQL query that answers the following question: what is the type when the regulatory citation is 40 cfr 50.9(a)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (type VARCHAR, regulatory_citation VARCHAR)
SELECT type FROM table_name_63 WHERE regulatory_citation = "40 cfr 50.9(a)"
Write a SQL query that answers the following question: What is the highest League, when Title Playoff is greater than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (league INTEGER, title_playoff INTEGER)
SELECT MAX(league) FROM table_name_7 WHERE title_playoff > 0
Write a SQL query that answers the following question: What is the lowest Title Playoff, when Total is less than 3, and when League is greater than "2"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (title_playoff INTEGER, total VARCHAR, league VARCHAR)
SELECT MIN(title_playoff) FROM table_name_93 WHERE total < 3 AND league > 2
Write a SQL query that answers the following question: What is the lowest Title Playoff, when League is greater than 3, and when Super Cup is less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (title_playoff INTEGER, league VARCHAR, super_cup VARCHAR)
SELECT MIN(title_playoff) FROM table_name_42 WHERE league > 3 AND super_cup < 0
Write a SQL query that answers the following question: What is the total number of Super Cup, when Title Playoff is "0", when Total is greater than 9, and when League is less than 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (super_cup VARCHAR, league VARCHAR, title_playoff VARCHAR, total VARCHAR)
SELECT COUNT(super_cup) FROM table_name_97 WHERE title_playoff = 0 AND total > 9 AND league < 11
Write a SQL query that answers the following question: What was the score when the jazz played against toronto?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (score VARCHAR, team VARCHAR)
SELECT score FROM table_name_34 WHERE team = "toronto"
Write a SQL query that answers the following question: What is the date of the game against miami?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (date VARCHAR, team VARCHAR)
SELECT date FROM table_name_41 WHERE team = "miami"
Write a SQL query that answers the following question: Who was the Opponent in Week 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_37 WHERE week = 7
Write a SQL query that answers the following question: What was the Attendance on November 7, 1999?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_86 WHERE date = "november 7, 1999"
Write a SQL query that answers the following question: Who was the Opponent of the Game with a Result of l 23-41?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_91 WHERE result = "l 23-41"
Write a SQL query that answers the following question: What was the Attendance in Week 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (attendance VARCHAR, week VARCHAR)
SELECT attendance FROM table_name_7 WHERE week = 1
Write a SQL query that answers the following question: How much average Finish has Starts of 9, and a Top 10 smaller than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (avg_finish INTEGER, starts VARCHAR, top_10 VARCHAR)
SELECT SUM(avg_finish) FROM table_name_78 WHERE starts = 9 AND top_10 < 0
Write a SQL query that answers the following question: Which Winnings have Starts larger than 34, and Poles smaller than 1, and a Top 10 of 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (winnings VARCHAR, top_10 VARCHAR, starts VARCHAR, poles VARCHAR)
SELECT winnings FROM table_name_93 WHERE starts > 34 AND poles < 1 AND top_10 = 5
Write a SQL query that answers the following question: Which Diameter (km) has a Name of alma-merghen planitia, and a Year named smaller than 1997?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (diameter__km_ INTEGER, name VARCHAR, year_named VARCHAR)
SELECT MAX(diameter__km_) FROM table_name_4 WHERE name = "alma-merghen planitia" AND year_named < 1997
Write a SQL query that answers the following question: Which Longitude has a Latitude of 73.0s, and a Name of aibarchin planitia?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (longitude VARCHAR, latitude VARCHAR, name VARCHAR)
SELECT longitude FROM table_name_87 WHERE latitude = "73.0s" AND name = "aibarchin planitia"
Write a SQL query that answers the following question: Which Year named has a Name of nuptadi planitia, and a Diameter (km) larger than 1,200.0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (year_named INTEGER, name VARCHAR, diameter__km_ VARCHAR)
SELECT MIN(year_named) FROM table_name_84 WHERE name = "nuptadi planitia" AND diameter__km_ > 1 OFFSET 200.0
Write a SQL query that answers the following question: Which Latitude has a Year named smaller than 1997, and a Name of aino planitia?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (latitude VARCHAR, year_named VARCHAR, name VARCHAR)
SELECT latitude FROM table_name_79 WHERE year_named < 1997 AND name = "aino planitia"
Write a SQL query that answers the following question: In what tournament did Cipolla face Sergio Roitman?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (tournament VARCHAR, opponent VARCHAR)
SELECT tournament FROM table_name_5 WHERE opponent = "sergio roitman"
Write a SQL query that answers the following question: What is the Rating/Share (18-49) that also has a Share greater than 10 and 12.42 million Viewers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (rating VARCHAR, share VARCHAR, viewers__millions_ VARCHAR)
SELECT rating / SHARE(18 - 49) FROM table_name_69 WHERE share > 10 AND viewers__millions_ = 12.42
Write a SQL query that answers the following question: Which Week has a Record of 2-9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (week INTEGER, record VARCHAR)
SELECT MIN(week) FROM table_name_6 WHERE record = "2-9"
Write a SQL query that answers the following question: What is the 1993 finish for the event that had a 1990 of QF and 1995 of 2R?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (Id VARCHAR)
SELECT 1993 FROM table_name_44 WHERE 1990 = "qf" AND 1995 = "2r"
Write a SQL query that answers the following question: What is the 1994 finish for the Miami tournament?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (tournament VARCHAR)
SELECT 1994 FROM table_name_14 WHERE tournament = "miami"
Write a SQL query that answers the following question: What is the to par score from Brad Faxon of the United States with a score of 73-68=141?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (to_par VARCHAR, player VARCHAR, country VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_88 WHERE country = "united states" AND score = 73 - 68 = 141 AND player = "brad faxon"
Write a SQL query that answers the following question: What's the to par score in T8 place from Zimbabwe and has a score of 73-68=141?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (to_par VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_1 WHERE place = "t8" AND score = 73 - 68 = 141 AND country = "zimbabwe"
Write a SQL query that answers the following question: What's the score of Lee Janzen in T4 place?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT score FROM table_name_94 WHERE place = "t4" AND player = "lee janzen"
Write a SQL query that answers the following question: What's the score of Jeff Maggert in T2 place?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT score FROM table_name_36 WHERE place = "t2" AND player = "jeff maggert"
Write a SQL query that answers the following question: What's the to par when the score was 68-73=141?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_46 WHERE score = 68 - 73 = 141
Write a SQL query that answers the following question: What's the total number of game that has 377 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (games INTEGER, points VARCHAR)
SELECT SUM(games) FROM table_name_75 WHERE points = 377
Write a SQL query that answers the following question: What's the total number of points that the rank is less than 5 and has Tiago Splitter?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (points VARCHAR, name VARCHAR, rank VARCHAR)
SELECT COUNT(points) FROM table_name_11 WHERE name = "tiago splitter" AND rank < 5
Write a SQL query that answers the following question: What is the total number of games that has Juan Carlos Navarro and more than 266 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (games INTEGER, points VARCHAR, name VARCHAR)
SELECT SUM(games) FROM table_name_77 WHERE points > 266 AND name = "juan carlos navarro"
Write a SQL query that answers the following question: What's the rank of Igor Rakočević of Tau Cerámica with more than 377 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (rank INTEGER, points VARCHAR, team VARCHAR, name VARCHAR)
SELECT SUM(rank) FROM table_name_87 WHERE team = "tau cerámica" AND name = "igor rakočević" AND points > 377
Write a SQL query that answers the following question: What's the rank of the Tau Cerámica that has 377 points and more than 21 games?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (rank VARCHAR, games VARCHAR, team VARCHAR, points VARCHAR)
SELECT COUNT(rank) FROM table_name_62 WHERE team = "tau cerámica" AND points = 377 AND games > 21
Write a SQL query that answers the following question: What are the dates of squadron 33?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (dates VARCHAR, squadron VARCHAR)
SELECT dates FROM table_name_6 WHERE squadron = "squadron 33"
Write a SQL query that answers the following question: What institution won 2nd more recently than 2007 with Peter Agre as Chief Judge?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (institution VARCHAR, chief_judge VARCHAR, year VARCHAR, award VARCHAR)
SELECT institution FROM table_name_67 WHERE year > 2007 AND award = "2nd" AND chief_judge = "peter agre"
Write a SQL query that answers the following question: What student won 3rd with Peter Agre as Chief Judge?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (name VARCHAR, chief_judge VARCHAR, award VARCHAR)
SELECT name FROM table_name_78 WHERE chief_judge = "peter agre" AND award = "3rd"
Write a SQL query that answers the following question: What institution won in 2010 with student Cheng Herng Yi?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (institution VARCHAR, year VARCHAR, name VARCHAR)
SELECT institution FROM table_name_82 WHERE year > 2010 AND name = "cheng herng yi"
Write a SQL query that answers the following question: What was the lowest postion of ehc straubing ii when they played less than 10 games?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (position INTEGER, name VARCHAR, played VARCHAR)
SELECT MIN(position) FROM table_name_70 WHERE name = "ehc straubing ii" AND played < 10
Write a SQL query that answers the following question: What was the drawn amount for teams with points of 12 and played smaller than 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (drawn INTEGER, points VARCHAR, played VARCHAR)
SELECT AVG(drawn) FROM table_name_13 WHERE points = 12 AND played < 10
Write a SQL query that answers the following question: How many games were played by the team with 2 draws, less than 16 points and a position higher than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (played VARCHAR, position VARCHAR, drawn VARCHAR, points VARCHAR)
SELECT COUNT(played) FROM table_name_74 WHERE drawn = 2 AND points < 16 AND position > 5
Write a SQL query that answers the following question: What was the grid of Buddy Rice?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (grid VARCHAR, driver VARCHAR)
SELECT grid FROM table_name_91 WHERE driver = "buddy rice"
Write a SQL query that answers the following question: Which team had a driver with a finish position of 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (team VARCHAR, fin_pos VARCHAR)
SELECT team FROM table_name_85 WHERE fin_pos = "7"
Write a SQL query that answers the following question: What was the time of the driver with a finish position of 19?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (time_retired VARCHAR, fin_pos VARCHAR)
SELECT time_retired FROM table_name_13 WHERE fin_pos = "19"
Write a SQL query that answers the following question: What were the number of laps led by the driver with a finish position of 14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (laps VARCHAR, fin_pos VARCHAR)
SELECT laps AS Led FROM table_name_38 WHERE fin_pos = "14"
Write a SQL query that answers the following question: Which team had a finish position of 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (team VARCHAR, fin_pos VARCHAR)
SELECT team FROM table_name_90 WHERE fin_pos = "8"
Write a SQL query that answers the following question: For the 27 arrow match event, what's the sum of all scores for that event?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (score INTEGER, event VARCHAR)
SELECT SUM(score) FROM table_name_63 WHERE event = "27 arrow match"
Write a SQL query that answers the following question: Which event had a score of over 673 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (event VARCHAR, score INTEGER)
SELECT event FROM table_name_72 WHERE score > 673
Write a SQL query that answers the following question: What is the total number of appearances in the premier league when there were 10 appearances at UEFA and less than 4 at league cup?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (premier_league VARCHAR, UEfa_cup VARCHAR, league_cup VARCHAR)
SELECT COUNT(premier_league) FROM table_name_53 WHERE UEfa_cup = 10 AND league_cup < 4
Write a SQL query that answers the following question: What is the highest total number of appearances when there were less than 4 at the FA cup?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (total INTEGER, fa_cup INTEGER)
SELECT MAX(total) FROM table_name_53 WHERE fa_cup < 4
Write a SQL query that answers the following question: What player had less than 6 appearances at the FA cup, 33 at the premier league, and more than 5 at the UEFA cup?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (player VARCHAR, UEfa_cup VARCHAR, fa_cup VARCHAR, premier_league VARCHAR)
SELECT player FROM table_name_62 WHERE fa_cup < 6 AND premier_league = 33 AND UEfa_cup > 5
Write a SQL query that answers the following question: What is the sum of the appearances at the league cup for the defender who had less than 10 appearances at the UEFA cup?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (league_cup INTEGER, position VARCHAR, UEfa_cup VARCHAR)
SELECT SUM(league_cup) FROM table_name_29 WHERE position = "defender" AND UEfa_cup < 10
Write a SQL query that answers the following question: What's the target of the antibody rituximab?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (target VARCHAR, antibody VARCHAR)
SELECT target FROM table_name_90 WHERE antibody = "rituximab"
Write a SQL query that answers the following question: What's the target for the brand mylotarg?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (target VARCHAR, brand_name VARCHAR)
SELECT target FROM table_name_96 WHERE brand_name = "mylotarg"
Write a SQL query that answers the following question: What's the type for the brand herceptin with an approval date of before 2006?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (type VARCHAR, approval_date VARCHAR, brand_name VARCHAR)
SELECT type FROM table_name_5 WHERE approval_date < 2006 AND brand_name = "herceptin"
Write a SQL query that answers the following question: What is Position, when Overall is less than 590, and when Round is 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (position VARCHAR, overall VARCHAR, round VARCHAR)
SELECT position FROM table_name_6 WHERE overall < 590 AND round = 3
Write a SQL query that answers the following question: What is Player, when MLB Team is "Florida Marlins", and when Round is less than 15?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (player VARCHAR, mlb_team VARCHAR, round VARCHAR)
SELECT player FROM table_name_58 WHERE mlb_team = "florida marlins" AND round < 15
Write a SQL query that answers the following question: What is the lowest Overall, when Player is "Dan Jennings", and when Round is greater than 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (overall INTEGER, player VARCHAR, round VARCHAR)
SELECT MIN(overall) FROM table_name_23 WHERE player = "dan jennings" AND round > 9
Write a SQL query that answers the following question: What is the total number of Round, when Position is 2B?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (round VARCHAR, position VARCHAR)
SELECT COUNT(round) FROM table_name_77 WHERE position = "2b"
Write a SQL query that answers the following question: What are the highest points for Justin Lofton when his top 10 is lower than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (points INTEGER, driver VARCHAR, top_10 VARCHAR)
SELECT MAX(points) FROM table_name_14 WHERE driver = "justin lofton" AND top_10 < 5
Write a SQL query that answers the following question: What is Frank Kimmel's lowest top 5 with more than 0 wins and fewer than 14 top 10s?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (top_5 INTEGER, top_10 VARCHAR, wins VARCHAR, driver VARCHAR)
SELECT MIN(top_5) FROM table_name_66 WHERE wins > 0 AND driver = "frank kimmel" AND top_10 < 14
Write a SQL query that answers the following question: What is the lowest top 10 with fewer than 4 wins, fewer than 3260 points and more than 0 for top 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (top_10 INTEGER, top_5 VARCHAR, wins VARCHAR, points VARCHAR)
SELECT MIN(top_10) FROM table_name_29 WHERE wins < 4 AND points < 3260 AND top_5 > 0
Write a SQL query that answers the following question: When the mark is 7.35, what's the lowest Lane found?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (lane INTEGER, mark VARCHAR)
SELECT MIN(lane) FROM table_name_32 WHERE mark = "7.35"