answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT COUNT(district) FROM table_1342233_5 WHERE incumbent = "William F. Norrell"
How many districts had William F. Norrell as the incumbent?
CREATE TABLE table_1342233_5 (district VARCHAR, incumbent VARCHAR)
SELECT home_team FROM table_name_17 WHERE venue = "brunswick street oval"
Who is the home team at brunswick street oval?
CREATE TABLE table_name_17 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(f_laps) FROM table_26400438_1 WHERE poles = 12
How many times did he hold 12 poles?
CREATE TABLE table_26400438_1 (f_laps VARCHAR, poles VARCHAR)
SELECT MIN(heat) FROM table_name_84 WHERE nationality = "germany" AND rank > 24
What is Germany's lowest heat ranked after 24?
CREATE TABLE table_name_84 (heat INTEGER, nationality VARCHAR, rank VARCHAR)
SELECT german_voice_actor FROM table_14960574_6 WHERE spanish_voice_actor = "Rafael Torres"
Name the german voice actor for rafael torres
CREATE TABLE table_14960574_6 (german_voice_actor VARCHAR, spanish_voice_actor VARCHAR)
SELECT SUM(attendance) FROM table_name_3 WHERE date = "october 5"
What is the total attendance for the date of october 5?
CREATE TABLE table_name_3 (attendance INTEGER, date VARCHAR)
SELECT AVG(average) FROM table_name_40 WHERE tally = "0-29" AND total > 29
Name the average with tally of 0-29 and total more than 29
CREATE TABLE table_name_40 (average INTEGER, tally VARCHAR, total VARCHAR)
SELECT T1.CountryName, T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING COUNT(*) >= 1
What are the countries having at least one car maker? List name and id.
CREATE TABLE CAR_MAKERS (Country VARCHAR); CREATE TABLE COUNTRIES (CountryName VARCHAR, CountryId VARCHAR)
SELECT location FROM table_name_29 WHERE bronze = "michael eric bibat"
Where did Michael Eric Bibat win bronze?
CREATE TABLE table_name_29 (location VARCHAR, bronze VARCHAR)
SELECT april FROM table_name_41 WHERE june = "candice cassidy"
Name the april for candice cassidy
CREATE TABLE table_name_41 (april VARCHAR, june VARCHAR)
SELECT MIN(year) FROM table_name_66 WHERE yellow_jersey = "jacques anquetil"
What year was yellow jersey of Jacques Anquetil?
CREATE TABLE table_name_66 (year INTEGER, yellow_jersey VARCHAR)
SELECT opponent FROM table_name_27 WHERE attendance = "33,628"
Who is the opponent of the game with 33,628 folks in attendance?
CREATE TABLE table_name_27 (opponent VARCHAR, attendance VARCHAR)
SELECT COUNT(first_elected) FROM table_2668405_17 WHERE candidates = "Leven Powell (F) 63.8% Roger West (DR) 36.4%"
How many times were the candidates leven powell (f) 63.8% roger west (dr) 36.4%?
CREATE TABLE table_2668405_17 (first_elected VARCHAR, candidates VARCHAR)
SELECT COUNT(gold) FROM table_name_80 WHERE nation = "australia"
How many total gold medals did Australia receive?
CREATE TABLE table_name_80 (gold VARCHAR, nation VARCHAR)
SELECT COUNT(round) FROM table_name_82 WHERE player = "matt roth"
What round was matt roth drafted?
CREATE TABLE table_name_82 (round VARCHAR, player VARCHAR)
SELECT AVG(long) FROM table_name_10 WHERE loss < 133 AND gain > 0 AND avg_g = 29.8
What is the long with a loss lower than 133 and more than 0 gain with an avg/G of 29.8?
CREATE TABLE table_name_10 (long INTEGER, avg_g VARCHAR, loss VARCHAR, gain VARCHAR)
SELECT team FROM table_name_36 WHERE game < 71 AND score = "w 91–86 (ot)"
What team played before game 71 and had a score w 91–86 (ot)?
CREATE TABLE table_name_36 (team VARCHAR, game VARCHAR, score VARCHAR)
SELECT score FROM table_name_88 WHERE losing_semifinalists = "toluca unam"
What was the Score when the Losing Semifinalists were Toluca Unam?
CREATE TABLE table_name_88 (score VARCHAR, losing_semifinalists VARCHAR)
SELECT directed_by FROM table_11820086_1 WHERE us_viewers__millions_ = "2.50"
Who directed the episode that was viewed by 2.50 million people in the U.S.?
CREATE TABLE table_11820086_1 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT AVG(T2.fastestlapspeed), T1.name, T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year
What are the average fastest lap speed in races held after 2004 grouped by race name and ordered by year?
CREATE TABLE results (fastestlapspeed INTEGER, raceid VARCHAR); CREATE TABLE races (name VARCHAR, year INTEGER, raceid VARCHAR)
SELECT SUM(bronze) FROM table_name_51 WHERE total < 1
What is the total number of bronze when the total is less than 1?
CREATE TABLE table_name_51 (bronze INTEGER, total INTEGER)
SELECT opponent FROM table_name_7 WHERE method = "tko" AND location = "elgin, illinois, usa" AND date = "2001-02-11"
Which Opponent has a Method of tko, and a Location of elgin, illinois, usa on 2001-02-11?
CREATE TABLE table_name_7 (opponent VARCHAR, date VARCHAR, method VARCHAR, location VARCHAR)
SELECT MIN(lane) FROM table_name_55 WHERE nationality = "brazil" AND time < 21.15
What's Brazil's lane with a time less than 21.15?
CREATE TABLE table_name_55 (lane INTEGER, nationality VARCHAR, time VARCHAR)
SELECT T2.School_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T1.amount > 8.5 GROUP BY T1.school_id HAVING COUNT(*) > 1
Find the names of schools that have more than one donator with donation amount above 8.5.
CREATE TABLE school (School_name VARCHAR, school_id VARCHAR); CREATE TABLE endowment (school_id VARCHAR, amount INTEGER)
SELECT finish FROM table_name_89 WHERE year = 1992
What was the finish for 1992?
CREATE TABLE table_name_89 (finish VARCHAR, year VARCHAR)
SELECT mhra_approved FROM table_name_24 WHERE generic_name = "blonanserin"
Is Blonanserin MHRA approved?
CREATE TABLE table_name_24 (mhra_approved VARCHAR, generic_name VARCHAR)
SELECT name FROM table_name_65 WHERE area = "makarewa"
Which name has an Area of makarewa?
CREATE TABLE table_name_65 (name VARCHAR, area VARCHAR)
SELECT COUNT(list_votes) FROM table_14834801_1 WHERE list_pct = "20.95%"
Name the total number of list votes for 20.95%
CREATE TABLE table_14834801_1 (list_votes VARCHAR, list_pct VARCHAR)
SELECT COUNT(title) FROM table_25716401_1 WHERE written_by = "Tom Scharpling"
How many titles are there for the episode written by Tom Scharpling?
CREATE TABLE table_25716401_1 (title VARCHAR, written_by VARCHAR)
SELECT COUNT(surface) FROM table_1918850_2 WHERE championship = "Australian Open" AND score_in_the_final = "6–3, 4–6, 11–9"
state the number of surface where championship is australian open and score in the final is 6–3, 4–6, 11–9
CREATE TABLE table_1918850_2 (surface VARCHAR, championship VARCHAR, score_in_the_final VARCHAR)
SELECT MAX(race) FROM table_15530244_2 WHERE circuit = "Phillip Island" AND winning_driver = "James Winslow" AND pole_position = "James Winslow"
What is the highest race number in the Phillip Island circuit with James Winslow as the winning driver and pole position?
CREATE TABLE table_15530244_2 (race INTEGER, pole_position VARCHAR, circuit VARCHAR, winning_driver VARCHAR)
SELECT title FROM table_25548213_1 WHERE us_viewers__million_ = "4.65"
What was the name of the episode that had 4.65 million viewers?
CREATE TABLE table_25548213_1 (title VARCHAR, us_viewers__million_ VARCHAR)
SELECT COUNT(processor_speed__mhz_) FROM table_15261_1 WHERE part_number = "A80486DX4-75"
What is the processor speed (mhz) for part number a80486dx4-75?
CREATE TABLE table_15261_1 (processor_speed__mhz_ VARCHAR, part_number VARCHAR)
SELECT SUM(game) FROM table_name_77 WHERE opponent = "@ boston bruins"
How many games total were played against @ Boston Bruins this season?
CREATE TABLE table_name_77 (game INTEGER, opponent VARCHAR)
SELECT MIN(laps) FROM table_name_69 WHERE grid = 17
What are the lowest laps of grid 17?
CREATE TABLE table_name_69 (laps INTEGER, grid VARCHAR)
SELECT MAX(bus_width__bits_) FROM table_name_51 WHERE designation = "pc800"
Designation of pc800 has which highest Bus width (bits)?
CREATE TABLE table_name_51 (bus_width__bits_ INTEGER, designation VARCHAR)
SELECT event FROM table_name_1 WHERE time = "2:08"
What is the event with a 2:08 time?
CREATE TABLE table_name_1 (event VARCHAR, time VARCHAR)
SELECT AVG(game__number) FROM table_name_95 WHERE home = "san jose" AND points < 71
Which average Game # has a Home of san jose, and Points smaller than 71?
CREATE TABLE table_name_95 (game__number INTEGER, home VARCHAR, points VARCHAR)
SELECT year FROM table_181892_4 WHERE race_status = "Piston"
What year(s) was the race status piston?
CREATE TABLE table_181892_4 (year VARCHAR, race_status VARCHAR)
SELECT college FROM table_name_72 WHERE position = "defensive end" AND round = 2
What college was the defensive end pick that was picked in round 2?
CREATE TABLE table_name_72 (college VARCHAR, position VARCHAR, round VARCHAR)
SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING COUNT(*) > 1
Find the locations that have more than one movie theater with capacity above 300.
CREATE TABLE cinema (LOCATION VARCHAR, capacity INTEGER)
SELECT 2009 FROM table_name_52 WHERE 2010 = "0"
What were the 2009 results that has 0 in 2010?
CREATE TABLE table_name_52 (Id VARCHAR)
SELECT award FROM table_name_36 WHERE category = "choice tv: breakout star female"
What is the award for the Choice TV: Breakout Star Female category?
CREATE TABLE table_name_36 (award VARCHAR, category VARCHAR)
SELECT MIN(period__days_) FROM table_name_1 WHERE planetary_mass___m⊕__ = 1 AND stellar_mass___m__ > 0.21 AND type = "m0"
What is the smallest period (days) to have a planetary mass of 1, a stellar mass greater than 0.21 and of the type M0?
CREATE TABLE table_name_1 (period__days_ INTEGER, type VARCHAR, planetary_mass___m⊕__ VARCHAR, stellar_mass___m__ VARCHAR)
SELECT runner_up FROM table_name_14 WHERE score = "4 & 3" AND winner = "michael bonallack"
What runner-up has 4 & 3 as the score, with michael bonallack as the winner?
CREATE TABLE table_name_14 (runner_up VARCHAR, score VARCHAR, winner VARCHAR)
SELECT away_team AS score FROM table_name_96 WHERE venue = "mcg"
What did the away team score at MCG?
CREATE TABLE table_name_96 (away_team VARCHAR, venue VARCHAR)
SELECT original_air_date FROM table_11630008_6 WHERE production_code = 410
When did the episode with production code 410 air?
CREATE TABLE table_11630008_6 (original_air_date VARCHAR, production_code VARCHAR)
SELECT runner_up FROM table_name_96 WHERE year = "2004"
Who was the runner-up in 2004?
CREATE TABLE table_name_96 (runner_up VARCHAR, year VARCHAR)
SELECT f_id, genre_is, artist_name FROM song WHERE languages = "english" ORDER BY rating
List the id, genre and artist name of English songs ordered by rating.
CREATE TABLE song (f_id VARCHAR, genre_is VARCHAR, artist_name VARCHAR, languages VARCHAR, rating VARCHAR)
SELECT village__german_ FROM table_10798421_1 WHERE percent_of_slovenes_1951 = "96.9%"
Provide me with the name of the village (German) where there is 96.9% Slovenes in 1951.
CREATE TABLE table_10798421_1 (village__german_ VARCHAR, percent_of_slovenes_1951 VARCHAR)
SELECT COUNT(frequency) FROM table_13869651_3 WHERE part_number_s_ = "ADO540BIAA5DO"
How many different frequencies does the model with part number ado540biaa5do?
CREATE TABLE table_13869651_3 (frequency VARCHAR, part_number_s_ VARCHAR)
SELECT winning_score FROM table_name_74 WHERE tournament = "kraft nabisco championship"
What winning score has kraft nabisco championship as the tournament?
CREATE TABLE table_name_74 (winning_score VARCHAR, tournament VARCHAR)
SELECT years FROM table_name_18 WHERE actor = "claudia ruffo"
What years have claudia ruffo as the actor?
CREATE TABLE table_name_18 (years VARCHAR, actor VARCHAR)
SELECT SUM(points) FROM table_name_52 WHERE scored = 10 AND wins < 3
What is the sum of points for teams with 10 goals scored and under 3 wins?
CREATE TABLE table_name_52 (points INTEGER, scored VARCHAR, wins VARCHAR)
SELECT MAX(2011 AS _1h) FROM table_name_35 WHERE 2005 > 28
What is the highest 2011 1H value for a 2005 over 28?
CREATE TABLE table_name_35 (Id VARCHAR)
SELECT f_laps FROM table_name_77 WHERE points = "27"
Which F/Laps have 27 Points?
CREATE TABLE table_name_77 (f_laps VARCHAR, points VARCHAR)
SELECT english_name FROM table_name_30 WHERE year_signed > 1974 AND chinese_name = "蘇永康"
What is the English name for the Chinese name of 蘇永康 later than 1974?
CREATE TABLE table_name_30 (english_name VARCHAR, year_signed VARCHAR, chinese_name VARCHAR)
SELECT COUNT(location) FROM table_16734640_1 WHERE institution = "Georgia Perimeter College"
Name the number location of georgia perimeter college
CREATE TABLE table_16734640_1 (location VARCHAR, institution VARCHAR)
SELECT MAX(peroutka) FROM table_name_69 WHERE others = 46 AND electors < 15
What is the highest Peroutka with 46 others, and less than 15 electors?
CREATE TABLE table_name_69 (peroutka INTEGER, others VARCHAR, electors VARCHAR)
SELECT home_team AS score FROM table_name_43 WHERE venue = "mcg"
Who is the home team that played at MCG?
CREATE TABLE table_name_43 (home_team VARCHAR, venue VARCHAR)
SELECT class FROM table_name_96 WHERE city_of_license = "appleton, wisconsin"
What was the class for Appleton, Wisconsin?
CREATE TABLE table_name_96 (class VARCHAR, city_of_license VARCHAR)
SELECT authority FROM table_name_32 WHERE decile = 6 AND name = "pongaroa school"
Name the authority when the decile is 6 for pongaroa school
CREATE TABLE table_name_32 (authority VARCHAR, decile VARCHAR, name VARCHAR)
SELECT MIN(reg_gp) FROM table_name_69 WHERE rd__number > 2 AND pick__number = 80 AND pl_gp > 0
What is the lowest reg gp of the player with a round # more than 2, a pick # of 80, and a PI GP larger than 0?
CREATE TABLE table_name_69 (reg_gp INTEGER, pl_gp VARCHAR, rd__number VARCHAR, pick__number VARCHAR)
SELECT Country, COUNT(*) FROM perpetrator GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1
What is the country that has the most perpetrators?
CREATE TABLE perpetrator (Country VARCHAR)
SELECT COUNT(high_rebounds) FROM table_27712451_6 WHERE date = "December 8"
How many high rebounds took place on December 8?
CREATE TABLE table_27712451_6 (high_rebounds VARCHAR, date VARCHAR)
SELECT ceased_to_be_queen FROM table_name_3 WHERE birth = "10 may 1788"
Who was born on 10 May 1788 that ceased to be queen?
CREATE TABLE table_name_3 (ceased_to_be_queen VARCHAR, birth VARCHAR)
SELECT team FROM table_name_47 WHERE year > 2010
Which Team has a Year larger than 2010?
CREATE TABLE table_name_47 (team VARCHAR, year INTEGER)
SELECT schwaben FROM table_23224961_1 WHERE oberbayern_a = "Wacker Burghausen"
When wacker burghausen is the oberbayern a what is the schwaben?
CREATE TABLE table_23224961_1 (schwaben VARCHAR, oberbayern_a VARCHAR)
SELECT COUNT(gold) FROM table_name_22 WHERE silver > 20 AND bronze = 135
What is the total amount of gold medals when there were more than 20 silvers and there were 135 bronze medals?
CREATE TABLE table_name_22 (gold VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT record FROM table_name_72 WHERE home = "nashville"
Which Record has a home of Nashville?
CREATE TABLE table_name_72 (record VARCHAR, home VARCHAR)
SELECT MIN(goals) FROM table_name_84 WHERE years = "2007/08" AND name = "joe keenan" AND assists > 1
What is the lowest number of goals joe keenan, who has more than 1 assists, had in 2007/08?
CREATE TABLE table_name_84 (goals INTEGER, assists VARCHAR, years VARCHAR, name VARCHAR)
SELECT weight FROM table_name_26 WHERE name_v_t_e = "duško pijetlović category:articles with hcards"
What is the weight of the v t e of duško pijetlović category:articles with hcards?
CREATE TABLE table_name_26 (weight VARCHAR, name_v_t_e VARCHAR)
SELECT save FROM table_name_32 WHERE opponent = "sinon bulls" AND loss = "jeriome robertson"
Who earned the save in the game against the Sinon Bulls when Jeriome Robertson took the loss?
CREATE TABLE table_name_32 (save VARCHAR, opponent VARCHAR, loss VARCHAR)
SELECT AVG(against) FROM table_name_58 WHERE position < 5 AND team = "corinthians"
When the corinthians have a position of less than 5, what is the average against?
CREATE TABLE table_name_58 (against INTEGER, position VARCHAR, team VARCHAR)
SELECT MIN(average) FROM table_name_74 WHERE sr = 70.43 AND runs_scored < 293
What kind of Average has a S.R. of 70.43 and Runs Scored smaller than 293?
CREATE TABLE table_name_74 (average INTEGER, sr VARCHAR, runs_scored VARCHAR)
SELECT arabs_2011 FROM table_1939367_1 WHERE province = "Nunavut"
If the province is Nunavut, what is the Arabs 2011 amount?
CREATE TABLE table_1939367_1 (arabs_2011 VARCHAR, province VARCHAR)
SELECT service FROM table_name_74 WHERE network = "atn urdu"
Which service does the network of atn urdu offer?
CREATE TABLE table_name_74 (service VARCHAR, network VARCHAR)
SELECT position FROM table_name_93 WHERE nationality = "sweden"
What is the position of the player from Sweden?
CREATE TABLE table_name_93 (position VARCHAR, nationality VARCHAR)
SELECT catalog FROM table_name_23 WHERE year > 2000
What catalog came out after 2000?
CREATE TABLE table_name_23 (catalog VARCHAR, year INTEGER)
SELECT lost FROM table_name_51 WHERE goals_for > 59 AND drawn < 15 AND team = "hyde united"
When Team Hyde United had more than 59 Goals For and fewer than 15 Drawn, what was the Lost?
CREATE TABLE table_name_51 (lost VARCHAR, team VARCHAR, goals_for VARCHAR, drawn VARCHAR)
SELECT score FROM table_name_53 WHERE place = "t1" AND player = "lee trevino"
What score did Lee Trevino get in T1?
CREATE TABLE table_name_53 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT opponent FROM table_name_36 WHERE date = "december 10, 2000"
Who was the opponent on December 10, 2000?
CREATE TABLE table_name_36 (opponent VARCHAR, date VARCHAR)
SELECT week_2 FROM table_name_66 WHERE week_1 = "crystal beddows"
What Week 2 has a Week 1 of crystal beddows?
CREATE TABLE table_name_66 (week_2 VARCHAR, week_1 VARCHAR)
SELECT finish FROM table_name_25 WHERE player = "hale irwin"
What is the finish of player Hale Irwin?
CREATE TABLE table_name_25 (finish VARCHAR, player VARCHAR)
SELECT date FROM table_name_39 WHERE catalog = "rr 8655-2"
What is the release Date of Catalog RR 8655-2?
CREATE TABLE table_name_39 (date VARCHAR, catalog VARCHAR)
SELECT AVG(urban_population__2010_) FROM table_name_7 WHERE city = "fuzhou"
What is the urban population for the city of Fuzhou?
CREATE TABLE table_name_7 (urban_population__2010_ INTEGER, city VARCHAR)
SELECT writer FROM table_name_9 WHERE artist = "mort drucker" AND issue > 470 AND actual_title = "law & order: svu"
What writer has mort drucker as the artist, an issue greater than 470, and law & order: svu as an actual title?
CREATE TABLE table_name_9 (writer VARCHAR, actual_title VARCHAR, artist VARCHAR, issue VARCHAR)
SELECT nationality FROM table_name_49 WHERE pick = "1"
What nationality has a pick of 1?
CREATE TABLE table_name_49 (nationality VARCHAR, pick VARCHAR)
SELECT episode_count FROM table_name_90 WHERE dvd_title = "ben 10: alien force volume 8"
What the episode count for Ben 10: Alien Force Volume 8 on DVD?
CREATE TABLE table_name_90 (episode_count VARCHAR, dvd_title VARCHAR)
SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121
Find the id of courses which are registered or attended by student whose id is 121?
CREATE TABLE student_course_attendance (course_id VARCHAR, student_id VARCHAR); CREATE TABLE student_course_registrations (course_id VARCHAR, student_id VARCHAR)
SELECT MAX(shts) FROM table_name_56 WHERE goalkeeper = "kasey keller"
What is the highest SHTS of Kasey Keller
CREATE TABLE table_name_56 (shts INTEGER, goalkeeper VARCHAR)
SELECT heavy_vehicle__3_4_axles_ FROM table_1211545_2 WHERE name = "Verkeerdevlei Toll Plaza"
What is the toll for heavy vehicles with 3/4 axles at Verkeerdevlei toll plaza?
CREATE TABLE table_1211545_2 (heavy_vehicle__3_4_axles_ VARCHAR, name VARCHAR)
SELECT rider FROM table_name_88 WHERE constructor = "honda" AND team = "scot racing team" AND rounds = "6-17"
Who is the rider of Scot Racing team with a Honda constructor and rounds 6-17?
CREATE TABLE table_name_88 (rider VARCHAR, rounds VARCHAR, constructor VARCHAR, team VARCHAR)
SELECT nalchik FROM table_name_32 WHERE played = 4 AND qual = "rl" AND jermuk = "100"
What is the nalchik with 4 played, a rl qual., and 100 jermuk?
CREATE TABLE table_name_32 (nalchik VARCHAR, jermuk VARCHAR, played VARCHAR, qual VARCHAR)
SELECT part_2 FROM table_name_70 WHERE verb_meaning = "to leap"
Which part 2 has a verb that means to leap?
CREATE TABLE table_name_70 (part_2 VARCHAR, verb_meaning VARCHAR)
SELECT authority FROM table_name_7 WHERE roll = 40
What's the authority when the roll is 40?
CREATE TABLE table_name_7 (authority VARCHAR, roll VARCHAR)
SELECT COUNT(games) FROM table_name_5 WHERE drawn < 1 AND lost > 4
How many Games have a Drawn smaller than 1, and a Lost larger than 4?
CREATE TABLE table_name_5 (games VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT score FROM table_name_71 WHERE date = "26 september 2004"
Which Score has a Date of 26 september 2004?
CREATE TABLE table_name_71 (score VARCHAR, date VARCHAR)
SELECT AVG(laps) FROM table_name_70 WHERE driver = "masten gregory"
What is masten gregory's average lap?
CREATE TABLE table_name_70 (laps INTEGER, driver VARCHAR)
SELECT tyre FROM table_name_77 WHERE constructor = "cooper - bristol" AND driver = "bob gerard"
What was tyre that was made by cooper - bristol that was driven by bob gerard?
CREATE TABLE table_name_77 (tyre VARCHAR, constructor VARCHAR, driver VARCHAR)