answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT general_classification FROM table_2267345_2 WHERE young_rider_classification = "Salvatore Commesso" AND winner = "Erik Dekker"
CREATE TABLE table_2267345_2 (general_classification VARCHAR, young_rider_classification VARCHAR, winner VARCHAR)
Who was the general classification leader when the young rider classification leader was Salvatore Commesso and the winner was Erik Dekker?
SELECT COUNT(team_classification) FROM table_2267345_2 WHERE young_rider_classification = "Salvatore Commesso" AND combativity_award = "Jacky Durand"
CREATE TABLE table_2267345_2 (team_classification VARCHAR, young_rider_classification VARCHAR, combativity_award VARCHAR)
What is the total number of team classifications when the young rider classification leader was Salvatore Commesso and the combativity award winner was Jacky Durand?
SELECT MIN(rnd) FROM table_22673872_1 WHERE winning_driver = "Al Unser" AND track = "Wisconsin State Fair Park Speedway"
CREATE TABLE table_22673872_1 (rnd INTEGER, winning_driver VARCHAR, track VARCHAR)
In what round did Al Unser win at Wisconsin State Fair Park Speedway?
SELECT COUNT(race_name) FROM table_22673872_1 WHERE location = "College Station, Texas" AND winning_driver = "Johnny Rutherford"
CREATE TABLE table_22673872_1 (race_name VARCHAR, location VARCHAR, winning_driver VARCHAR)
How many races are in College Station, Texas and won by Johnny Rutherford?
SELECT race_name FROM table_22673872_1 WHERE pole_position = "Al Unser"
CREATE TABLE table_22673872_1 (race_name VARCHAR, pole_position VARCHAR)
What was the name of the race that Al Unser had the pole position?
SELECT track FROM table_22673872_1 WHERE race_name = "International 500 Mile Sweepstakes"
CREATE TABLE table_22673872_1 (track VARCHAR, race_name VARCHAR)
What is the name of the track for the International 500 mile Sweepstakes race?
SELECT location FROM table_22673872_1 WHERE pole_position = "Gordon Johncock"
CREATE TABLE table_22673872_1 (location VARCHAR, pole_position VARCHAR)
Which locations did Gordon Johncock hold the pole position?
SELECT classification FROM table_2266990_2 WHERE title = "Fish Rap Live!"
CREATE TABLE table_2266990_2 (classification VARCHAR, title VARCHAR)
What classifications does Fish Rap live! has?
SELECT COUNT(race_name) FROM table_22673956_1 WHERE date = "October 1"
CREATE TABLE table_22673956_1 (race_name VARCHAR, date VARCHAR)
How many races took place on October 1?
SELECT COUNT(type) FROM table_22673956_1 WHERE track = "Phoenix International Raceway"
CREATE TABLE table_22673956_1 (type VARCHAR, track VARCHAR)
How many types of tracks are there on the Phoenix International raceway?
SELECT MAX(rnd) FROM table_22673956_1 WHERE race_name = "Daily Empress Indy Silverstone"
CREATE TABLE table_22673956_1 (rnd INTEGER, race_name VARCHAR)
Daily Empress Indy Silverstone took place on which round?
SELECT COUNT(race_name) FROM table_22673956_1 WHERE track = "Indianapolis Motor Speedway"
CREATE TABLE table_22673956_1 (race_name VARCHAR, track VARCHAR)
How many races took place on the Indianapolis Motor Speedway track?
SELECT driver FROM table_2267465_1 WHERE race_time = "3:50:12"
CREATE TABLE table_2267465_1 (driver VARCHAR, race_time VARCHAR)
What driver achieved a 3:50:12 race time?
SELECT manufacturer FROM table_2267465_1 WHERE team = "Race Hill Farm team"
CREATE TABLE table_2267465_1 (manufacturer VARCHAR, team VARCHAR)
Can you tell me the manufacturer behind Race Hill Farm Team?
SELECT COUNT(laps) FROM table_2267465_1 WHERE race_time = "3:34:26"
CREATE TABLE table_2267465_1 (laps VARCHAR, race_time VARCHAR)
How many laps have a 3:34:26 race time?
SELECT average_speed__mph_ FROM table_2267465_1 WHERE year = "1964"
CREATE TABLE table_2267465_1 (average_speed__mph_ VARCHAR, year VARCHAR)
What's the average mph of 1964?
SELECT manufacturer FROM table_2268216_1 WHERE team = "Ranier-Lundy"
CREATE TABLE table_2268216_1 (manufacturer VARCHAR, team VARCHAR)
Whose is the manufacturer for team Ranier-Lundy?
SELECT year FROM table_2268216_1 WHERE average_speed__mph_ = "92.68"
CREATE TABLE table_2268216_1 (year VARCHAR, average_speed__mph_ VARCHAR)
In what year was the average speed 92.68?
SELECT COUNT(year) FROM table_2268216_1 WHERE team = "Joe Gibbs Racing" AND manufacturer = "Pontiac"
CREATE TABLE table_2268216_1 (year VARCHAR, team VARCHAR, manufacturer VARCHAR)
How many years was Pontiac the manufacturer for Joe Gibbs Racing?
SELECT date FROM table_2268216_1 WHERE race_time = "2:43:19"
CREATE TABLE table_2268216_1 (date VARCHAR, race_time VARCHAR)
What is the date for the race that had the time of 2:43:19?
SELECT COUNT(average_speed__mph_) FROM table_2268216_1 WHERE year = "2003"
CREATE TABLE table_2268216_1 (average_speed__mph_ VARCHAR, year VARCHAR)
How many average speeds are listed in the year 2003?
SELECT team FROM table_2268216_1 WHERE race_time = "2:53:57"
CREATE TABLE table_2268216_1 (team VARCHAR, race_time VARCHAR)
What team had a race time of 2:53:57?
SELECT sprint_classification FROM table_22713796_14 WHERE winner = "Alejandro Valverde"
CREATE TABLE table_22713796_14 (sprint_classification VARCHAR, winner VARCHAR)
Name the sprint classification being alejandro valverde
SELECT stage FROM table_22713796_14 WHERE mountains_classification = "no award"
CREATE TABLE table_22713796_14 (stage VARCHAR, mountains_classification VARCHAR)
Name the stage for no award
SELECT COUNT(stage) FROM table_22713796_14 WHERE mountains_classification = "Lloyd Mondory"
CREATE TABLE table_22713796_14 (stage VARCHAR, mountains_classification VARCHAR)
Name the total number of stage for lloyd mondory
SELECT MAX(stage) FROM table_22713796_14 WHERE general_classification = "Alejandro Valverde" AND team_classification = "Astana" AND winner = "Greg Henderson"
CREATE TABLE table_22713796_14 (stage INTEGER, winner VARCHAR, general_classification VARCHAR, team_classification VARCHAR)
Name the most stage for alejandro valverde and astana greg henderson
SELECT tournament_winner FROM table_22733636_1 WHERE conference = "Border conference"
CREATE TABLE table_22733636_1 (tournament_winner VARCHAR, conference VARCHAR)
When the Border Conference was held, who was the tournament winner?
SELECT tournament_winner FROM table_22733636_1 WHERE regular_season_winner = "Princeton"
CREATE TABLE table_22733636_1 (tournament_winner VARCHAR, regular_season_winner VARCHAR)
When Princeton was the regular season winner, who was the tournament winner?
SELECT experience FROM table_22719663_3 WHERE name = "Mel Daniels"
CREATE TABLE table_22719663_3 (experience VARCHAR, name VARCHAR)
How long has Mel Daniels been playing?
SELECT position FROM table_22719663_3 WHERE college = "San Jose State"
CREATE TABLE table_22719663_3 (position VARCHAR, college VARCHAR)
What position did the player from San Jose State play?
SELECT number FROM table_22719663_3 WHERE height = "6-6"
CREATE TABLE table_22719663_3 (number VARCHAR, height VARCHAR)
What was the number of the player that was 6-6?
SELECT result FROM table_22736523_1 WHERE order__number = "10" AND song_choice = "Coba"
CREATE TABLE table_22736523_1 (result VARCHAR, order__number VARCHAR, song_choice VARCHAR)
If the song choice is Coba and the order number is 10, what is the result?
SELECT result FROM table_22736523_1 WHERE song_choice = "Coba"
CREATE TABLE table_22736523_1 (result VARCHAR, song_choice VARCHAR)
What is the result if Coba is the song choice?
SELECT order__number FROM table_22736523_1 WHERE song_choice = "Coba"
CREATE TABLE table_22736523_1 (order__number VARCHAR, song_choice VARCHAR)
If Coba is the song choice, what is the order number?
SELECT theme FROM table_22736523_1 WHERE song_choice = "Crazy In Love"
CREATE TABLE table_22736523_1 (theme VARCHAR, song_choice VARCHAR)
If Crazy In Love is the song choice, what is the theme?
SELECT result FROM table_22736523_1 WHERE week__number = "Top 40"
CREATE TABLE table_22736523_1 (result VARCHAR, week__number VARCHAR)
For week number of the top 40, what was the results?
SELECT result FROM table_22736523_1 WHERE week__number = "Top 9"
CREATE TABLE table_22736523_1 (result VARCHAR, week__number VARCHAR)
For week of top 9, what were the results?
SELECT type FROM table_2273738_1 WHERE city = "Birmingham"
CREATE TABLE table_2273738_1 (type VARCHAR, city VARCHAR)
The city of Birmingham is what type of location?
SELECT type FROM table_2273738_1 WHERE local_authority = "Leeds city Council"
CREATE TABLE table_2273738_1 (type VARCHAR, local_authority VARCHAR)
Leeds City Council is the local authority for what type of location?
SELECT metropolitan_area FROM table_2273738_1 WHERE county = "Tyne and Wear"
CREATE TABLE table_2273738_1 (metropolitan_area VARCHAR, county VARCHAR)
Tyne and Wear County has what total membership for their metropolitan area?
SELECT MAX(metropolitan_area) FROM table_2273738_1 WHERE city = "Manchester"
CREATE TABLE table_2273738_1 (metropolitan_area INTEGER, city VARCHAR)
What is the total membership for the metropolitan area in the city of Manchester?
SELECT runner_up_a FROM table_22752982_5 WHERE winner = "K. P. Ramalingam"
CREATE TABLE table_22752982_5 (runner_up_a VARCHAR, winner VARCHAR)
Who was the runner-up (a) if K. P. Ramalingam won the election?
SELECT team_name FROM table_22737506_1 WHERE races = "1 (5)"
CREATE TABLE table_22737506_1 (team_name VARCHAR, races VARCHAR)
When 1 (5) is the races what is the team name?
SELECT MAX(poles) FROM table_22737506_1 WHERE pos = "19th"
CREATE TABLE table_22737506_1 (poles INTEGER, pos VARCHAR)
When 19th is the position what is the highest amount of poles?
SELECT pos FROM table_22737506_1 WHERE points = 86
CREATE TABLE table_22737506_1 (pos VARCHAR, points VARCHAR)
When 86 is the amount of points what is the position?
SELECT MAX(margin) FROM table_22754310_1 WHERE party = "NCO" AND winner = "P. Ramachandran"
CREATE TABLE table_22754310_1 (margin INTEGER, party VARCHAR, winner VARCHAR)
Name the most margin for nco party and p. ramachandran won
SELECT party AS a FROM table_22754310_1 WHERE runner_up_a = "M. S. K. Sathiyendran"
CREATE TABLE table_22754310_1 (party VARCHAR, runner_up_a VARCHAR)
Name the party a for m. s. k. sathiyendran runner up
SELECT party AS a FROM table_22754310_1 WHERE constituency = "Sriperumbudur"
CREATE TABLE table_22754310_1 (party VARCHAR, constituency VARCHAR)
Name the party a for sriperumbudur
SELECT COUNT(runner_up_a) FROM table_22754310_1 WHERE constituency = "Perambalur"
CREATE TABLE table_22754310_1 (runner_up_a VARCHAR, constituency VARCHAR)
Name the total number of runner up a for perambalur
SELECT constituency FROM table_22754310_1 WHERE margin = 175130
CREATE TABLE table_22754310_1 (constituency VARCHAR, margin VARCHAR)
Name the constituency for 175130
SELECT COUNT(margin) FROM table_22753439_1 WHERE winner = "S. Singaravadivel"
CREATE TABLE table_22753439_1 (margin VARCHAR, winner VARCHAR)
How many margins have a winner of S. Singaravadivel?
SELECT COUNT(winner) FROM table_22753439_1 WHERE runner_up_a = "A. Karthikeyan"
CREATE TABLE table_22753439_1 (winner VARCHAR, runner_up_a VARCHAR)
How many winners have a runner-up of A. Karthikeyan?
SELECT party AS a FROM table_22753439_1 WHERE winner = "P. Chidambaram"
CREATE TABLE table_22753439_1 (party VARCHAR, winner VARCHAR)
What is every party with a winner of P. Chidambaram?
SELECT party AS a FROM table_22753439_1 WHERE constituency = "Tiruchendur"
CREATE TABLE table_22753439_1 (party VARCHAR, constituency VARCHAR)
What is every party A with a constituency of Tiruchendur?
SELECT constituency FROM table_22753245_1 WHERE runner_up_a = "D. Venugopal"
CREATE TABLE table_22753245_1 (constituency VARCHAR, runner_up_a VARCHAR)
Who is the constituency when the runner-up was d. Venugopal?
SELECT party FROM table_22753245_1 WHERE constituency = "10. Tindivanam"
CREATE TABLE table_22753245_1 (party VARCHAR, constituency VARCHAR)
What is the party where the constituency is 10. Tindivanam?
SELECT party FROM table_22753245_1 WHERE constituency = "1. Chennai North"
CREATE TABLE table_22753245_1 (party VARCHAR, constituency VARCHAR)
What is the party when the constituency is 1. Chennai North?
SELECT COUNT(margin) FROM table_22753245_1 WHERE party = "Indian National Congress" AND winner = "L. Adaikalaraj c"
CREATE TABLE table_22753245_1 (margin VARCHAR, party VARCHAR, winner VARCHAR)
How many margin results are listed in the election that was won by L. Adaikalaraj C and the party was the Indian national congress?
SELECT MAX(margin) FROM table_22754491_1 WHERE winner = "K. Balathandayutham"
CREATE TABLE table_22754491_1 (margin INTEGER, winner VARCHAR)
What is the margin when k. balathandayutham is the winner?
SELECT margin FROM table_22754491_1 WHERE constituency = "Periyakulam"
CREATE TABLE table_22754491_1 (margin VARCHAR, constituency VARCHAR)
What is the margin when periyakulam is the constituency?
SELECT pole_position FROM table_22765887_1 WHERE date = "August 15, 1981"
CREATE TABLE table_22765887_1 (pole_position VARCHAR, date VARCHAR)
Who had the pole position in the August 15, 1981 race?
SELECT track FROM table_22765887_1 WHERE date = "September 12, 1981"
CREATE TABLE table_22765887_1 (track VARCHAR, date VARCHAR)
Which track was used on September 12, 1981?
SELECT extension FROM table_22771048_3 WHERE city_neighborhood = "University of Washington"
CREATE TABLE table_22771048_3 (extension VARCHAR, city_neighborhood VARCHAR)
Name the extension for university of washington
SELECT MIN(projected_opening) FROM table_22771048_3
CREATE TABLE table_22771048_3 (projected_opening INTEGER)
Name the least projected opening
SELECT transit_connections FROM table_22771048_3 WHERE station = "Capitol Hill U"
CREATE TABLE table_22771048_3 (transit_connections VARCHAR, station VARCHAR)
Name the transit connections for capitol hill u
SELECT COUNT(city_neighborhood) FROM table_22771048_4 WHERE station = "Hospital"
CREATE TABLE table_22771048_4 (city_neighborhood VARCHAR, station VARCHAR)
How many neighborhoods have a station proposed at a Hospital?
SELECT transit_connections FROM table_22771048_2 WHERE station = "Pioneer Square U"
CREATE TABLE table_22771048_2 (transit_connections VARCHAR, station VARCHAR)
What are the transit connections from Pioneer Square U?
SELECT transit_connections FROM table_22771048_2 WHERE city_neighborhood = "Columbia City, Seattle"
CREATE TABLE table_22771048_2 (transit_connections VARCHAR, city_neighborhood VARCHAR)
What's the transit connection in Columbia City, Seattle?
SELECT pct_route_available FROM table_2279413_1 WHERE type_of_protection = "small patent"
CREATE TABLE table_2279413_1 (pct_route_available VARCHAR, type_of_protection VARCHAR)
For small patent type of protections, what type of PCT route is available?
SELECT conversion_from_patent_application FROM table_2279413_1 WHERE country = "Tonga"
CREATE TABLE table_2279413_1 (conversion_from_patent_application VARCHAR, country VARCHAR)
In Tonga, what is the conversion from patent application?
SELECT pct_route_available FROM table_2279413_1 WHERE type_of_protection = "short patent"
CREATE TABLE table_2279413_1 (pct_route_available VARCHAR, type_of_protection VARCHAR)
For short patent type of protections, what type of PCT route is available?
SELECT pct_route_available FROM table_2279413_1 WHERE country = "Tangier Zone"
CREATE TABLE table_2279413_1 (pct_route_available VARCHAR, country VARCHAR)
In Tangier Zone, what is the PCT route availibility?
SELECT conversion_from_patent_application FROM table_2279413_1 WHERE maximum_term = "10 years" AND pct_route_available = "Yes"
CREATE TABLE table_2279413_1 (conversion_from_patent_application VARCHAR, maximum_term VARCHAR, pct_route_available VARCHAR)
When the PCT route available is yes and the maximum term is 10 years, what are the available conversions from patent applications?
SELECT result FROM table_22801331_1 WHERE record = "6-2"
CREATE TABLE table_22801331_1 (result VARCHAR, record VARCHAR)
What was the result against the team which the Cowboys have a 6-2 record against?
SELECT MIN(opponents) FROM table_22801331_1 WHERE cowboys_points = 36
CREATE TABLE table_22801331_1 (opponents INTEGER, cowboys_points VARCHAR)
What is the fewest points opponents have scored when the Cowboys score 36?
SELECT opponents FROM table_22801331_1 WHERE record = "1-0"
CREATE TABLE table_22801331_1 (opponents VARCHAR, record VARCHAR)
How many opponents have a 1-0 record against the Cowboys?
SELECT game FROM table_22801331_1 WHERE record = "6-3"
CREATE TABLE table_22801331_1 (game VARCHAR, record VARCHAR)
What game was held against a team with a 6-3 record against the Cowboys?
SELECT COUnT AS name FROM table_22810095_8 WHERE country = "CIV"
CREATE TABLE table_22810095_8 (COUnT VARCHAR, country VARCHAR)
How many names have a country of civ?
SELECT name FROM table_22810095_8 WHERE moving_from = "northampton Town"
CREATE TABLE table_22810095_8 (name VARCHAR, moving_from VARCHAR)
Who moved from Northampton Town?
SELECT moving_from FROM table_22810095_8 WHERE name = "Kisnorbo"
CREATE TABLE table_22810095_8 (moving_from VARCHAR, name VARCHAR)
Where did Kisnorbo move from?
SELECT name FROM table_22810095_8 WHERE n = 28
CREATE TABLE table_22810095_8 (name VARCHAR, n VARCHAR)
What is the name of the player when n is 28?
SELECT transfer_fee FROM table_22810095_8 WHERE n = 2
CREATE TABLE table_22810095_8 (transfer_fee VARCHAR, n VARCHAR)
How much was the transfer fee when n is 2?
SELECT name FROM table_22810095_9 WHERE age = 24
CREATE TABLE table_22810095_9 (name VARCHAR, age VARCHAR)
What player is 24 years old?
SELECT COUNT(bruce_coulter_award) FROM table_228149_1 WHERE game = "9th"
CREATE TABLE table_228149_1 (bruce_coulter_award VARCHAR, game VARCHAR)
Nam the total number for bruce coulter award for 9th game
SELECT MIN(opponents) FROM table_22815265_1 WHERE opponent = "Arizona State"
CREATE TABLE table_22815265_1 (opponents INTEGER, opponent VARCHAR)
How many opponents were there when the opponent was Arizona State?
SELECT COUNT(record) FROM table_22815265_1 WHERE opponent = "Utah"
CREATE TABLE table_22815265_1 (record VARCHAR, opponent VARCHAR)
How many records show Utah as the opponent?
SELECT opponents FROM table_22815265_1 WHERE cowboys_points = 10
CREATE TABLE table_22815265_1 (opponents VARCHAR, cowboys_points VARCHAR)
How many opponents are there when cowboy points were 10?
SELECT COUNT(record) FROM table_22815265_1 WHERE opponents = 9
CREATE TABLE table_22815265_1 (record VARCHAR, opponents VARCHAR)
How many records were there when opponents were 9?
SELECT COUNT(record) FROM table_22815259_1 WHERE cowboys_points = 12
CREATE TABLE table_22815259_1 (record VARCHAR, cowboys_points VARCHAR)
Name the number of record for 12 cowboys points
SELECT MAX(game) FROM table_22815259_1 WHERE record = "4-0"
CREATE TABLE table_22815259_1 (game INTEGER, record VARCHAR)
Name the most game for record 4-0
SELECT COUNT(result) FROM table_22815259_1 WHERE cowboys_points = 23
CREATE TABLE table_22815259_1 (result VARCHAR, cowboys_points VARCHAR)
Name the result for cowboys points being 23
SELECT record FROM table_22815259_1 WHERE opponent = "Arizona"
CREATE TABLE table_22815259_1 (record VARCHAR, opponent VARCHAR)
Name the record for arizona
SELECT COUNT(unemployment_rate) FROM table_22815568_12 WHERE population = 34024
CREATE TABLE table_22815568_12 (unemployment_rate VARCHAR, population VARCHAR)
Name the unemployment rate for 34024
SELECT COUNT(population) FROM table_22815568_12 WHERE county = "Craig"
CREATE TABLE table_22815568_12 (population VARCHAR, county VARCHAR)
Name the total number of population for craig
SELECT unemployment_rate FROM table_22815568_12 WHERE county = "Botetourt"
CREATE TABLE table_22815568_12 (unemployment_rate VARCHAR, county VARCHAR)
Name the unemployment rate for botetourt
SELECT status FROM table_22815568_12 WHERE unemployment_rate = "6.7%"
CREATE TABLE table_22815568_12 (status VARCHAR, unemployment_rate VARCHAR)
Name the status for unemployment rate being 6.7%
SELECT status FROM table_22815568_1 WHERE poverty_rate = "14.7%"
CREATE TABLE table_22815568_1 (status VARCHAR, poverty_rate VARCHAR)
What is the status of the county that has a 14.7% poverty rate?
SELECT poverty_rate FROM table_22815568_1 WHERE market_income_per_capita = "$16,420"
CREATE TABLE table_22815568_1 (poverty_rate VARCHAR, market_income_per_capita VARCHAR)
What is the poverty rate in the county that has a market income per capita of $16,420?
SELECT MIN(population) FROM table_22815568_1 WHERE market_income_per_capita = "$24,383"
CREATE TABLE table_22815568_1 (population INTEGER, market_income_per_capita VARCHAR)
What is the lowest population in a county with market income per capita of $24,383?
SELECT poverty_rate FROM table_22815568_1 WHERE market_income_per_capita = "$20,518"
CREATE TABLE table_22815568_1 (poverty_rate VARCHAR, market_income_per_capita VARCHAR)
What is the povery rate of the county with market income per capita of $20,518?