answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT outcome FROM table_name_65 WHERE partner = "ilie năstase"
What is the outcome of the tournament with partner ilie năstase?
CREATE TABLE table_name_65 (outcome VARCHAR, partner VARCHAR)
SELECT no FROM table_142159_1 WHERE location = "Engine shed"
Which number has Engine Shed as the location
CREATE TABLE table_142159_1 (no VARCHAR, location VARCHAR)
SELECT jockey FROM table_name_10 WHERE winner = "alke"
What is Jockey, when Winner is Alke?
CREATE TABLE table_name_10 (jockey VARCHAR, winner VARCHAR)
SELECT gold FROM table_name_79 WHERE total = 6
What is Gold, when Total is 6?
CREATE TABLE table_name_79 (gold VARCHAR, total VARCHAR)
SELECT crowd FROM table_name_88 WHERE venue = "princes park"
What is the Crowd for the Venue of Princes Park?
CREATE TABLE table_name_88 (crowd VARCHAR, venue VARCHAR)
SELECT nationality FROM table_name_57 WHERE player = "keith bogans" AND years_in_orlando = "2006–2009"
Which Nationality has a Player of keith bogans, and a Years in Orlando of 2006–2009?
CREATE TABLE table_name_57 (nationality VARCHAR, player VARCHAR, years_in_orlando VARCHAR)
SELECT AVG(laps) FROM table_name_31 WHERE grid = 6
What is the average number of laps for a grid of 6?
CREATE TABLE table_name_31 (laps INTEGER, grid VARCHAR)
SELECT COUNT(year) FROM table_27441210_13 WHERE country = "Belgium"
How many years was the country Belgium?
CREATE TABLE table_27441210_13 (year VARCHAR, country VARCHAR)
SELECT winners FROM table_name_83 WHERE team = "halcones uv xalapa"
How many winners did Halcones uv xalapa have?
CREATE TABLE table_name_83 (winners VARCHAR, team VARCHAR)
SELECT city FROM table_name_15 WHERE airport = "singapore changi airport"
Name the city that has singapore changi airport
CREATE TABLE table_name_15 (city VARCHAR, airport VARCHAR)
SELECT entered_the_house FROM table_name_82 WHERE evicted = "day 29" AND name = "slađana pejić"
When did slađana pejić, who was evicted on day 29, enter the house?
CREATE TABLE table_name_82 (entered_the_house VARCHAR, evicted VARCHAR, name VARCHAR)
SELECT MAX(first_elected) FROM table_2668405_17
What is the latest first elected?
CREATE TABLE table_2668405_17 (first_elected INTEGER)
SELECT developer_s_ FROM table_name_46 WHERE game = "call of duty: black ops"
Who was the developer of Call of Duty: Black Ops?
CREATE TABLE table_name_46 (developer_s_ VARCHAR, game VARCHAR)
SELECT MAX(front_row_starts) FROM table_name_52 WHERE driver = "alain prost"
What was the highest front row starts for Alain Prost?
CREATE TABLE table_name_52 (front_row_starts INTEGER, driver VARCHAR)
SELECT label FROM table_name_12 WHERE region = "canada"
Which Label has a Region of canada?
CREATE TABLE table_name_12 (label VARCHAR, region VARCHAR)
SELECT AVG(years) FROM table_name_60 WHERE tied = 51 AND total_games > 1184
What is the average number of years associated with 51 games tied and over 1184 total games?
CREATE TABLE table_name_60 (years INTEGER, tied VARCHAR, total_games VARCHAR)
SELECT to_par FROM table_name_52 WHERE money___£__ = "40,850" AND score = 72 - 74 - 70 - 70 = 286
What is the to par of the golfer with winnings of 40,850 and a score of 72-74-70-70=286?
CREATE TABLE table_name_52 (to_par VARCHAR, money___£__ VARCHAR, score VARCHAR)
SELECT AVG(lane) FROM table_name_40 WHERE nationality = "great britain" AND heat < 3
What's Great Britain's lane with a heat less than 3?
CREATE TABLE table_name_40 (lane INTEGER, nationality VARCHAR, heat VARCHAR)
SELECT company FROM table_name_41 WHERE market_value__us$_billion_ > 1 AND assets__us$_billion_ < 10.7 AND rank < 10 AND revenues__us$_billion_ = 9.3
Which company has a market value greater than 1, Assets (US$ billion) smaller than 10.7, a Rank smaller than 10, and revenue (US$ billion) of 9.3?
CREATE TABLE table_name_41 (company VARCHAR, revenues__us$_billion_ VARCHAR, rank VARCHAR, market_value__us$_billion_ VARCHAR, assets__us$_billion_ VARCHAR)
SELECT location FROM table_1137704_2 WHERE date = "5 April"
what are all the location where date is 5 april
CREATE TABLE table_1137704_2 (location VARCHAR, date VARCHAR)
SELECT evening_gown FROM table_name_4 WHERE state = "mississippi"
What is the evening gown score for the contestant from Mississippi?
CREATE TABLE table_name_4 (evening_gown VARCHAR, state VARCHAR)
SELECT COUNT(period) FROM table_24565004_8 WHERE name = "Geraldão"
What is the period total number if the name is Geraldão?
CREATE TABLE table_24565004_8 (period VARCHAR, name VARCHAR)
SELECT SUM(crowd) FROM table_name_57 WHERE home_team = "st kilda"
How many people attended games with st kilda as the home side?
CREATE TABLE table_name_57 (crowd INTEGER, home_team VARCHAR)
SELECT MIN(round2) FROM table_name_88 WHERE round5 = 71 AND round4 > 64
what is the lowest round2 when round5 is 71 and round4 is more than 64?
CREATE TABLE table_name_88 (round2 INTEGER, round5 VARCHAR, round4 VARCHAR)
SELECT score FROM table_name_7 WHERE result = "5-0"
What is the Score of the Competition with a Result of 5-0?
CREATE TABLE table_name_7 (score VARCHAR, result VARCHAR)
SELECT written_by FROM table_name_2 WHERE episode__number = "38 (16)"
Who is the author of Episode 38 (16)?
CREATE TABLE table_name_2 (written_by VARCHAR, episode__number VARCHAR)
SELECT COUNT(player) FROM table_11677691_4 WHERE hometown = "Cincinnati, Ohio"
How many players hometown was Cincinnati, Ohio?
CREATE TABLE table_11677691_4 (player VARCHAR, hometown VARCHAR)
SELECT score FROM table_name_79 WHERE record = "4-1"
What is Score, when Record is "4-1"?
CREATE TABLE table_name_79 (score VARCHAR, record VARCHAR)
SELECT COUNT(table_points) FROM table_18505065_1 WHERE difference = "+194"
How many table points are listed for the deficit is +194?
CREATE TABLE table_18505065_1 (table_points VARCHAR, difference VARCHAR)
SELECT SUM(round) FROM table_name_62 WHERE event = "bellator 72"
How many rounds did the match go for the Bellator 72 event?
CREATE TABLE table_name_62 (round INTEGER, event VARCHAR)
SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id = t2.service_id
Find name of the services that has never been used.
CREATE TABLE services (service_name VARCHAR); CREATE TABLE party_services (service_id VARCHAR); CREATE TABLE services (service_name VARCHAR, service_id VARCHAR)
SELECT date FROM table_name_68 WHERE stage = "12"
Which date has a Stage of 12?
CREATE TABLE table_name_68 (date VARCHAR, stage VARCHAR)
SELECT date FROM table_name_39 WHERE venue = "junction oval"
Which Date has a Venue of junction oval?
CREATE TABLE table_name_39 (date VARCHAR, venue VARCHAR)
SELECT type FROM table_23685890_2 WHERE local_government_area = "Yalata"
What type of local government area is Yalata?
CREATE TABLE table_23685890_2 (type VARCHAR, local_government_area VARCHAR)
SELECT home_team FROM table_name_42 WHERE away_team = "collingwood"
What home team played Collingwood as the away team?
CREATE TABLE table_name_42 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(goals) FROM table_name_87 WHERE apps < 26 AND club = "werder bremen"
How many goals did he score with under 26 appearances for werder bremen?
CREATE TABLE table_name_87 (goals VARCHAR, apps VARCHAR, club VARCHAR)
SELECT province FROM table_2251578_4 WHERE district = "San Antonio de Chuca"
Which province is in the district of San Antonio de Chuca?
CREATE TABLE table_2251578_4 (province VARCHAR, district VARCHAR)
SELECT team FROM table_17058226_5 WHERE high_assists = "Sebastian Telfair (7)"
What opposing team was playing when sebastian telfair (7) had the highest assists?
CREATE TABLE table_17058226_5 (team VARCHAR, high_assists VARCHAR)
SELECT mccain_percentage FROM table_20539826_1 WHERE county = "DeBaca"
How many percent of the votes in Debaca did McCain get?
CREATE TABLE table_20539826_1 (mccain_percentage VARCHAR, county VARCHAR)
SELECT attendance FROM table_15190346_2 WHERE location = "Gainesville, FL"
What was the attendance of the bowl game in Gainesville, Fl?
CREATE TABLE table_15190346_2 (attendance VARCHAR, location VARCHAR)
SELECT eliminated_by FROM table_name_63 WHERE wrestler = "kane"
Who Eliminated Kane?
CREATE TABLE table_name_63 (eliminated_by VARCHAR, wrestler VARCHAR)
SELECT director FROM table_name_12 WHERE series = "mm" AND production_num < 6494 AND release_date = "1934-09-15"
Who was the director of the movie having a release date of 1934-09-15, an MM Series and a production number less than 6494?
CREATE TABLE table_name_12 (director VARCHAR, release_date VARCHAR, series VARCHAR, production_num VARCHAR)
SELECT MAX(fall_09) FROM table_15055594_6 WHERE fall_06 = 3821
What was the highest number of students in Fall 09 in the state that had 3821 in Fall 06?
CREATE TABLE table_15055594_6 (fall_09 INTEGER, fall_06 VARCHAR)
SELECT MIN(extra_points) FROM table_25730326_2
What is the least number of extra points?
CREATE TABLE table_25730326_2 (extra_points INTEGER)
SELECT winner_and_score FROM table_name_7 WHERE week = "august 10"
Who won on the week of August 10?
CREATE TABLE table_name_7 (winner_and_score VARCHAR, week VARCHAR)
SELECT COUNT(seats_in_congress) FROM table_2676980_4 WHERE electoral_district = "Ucayali"
What is the number of seats in congress when the electoral district is Ucayali?
CREATE TABLE table_2676980_4 (seats_in_congress VARCHAR, electoral_district VARCHAR)
SELECT score FROM table_name_88 WHERE visiting_team = "edmonton drillers" AND date = "january 6, 2008"
What was the score for Edmonton Drillers on January 6, 2008?
CREATE TABLE table_name_88 (score VARCHAR, visiting_team VARCHAR, date VARCHAR)
SELECT s_mestizo FROM table_1333612_1 WHERE population = 29461933
what's the s mestizo with population being 29461933
CREATE TABLE table_1333612_1 (s_mestizo VARCHAR, population VARCHAR)
SELECT episode_air_date FROM table_27615445_1 WHERE audition_venue = "Nego Quirido Sambadrome"
List all episode air dates that auditioned at Nego Quirido Sambadrome?
CREATE TABLE table_27615445_1 (episode_air_date VARCHAR, audition_venue VARCHAR)
SELECT date FROM table_name_3 WHERE score = "3-6 4-6"
When was the score 3-6 4-6?
CREATE TABLE table_name_3 (date VARCHAR, score VARCHAR)
SELECT AVG(appearances) FROM table_name_58 WHERE bronze_medals < 0
What is the average amount of appearances for the Bronze Meals less than 0?
CREATE TABLE table_name_58 (appearances INTEGER, bronze_medals INTEGER)
SELECT COUNT(theme) FROM table_26250253_1 WHERE order__number = "9"
How many themes are there where the order # is 9?
CREATE TABLE table_26250253_1 (theme VARCHAR, order__number VARCHAR)
SELECT balls FROM table_name_3 WHERE venue = "bristol" AND score = "104*"
What is Balls, when Venue is "Bristol", and when Score is "104*"?
CREATE TABLE table_name_3 (balls VARCHAR, venue VARCHAR, score VARCHAR)
SELECT 2003 FROM table_name_94 WHERE product = "general cargo"
What is the 2003 statistic for general cargo?
CREATE TABLE table_name_94 (product VARCHAR)
SELECT team FROM table_27733909_7 WHERE score = "L 102–122 (OT)"
Name the team for score l 102–122 (ot)
CREATE TABLE table_27733909_7 (team VARCHAR, score VARCHAR)
SELECT tv_time FROM table_name_66 WHERE road_team = "phoenix" AND date = "june 18"
What was the TV time for Chicago's road game against Phoenix on June 18?
CREATE TABLE table_name_66 (tv_time VARCHAR, road_team VARCHAR, date VARCHAR)
SELECT example FROM table_name_36 WHERE formula = "rx"
Which example has rx as the formula?
CREATE TABLE table_name_36 (example VARCHAR, formula VARCHAR)
SELECT MAX(silver) FROM table_name_40 WHERE bronze > 1 AND total > 48
What is the most silver when bronze is more than 1 and total is more than 48?
CREATE TABLE table_name_40 (silver INTEGER, bronze VARCHAR, total VARCHAR)
SELECT paper_type FROM table_name_7 WHERE date_of_issue = "26 july 2007"
What is the paper type that the one that was issued on 26 july 2007 done on?
CREATE TABLE table_name_7 (paper_type VARCHAR, date_of_issue VARCHAR)
SELECT races FROM table_name_15 WHERE points = "n/a" AND wins = "0" AND position = "6th"
What races have n/a Points, 0 Wins, and 6th Position entries?
CREATE TABLE table_name_15 (races VARCHAR, position VARCHAR, points VARCHAR, wins VARCHAR)
SELECT MAX(year) FROM table_2199290_1
What is the latest year?
CREATE TABLE table_2199290_1 (year INTEGER)
SELECT home_team AS score FROM table_name_23 WHERE away_team = "south melbourne"
What is the home team's score when south melbourne is away?
CREATE TABLE table_name_23 (home_team VARCHAR, away_team VARCHAR)
SELECT producer FROM table_name_57 WHERE director = "erik matti"
What is Director Erik Matti's Producer?
CREATE TABLE table_name_57 (producer VARCHAR, director VARCHAR)
SELECT directed_by FROM table_27776266_1 WHERE us_viewers__million_ = "14.11"
Who directed the episode with an audience of 14.11 million?
CREATE TABLE table_27776266_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT AVG(lane) FROM table_name_8 WHERE time > 22.57 AND react < 0.245 AND country = "cuba"
What is the average lane of the athlete from cuba who has a time greater than 22.57 and react less than 0.245?
CREATE TABLE table_name_8 (lane INTEGER, country VARCHAR, time VARCHAR, react VARCHAR)
SELECT MIN(against) FROM table_name_48 WHERE lost > 0 AND _percentage_won > 50 AND played < 5
What is the smallest Against with Lost larger than 0, % Won larger than 50, and Played smaller than 5?
CREATE TABLE table_name_48 (against INTEGER, played VARCHAR, lost VARCHAR, _percentage_won VARCHAR)
SELECT player FROM table_name_47 WHERE round = 13 AND position = "center"
Who is the player from round 13 that plays center?
CREATE TABLE table_name_47 (player VARCHAR, round VARCHAR, position VARCHAR)
SELECT model FROM table_name_48 WHERE a310 = "1983"
What model is the A310 of 1983?
CREATE TABLE table_name_48 (model VARCHAR, a310 VARCHAR)
SELECT MIN(rank) FROM table_name_16 WHERE country = "bulgaria"
What is the rank for the competitor from Bulgaria?
CREATE TABLE table_name_16 (rank INTEGER, country VARCHAR)
SELECT player FROM table_name_66 WHERE caps = "example" AND position = "center"
What is Player, when Caps is Example, and when Position is Center?
CREATE TABLE table_name_66 (player VARCHAR, caps VARCHAR, position VARCHAR)
SELECT COUNT(total) FROM table_name_92 WHERE swimming_time__pts_ = "2:20.93 (1232)"
How many athletes had a Swimming Time (pts) of 2:20.93 (1232)?
CREATE TABLE table_name_92 (total VARCHAR, swimming_time__pts_ VARCHAR)
SELECT current_conference FROM table_1973729_2 WHERE nickname = "Chargers"
Which conference has the nickname Chargers?
CREATE TABLE table_1973729_2 (current_conference VARCHAR, nickname VARCHAR)
SELECT place FROM table_name_11 WHERE score = 69 - 71 - 66 - 73 = 279
WHAT IS THE PLACE WITH THE SCORE 69-71-66-73=279?
CREATE TABLE table_name_11 (place VARCHAR, score VARCHAR)
SELECT director_s_ FROM table_name_44 WHERE writer_s_ = "dana dorian"
Who was the director that worked with Dana Dorian as the writer?
CREATE TABLE table_name_44 (director_s_ VARCHAR, writer_s_ VARCHAR)
SELECT MIN(rank) FROM table_name_94 WHERE country = "soviet union" AND total < 19
Which Rank is the Country of soviet union with a Total smaller than 19?
CREATE TABLE table_name_94 (rank INTEGER, country VARCHAR, total VARCHAR)
SELECT bluetooth FROM table_name_31 WHERE model = "s90i"
Does the S90i model have bluetooth?
CREATE TABLE table_name_31 (bluetooth VARCHAR, model VARCHAR)
SELECT home_team AS score FROM table_name_97 WHERE away_team = "fitzroy"
What was the score of the team that played against Fitzroy?
CREATE TABLE table_name_97 (home_team VARCHAR, away_team VARCHAR)
SELECT height_m___ft FROM table_name_64 WHERE street_address = "207 w. hastings st."
What is the height m/ft where 207 w. hastings st. is the address?
CREATE TABLE table_name_64 (height_m___ft VARCHAR, street_address VARCHAR)
SELECT name FROM buildings WHERE NOT id IN (SELECT building_id FROM Office_locations)
List the names of buildings that have no company office.
CREATE TABLE buildings (name VARCHAR, id VARCHAR, building_id VARCHAR); CREATE TABLE Office_locations (name VARCHAR, id VARCHAR, building_id VARCHAR)
SELECT location_attendance FROM table_name_29 WHERE game = 63
What is the location and attendance of game 63?
CREATE TABLE table_name_29 (location_attendance VARCHAR, game VARCHAR)
SELECT department FROM table_17384764_1 WHERE qualification = "M.Phil(Maths)"
Which departments have M.Phil(Maths)?
CREATE TABLE table_17384764_1 (department VARCHAR, qualification VARCHAR)
SELECT h_a_n FROM table_name_74 WHERE record = "2-5"
What is H/A/N, when Record is 2-5?
CREATE TABLE table_name_74 (h_a_n VARCHAR, record VARCHAR)
SELECT co_stars FROM table_2528382_2 WHERE music_director = "Kalyanji-Anandji" AND year = "1963"
Which co-stars did Kalyanji-anandji direct in 1963?
CREATE TABLE table_2528382_2 (co_stars VARCHAR, music_director VARCHAR, year VARCHAR)
SELECT COUNT(platelet_count) FROM table_221653_1 WHERE prothrombin_time = "Prolonged" AND bleeding_time = "Prolonged"
How many time does the platelet count occur when prothrombin time and bleeding time are prolonged?
CREATE TABLE table_221653_1 (platelet_count VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR)
SELECT escorts FROM table_name_74 WHERE cruisers = "6"
How many escorts does the nation with 6 cruisers have?
CREATE TABLE table_name_74 (escorts VARCHAR, cruisers VARCHAR)
SELECT location FROM table_27887723_1 WHERE team = "Trek-Livestrong"
what location has team trek-livestrong?
CREATE TABLE table_27887723_1 (location VARCHAR, team VARCHAR)
SELECT status FROM table_name_29 WHERE park = "six flags new england"
Name the status for six flags new england
CREATE TABLE table_name_29 (status VARCHAR, park VARCHAR)
SELECT COUNT(points) FROM table_24108789_6 WHERE reset_points = 800
Name the total number of points for 800 reset
CREATE TABLE table_24108789_6 (points VARCHAR, reset_points VARCHAR)
SELECT date_of_issue FROM table_name_40 WHERE place_of_issue = "tallahassee, florida"
On what date were sheets issued in Tallahassee, Florida?
CREATE TABLE table_name_40 (date_of_issue VARCHAR, place_of_issue VARCHAR)
SELECT MIN(silver) FROM table_name_99 WHERE total < 1
What is the low silver total associated with under 1 total?
CREATE TABLE table_name_99 (silver INTEGER, total INTEGER)
SELECT acquisition_via FROM table_name_53 WHERE position = "forward" AND school_club_team = "manuel luis quezon"
How did the School/Club Team of Manuel Luis Quezon acquire their Forward?
CREATE TABLE table_name_53 (acquisition_via VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT location_attendance FROM table_name_3 WHERE date = "september 11"
What was the Location/Attendance on september 11?
CREATE TABLE table_name_3 (location_attendance VARCHAR, date VARCHAR)
SELECT AVG(year) FROM table_name_14 WHERE nominee = "—" AND result = "nominated"
What year has a Nominee of —, and a Result of nominated?
CREATE TABLE table_name_14 (year INTEGER, nominee VARCHAR, result VARCHAR)
SELECT name FROM table_name_26 WHERE first_performance = "3 july 2011"
who had the first performance on 3 july 2011?
CREATE TABLE table_name_26 (name VARCHAR, first_performance VARCHAR)
SELECT MAX(rank) FROM table_name_47 WHERE director = "john woo"
what is the highest rank for director john woo?
CREATE TABLE table_name_47 (rank INTEGER, director VARCHAR)
SELECT calendar FROM table_name_91 WHERE wysiwyg_editor = "no" AND unread_message_tracking = "session" AND image_attachment = "no"
Which Calendar has a WYSIWYG Editor of no, and an Unread message tracking of session, and an Image attachment of no?
CREATE TABLE table_name_91 (calendar VARCHAR, image_attachment VARCHAR, wysiwyg_editor VARCHAR, unread_message_tracking VARCHAR)
SELECT winter_olympics FROM table_174491_2 WHERE holmenkollen = "1957, 1960"
What year is Winter Olympics when Holmenkollen is 1957, 1960?
CREATE TABLE table_174491_2 (winter_olympics VARCHAR, holmenkollen VARCHAR)
SELECT AVG(money___) AS £__ FROM table_name_8 WHERE to_par = "+8" AND score = 73 - 72 - 72 - 71 = 288
What is the average money (£) that has +8 as the to par, with 73-72-72-71=288 as the score?
CREATE TABLE table_name_8 (money___ INTEGER, to_par VARCHAR, score VARCHAR)
SELECT high_assists FROM table_11963536_11 WHERE date = "May 11"
What was the high assist total on May 11?
CREATE TABLE table_11963536_11 (high_assists VARCHAR, date VARCHAR)
SELECT incumbent FROM table_1342256_13 WHERE district = "Illinois 13"
Who won the election of 1942 in the district Illinois 13?
CREATE TABLE table_1342256_13 (incumbent VARCHAR, district VARCHAR)