answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT COUNT(event) FROM table_22083044_2 WHERE fastest_lap = "Tim Macrow" AND pole_position = "Joey Foster"
How many times did Tim Macrow and Joey Foster both got the fastest lap and pole position respectively?
CREATE TABLE table_22083044_2 (event VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)
SELECT attendance FROM table_name_58 WHERE loss = "ponson (1-5)"
What was the attendance that had a loss of Ponson (1-5)?
CREATE TABLE table_name_58 (attendance VARCHAR, loss VARCHAR)
SELECT COUNT(total_goals) FROM table_name_1 WHERE player = "stan mortensen" AND qualifying_goals > 3
What is the total number of Total Goals scored by Stan Mortensen where the Qualifying Goals is greater than 3?
CREATE TABLE table_name_1 (total_goals VARCHAR, player VARCHAR, qualifying_goals VARCHAR)
SELECT MAX(silver) FROM table_name_71 WHERE rank = "19" AND gold > 0
Which Silver is the highest one that has a Rank of 19, and a Gold larger than 0?
CREATE TABLE table_name_71 (silver INTEGER, rank VARCHAR, gold VARCHAR)
SELECT original_airdate FROM table_2501754_3 WHERE prod_code = "ICEB786E"
List the 1st air date for the episode with a iceb786e production code.
CREATE TABLE table_2501754_3 (original_airdate VARCHAR, prod_code VARCHAR)
SELECT COUNT(prominence__m_) FROM table_18946749_4 WHERE rank = 5
How many values of prominence(m) occur at rank 5?
CREATE TABLE table_18946749_4 (prominence__m_ VARCHAR, rank VARCHAR)
SELECT date FROM table_name_89 WHERE week = 1
When has a Week of 1?
CREATE TABLE table_name_89 (date VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_7 WHERE site = "legion field • birmingham, al"
Who was the opponent when they played at the legion field • birmingham, al site?
CREATE TABLE table_name_7 (opponent VARCHAR, site VARCHAR)
SELECT placement_in_miss_universe FROM table_name_72 WHERE delegate = "janine mari raymundo tugonon"
Which Placement in Miss Universe has a Delegate of janine mari raymundo tugonon?
CREATE TABLE table_name_72 (placement_in_miss_universe VARCHAR, delegate VARCHAR)
SELECT rank FROM table_name_4 WHERE year > 1994
What rank is later than 1994?
CREATE TABLE table_name_4 (rank VARCHAR, year INTEGER)
SELECT Name FROM country WHERE Languages <> "German"
List the names of countries whose language is not "German".
CREATE TABLE country (Name VARCHAR, Languages VARCHAR)
SELECT COUNT(attendance) FROM table_name_80 WHERE opponent = "twins"
How many people attended when opponent was twins?
CREATE TABLE table_name_80 (attendance VARCHAR, opponent VARCHAR)
SELECT tournament FROM table_name_12 WHERE 2010 = "1r" AND 2011 = "1r"
what is the tournament with the performance in 2010 and 2011 is 1r?
CREATE TABLE table_name_12 (tournament VARCHAR)
SELECT record FROM table_name_86 WHERE date = "january 18"
What was the record after the January 18 game?
CREATE TABLE table_name_86 (record VARCHAR, date VARCHAR)
SELECT internet_explorer FROM table_name_97 WHERE chrome = "24.91%"
What percentage of browsers were using Internet Explorer during the period in which 24.91% were using Chrome?
CREATE TABLE table_name_97 (internet_explorer VARCHAR, chrome VARCHAR)
SELECT COUNT(year) FROM table_name_86 WHERE team = "newman/haas racing" AND rank = "1st"
How many years did Team Newman/Haas Racing receive a 1st place ranking?
CREATE TABLE table_name_86 (year VARCHAR, team VARCHAR, rank VARCHAR)
SELECT MIN(car__number) FROM table_name_22 WHERE sponsor = "ups" AND season < 2001
What is the lowest car number sponsored by UPS before 2001?
CREATE TABLE table_name_22 (car__number INTEGER, sponsor VARCHAR, season VARCHAR)
SELECT MIN(round) FROM table_29033869_3 WHERE result__includes_margin_ = "Lost by 36 points"
What is the earliest round where collingswood lost by 36 points?
CREATE TABLE table_29033869_3 (round INTEGER, result__includes_margin_ VARCHAR)
SELECT T2.Author, T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID
Show the authors of submissions and the acceptance results of their submissions.
CREATE TABLE acceptance (Result VARCHAR, Submission_ID VARCHAR); CREATE TABLE submission (Author VARCHAR, Submission_ID VARCHAR)
SELECT product_name, product_description FROM products_for_hire WHERE product_type_code = 'Cutlery' AND daily_hire_cost < 20
What are the names and descriptions of the products that are of 'Cutlery' type and have daily hire cost lower than 20?
CREATE TABLE products_for_hire (product_name VARCHAR, product_description VARCHAR, product_type_code VARCHAR, daily_hire_cost VARCHAR)
SELECT place FROM table_name_31 WHERE player = "bryce molder"
what is the place for bryce molder?
CREATE TABLE table_name_31 (place VARCHAR, player VARCHAR)
SELECT lead FROM table_name_61 WHERE date_s__conducted = "5 may 2011"
On 5 May 2011, what was the lead percentage?
CREATE TABLE table_name_61 (lead VARCHAR, date_s__conducted VARCHAR)
SELECT MAX(weeks_in_top_10) FROM table_26400041_2 WHERE peak = 9
if the peak is 9, how many weeks was it in the top 10?
CREATE TABLE table_26400041_2 (weeks_in_top_10 INTEGER, peak VARCHAR)
SELECT championship FROM table_19047_2 WHERE score_in_the_final = "4–6, 7–5, 6–2"
What tournament did she win with a final score of 4–6, 7–5, 6–2?
CREATE TABLE table_19047_2 (championship VARCHAR, score_in_the_final VARCHAR)
SELECT event FROM table_name_54 WHERE record = "3-0"
What event did tim Hague have a record of 3-0?
CREATE TABLE table_name_54 (event VARCHAR, record VARCHAR)
SELECT COUNT(field_goals) FROM table_24906653_5 WHERE points = 171
List the number of long range shors where the score is 171.
CREATE TABLE table_24906653_5 (field_goals VARCHAR, points VARCHAR)
SELECT no_in_series FROM table_17482534_1 WHERE production_code = "5016/5017"
What number in the series are the episodes with production code 5016/5017?
CREATE TABLE table_17482534_1 (no_in_series VARCHAR, production_code VARCHAR)
SELECT score FROM table_name_68 WHERE venue = "hampden park, glasgow"
What was the score in Hampden Park, Glasgow?
CREATE TABLE table_name_68 (score VARCHAR, venue VARCHAR)
SELECT location FROM table_23192661_3 WHERE record = "2-1"
Name the location for 2-1 record
CREATE TABLE table_23192661_3 (location VARCHAR, record VARCHAR)
SELECT muzzle_energy FROM table_name_16 WHERE source = "hornady"
What is Muzzle energy, when Source is hornady?
CREATE TABLE table_name_16 (muzzle_energy VARCHAR, source VARCHAR)
SELECT MIN(rank) FROM table_name_80 WHERE time = "6:36.65"
What is the least rank for athletes with a time of 6:36.65?
CREATE TABLE table_name_80 (rank INTEGER, time VARCHAR)
SELECT venue FROM table_name_60 WHERE date = "august 15, 2012"
Where was the competition on August 15, 2012?
CREATE TABLE table_name_60 (venue VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_16 WHERE opponent_in_the_final = "blaž kavčič"
For what tournament was Blaž Kavčič the opponent in the final?
CREATE TABLE table_name_16 (tournament VARCHAR, opponent_in_the_final VARCHAR)
SELECT nationality FROM table_name_99 WHERE position = "left wing"
Which Nationality has a Position of left wing?
CREATE TABLE table_name_99 (nationality VARCHAR, position VARCHAR)
SELECT constructor FROM table_name_34 WHERE grid = 14
Who constructed grid 14?
CREATE TABLE table_name_34 (constructor VARCHAR, grid VARCHAR)
SELECT high_assists FROM table_name_75 WHERE game < 78 AND date = "april 8"
What were the assists on April 8 in game less than 78?
CREATE TABLE table_name_75 (high_assists VARCHAR, game VARCHAR, date VARCHAR)
SELECT surface FROM table_22597626_17 WHERE opponents_in_the_final = "Fitzgerald Vilas"
What was the surface for the opponents in the final with fitzgerald vilas?
CREATE TABLE table_22597626_17 (surface VARCHAR, opponents_in_the_final VARCHAR)
SELECT score FROM table_name_56 WHERE high_points = "raymond felton (32)"
Which Score has High points of raymond felton (32)?
CREATE TABLE table_name_56 (score VARCHAR, high_points VARCHAR)
SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY COUNT(*) DESC LIMIT 1
What is the name of the activity that has the most faculty members involved in?
CREATE TABLE Faculty_participates_in (actID VARCHAR); CREATE TABLE Activity (activity_name VARCHAR, actID VARCHAR)
SELECT opponent FROM table_name_53 WHERE date = "september 28, 1951"
Which Opponent has a Date of september 28, 1951?
CREATE TABLE table_name_53 (opponent VARCHAR, date VARCHAR)
SELECT years FROM table_name_45 WHERE soap_opera = "un posto al sole" AND actor = "riccardo polizzy carbonelli"
What are the years that have un posto al sole as the soap opera, with riccardo polizzy carbonelli as the actor?
CREATE TABLE table_name_45 (years VARCHAR, soap_opera VARCHAR, actor VARCHAR)
SELECT country FROM table_name_32 WHERE iata = "vie"
Which Country has a IATA of vie?
CREATE TABLE table_name_32 (country VARCHAR, iata VARCHAR)
SELECT COUNT(total_electricity__gw) AS ·h_ FROM table_25244412_2 WHERE _percentage_renewable = "92.3%"
How many data was given the total electricity in GW-h if % renewable is 92.3%?
CREATE TABLE table_25244412_2 (total_electricity__gw VARCHAR, _percentage_renewable VARCHAR)
SELECT COUNT(points) FROM table_name_23 WHERE rank = "6th" AND draw < 5
What is the total number of points for the song that was ranked 6th and had a draw number smaller than 5?
CREATE TABLE table_name_23 (points VARCHAR, rank VARCHAR, draw VARCHAR)
SELECT COUNT(enrollment) FROM table_name_61 WHERE ihsaa_class = "aa"
What is the total enrollment of the aa IHSAA class?
CREATE TABLE table_name_61 (enrollment VARCHAR, ihsaa_class VARCHAR)
SELECT distance FROM table_name_24 WHERE race = "sam's town 250"
What is the distance of the Sam's town 250 race?
CREATE TABLE table_name_24 (distance VARCHAR, race VARCHAR)
SELECT AVG(rank) FROM table_name_97 WHERE city = "mashhad" AND 1976 < 667770
What is teh average rank of the city of mashhad, which had less than 667770 in 1976?
CREATE TABLE table_name_97 (rank INTEGER, city VARCHAR)
SELECT language FROM table_15887683_5 WHERE television_service = "Sky Cinema Passion" AND n° = "308"
What language is Sky Cinema Passion television service n. 308?
CREATE TABLE table_15887683_5 (language VARCHAR, television_service VARCHAR, n° VARCHAR)
SELECT MIN(grid) FROM table_name_33 WHERE time = "+0.499" AND laps > 21
What is the lowest grid with time of +0.499,when laps are larger than 21?
CREATE TABLE table_name_33 (grid INTEGER, time VARCHAR, laps VARCHAR)
SELECT under_13 FROM table_26368963_1 WHERE under_17 = "Antonio Glez"
When the under-17 was Antonio Glez, who was the under-13?
CREATE TABLE table_26368963_1 (under_13 VARCHAR, under_17 VARCHAR)
SELECT chassis FROM table_name_34 WHERE team = "rp motorsport" AND driver = "augusto scalbi"
What is the chassis for Augusto Scalbi on Team RP Motorsport?
CREATE TABLE table_name_34 (chassis VARCHAR, team VARCHAR, driver VARCHAR)
SELECT COUNT(power_stage_wins) FROM table_23385853_20 WHERE wins = 10
What is the power stage wins total number if the wins is 10?
CREATE TABLE table_23385853_20 (power_stage_wins VARCHAR, wins VARCHAR)
SELECT high_rebounds FROM table_15869204_9 WHERE team = "Chicago"
Who scored the most rebounds in the game against Chicago?
CREATE TABLE table_15869204_9 (high_rebounds VARCHAR, team VARCHAR)
SELECT winners FROM table_name_90 WHERE runners_up = "united states" AND venue = "st. germain golf club"
What is the Winners when the United States is the runner-up at st. germain golf club?
CREATE TABLE table_name_90 (winners VARCHAR, runners_up VARCHAR, venue VARCHAR)
SELECT record FROM table_name_32 WHERE date = "november 15"
What record has November 15 as the date?
CREATE TABLE table_name_32 (record VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_1 WHERE 2009 = "1r" AND 2012 = "w"
Can you tell me the Tournament that has the 2009 of 1r, and the 2012 of w?
CREATE TABLE table_name_1 (tournament VARCHAR)
SELECT winner FROM table_name_98 WHERE location = "connie mack stadium" AND year = 1946
What is Winner, when Location is Connie Mack Stadium, and when Year is 1946?
CREATE TABLE table_name_98 (winner VARCHAR, location VARCHAR, year VARCHAR)
SELECT date FROM table_name_73 WHERE attendance = "9,535"
Which Date has an Attendance of 9,535?
CREATE TABLE table_name_73 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_17 WHERE score = "5-2" AND loss = "sele (3-2)"
What date was the score 5-2 with a loss of sele (3-2)?
CREATE TABLE table_name_17 (date VARCHAR, score VARCHAR, loss VARCHAR)
SELECT COUNT(nsg_nr) FROM table_26013618_1 WHERE district___town = "Herzogtum Lauenburg" AND area__ha_ = "123,14"
How many reserves are in Herzogtum Lauenburg with an area of 123,14?
CREATE TABLE table_26013618_1 (nsg_nr VARCHAR, district___town VARCHAR, area__ha_ VARCHAR)
SELECT MIN(points) FROM table_14181578_1 WHERE goals_for_against = "8-5"
what is the minimum points with goals for/against being 8-5
CREATE TABLE table_14181578_1 (points INTEGER, goals_for_against VARCHAR)
SELECT away_team FROM table_name_69 WHERE venue = "victoria park"
What is the away team at victoria park?
CREATE TABLE table_name_69 (away_team VARCHAR, venue VARCHAR)
SELECT change_since_2006 FROM table_1940144_1 WHERE urban_area = "Clane"
How many places has the rank changed since 2006, for Clane?
CREATE TABLE table_1940144_1 (change_since_2006 VARCHAR, urban_area VARCHAR)
SELECT width FROM table_1251878_1 WHERE frame_size = "4.5K"
what's the width with frame size being 4.5k
CREATE TABLE table_1251878_1 (width VARCHAR, frame_size VARCHAR)
SELECT Group AS song FROM table_name_29 WHERE name = "alice 林芯糸"
What is Group Song, when Name is Alice 林芯糸?
CREATE TABLE table_name_29 (Group VARCHAR, name VARCHAR)
SELECT penalty FROM table_name_19 WHERE player = "jonathan toews"
What is the penalty for Jonathan Toews?
CREATE TABLE table_name_19 (penalty VARCHAR, player VARCHAR)
SELECT SUM(grid) FROM table_name_54 WHERE laps = 30 AND rider = "toni elias"
Can you tell me the sum of Grid that has the Laps of 30, and the Rider of toni elias?
CREATE TABLE table_name_54 (grid INTEGER, laps VARCHAR, rider VARCHAR)
SELECT COUNT(game) FROM table_27721131_6 WHERE team = "Houston"
How many games are shown against Houston?
CREATE TABLE table_27721131_6 (game VARCHAR, team VARCHAR)
SELECT semester, YEAR FROM SECTION GROUP BY semester, YEAR ORDER BY COUNT(*) DESC LIMIT 1
Find the year and semester when offers the largest number of courses.
CREATE TABLE SECTION (semester VARCHAR, YEAR VARCHAR)
SELECT team FROM table_name_65 WHERE circuit = "amaroo park"
Which team raced at Amaroo Park?
CREATE TABLE table_name_65 (team VARCHAR, circuit VARCHAR)
SELECT other FROM table_name_35 WHERE margin_of_error = "± 3%"
what is the percent for other when the margin of error is ± 3%?
CREATE TABLE table_name_35 (other VARCHAR, margin_of_error VARCHAR)
SELECT score FROM table_name_4 WHERE date = "december 3"
Tell me the score for december 3
CREATE TABLE table_name_4 (score VARCHAR, date VARCHAR)
SELECT time FROM table_name_78 WHERE method = "ko (punch)" AND opponent = "scott smith"
How long is the ko (punch) fight against scott smith?
CREATE TABLE table_name_78 (time VARCHAR, method VARCHAR, opponent VARCHAR)
SELECT COUNT(grid) FROM table_name_35 WHERE bike = "suzuki gsx-r1000 k7" AND time = "+13.283"
What is the total number for grid with a Suzuki GSX-R1000 K7 for +13.283?
CREATE TABLE table_name_35 (grid VARCHAR, bike VARCHAR, time VARCHAR)
SELECT regular_season FROM table_name_64 WHERE year = "1994/95"
What place did the Nashville Metros place in the 1994/95 Season?
CREATE TABLE table_name_64 (regular_season VARCHAR, year VARCHAR)
SELECT name FROM swimmer WHERE NOT id IN (SELECT swimmer_id FROM record)
Find the names of the swimmers who have no record.
CREATE TABLE swimmer (name VARCHAR, id VARCHAR, swimmer_id VARCHAR); CREATE TABLE record (name VARCHAR, id VARCHAR, swimmer_id VARCHAR)
SELECT nationality FROM table_name_51 WHERE round = 7 AND position = "goalie"
What is the nationality of the goalie in Round 7?
CREATE TABLE table_name_51 (nationality VARCHAR, round VARCHAR, position VARCHAR)
SELECT tournament FROM table_name_12 WHERE runner_s__up = "scott hoch & kenny perry"
What tournament had a runner(s)-up of Scott Hoch & Kenny Perry?
CREATE TABLE table_name_12 (tournament VARCHAR, runner_s__up VARCHAR)
SELECT MIN(no_decisions) FROM table_19864214_3 WHERE pitcher = "Scott Feldman Category:Articles with hCards"
what is the least number of no decisions for scott feldman category:articles with hcards
CREATE TABLE table_19864214_3 (no_decisions INTEGER, pitcher VARCHAR)
SELECT company FROM table_250309_1 WHERE parent_company = "Wrightbus"
what is the company with the parent company wrightbus?
CREATE TABLE table_250309_1 (company VARCHAR, parent_company VARCHAR)
SELECT DISTINCT T1.customer_first_name, T1.customer_last_name, T1.phone_number FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id
Show the unique first names, last names, and phone numbers for all customers with any account.
CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, phone_number VARCHAR, customer_id VARCHAR)
SELECT score FROM table_17355628_7 WHERE date = "January 18"
What is the score when the game took place on January 18?
CREATE TABLE table_17355628_7 (score VARCHAR, date VARCHAR)
SELECT driver FROM table_name_25 WHERE laps < 60 AND time_retired = "spun off"
Who drive the car that went under 60 laps and spun off?
CREATE TABLE table_name_25 (driver VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT model FROM table_name_68 WHERE fuel_or_propulsion = "diesel" AND manufacturer = "orion" AND year = 2005
Tell me the model with fuel or propulsion of diesel and orion manufacturer in 2005
CREATE TABLE table_name_68 (model VARCHAR, year VARCHAR, fuel_or_propulsion VARCHAR, manufacturer VARCHAR)
SELECT race_1 FROM table_15530244_5 WHERE race_3 = "8"
Name the race 1 when race 3 is 8
CREATE TABLE table_15530244_5 (race_1 VARCHAR, race_3 VARCHAR)
SELECT raised FROM table_name_35 WHERE original_team = "hydra" AND hometown = "bronx, new york"
How much did the Hydra team from Bronx, New York raise?
CREATE TABLE table_name_35 (raised VARCHAR, original_team VARCHAR, hometown VARCHAR)
SELECT record FROM table_28768469_9 WHERE team = "Washington"
What was the record after the game against Washington?
CREATE TABLE table_28768469_9 (record VARCHAR, team VARCHAR)
SELECT grand_prix FROM table_name_82 WHERE round = 9
Which Grand Prix had 9 rounds?
CREATE TABLE table_name_82 (grand_prix VARCHAR, round VARCHAR)
SELECT round FROM table_name_16 WHERE venue = "galpharm stadium"
what round happened at galpharm stadium?
CREATE TABLE table_name_16 (round VARCHAR, venue VARCHAR)
SELECT cospar_id FROM table_18161217_2 WHERE estimated_operational_life = "2 months" AND satellite = "Kosmos 2397"
What is the cospar ID of the Kosmos 2397 satellite, which has an operational life of 2 months?
CREATE TABLE table_18161217_2 (cospar_id VARCHAR, estimated_operational_life VARCHAR, satellite VARCHAR)
SELECT Time_of_purchase, age, address FROM member ORDER BY Time_of_purchase
Find the purchase time, age and address of each member, and show the results in the order of purchase time.
CREATE TABLE member (Time_of_purchase VARCHAR, age VARCHAR, address VARCHAR)
SELECT SUM(T2.room_count) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_short_name = "Columbus Square"
Show the total number of rooms of the apartments in the building with short name "Columbus Square".
CREATE TABLE Apartment_Buildings (building_id VARCHAR, building_short_name VARCHAR); CREATE TABLE Apartments (room_count INTEGER, building_id VARCHAR)
SELECT highest FROM table_11208143_9 WHERE average = 4752
What are the highest recorded attendance rates of the stadiums with an average attendance of 4752?
CREATE TABLE table_11208143_9 (highest VARCHAR, average VARCHAR)
SELECT surface FROM table_name_9 WHERE opponent = "ilija bozoljac"
On what Surface was the match against Ilija Bozoljac played?
CREATE TABLE table_name_9 (surface VARCHAR, opponent VARCHAR)
SELECT interview FROM table_11690135_1 WHERE evening_gown = "9.78"
Who had an evening gown score of 9.78?
CREATE TABLE table_11690135_1 (interview VARCHAR, evening_gown VARCHAR)
SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID
What are the names of body builders?
CREATE TABLE body_builder (People_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
SELECT result FROM table_22853654_9 WHERE opponent = "Wesley Moodie"
Name the result for wesley moodie
CREATE TABLE table_22853654_9 (result VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_85 WHERE score = "11-10"
What was the record when the score was 11-10?
CREATE TABLE table_name_85 (record VARCHAR, score VARCHAR)
SELECT loa__metres_ FROM table_20854943_2 WHERE sail_number = "M10"
What are the LOA (metres) of boat with sail number M10?
CREATE TABLE table_20854943_2 (loa__metres_ VARCHAR, sail_number VARCHAR)
SELECT MIN(game) FROM table_name_92 WHERE opponent = "chicago black hawks"
What is the first game played against the Chicago Black Hawks?
CREATE TABLE table_name_92 (game INTEGER, opponent VARCHAR)