sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT years_of_nba_experience_[a_] FROM table_name_28 WHERE pos = "g" AND team = "portland trail blazers"
CREATE TABLE INST, Here is a database schema( table schema);
How many years of NBA experience does the player who plays position g for the Portland Trail Blazers?It is not neccessary to use all the tables.
SELECT score FROM table_27715173_6 WHERE game = 3
CREATE TABLE INST, Here is a database schema( table schema);
What was the score for game 3?It is not neccessary to use all the tables.
SELECT "abbreviation" FROM table_204_563 ORDER BY id DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
what is the last abbreviation on the list ?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Money ( $ ) = 0 AND Place = t10
CREATE TABLE INST, Here is a database schema( table schema);
Which Country has a Money ($) of 0, and a Place of t10?.It is not neccessary to use all the tables.
SELECT position FROM table_name_61 WHERE player = "chad hutchinson"
CREATE TABLE INST, Here is a database schema( table schema);
Which position has a Player of chad hutchinson?It is not neccessary to use all the tables.
SELECT AVG(rbis) FROM table_name_79 WHERE team = "boston red sox" AND date = "july 27, 1946"
CREATE TABLE INST, Here is a database schema( table schema);
When the team is the Boston Red Sox and the is date July 27 1946 what are the average RBIs?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE City = istanbul
CREATE TABLE INST, Here is a database schema( table schema);
What country is Istanbul in?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Competition = 2014 fifa world cup qualification AND Score = 2 – 0
CREATE TABLE INST, Here is a database schema( table schema);
Which Result has a Competition of 2014 fifa world cup qualification, and a Score of 2 – 0?.It is not neccessary to use all the tables.
SELECT series FROM table_name_20 WHERE saturday = "channel 5"
CREATE TABLE INST, Here is a database schema( table schema);
Which series airs Saturday on Channel 5?It is not neccessary to use all the tables.
SELECT Diameter (km) FROM table WHERE Longitude = 40.2E
CREATE TABLE INST, Here is a database schema( table schema);
What is the diameter in km of the feature with a longitude of 40.2E? .It is not neccessary to use all the tables.
SELECT Label FROM table WHERE Date = 1973 AND Catalog = l 35023
CREATE TABLE INST, Here is a database schema( table schema);
What is the label from 1973 that has a catalog number of l 35023?.It is not neccessary to use all the tables.
SELECT IHSAA Class FROM table WHERE Mascot = musketeers
CREATE TABLE INST, Here is a database schema( table schema);
What's the IHSAA Class when the mascot was the Musketeers?.It is not neccessary to use all the tables.
SELECT black FROM table_name_87 WHERE white = "anand" AND moves = 20 AND opening = "e15 queen's indian defence"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent of Anand in the match with 20 moves that opened with E15 Queen's Indian Defence?It is not neccessary to use all the tables.
SELECT score FROM table_name_99 WHERE stadium = "cn centre" AND date = "april 5, 2008"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score at CN Centre on April 5 2008?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Venue = athens olympic stadium AND Year = 30 april 2011
CREATE TABLE INST, Here is a database schema( table schema);
what is the score when the venue is athens olympic stadium on 30 april 2011?.It is not neccessary to use all the tables.
SELECT college FROM table_name_59 WHERE position = "db" AND cfl_team = "winnipeg blue bombers"
CREATE TABLE INST, Here is a database schema( table schema);
What is the College with a Position of db and the CFL Team was Winnipeg Blue Bombers?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_82 WHERE score = "6–5 13"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent with a score of 6–5 13?It is not neccessary to use all the tables.
SELECT COUNT Chairman FROM table WHERE W: L: D = 13:10:0
CREATE TABLE INST, Here is a database schema( table schema);
How many years was their W/L/D record 13:10:0?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_84 WHERE time = "4:51"
CREATE TABLE INST, Here is a database schema( table schema);
Which Opponent has a Time of 4:51?It is not neccessary to use all the tables.
SELECT COUNT("title") FROM table_203_778 WHERE "appointed by" = 'theodore roosevelt'
CREATE TABLE INST, Here is a database schema( table schema);
how many representatives were appointed by theodore roosevelt ?It is not neccessary to use all the tables.
SELECT pr_avg FROM table_16912000_13 WHERE kr_lg = 49
CREATE TABLE INST, Here is a database schema( table schema);
What is the pr avg when kr lg is 49?It is not neccessary to use all the tables.
SELECT AVG(silver) FROM table_name_23 WHERE nation = "belarus" AND total < 1
CREATE TABLE INST, Here is a database schema( table schema);
What average silver has belarus as the nation with a total less than 1?It is not neccessary to use all the tables.
SELECT country FROM table_name_15 WHERE first_store = "2007"
CREATE TABLE INST, Here is a database schema( table schema);
Which country had the first store in the year 2007?It is not neccessary to use all the tables.
SELECT date FROM table_name_34 WHERE event = "billabong pro"
CREATE TABLE INST, Here is a database schema( table schema);
What is Date when Event is Billabong Pro?It is not neccessary to use all the tables.
SELECT COUNT(week) FROM table_name_74 WHERE opponent = "washington redskins" AND attendance > 56 OFFSET 077
CREATE TABLE INST, Here is a database schema( table schema);
Which Week has an Opponent of washington redskins and an Attendance larger than 56077?It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_93 WHERE home_team = "carlton"
CREATE TABLE INST, Here is a database schema( table schema);
When the Home team of carlton played what was their score?It is not neccessary to use all the tables.
SELECT moving_from FROM table_name_28 WHERE transfer_window = "winter" AND country = "wal"
CREATE TABLE INST, Here is a database schema( table schema);
Who is moving during winter from wal?It is not neccessary to use all the tables.
SELECT Season FROM table WHERE Regionalliga West/Südwest = Arminia Bielefeld
CREATE TABLE INST, Here is a database schema( table schema);
what's the season with regionalliga west/südwest being arminia bielefeld.It is not neccessary to use all the tables.
SELECT Incumbent FROM table WHERE District = Florida 9
CREATE TABLE INST, Here is a database schema( table schema);
who is the incumbent where the district is florida 9?.It is not neccessary to use all the tables.
SELECT bbc_two_rank FROM table_name_53 WHERE year = "2005"
CREATE TABLE INST, Here is a database schema( table schema);
What was the rank of BBC 2 in 2005?It is not neccessary to use all the tables.
SELECT Points for FROM table WHERE Points against = points against
CREATE TABLE INST, Here is a database schema( table schema);
what's the points total when points against was points against?.It is not neccessary to use all the tables.
SELECT COUNT State and District of Columbia FROM table WHERE Overweight (incl. obese) adults = 65.4%
CREATE TABLE INST, Here is a database schema( table schema);
How many states or District of Columbia have 65.4% overweight or obese adults?.It is not neccessary to use all the tables.
SELECT MAX(issue_date) FROM table_name_6 WHERE highest_position = 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest issue date for an album that reached position of 3?It is not neccessary to use all the tables.
SELECT round FROM table_name_31 WHERE ranking = "2008 wta tour"
CREATE TABLE INST, Here is a database schema( table schema);
Which Round has a Ranking of 2008 wta tour?It is not neccessary to use all the tables.
SELECT score FROM table_name_32 WHERE venue = "seoul" AND result = "8-0"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score in the venue of Seoul that resulted in 8-0?It is not neccessary to use all the tables.
SELECT Grid FROM table WHERE Driver = mark webber
CREATE TABLE INST, Here is a database schema( table schema);
What was the grid when the driver was Mark Webber?.It is not neccessary to use all the tables.
SELECT COUNT General election FROM table WHERE # of seats won < 23 AND # of candidates > 108
CREATE TABLE INST, Here is a database schema( table schema);
How many general elections that have won smaller than 23 with candidates larger than 108?.It is not neccessary to use all the tables.
SELECT Original air date FROM table WHERE Production code = 2395120
CREATE TABLE INST, Here is a database schema( table schema);
What was the original air date of the episode with production code 2395120?.It is not neccessary to use all the tables.
SELECT Mon 22 Aug FROM table WHERE Wed 24 Aug = 22' 50.05 99.141mph
CREATE TABLE INST, Here is a database schema( table schema);
What is every entry on Monday August 22 when the entry for Wednesday August 24 is 22' 50.05 99.141mph?.It is not neccessary to use all the tables.
SELECT height__m_ FROM table_name_19 WHERE nation = "sweden (swe)" AND weight__kg_ = "102"
CREATE TABLE INST, Here is a database schema( table schema);
what is the height (m) when the nation is sweden (swe) and the weight (kg) is 102?It is not neccessary to use all the tables.
SELECT to_par FROM table_name_28 WHERE finish = "t31"
CREATE TABLE INST, Here is a database schema( table schema);
When the finish was t31 what was the To par?It is not neccessary to use all the tables.
SELECT Mixed doubles FROM table WHERE Year = 1972
CREATE TABLE INST, Here is a database schema( table schema);
who is the the mixed doubles with year being 1972.It is not neccessary to use all the tables.
SELECT COUNT(rr1_pts) FROM table_21515673_2 WHERE team_name = "Swedish America's Cup Challenge"
CREATE TABLE INST, Here is a database schema( table schema);
How many points does Swedish America's Cup Challenge have for rr1?It is not neccessary to use all the tables.
SELECT Incumbent FROM table WHERE First elected = 1944
CREATE TABLE INST, Here is a database schema( table schema);
Who is the incumbent first elected in 1944?.It is not neccessary to use all the tables.
SELECT Entrant FROM table WHERE Engine = cosworth v8 AND Year = 1970
CREATE TABLE INST, Here is a database schema( table schema);
In 1970, what entrant had a cosworth v8 engine?.It is not neccessary to use all the tables.
SELECT Genre FROM table WHERE Station = fly fm
CREATE TABLE INST, Here is a database schema( table schema);
Which genre is the fly fm station?.It is not neccessary to use all the tables.
SELECT Nation FROM table WHERE Athlete = bianca knight
CREATE TABLE INST, Here is a database schema( table schema);
what nation is bianca knight the answer for?.It is not neccessary to use all the tables.
SELECT SUM Laps FROM table WHERE Time/Retired = +47.376
CREATE TABLE INST, Here is a database schema( table schema);
with a Time/Retired of +47.376 what is the lap sum?.It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE Opponent in the final = mark nielsen
CREATE TABLE INST, Here is a database schema( table schema);
What tournament did Smeets play against Mark nielsen?.It is not neccessary to use all the tables.
SELECT AVG("% Coal") FROM table_59302 WHERE "% Natural gas" > '11.6' AND "Electricity production (Kw/h, billion)" < '1,053' AND "% Hydropower" = '32'
CREATE TABLE INST, Here is a database schema( table schema);
what is the average % coal when the % natural gas is more than 11.6, electricity production (kw/h, billion) is less than 1,053 and % hydropower is 32?It is not neccessary to use all the tables.
SELECT "Giant Slalom" FROM table_39593 WHERE "Overall" > '3' AND "Super G" = '12'
CREATE TABLE INST, Here is a database schema( table schema);
What was her Giant Slalom score when her Overall was greater than 3 and her Super G score was 12?It is not neccessary to use all the tables.
SELECT AVG(rank) FROM table_name_23 WHERE average = 6.33
CREATE TABLE INST, Here is a database schema( table schema);
What rank has an average of 6.33?It is not neccessary to use all the tables.
SELECT MIN Code FROM table WHERE Population > 762 AND Most spoken language = xhosa AND Area (km 2 ) > 15.34 AND Place = remainder of the municipality
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest code number for the remainder of the municipality that has an area bigger than 15.34 squared kilometers, a population greater than 762 and a language of xhosa spoken?.It is not neccessary to use all the tables.
SELECT against FROM table_name_19 WHERE round = "2r" AND surface = "clay"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the match against when on a clay surface during round 2r?It is not neccessary to use all the tables.
SELECT Production code FROM table WHERE Written by = Joe Connelly and Bob Mosher AND Title = "Beaver Gets Adopted"
CREATE TABLE INST, Here is a database schema( table schema);
What was the production code of the episode written by Joe Connelly and Bob Mosher titled "Beaver Gets Adopted"?.It is not neccessary to use all the tables.
SELECT COUNT(total_region) FROM table_name_40 WHERE eidsvold = 970 AND biggenden > 1 OFFSET 570
CREATE TABLE INST, Here is a database schema( table schema);
What is the Total Region number of hte one that has Eidsvold at 970 and Biggenden larger than 1570?It is not neccessary to use all the tables.
SELECT Winner FROM table WHERE Event = ept german open
CREATE TABLE INST, Here is a database schema( table schema);
The EPT German open was won by which listed winner?.It is not neccessary to use all the tables.
SELECT 2010 FROM table WHERE 2006 = 3r
CREATE TABLE INST, Here is a database schema( table schema);
what is 2010 when 2006 is 3r?.It is not neccessary to use all the tables.
SELECT Content FROM table WHERE Package/Option = sky cinema AND Language = italian originale
CREATE TABLE INST, Here is a database schema( table schema);
What is Content, when Package/Option is sky cinema, and when Language is italian originale?.It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_64 WHERE home_team = "south melbourne"
CREATE TABLE INST, Here is a database schema( table schema);
When the home team was South Melbourne what did the away team score?It is not neccessary to use all the tables.
SELECT COUNT(*) FROM airports WHERE name LIKE '%International%'
CREATE TABLE INST, Here is a database schema( table schema);
Find the number of airports whose name contain the word 'International'.It is not neccessary to use all the tables.
SELECT Directed by FROM table WHERE Season # = 2
CREATE TABLE INST, Here is a database schema( table schema);
Name the directed by season # 2.It is not neccessary to use all the tables.
SELECT opposing_teams FROM table_name_35 WHERE against = 20 AND venue = "twickenham , london"
CREATE TABLE INST, Here is a database schema( table schema);
What is Opposing Teams when Against is "20" and when Venue is "Twickenham London"?It is not neccessary to use all the tables.
SELECT 2011 FROM table WHERE 2009 = grand slam tournaments
CREATE TABLE INST, Here is a database schema( table schema);
Where were the 2009 and 2011 Grand Slam Tournaments?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_2 WHERE opponents = "east fife" AND date = "3 january 2009"
CREATE TABLE INST, Here is a database schema( table schema);
Where was the game played on 3 january 2009 against east fife?It is not neccessary to use all the tables.
SELECT STRFTIME('%j', admissions.dischtime) - STRFTIME('%j', admissions.admittime) FROM admissions WHERE admissions.subject_id = 7959 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
calculate the length of patient 7959's stay for the last hospital stay.It is not neccessary to use all the tables.
SELECT MIN(no_in_series) FROM table_27713890_1 WHERE us_viewers__millions_ = "24.8"
CREATE TABLE INST, Here is a database schema( table schema);
Wha episode number in the series had 24.8 million u.s. viewers?It is not neccessary to use all the tables.
SELECT AVG(rank) FROM table_name_82 WHERE studio = "20th century fox" AND director = "roland emmerich"
CREATE TABLE INST, Here is a database schema( table schema);
What was the average rank for the film directed by roland emmerich under the studio of 20th century fox?It is not neccessary to use all the tables.
SELECT result FROM table_name_83 WHERE date = "november 16, 1969"
CREATE TABLE INST, Here is a database schema( table schema);
What was the game result on November 16 1969?It is not neccessary to use all the tables.
SELECT MAX(2 AS nd_throw) FROM table_17265535_6 WHERE equation = "(10 times 8) + 4"
CREATE TABLE INST, Here is a database schema( table schema);
If the equation is (10 times 8) + 4 what would be the 2nd throw?It is not neccessary to use all the tables.
SELECT tournament FROM table_name_19 WHERE partner = "karel nováček"
CREATE TABLE INST, Here is a database schema( table schema);
Which Tournament has a Partner of karel nováček?It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Builder = mcwf AND Control Trailers = 35
CREATE TABLE INST, Here is a database schema( table schema);
Name the year for mcwf and control trailers of 35.It is not neccessary to use all the tables.
SELECT PBA team FROM table WHERE College = santo tomas
CREATE TABLE INST, Here is a database schema( table schema);
What is the pba team for the player who went to santo tomas college?.It is not neccessary to use all the tables.
SELECT COUNT(2006) FROM table_name_95 WHERE date_of_official_foundation_of_municipality = 1918
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number in 2006 which has an official foundation of municipality of 1918?It is not neccessary to use all the tables.
SELECT call_sign FROM table_name_17 WHERE power__kw_ = "20kw"
CREATE TABLE INST, Here is a database schema( table schema);
What's the call sign that has 20kw of power?It is not neccessary to use all the tables.
SELECT Eighth FROM table WHERE Seventh = audio bullys
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE 8TH THAT HAS A 7TH OF AUDIO BULLYS?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Edition = 2011 AND Surface = hard (i)
CREATE TABLE INST, Here is a database schema( table schema);
What is Score, when Edition is 2011, and when Surface is Hard (i)?.It is not neccessary to use all the tables.
SELECT COUNT(notes) FROM table_25840200_1 WHERE fight = "Devon Alexander vs. Shawn Porter"
CREATE TABLE INST, Here is a database schema( table schema);
How many notes are there for the Devon Alexander vs. Shawn Porter fight?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_93 WHERE date = "april 2"
CREATE TABLE INST, Here is a database schema( table schema);
Which opponent has april 2 as the date?It is not neccessary to use all the tables.
SELECT MAX(wins) FROM table_name_72 WHERE against < 924 AND losses < 2
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE HIGHEST WINS WITH AGAINST SMALLER THAN 924 LOSSES SMALLER THAN 2?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Game = 48
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of Game 48?.It is not neccessary to use all the tables.
SELECT title FROM table_20046379_3 WHERE us_viewers__millions_ = "3.8"
CREATE TABLE INST, Here is a database schema( table schema);
What's the title of the episode seen by 3.8 million people in the US?It is not neccessary to use all the tables.
SELECT t3.diagnosisname FROM (SELECT t2.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'liver ca - hepatocellular ca') AS t1 JOIN (SELECT patient.uniquepid, diagnosis.diagnosisname, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime < t2.diagnosistime AND t1.patienthealthsystemstayid = t2.patienthealthsystemstayid GROUP BY t2.diagnosisname) AS t3 WHERE t3.c1 <= 5
CREATE TABLE INST, Here is a database schema( table schema);
what were the five most commonly given diagnoses for patients who had been previously diagnosed with liver ca - hepatocellular ca during the same hospital encounter?It is not neccessary to use all the tables.
SELECT Month held FROM table WHERE Location = Paris
CREATE TABLE INST, Here is a database schema( table schema);
What month is the Paris 20k Road Race held?.It is not neccessary to use all the tables.
SELECT MIN Starting from FROM table WHERE Name of the prabandham = Thiruvezhukkurrirukkai
CREATE TABLE INST, Here is a database schema( table schema);
Name the starting from thiruvezhukkurrirukkai.It is not neccessary to use all the tables.
SELECT dismissals FROM table_name_43 WHERE venue = "source: cricinfo.com"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Dismissals with a Venue with source: cricinfo.com?It is not neccessary to use all the tables.
SELECT "Females (%)" FROM table_19424 WHERE "Literate Persons (%)" = '68.74'
CREATE TABLE INST, Here is a database schema( table schema);
What is the percentage of all females that are literate people have a percentage of 68.74?It is not neccessary to use all the tables.
SELECT MAX(overall) FROM table_name_19 WHERE college = "oklahoma" AND pick__number < 4
CREATE TABLE INST, Here is a database schema( table schema);
Which Overall is the highest one that has a College of oklahoma and a Pick # smaller than 4?It is not neccessary to use all the tables.
SELECT Prize FROM table WHERE Year > 2002 AND Competition = camra london and south east regional competition AND Beer Name = good old boy
CREATE TABLE INST, Here is a database schema( table schema);
What prize did good old boy win in 2002 at the camra london and south east regional competition?.It is not neccessary to use all the tables.
SELECT MIN Voted No FROM table WHERE Percent No = 56.6
CREATE TABLE INST, Here is a database schema( table schema);
what is the minimum voted no where percent no is 56.6.It is not neccessary to use all the tables.
SELECT kickoff FROM table_1639689_2 WHERE date = "Monday, May 13"
CREATE TABLE INST, Here is a database schema( table schema);
What was the kickoff time on monday may 13?It is not neccessary to use all the tables.
SELECT MIN(highest) FROM table_11206916_1 WHERE team = "Dumbarton"
CREATE TABLE INST, Here is a database schema( table schema);
What was the lowest highest attendance for the dumbarton team?It is not neccessary to use all the tables.
SELECT country FROM table_name_19 WHERE score = 73 - 70 - 71 - 71 = 285
CREATE TABLE INST, Here is a database schema( table schema);
What is the Country of the Player with a Score of 73-70-71-71=285?It is not neccessary to use all the tables.
SELECT MAX(innings) FROM table_21100348_11 WHERE rank = 3
CREATE TABLE INST, Here is a database schema( table schema);
How many innings does rank 3 have?It is not neccessary to use all the tables.
SELECT Exposures FROM table WHERE Total exposure time = 105,000s
CREATE TABLE INST, Here is a database schema( table schema);
how many exposures where there when the total exposure time is 105,000s?.It is not neccessary to use all the tables.
SELECT MIN Podiums FROM table WHERE Finishes = 5 AND Starts > 6
CREATE TABLE INST, Here is a database schema( table schema);
What's the smallest number of podiums having more than 6 starts and 5 finishes?.It is not neccessary to use all the tables.
SELECT incumbent FROM table_name_84 WHERE first_elected = 1987
CREATE TABLE INST, Here is a database schema( table schema);
Which incumbent was first elected in 1987?It is not neccessary to use all the tables.
SELECT SUM(area__sqdeg_) FROM table_name_47 WHERE area__msr_ = 43.059 AND right_ascension__hm_ > 747.73
CREATE TABLE INST, Here is a database schema( table schema);
What is the total sum of Areas (sq.deg) that have an Area (msr) of 43.059 and a Right ascension (hm) larger than 747.73?It is not neccessary to use all the tables.
SELECT College FROM table WHERE Pick > 18 AND PBA team = barangay ginebra kings
CREATE TABLE INST, Here is a database schema( table schema);
What college was the draft pick number larger than 18 that went to the Barangay ginebra kings?.It is not neccessary to use all the tables.
SELECT MAX Laps FROM table WHERE Grid = 17
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of laps for grid 17?.It is not neccessary to use all the tables.