answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT 2001 FROM table_name_31 WHERE 2007 = "1r"
2007 of 1r is involved in what 2001?
CREATE TABLE table_name_31 (Id VARCHAR)
SELECT MAX(all_amendments_cosponsored) FROM table_name_25 WHERE amendments_originally_cosponsored = 53 AND all_bills_sponsored > 54
What is the highest number of amendments cosponsored associated with 53 amendments originally cosponsored and over 54 bills sponsored?
CREATE TABLE table_name_25 (all_amendments_cosponsored INTEGER, amendments_originally_cosponsored VARCHAR, all_bills_sponsored VARCHAR)
SELECT other_goals FROM table_2980024_1 WHERE league_goals = 1
How many other goals did Dunne have in the season where he had 1 league goal?
CREATE TABLE table_2980024_1 (other_goals VARCHAR, league_goals VARCHAR)
SELECT mountains_classification FROM table_name_26 WHERE points_classification = "alessandro petacchi" AND general_classification = "danilo di luca"
What's the mountains classification when the points classification is Alessandro Petacchi and the general classification is Danilo Di Luca?
CREATE TABLE table_name_26 (mountains_classification VARCHAR, points_classification VARCHAR, general_classification VARCHAR)
SELECT organization FROM table_2538117_12 WHERE founding_date = "1998-11-08"
What organization had the founding date of 1998-11-08?
CREATE TABLE table_2538117_12 (organization VARCHAR, founding_date VARCHAR)
SELECT MAX(first_elected) FROM table_1342451_38 WHERE incumbent = "Frederick H. Dominick"
What is the last year incumbent frederick h. dominick was first elected?
CREATE TABLE table_1342451_38 (first_elected INTEGER, incumbent VARCHAR)
SELECT original_title FROM table_17641206_6 WHERE viewership = "6.05 million"
Name the original title for 6.05 million viewership
CREATE TABLE table_17641206_6 (original_title VARCHAR, viewership VARCHAR)
SELECT date_of_appointment FROM table_name_26 WHERE manner_of_departure = "sacked" AND outgoing_manager = "fred rutten"
What is the date of appointment of outgoing manager fred rutten, who had a sacked manner of departure?
CREATE TABLE table_name_26 (date_of_appointment VARCHAR, manner_of_departure VARCHAR, outgoing_manager VARCHAR)
SELECT name, email FROM user_profiles WHERE followers > 1000
Find the name and email of the users who have more than 1000 followers.
CREATE TABLE user_profiles (name VARCHAR, email VARCHAR, followers INTEGER)
SELECT COUNT(played) FROM table_name_25 WHERE drawn = 3 AND position > 4
How many played have 3 as the drawn, and a position greater than 4?
CREATE TABLE table_name_25 (played VARCHAR, drawn VARCHAR, position VARCHAR)
SELECT date FROM table_name_79 WHERE stadium = "giants stadium" AND week < 13 AND opponent = "seattle seahawks"
Which Date has a Stadium of giants stadium, and a Week smaller than 13, and an Opponent of seattle seahawks?
CREATE TABLE table_name_79 (date VARCHAR, opponent VARCHAR, stadium VARCHAR, week VARCHAR)
SELECT COUNT(year) FROM table_1507806_1 WHERE winning_score = (76 - 73 - 79 - 72 = 300)
HOW MANY YEARS WAS IT FOR THE SCORE (76-73-79-72=300)?
CREATE TABLE table_1507806_1 (year VARCHAR, winning_score VARCHAR)
SELECT winner FROM table_name_55 WHERE trofeo_fast_team = "carrera jeans-vagabond" AND stage = "5"
who is the winner when the trofeo fast team is carrera jeans-vagabond in stage 5?
CREATE TABLE table_name_55 (winner VARCHAR, trofeo_fast_team VARCHAR, stage VARCHAR)
SELECT opponent FROM table_name_73 WHERE site_stadium = "lindsey nelson stadium"
Who was the opponent at Lindsey Nelson Stadium?
CREATE TABLE table_name_73 (opponent VARCHAR, site_stadium VARCHAR)
SELECT region FROM table_name_8 WHERE format = "cd maxi"
Which region had a release format of CD Maxi?
CREATE TABLE table_name_8 (region VARCHAR, format VARCHAR)
SELECT AVG(game) FROM table_name_22 WHERE points = 19 AND opponent = "new jersey devils"
What's the average game against the New Jersey Devils with 19 points?
CREATE TABLE table_name_22 (game INTEGER, points VARCHAR, opponent VARCHAR)
SELECT constructor FROM table_name_69 WHERE race = "belgian grand prix"
Name the constructor for the belgian grand prix
CREATE TABLE table_name_69 (constructor VARCHAR, race VARCHAR)
SELECT outcome FROM table_name_18 WHERE surface = "hard" AND partner = "akiko yonemura"
What was the outcome of the tournament with Akiko Yonemura as a partner on a hard surface?
CREATE TABLE table_name_18 (outcome VARCHAR, surface VARCHAR, partner VARCHAR)
SELECT position FROM table_name_2 WHERE pick < 20
What position has a pick less than 20?
CREATE TABLE table_name_2 (position VARCHAR, pick INTEGER)
SELECT division_iV FROM table_name_35 WHERE division_iII = portsmouth
With a Division II of Portsmouth, what is the Division IV?
CREATE TABLE table_name_35 (division_iV VARCHAR, division_iII VARCHAR, portsmouth VARCHAR)
SELECT result FROM table_name_51 WHERE category = "stacy" AND year > 2008 AND awards = "jahat"
What was the result in the year greaters than 2008 with an award of Jahat and had a category of Stacy?
CREATE TABLE table_name_51 (result VARCHAR, awards VARCHAR, category VARCHAR, year VARCHAR)
SELECT uk_viewers__million_ FROM table_29574579_1 WHERE share___percentage_ = "10.8"
How many millions of viewers are listed when the share is 10.8?
CREATE TABLE table_29574579_1 (uk_viewers__million_ VARCHAR, share___percentage_ VARCHAR)
SELECT opposition FROM table_name_50 WHERE round = "quarter-final"
Who were the opposition in the quarter-final?
CREATE TABLE table_name_50 (opposition VARCHAR, round VARCHAR)
SELECT MIN(points) FROM table_name_90 WHERE year > 1963
What is the lowest points of British Racing after 1963?
CREATE TABLE table_name_90 (points INTEGER, year INTEGER)
SELECT time FROM table_21330550_2 WHERE acc_team = "#17 Wake Forest"
What time was the acc team #17 wake forest?
CREATE TABLE table_21330550_2 (time VARCHAR, acc_team VARCHAR)
SELECT agg FROM table_name_60 WHERE team_2 = "kenya"
What was the aggregate for the match with a team 2 of Kenya?
CREATE TABLE table_name_60 (agg VARCHAR, team_2 VARCHAR)
SELECT date FROM table_20746062_1 WHERE game = 9
What day did the play game number 9?
CREATE TABLE table_20746062_1 (date VARCHAR, game VARCHAR)
SELECT first_branch_opened FROM table_name_21 WHERE branch = "belmont library"
What is the First Branch Opened, when Branch is Belmont Library?
CREATE TABLE table_name_21 (first_branch_opened VARCHAR, branch VARCHAR)
SELECT MIN(lead_margin) FROM table_name_75 WHERE poll_source = "rasmussen reports/ fox news"
Which Lead Margin has a Poll Source of rasmussen reports/ fox news?
CREATE TABLE table_name_75 (lead_margin INTEGER, poll_source VARCHAR)
SELECT country FROM table_name_17 WHERE year = 2011
Which county has 2011 as the year?
CREATE TABLE table_name_17 (country VARCHAR, year VARCHAR)
SELECT candidates FROM table_1341672_10 WHERE district = "Florida 8"
who are the candidates where the district is florida 8?
CREATE TABLE table_1341672_10 (candidates VARCHAR, district VARCHAR)
SELECT directed_by FROM table_15861776_1 WHERE tv_broadcast = "S03E19"
Who directed the TV broadcast s03e19?
CREATE TABLE table_15861776_1 (directed_by VARCHAR, tv_broadcast VARCHAR)
SELECT mls_cup_playoffs FROM table_245695_2 WHERE concacaf_champions_cup___concacaf_champions_league = "Quarter-Finals (09-10)"
What was the mls cup playoffs when concacaf champions cup / concacaf champions league was quarter-finals (09-10)?
CREATE TABLE table_245695_2 (mls_cup_playoffs VARCHAR, concacaf_champions_cup___concacaf_champions_league VARCHAR)
SELECT MIN(crowd) FROM table_name_79 WHERE home_team = "richmond"
What is the lowest crowd with home team richmond?
CREATE TABLE table_name_79 (crowd INTEGER, home_team VARCHAR)
SELECT SUM(year_left) FROM table_name_71 WHERE location = "culver"
What year did Culver leave?
CREATE TABLE table_name_71 (year_left INTEGER, location VARCHAR)
SELECT aircraft_type FROM table_28342423_1 WHERE parent_unit = "Jagdgeschwader 26"
Name the aircraft type for jagdgeschwader 26
CREATE TABLE table_28342423_1 (aircraft_type VARCHAR, parent_unit VARCHAR)
SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice'
Find the name and age of the person who is a friend of both Dan and Alice.
CREATE TABLE Person (name VARCHAR, age VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
SELECT COUNT(DISTINCT student_id) FROM Students_in_Detention
How many distinct students have been in detention?
CREATE TABLE Students_in_Detention (student_id VARCHAR)
SELECT personal_name FROM Students EXCEPT SELECT T1.personal_name FROM Students AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.student_id = T2.student_id
Find the personal names of students not enrolled in any course.
CREATE TABLE Student_Course_Enrolment (student_id VARCHAR); CREATE TABLE Students (personal_name VARCHAR); CREATE TABLE Students (personal_name VARCHAR, student_id VARCHAR)
SELECT score FROM table_name_8 WHERE record = "68-39"
What was the score of the game when the record was 68-39?
CREATE TABLE table_name_8 (score VARCHAR, record VARCHAR)
SELECT SUM(goals) FROM table_name_7 WHERE rank < 10 AND name = "nicolas anelka" AND appearances > 9
What is the total Goals with a Rank smaller than 10, a Name of nicolas anelka, and Appearances larger than 9?
CREATE TABLE table_name_7 (goals INTEGER, appearances VARCHAR, rank VARCHAR, name VARCHAR)
SELECT assets__billion_$_ FROM table_1682026_3 WHERE headquarters = "China" AND profits__billion_$_ = "21.2"
What are the assets (in billions) of the company headquartered in China and whose profits are 21.2 billion?
CREATE TABLE table_1682026_3 (assets__billion_$_ VARCHAR, headquarters VARCHAR, profits__billion_$_ VARCHAR)
SELECT try_bonus FROM table_name_38 WHERE points_for = "423"
What's the try bonus that had 423 points?
CREATE TABLE table_name_38 (try_bonus VARCHAR, points_for VARCHAR)
SELECT score FROM table_name_85 WHERE record = "18–11–5"
Which Score has a Record of 18–11–5?
CREATE TABLE table_name_85 (score VARCHAR, record VARCHAR)
SELECT location FROM table_name_49 WHERE date = "1916"
Where was the disaster located that took place on 1916?
CREATE TABLE table_name_49 (location VARCHAR, date VARCHAR)
SELECT AVG(wins) FROM table_name_76 WHERE goals_against < 10
What is the average number of wins with less than 10 goals?
CREATE TABLE table_name_76 (wins INTEGER, goals_against INTEGER)
SELECT total FROM table_name_40 WHERE player = "matt ruth"
Which Total has a Player of matt ruth?
CREATE TABLE table_name_40 (total VARCHAR, player VARCHAR)
SELECT total_itv_viewers__millions_ FROM table_27319183_7 WHERE official_itv_hd_rating__millions_ = "1.12"
How many total itv viewers were there for the episode with official itv hd ratings of 1.12 million?
CREATE TABLE table_27319183_7 (total_itv_viewers__millions_ VARCHAR, official_itv_hd_rating__millions_ VARCHAR)
SELECT MAX(lost) FROM table_name_89 WHERE position > 10
What is the largest value for lost with a position greater than 10?
CREATE TABLE table_name_89 (lost INTEGER, position INTEGER)
SELECT country FROM table_name_18 WHERE host = "miguel esteban"
Which Country has a Host of miguel esteban?
CREATE TABLE table_name_18 (country VARCHAR, host VARCHAR)
SELECT date FROM table_name_38 WHERE ownership = "historic scotland"
What is the Date of the castle with a Historic Scotland Ownership?
CREATE TABLE table_name_38 (date VARCHAR, ownership VARCHAR)
SELECT MAX(pick) FROM table_name_20 WHERE college = "lsu"
What was the highest pick number of the player who went to LSU in college?
CREATE TABLE table_name_20 (pick INTEGER, college VARCHAR)
SELECT MIN(gold) FROM table_name_8 WHERE rank = 1 AND silver < 1
What is the least number of gold medals won among nations ranked 1 with no silver medals?
CREATE TABLE table_name_8 (gold INTEGER, rank VARCHAR, silver VARCHAR)
SELECT pole_position FROM table_name_62 WHERE fastest_lap = "damon hill" AND grand_prix = "japanese grand prix"
Name the pole position at the japanese grand prix when the fastest lap is damon hill
CREATE TABLE table_name_62 (pole_position VARCHAR, fastest_lap VARCHAR, grand_prix VARCHAR)
SELECT COUNT(1 AS st_prize__) AS $__ FROM table_name_56 WHERE date = "sep 18"
For sep 18 what is the total number of 1 prize ($)
CREATE TABLE table_name_56 (date VARCHAR)
SELECT place FROM table_name_1 WHERE to_par = "−1" AND player = "don pooley"
Which Place has a To par of −1 and don pooley?
CREATE TABLE table_name_1 (place VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT Nationality, COUNT(*) FROM HOST GROUP BY Nationality
Show different nationalities along with the number of hosts of each nationality.
CREATE TABLE HOST (Nationality VARCHAR)
SELECT 1 AS st_leg FROM table_name_25 WHERE team_1 = "teteks"
What was the 1st leg for a team 1 of Teteks?
CREATE TABLE table_name_25 (team_1 VARCHAR)
SELECT runner_up FROM table_name_21 WHERE tournament = "japan open"
Who was the Japan open runner up?
CREATE TABLE table_name_21 (runner_up VARCHAR, tournament VARCHAR)
SELECT AVG(february) FROM table_name_35 WHERE opponent = "st. louis blues" AND game < 58
What is the February number of the game played against the St. Louis Blues with a game number less than 58?
CREATE TABLE table_name_35 (february INTEGER, opponent VARCHAR, game VARCHAR)
SELECT role_code FROM Employees GROUP BY role_code ORDER BY COUNT(*) LIMIT 1
Show the role code with the least employees.
CREATE TABLE Employees (role_code VARCHAR)
SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'
Which dogs are owned by someone who lives in Virginia? List the owner's first name and the dog's name.
CREATE TABLE Dogs (name VARCHAR, owner_id VARCHAR); CREATE TABLE Owners (first_name VARCHAR, owner_id VARCHAR, state VARCHAR)
SELECT status FROM table_name_32 WHERE artist = "freddie jackson"
What Status does Freddie Jackson have?
CREATE TABLE table_name_32 (status VARCHAR, artist VARCHAR)
SELECT nationality FROM table_1013129_1 WHERE nhl_team = "New York Islanders"
The nhl team new york islanders is what nationality?
CREATE TABLE table_1013129_1 (nationality VARCHAR, nhl_team VARCHAR)
SELECT no FROM table_26202847_6 WHERE outcome = "Winner" AND surface = "Hard (i)"
Where the outcome is Winner and surface is Hard (i), what is the No.?
CREATE TABLE table_26202847_6 (no VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT circuit FROM table_name_63 WHERE winning_driver = "eliseo salazar" AND name = "international trophy"
What circuit was the race named international trophy raced at by the winning driver eliseo salazar?
CREATE TABLE table_name_63 (circuit VARCHAR, winning_driver VARCHAR, name VARCHAR)
SELECT AVG(week) FROM table_name_11 WHERE game_site = "shea stadium" AND date = "1979-12-09"
What average week has shea stadium as the game site, and 1979-12-09 as the date?
CREATE TABLE table_name_11 (week INTEGER, game_site VARCHAR, date VARCHAR)
SELECT COUNT(number_of_fixtures) FROM table_27973624_1 WHERE new_entries_this_round = "none"
How many times is the new entries this round is none?
CREATE TABLE table_27973624_1 (number_of_fixtures VARCHAR, new_entries_this_round VARCHAR)
SELECT SUM(city_area_km_2__) FROM table_name_32 WHERE district = "bahawalnagar district" AND city_population__2009_ > 134 OFFSET 936
What is the sum of the area for the bahawalnagar district with a population more than 134,936?
CREATE TABLE table_name_32 (city_area_km_2__ INTEGER, district VARCHAR, city_population__2009_ VARCHAR)
SELECT venue FROM table_name_33 WHERE date = "20 november 2002"
What is the venue of the game on 20 November 2002?
CREATE TABLE table_name_33 (venue VARCHAR, date VARCHAR)
SELECT points FROM table_1166259_1 WHERE lost = 26
How many points are there when the lost is 26?
CREATE TABLE table_1166259_1 (points VARCHAR, lost VARCHAR)
SELECT content FROM table_name_54 WHERE sign = "g e"
Name the content for sign of g e
CREATE TABLE table_name_54 (content VARCHAR, sign VARCHAR)
SELECT name FROM stadium WHERE name LIKE "%Bank%"
Which stadium name contains the substring "Bank"?
CREATE TABLE stadium (name VARCHAR)
SELECT MIN(wins) FROM table_name_82 WHERE against = 1348 AND draws < 0
What are the amount of wins when the draws are less than 0 and the against is 1348?
CREATE TABLE table_name_82 (wins INTEGER, against VARCHAR, draws VARCHAR)
SELECT total_votes FROM table_19763199_3 WHERE artist = "Carlos Ferrer EAI"
How many votes does Carlos Ferrer Eai have?
CREATE TABLE table_19763199_3 (total_votes VARCHAR, artist VARCHAR)
SELECT AVG(amount_due) FROM payments
What is the average amount due for all the payments?
CREATE TABLE payments (amount_due INTEGER)
SELECT implementation FROM table_1206114_2 WHERE netflow_version = "v5, v8, v9, IPFIX"
What is the implementation when the netflow version is v5, v8, v9, ipfix?
CREATE TABLE table_1206114_2 (implementation VARCHAR, netflow_version VARCHAR)
SELECT MAX(week) FROM table_name_69 WHERE game_site = "verizon wireless arena" AND result = "w 59–42"
What is the highest week when the game site was Verizon Wireless Arena, and the result was w 59–42?
CREATE TABLE table_name_69 (week INTEGER, game_site VARCHAR, result VARCHAR)
SELECT MIN(avg_g) FROM table_name_99 WHERE long < 0
What is the lowest Avg/G with a Long less than 0?
CREATE TABLE table_name_99 (avg_g INTEGER, long INTEGER)
SELECT pole_position FROM table_19908651_3 WHERE winning_driver = "Paul Tracy" AND race_name = "ITT Automotive Grand Prix of Detroit"
Who was at the pole position in the ITT Automotive Grand Prix of Detroit, won by Paul Tracy?
CREATE TABLE table_19908651_3 (pole_position VARCHAR, winning_driver VARCHAR, race_name VARCHAR)
SELECT format FROM table_name_21 WHERE catalog = "mobil 1"
What format was used for Mobil 1?
CREATE TABLE table_name_21 (format VARCHAR, catalog VARCHAR)
SELECT result FROM table_name_58 WHERE date = "june 11, 1994" AND venue = "miami, united states"
What is Result, when Date is "June 11, 1994", and when Venue is "Miami, United States"?
CREATE TABLE table_name_58 (result VARCHAR, date VARCHAR, venue VARCHAR)
SELECT home_captain FROM table_name_34 WHERE venue = "sydney cricket ground"
Who was the home captain at Sydney Cricket Ground?
CREATE TABLE table_name_34 (home_captain VARCHAR, venue VARCHAR)
SELECT longitude_အင်္သာ FROM table_name_98 WHERE latin = "taurus"
What is the longitude of Taurus?
CREATE TABLE table_name_98 (longitude_အင်္သာ VARCHAR, latin VARCHAR)
SELECT date FROM table_13259019_2 WHERE game_site = "Milwaukee County Stadium"
On what day was the team playing at milwaukee county stadium?
CREATE TABLE table_13259019_2 (date VARCHAR, game_site VARCHAR)
SELECT score FROM table_name_99 WHERE opponent = "vancouver canucks"
What was the score when the Rangers were playing against the Vancouver Canucks?
CREATE TABLE table_name_99 (score VARCHAR, opponent VARCHAR)
SELECT status FROM table_18821196_1 WHERE weekly_schedule = "Monday to Thursday @ 11:00 pm"
What is every status with a weekly schedule of Monday to Thursday @ 11:00 pm?
CREATE TABLE table_18821196_1 (status VARCHAR, weekly_schedule VARCHAR)
SELECT AVG(grid) FROM table_name_45 WHERE bike = "honda cbr1000rr" AND laps = 18 AND time = "+1:12.884"
What is the average Grid for the honda cbr1000rr, with 18 laps and a time of +1:12.884?
CREATE TABLE table_name_45 (grid INTEGER, time VARCHAR, bike VARCHAR, laps VARCHAR)
SELECT authority FROM table_25316812_1 WHERE budget_limit__£m_ = "900"
What is the authority who set the budget limit (£m) at 900?
CREATE TABLE table_25316812_1 (authority VARCHAR, budget_limit__£m_ VARCHAR)
SELECT MIN(week) FROM table_name_37 WHERE attendance = "60,894"
Tell me the lowest week for attendance of 60,894
CREATE TABLE table_name_37 (week INTEGER, attendance VARCHAR)
SELECT record FROM table_name_26 WHERE event = "strikeforce: barnett vs. cormier"
What was strikeforce: barnett vs. cormier's record?
CREATE TABLE table_name_26 (record VARCHAR, event VARCHAR)
SELECT loss FROM table_name_7 WHERE record = "79-49"
Which loss had a record of 79-49?
CREATE TABLE table_name_7 (loss VARCHAR, record VARCHAR)
SELECT SUM(capacity) FROM table_name_63 WHERE school = "windlehurst school" AND ofsted < 131889
Which Capacity has a School of windlehurst school, and an Ofsted smaller than 131889?
CREATE TABLE table_name_63 (capacity INTEGER, school VARCHAR, ofsted VARCHAR)
SELECT player FROM table_name_69 WHERE score = 68 - 68 - 75 - 74 = 285
Name the player for 68-68-75-74=285
CREATE TABLE table_name_69 (player VARCHAR, score VARCHAR)
SELECT weekly_schedule FROM table_18821196_1 WHERE tv_network_s_ = "Viasat 4"
What is every weekly schedule of TV network Viasat 4?
CREATE TABLE table_18821196_1 (weekly_schedule VARCHAR, tv_network_s_ VARCHAR)
SELECT COUNT(attendance) FROM table_name_43 WHERE date = "october 20, 1946" AND week < 4
Name the total number of attendance for october 20, 1946 with week less than 4
CREATE TABLE table_name_43 (attendance VARCHAR, date VARCHAR, week VARCHAR)
SELECT MAX(attendance) FROM table_name_69 WHERE date = "16 august 2008" AND home = "deportes savio"
What is the maximum number of people in attendance on 16 August 2008 when the home team was Deportes Savio?
CREATE TABLE table_name_69 (attendance INTEGER, date VARCHAR, home VARCHAR)
SELECT MIN(total_region) FROM table_name_75 WHERE year > 2001 AND broadsound > 6 OFFSET 843
What is the lowest Total Region that has a Year after 2001, and a Broadsound greater than 6,843?
CREATE TABLE table_name_75 (total_region INTEGER, year VARCHAR, broadsound VARCHAR)
SELECT name, salary FROM Employee WHERE eid = 242518965
What is the name and salary for employee with id 242518965?
CREATE TABLE Employee (name VARCHAR, salary VARCHAR, eid VARCHAR)
SELECT AVG(laps) FROM table_name_32 WHERE driver = "ralph firman" AND grid > 19
What is the average laps for ralph firman with a grid of over 19?
CREATE TABLE table_name_32 (laps INTEGER, driver VARCHAR, grid VARCHAR)