question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the lowest number of laps for ryan newman with over 96 points, a cur number under 24,
CREATE TABLE table_name_49 (laps INTEGER, driver VARCHAR, points VARCHAR, car__number VARCHAR)
SELECT MIN(laps) FROM table_name_49 WHERE points > 96 AND car__number < 24 AND driver = "ryan newman"
What was Liu Limin's time in heat 4?
CREATE TABLE table_name_32 (time VARCHAR, heat VARCHAR, name VARCHAR)
SELECT time FROM table_name_32 WHERE heat = 4 AND name = "liu limin"
What is the total number of Points that Peter Whitehead earned in a Ferrari 125?
CREATE TABLE table_name_42 (points INTEGER, entrant VARCHAR, chassis VARCHAR)
SELECT SUM(points) FROM table_name_42 WHERE entrant = "peter whitehead" AND chassis = "ferrari 125"
Who as the candidate when the result - % was 2.9%?
CREATE TABLE table_25818630_2 (candidate VARCHAR, result____percentage VARCHAR)
SELECT candidate FROM table_25818630_2 WHERE result____percentage = "2.9%"
Who is the driver of the Chevrolet engine that is sponsored by godaddy.com?
CREATE TABLE table_2503102_1 (driver_s_ VARCHAR, engine VARCHAR, car_sponsor_s_ VARCHAR)
SELECT driver_s_ FROM table_2503102_1 WHERE engine = "Chevrolet" AND car_sponsor_s_ = "GoDaddy.com"
What is the name of the Leading scorer when the Score was 89–102?
CREATE TABLE table_name_59 (leading_scorer VARCHAR, score VARCHAR)
SELECT leading_scorer FROM table_name_59 WHERE score = "89–102"
When was J.P. Viernes' last performance?
CREATE TABLE table_name_26 (last_performance VARCHAR, name VARCHAR)
SELECT last_performance FROM table_name_26 WHERE name = "j.p. viernes"
What is the Home team of Tie no 2?
CREATE TABLE table_name_20 (home_team VARCHAR, tie_no VARCHAR)
SELECT home_team FROM table_name_20 WHERE tie_no = "2"
What is the Rank that has a Venue of bellerive oval , hobart, and a Margin of 115 runs?
CREATE TABLE table_name_31 (rank VARCHAR, venue VARCHAR, margin VARCHAR)
SELECT rank FROM table_name_31 WHERE venue = "bellerive oval , hobart" AND margin = "115 runs"
What is the highest number of stories in homes with a height of 42 m.?
CREATE TABLE table_name_7 (stories INTEGER, height VARCHAR)
SELECT MAX(stories) FROM table_name_7 WHERE height = "42 m."
What was the result of the tournament in 2001?
CREATE TABLE table_name_67 (result VARCHAR, year VARCHAR)
SELECT result FROM table_name_67 WHERE year = 2001
What was the margin in 2001 at the McDonald's LPGA Championship?
CREATE TABLE table_name_88 (margin VARCHAR, year VARCHAR, championship VARCHAR)
SELECT margin FROM table_name_88 WHERE year = 2001 AND championship = "mcdonald's lpga championship"
What is the Average annual output for Culligran power station with an Installed capacity less than 19?
CREATE TABLE table_name_12 (average_annual_output__million_kwh_ INTEGER, name VARCHAR, installed_capacity__megawatts_ VARCHAR)
SELECT AVG(average_annual_output__million_kwh_) FROM table_name_12 WHERE name = "culligran" AND installed_capacity__megawatts_ < 19
What was the airdate of k0120?
CREATE TABLE table_2618113_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT original_air_date FROM table_2618113_1 WHERE production_code = "K0120"
What is the Host of the Show with a Market of New York?
CREATE TABLE table_name_78 (host_s_ VARCHAR, market VARCHAR)
SELECT host_s_ FROM table_name_78 WHERE market = "new york"
Tell me the average wins for class of 50cc and rank of 8th
CREATE TABLE table_name_47 (wins INTEGER, class VARCHAR, rank VARCHAR)
SELECT AVG(wins) FROM table_name_47 WHERE class = "50cc" AND rank = "8th"
Name the sales with peak position of #24
CREATE TABLE table_name_7 (sales VARCHAR, peak_position VARCHAR)
SELECT sales FROM table_name_7 WHERE peak_position = "#24"
Who was the lyricist for the song with music directed by madan mohan kohli?
CREATE TABLE table_2528382_1 (lyricist VARCHAR, music_director VARCHAR)
SELECT lyricist FROM table_2528382_1 WHERE music_director = "Madan Mohan Kohli"
Name the average for rank of 3
CREATE TABLE table_27496841_3 (average VARCHAR, rank_by_average VARCHAR)
SELECT average FROM table_27496841_3 WHERE rank_by_average = 3
Around what time frame release a Sampling Rate of 12-bit 40khz?
CREATE TABLE table_name_63 (release_date INTEGER, sampling_rate VARCHAR)
SELECT SUM(release_date) FROM table_name_63 WHERE sampling_rate = "12-bit 40khz"
What tournament had an extra of 3:06.94 s?
CREATE TABLE table_name_60 (tournament VARCHAR, extra VARCHAR)
SELECT tournament FROM table_name_60 WHERE extra = "3:06.94 s"
Which Artist has an English translation of all this is music?
CREATE TABLE table_name_92 (artist VARCHAR, english_translation VARCHAR)
SELECT artist FROM table_name_92 WHERE english_translation = "all this is music"
What was Lloyd Mangrum's Score?
CREATE TABLE table_name_63 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_63 WHERE player = "lloyd mangrum"
What is the position listed for the team the Philadelphia Flyers?
CREATE TABLE table_1213511_3 (position VARCHAR, nhl_team VARCHAR)
SELECT position FROM table_1213511_3 WHERE nhl_team = "Philadelphia Flyers"
What is the average PUBS 11 value in Mumbai, which has a 07-11 totals less than 1025?
CREATE TABLE table_name_52 (pubs_2011 INTEGER, location VARCHAR, totals_07_11 VARCHAR)
SELECT AVG(pubs_2011) FROM table_name_52 WHERE location = "mumbai" AND totals_07_11 < 1025
What are the outcomes of the last 5 meetings where the overall record is UM, 2-1?
CREATE TABLE table_16201038_5 (last_5_meetings VARCHAR, overall_record VARCHAR)
SELECT last_5_meetings FROM table_16201038_5 WHERE overall_record = "UM, 2-1"
What is the average Pick when the round was less than 6 for kenneth green?
CREATE TABLE table_name_7 (pick INTEGER, round VARCHAR, player VARCHAR)
SELECT AVG(pick) FROM table_name_7 WHERE round < 6 AND player = "kenneth green"
Name the family/families uk17
CREATE TABLE table_19897294_5 (family_families VARCHAR, no_overall VARCHAR)
SELECT family_families FROM table_19897294_5 WHERE no_overall = "UK17"
what's the first elected with district being florida 7
CREATE TABLE table_1341604_10 (first_elected VARCHAR, district VARCHAR)
SELECT first_elected FROM table_1341604_10 WHERE district = "Florida 7"
Name the high assists for 4-3
CREATE TABLE table_23281862_5 (high_assists VARCHAR, record VARCHAR)
SELECT high_assists FROM table_23281862_5 WHERE record = "4-3"
What was the played with 38 tries?
CREATE TABLE table_name_55 (played VARCHAR, tries_for VARCHAR)
SELECT played FROM table_name_55 WHERE tries_for = "38"
How many episodes in the season are episode 142 in the series?
CREATE TABLE table_25604014_8 (no_in_season VARCHAR, no_in_series VARCHAR)
SELECT COUNT(no_in_season) FROM table_25604014_8 WHERE no_in_series = 142
From writer Max Ehrlich, what is the total amount of series numbers?
CREATE TABLE table_19852975_4 (series__number VARCHAR, writer_s_ VARCHAR)
SELECT COUNT(series__number) FROM table_19852975_4 WHERE writer_s_ = "Max Ehrlich"
How many casualties were from the IED circumstance?
CREATE TABLE table_name_48 (casualties VARCHAR, circumstances VARCHAR)
SELECT casualties FROM table_name_48 WHERE circumstances = "ied"
What years have a total of 139?
CREATE TABLE table_14962287_2 (years VARCHAR, total VARCHAR)
SELECT years FROM table_14962287_2 WHERE total = "139"
What is the heat number at 7.63, and a reaction less than 0.229?
CREATE TABLE table_name_4 (heat VARCHAR, mark VARCHAR, react VARCHAR)
SELECT COUNT(heat) FROM table_name_4 WHERE mark = "7.63" AND react < 0.229
Which week's game was attended by 54,015 people?
CREATE TABLE table_name_34 (week VARCHAR, attendance VARCHAR)
SELECT COUNT(week) FROM table_name_34 WHERE attendance = 54 OFFSET 015
How many communes have the chief town as dijon?
CREATE TABLE table_1175233_1 (communes VARCHAR, chief_town VARCHAR)
SELECT COUNT(communes) FROM table_1175233_1 WHERE chief_town = "Dijon"
How many insurgents have 2003 as a period?
CREATE TABLE table_21636599_1 (insurgents VARCHAR, period VARCHAR)
SELECT COUNT(insurgents) FROM table_21636599_1 WHERE period = "2003"
What was the score of the marco island tournament match when Kathleen Horvath won runner-up?
CREATE TABLE table_name_91 (score VARCHAR, outcome VARCHAR, tournament VARCHAR)
SELECT score FROM table_name_91 WHERE outcome = "runner-up" AND tournament = "marco island"
Who wrote the teleplay for the episode directed by Tim Robbins?
CREATE TABLE table_26914076_4 (teleplay_by VARCHAR, directed_by VARCHAR)
SELECT teleplay_by FROM table_26914076_4 WHERE directed_by = "Tim Robbins"
Which Country has a Pinnacle height of metres (ft) and a Name of azeri tv tower?
CREATE TABLE table_name_37 (country VARCHAR, pinnacle_height VARCHAR, name VARCHAR)
SELECT country FROM table_name_37 WHERE pinnacle_height = "metres (ft)" AND name = "azeri tv tower"
What is the name of the person with a type of transfer, and a Transfer fee of €8m + €2m in variables?
CREATE TABLE table_name_64 (name VARCHAR, type VARCHAR, transfer_fee VARCHAR)
SELECT name FROM table_name_64 WHERE type = "transfer" AND transfer_fee = "€8m + €2m in variables"
Which Player has position of power forward and School/Club Team of Depaul?
CREATE TABLE table_name_85 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT player FROM table_name_85 WHERE position = "power forward" AND school_club_team = "depaul"
What was the result of the games VS the Lions?
CREATE TABLE table_24123547_2 (final_score VARCHAR, opponent VARCHAR)
SELECT final_score FROM table_24123547_2 WHERE opponent = "Lions"
What nationality was peter slamiar?
CREATE TABLE table_2886617_6 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_2886617_6 WHERE player = "Peter Slamiar"
What school is in Ligonier?
CREATE TABLE table_name_11 (school VARCHAR, location VARCHAR)
SELECT school FROM table_name_11 WHERE location = "ligonier"
What is the Road Team of Game 3?
CREATE TABLE table_name_64 (road_team VARCHAR, game VARCHAR)
SELECT road_team FROM table_name_64 WHERE game = "game 3"
What's the finishes for Lambros Athanassoulas having 0 podiums and 0 stage wins?
CREATE TABLE table_name_57 (finishes INTEGER, driver VARCHAR, podiums VARCHAR, stage_wins VARCHAR)
SELECT SUM(finishes) FROM table_name_57 WHERE podiums = 0 AND stage_wins = 0 AND driver = "lambros athanassoulas"
When was the game played on Manuka Oval?
CREATE TABLE table_16388398_1 (date VARCHAR, ground VARCHAR)
SELECT date FROM table_16388398_1 WHERE ground = "Manuka Oval"
What is the operator name when the distance is 3105km?
CREATE TABLE table_26745820_1 (operator_name VARCHAR, distance VARCHAR)
SELECT operator_name FROM table_26745820_1 WHERE distance = "3105km"
In Limerick County, what is the Rank with a Total larger than 12 and Tipperary as the Opposition?
CREATE TABLE table_name_48 (rank INTEGER, total VARCHAR, opposition VARCHAR, county VARCHAR)
SELECT AVG(rank) FROM table_name_48 WHERE opposition = "tipperary" AND county = "limerick" AND total > 12
Name the santee sisseton for wičháša
CREATE TABLE table_1499774_5 (santee_sisseton VARCHAR, yankton_yanktonai VARCHAR)
SELECT santee_sisseton FROM table_1499774_5 WHERE yankton_yanktonai = "wičháša"
What was the record at the game against the Indians with a loss of Camacho (1-4)?
CREATE TABLE table_name_37 (record VARCHAR, opponent VARCHAR, loss VARCHAR)
SELECT record FROM table_name_37 WHERE opponent = "indians" AND loss = "camacho (1-4)"
What are the year(s) of manufacture for railway number(s) 26 (ii) …63 (ii) , 188–193?
CREATE TABLE table_name_35 (year_s__of_manufacture VARCHAR, railway_number_s_ VARCHAR)
SELECT year_s__of_manufacture FROM table_name_35 WHERE railway_number_s_ = "26 (ii) …63 (ii) , 188–193"
In what round was Clyde the opponent?
CREATE TABLE table_name_28 (round VARCHAR, opponent VARCHAR)
SELECT round FROM table_name_28 WHERE opponent = "clyde"
List document id of documents status is done and document type is Paper and the document is shipped by shipping agent named USPS.
CREATE TABLE Ref_Shipping_Agents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR)
SELECT document_id FROM Documents WHERE document_status_code = "done" AND document_type_code = "Paper" INTERSECT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = "USPS"
What is the total number of years that an entrant had more than 0 points?
CREATE TABLE table_name_87 (year VARCHAR, points INTEGER)
SELECT COUNT(year) FROM table_name_87 WHERE points > 0
in 2007, what is the avg finish that had a start less than 1?
CREATE TABLE table_name_91 (avg_finish INTEGER, year VARCHAR, starts VARCHAR)
SELECT SUM(avg_finish) FROM table_name_91 WHERE year = 2007 AND starts < 1
What is the player listed when the score is 68-70-68-69=275
CREATE TABLE table_28498999_5 (player VARCHAR, score VARCHAR)
SELECT player FROM table_28498999_5 WHERE score = 68 - 70 - 68 - 69 = 275
If the total points is 50.5, what is the total number of dances?
CREATE TABLE table_19744915_14 (number_of_dances VARCHAR, total_points VARCHAR)
SELECT COUNT(number_of_dances) FROM table_19744915_14 WHERE total_points = "50.5"
What are the shot percentages for teams that played in switzerland?
CREATE TABLE table_1644876_2 (shot__percentage VARCHAR, locale VARCHAR, Switzerland VARCHAR)
SELECT shot__percentage FROM table_1644876_2 WHERE locale = Switzerland
how many airport with rank being 4
CREATE TABLE table_13836704_9 (airport VARCHAR, rank VARCHAR)
SELECT COUNT(airport) FROM table_13836704_9 WHERE rank = 4
What is the score when the attendance is less than 83 and Raunds Town is the away team?
CREATE TABLE table_name_91 (score VARCHAR, attendance VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_91 WHERE attendance < 83 AND away_team = "raunds town"
How many total runners had jockeys of Olivier Peslier with placings under 2?
CREATE TABLE table_name_81 (runners INTEGER, jockey VARCHAR, placing VARCHAR)
SELECT SUM(runners) FROM table_name_81 WHERE jockey = "olivier peslier" AND placing < 2
Name the Player which has a To par of –6?
CREATE TABLE table_name_99 (player VARCHAR, to_par VARCHAR)
SELECT player FROM table_name_99 WHERE to_par = "–6"
How many distinct kinds of camera lenses are used to take photos of mountains in the country 'Ethiopia'?
CREATE TABLE mountain (id VARCHAR, country VARCHAR); CREATE TABLE photos (camera_lens_id VARCHAR, mountain_id VARCHAR)
SELECT COUNT(DISTINCT T2.camera_lens_id) FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.country = 'Ethiopia'
What is the smallest Asian rank?
CREATE TABLE table_2248784_4 (rank_asia INTEGER)
SELECT MIN(rank_asia) FROM table_2248784_4
What was the tournament for the week of August 4?
CREATE TABLE table_name_14 (tournament VARCHAR, week VARCHAR)
SELECT tournament FROM table_name_14 WHERE week = "august 4"
Who was the Finalist on a Hard Surface with Winner Serena Williams 6–1, 6–7(7), 6–3?
CREATE TABLE table_name_34 (finalists VARCHAR, surface VARCHAR, winners VARCHAR)
SELECT finalists FROM table_name_34 WHERE surface = "hard" AND winners = "serena williams 6–1, 6–7(7), 6–3"
What is the highest points value for the 500cc class in years after 1962 with 0 wins?
CREATE TABLE table_name_71 (points INTEGER, wins VARCHAR, class VARCHAR, year VARCHAR)
SELECT MAX(points) FROM table_name_71 WHERE class = "500cc" AND year > 1962 AND wins < 0
Who is the player from the United States with a 4 to par and a 74-73-72-69=288 score?
CREATE TABLE table_name_20 (player VARCHAR, country VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT player FROM table_name_20 WHERE country = "united states" AND to_par = 4 AND score = 74 - 73 - 72 - 69 = 288
What is the Catalog-Nr of the Epic Label Stereo LP named For Little Ones?
CREATE TABLE table_name_41 (catalog_nr VARCHAR, title VARCHAR, format VARCHAR, label VARCHAR)
SELECT catalog_nr FROM table_name_41 WHERE format = "stereo lp" AND label = "epic" AND title = "for little ones"
Which tyres received 8 points?
CREATE TABLE table_name_56 (tyres VARCHAR, points VARCHAR)
SELECT tyres FROM table_name_56 WHERE points = 8
What team were the Bulls hosted by on December 7?
CREATE TABLE table_11960610_7 (team VARCHAR, date VARCHAR)
SELECT team FROM table_11960610_7 WHERE date = "December 7"
What is the name of the partner who played in the final against Lucas Arnold Ker Martín García?
CREATE TABLE table_name_39 (partner VARCHAR, opponents_in_final VARCHAR)
SELECT partner FROM table_name_39 WHERE opponents_in_final = "lucas arnold ker martín garcía"
What date was game 78 played on?
CREATE TABLE table_23248967_10 (date VARCHAR, game VARCHAR)
SELECT date FROM table_23248967_10 WHERE game = 78
What is the name of the mill located on Anawan Street with a reference number larger than 8?
CREATE TABLE table_name_76 (name VARCHAR, ref_number VARCHAR, location VARCHAR)
SELECT name FROM table_name_76 WHERE ref_number > 8 AND location = "anawan street"
Which Length has a Country of soviet union, and a Year larger than 1975?
CREATE TABLE table_name_52 (length VARCHAR, country VARCHAR, year VARCHAR)
SELECT length FROM table_name_52 WHERE country = "soviet union" AND year > 1975
Which nominee was nominated in the Outstanding Director of a Musical category?
CREATE TABLE table_name_17 (nominee VARCHAR, category VARCHAR)
SELECT nominee FROM table_name_17 WHERE category = "outstanding director of a musical"
What team belongs to Delmar?
CREATE TABLE table_name_36 (team VARCHAR, school VARCHAR)
SELECT team FROM table_name_36 WHERE school = "delmar"
What is the highest number of bronze medals that israel acheived when they got less than 3 silver medals?
CREATE TABLE table_name_29 (bronze INTEGER, nation VARCHAR, silver VARCHAR)
SELECT MAX(bronze) FROM table_name_29 WHERE nation = "israel" AND silver < 3
What was the reward when immunity went to martin and finish is 13th voted out 8th jury member day 46?
CREATE TABLE table_25016824_2 (reward VARCHAR, immunity VARCHAR, finish VARCHAR)
SELECT reward FROM table_25016824_2 WHERE immunity = "Martin" AND finish = "13th voted Out 8th Jury Member Day 46"
What are all the distinct asset models?
CREATE TABLE Assets (asset_model VARCHAR)
SELECT DISTINCT asset_model FROM Assets
What year was Larry combest elected
CREATE TABLE table_1341472_45 (first_elected VARCHAR, incumbent VARCHAR)
SELECT first_elected FROM table_1341472_45 WHERE incumbent = "Larry Combest"
What date was the game that was attended by 69,024?
CREATE TABLE table_name_52 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_52 WHERE attendance = "69,024"
What is the whole of Points that has a Drawn smaller than 1?
CREATE TABLE table_name_14 (points INTEGER, drawn INTEGER)
SELECT SUM(points) FROM table_name_14 WHERE drawn < 1
What were the goals when the caps were set at 48?
CREATE TABLE table_name_66 (goals VARCHAR, caps VARCHAR)
SELECT goals FROM table_name_66 WHERE caps = 48
How many episodes aired on february 13, 1954?
CREATE TABLE table_15824796_3 (title VARCHAR, original_air_date VARCHAR)
SELECT COUNT(title) FROM table_15824796_3 WHERE original_air_date = "February 13, 1954"
List the contestant numbers and names, ordered by contestant name descending.
CREATE TABLE contestants (contestant_number VARCHAR, contestant_name VARCHAR)
SELECT contestant_number, contestant_name FROM contestants ORDER BY contestant_name DESC
Was the game home or away when the record is 6-12?
CREATE TABLE table_name_23 (home___away VARCHAR, record VARCHAR)
SELECT home___away FROM table_name_23 WHERE record = "6-12"
Which school players have a number of 255
CREATE TABLE table_2781227_10 (college_junior_club_team VARCHAR, pick VARCHAR)
SELECT college_junior_club_team FROM table_2781227_10 WHERE pick = 255
WHAT IS THE LOSS WITH AN AVERAGE OF 89.9?
CREATE TABLE table_name_18 (loss INTEGER, avg_g VARCHAR)
SELECT SUM(loss) FROM table_name_18 WHERE avg_g = 89.9
When did the 4th finisher enter?
CREATE TABLE table_14345690_2 (entered VARCHAR, finished VARCHAR)
SELECT entered FROM table_14345690_2 WHERE finished = "4th"
What left office date happened in Washington?
CREATE TABLE table_name_94 (Left VARCHAR, location VARCHAR)
SELECT Left AS office FROM table_name_94 WHERE location = "washington"
Which player plays for australia?
CREATE TABLE table_name_2 (player VARCHAR, country VARCHAR)
SELECT player FROM table_name_2 WHERE country = "australia"
What Status does Freddie Jackson have?
CREATE TABLE table_name_32 (status VARCHAR, artist VARCHAR)
SELECT status FROM table_name_32 WHERE artist = "freddie jackson"
What are the student ids of students who don't have any allergies?
CREATE TABLE Has_allergy (StuID VARCHAR); CREATE TABLE Student (StuID VARCHAR)
SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy
Where were 16 matches played?
CREATE TABLE table_name_36 (played_in VARCHAR, matches VARCHAR)
SELECT played_in FROM table_name_36 WHERE matches = "16"
What are all the report for the Belgian Grand Prix?
CREATE TABLE table_26258348_4 (report VARCHAR, grand_prix VARCHAR)
SELECT report FROM table_26258348_4 WHERE grand_prix = "Belgian grand_prix"