question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which number was the lyricist ahmed metwally?
CREATE TABLE table_28005100_1 (no VARCHAR, lyricist VARCHAR)
SELECT no FROM table_28005100_1 WHERE lyricist = "Ahmed Metwally"
I want the time/retired for grid of 24
CREATE TABLE table_name_12 (time_retired VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_12 WHERE grid = 24
For the game that ended with a record of 28-35-1, what was the decision?
CREATE TABLE table_name_22 (decision VARCHAR, record VARCHAR)
SELECT decision FROM table_name_22 WHERE record = "28-35-1"
What is position does Dan O'Sullivan play?
CREATE TABLE table_name_58 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_58 WHERE player = "dan o'sullivan"
What is the Title written by Terri Hughes & Ron Milbauer, and an Original air date of march 6, 2001?
CREATE TABLE table_name_87 (title VARCHAR, written_by VARCHAR, original_air_date VARCHAR)
SELECT title FROM table_name_87 WHERE written_by = "terri hughes & ron milbauer" AND original_air_date = "march 6, 2001"
What was the goal accuracy % when the total disposals are 481?
CREATE TABLE table_2814720_1 (goal_accuracy__percentage VARCHAR, total_disposals VARCHAR)
SELECT goal_accuracy__percentage FROM table_2814720_1 WHERE total_disposals = 481
What teams won in 2007?
CREATE TABLE table_1507423_4 (team_s_ VARCHAR, year VARCHAR)
SELECT team_s_ FROM table_1507423_4 WHERE year = 2007
What's the score of game 77?
CREATE TABLE table_name_20 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_20 WHERE game = "77"
2007 of 8–4 is involved in what 2002?
CREATE TABLE table_name_69 (Id VARCHAR)
SELECT 2002 FROM table_name_69 WHERE 2007 = "8–4"
What result took pace in 2009 and had an award of sopot international song festival?
CREATE TABLE table_name_17 (result VARCHAR, year VARCHAR, award VARCHAR)
SELECT result FROM table_name_17 WHERE year = 2009 AND award = "sopot international song festival"
Who had high assists in the game played at Oklahoma city arena 17,509?
CREATE TABLE table_27712702_7 (high_assists VARCHAR, location_attendance VARCHAR)
SELECT high_assists FROM table_27712702_7 WHERE location_attendance = "Oklahoma City Arena 17,509"
What is the date of the race for the new zealand grand prix?
CREATE TABLE table_name_21 (date VARCHAR, race VARCHAR)
SELECT date FROM table_name_21 WHERE race = "new zealand grand prix"
Tell me the lowest date for result of win and method of points with notes of opening round
CREATE TABLE table_name_59 (date INTEGER, notes VARCHAR, result VARCHAR, method VARCHAR)
SELECT MIN(date) FROM table_name_59 WHERE result = "win" AND method = "points" AND notes = "opening round"
Find the state which has the most number of customers.
CREATE TABLE bank (state VARCHAR, no_of_customers INTEGER)
SELECT state FROM bank GROUP BY state ORDER BY SUM(no_of_customers) DESC LIMIT 1
What campus had more than 400 total enrollment but more than 200 full time enrollment in year 1956?
CREATE TABLE enrollments (campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR)
SELECT T1.campus FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id = t2.campus WHERE t2.year = 1956 AND totalenrollment_ay > 400 AND FTE_AY > 200
What year did Negro American League join?
CREATE TABLE table_21564794_3 (began_in_st_louis INTEGER, league VARCHAR)
SELECT MIN(began_in_st_louis) FROM table_21564794_3 WHERE league = "Negro American league"
When was John McEnroe's minimum year?
CREATE TABLE table_22597626_1 (year INTEGER)
SELECT MIN(year) FROM table_22597626_1
what is the date of the tournament in michalovce
CREATE TABLE table_name_74 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_74 WHERE tournament = "michalovce"
What is the lowest avg/g that has 2-9-0 for the att-cmp-int?
CREATE TABLE table_name_16 (avg_g INTEGER, att_cmp_int VARCHAR)
SELECT MIN(avg_g) FROM table_name_16 WHERE att_cmp_int = "2-9-0"
Which september 26–28, 2011 polling firm had a Link of html, less than 36 liberals, and less than 8 green?
CREATE TABLE table_name_96 (polling_firm VARCHAR, date_of_polling VARCHAR, green VARCHAR, link VARCHAR, liberal VARCHAR)
SELECT polling_firm FROM table_name_96 WHERE link = "html" AND liberal < 36 AND green < 8 AND date_of_polling = "september 26–28, 2011"
What was the district Incumbent Julius Kahn was in that was smaller than 1906?
CREATE TABLE table_name_74 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
SELECT district FROM table_name_74 WHERE first_elected < 1906 AND incumbent = "julius kahn"
what is the album when the remix is dead guys remix and the year is after 2003?
CREATE TABLE table_name_51 (album VARCHAR, remix VARCHAR, year VARCHAR)
SELECT album FROM table_name_51 WHERE remix = "dead guys remix" AND year > 2003
who are the writers of the episode whose production code(s) is 225560?
CREATE TABLE table_27714573_1 (written_by VARCHAR, production_code_s_ VARCHAR)
SELECT written_by FROM table_27714573_1 WHERE production_code_s_ = 225560
What's the weekly rank of episode 1.03?
CREATE TABLE table_28283535_4 (weekly_rank VARCHAR, episode VARCHAR)
SELECT weekly_rank FROM table_28283535_4 WHERE episode = "1.03"
Which Pos has a First round smaller than 10?
CREATE TABLE table_name_11 (pos VARCHAR, first_round INTEGER)
SELECT pos FROM table_name_11 WHERE first_round < 10
Which County has a Location of edinburgh?
CREATE TABLE table_name_74 (county VARCHAR, location VARCHAR)
SELECT county FROM table_name_74 WHERE location = "edinburgh"
What is the total End term with a Title of prince regent of bavaria?
CREATE TABLE table_name_88 (end_term INTEGER, title VARCHAR)
SELECT SUM(end_term) FROM table_name_88 WHERE title = "prince regent of bavaria"
What's the average survived with a to Iran less than 1, more than 1 destroyed, and a brazil tucano aircraft?
CREATE TABLE table_name_53 (survived INTEGER, destroyed VARCHAR, to_iran VARCHAR, aircraft VARCHAR)
SELECT AVG(survived) FROM table_name_53 WHERE to_iran < 1 AND aircraft = "brazil tucano" AND destroyed > 1
If the rating is 9.1, what was the total viewers?
CREATE TABLE table_23799417_2 (total_viewers__in_millions_ VARCHAR, rating VARCHAR)
SELECT total_viewers__in_millions_ FROM table_23799417_2 WHERE rating = "9.1"
Which World Rank happened in 1977?
CREATE TABLE table_name_81 (world_rank VARCHAR, year VARCHAR)
SELECT world_rank FROM table_name_81 WHERE year = 1977
When was episode 02x02 first broadcast?
CREATE TABLE table_29141354_2 (first_broadcast VARCHAR, episode VARCHAR)
SELECT first_broadcast FROM table_29141354_2 WHERE episode = "02x02"
Who had a qual 1 best of 1:01.704?
CREATE TABLE table_name_43 (qual_1 VARCHAR, best VARCHAR)
SELECT qual_1 FROM table_name_43 WHERE best = "1:01.704"
Who was the producer for the film directed by 1997?
CREATE TABLE table_name_42 (producer VARCHAR, director VARCHAR)
SELECT producer FROM table_name_42 WHERE director = "1997"
What was the final venue for 82 delegates?
CREATE TABLE table_name_23 (finals_venue VARCHAR, number_of_delegates VARCHAR)
SELECT finals_venue FROM table_name_23 WHERE number_of_delegates = "82"
What is the lowest gain with an 18 long, and a loss less than 191?
CREATE TABLE table_name_40 (gain INTEGER, long VARCHAR, loss VARCHAR)
SELECT MIN(gain) FROM table_name_40 WHERE long = 18 AND loss < 191
How many apps does Uzbekistan have in 2003?
CREATE TABLE table_name_41 (apps VARCHAR, country VARCHAR, season VARCHAR)
SELECT apps FROM table_name_41 WHERE country = "uzbekistan" AND season = "2003"
What was the total number of games on January 20?
CREATE TABLE table_name_75 (game VARCHAR, january VARCHAR)
SELECT COUNT(game) FROM table_name_75 WHERE january = 20
What is the lest amount of bronzes that ranked 2 and has less silvers than 0?
CREATE TABLE table_name_79 (bronze INTEGER, rank VARCHAR, silver VARCHAR)
SELECT MIN(bronze) FROM table_name_79 WHERE rank = 2 AND silver < 0
What is the average rank for the film directed by michael bay?
CREATE TABLE table_name_90 (rank INTEGER, director VARCHAR)
SELECT AVG(rank) FROM table_name_90 WHERE director = "michael bay"
List the hardware model name and company name for all the phones that were launched in year 2002 or have RAM size greater than 32.
CREATE TABLE chip_model (Model_name VARCHAR, Launch_year VARCHAR, RAM_MiB VARCHAR); CREATE TABLE phone (Hardware_Model_name VARCHAR, Company_name VARCHAR, chip_model VARCHAR)
SELECT T2.Hardware_Model_name, T2.Company_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T1.Launch_year = 2002 OR T1.RAM_MiB > 32
Who is affiliated with the Dukes?
CREATE TABLE table_name_63 (affiliation VARCHAR, nickname VARCHAR)
SELECT affiliation FROM table_name_63 WHERE nickname = "dukes"
What is the number of attendance with the pre-season game as the type of record?
CREATE TABLE table_21436373_6 (attendance VARCHAR, type_of_record VARCHAR)
SELECT COUNT(attendance) FROM table_21436373_6 WHERE type_of_record = "Pre-season game"
What is the country for the score 72-63-71-68=274?
CREATE TABLE table_28498999_3 (country VARCHAR, score VARCHAR)
SELECT country FROM table_28498999_3 WHERE score = 72 - 63 - 71 - 68 = 274
What average points for highers has 0 has points for ordinary, and Ng as the grade, and less than 0 as points for foundation?
CREATE TABLE table_name_25 (points_for_higher INTEGER, points_for_foundation VARCHAR, points_for_ordinary VARCHAR, grade VARCHAR)
SELECT AVG(points_for_higher) FROM table_name_25 WHERE points_for_ordinary = 0 AND grade = "ng" AND points_for_foundation < 0
what is the type when the year(s) is 1982?
CREATE TABLE table_name_23 (type VARCHAR, year_s_ VARCHAR)
SELECT type FROM table_name_23 WHERE year_s_ = "1982"
Name the most touchdowns for field goals being 1
CREATE TABLE table_14342480_6 (touchdowns INTEGER, field_goals VARCHAR)
SELECT MAX(touchdowns) FROM table_14342480_6 WHERE field_goals = 1
What is the length of the Panther Chameleon?
CREATE TABLE table_name_15 (length__female_ VARCHAR, common_name VARCHAR)
SELECT length__female_ FROM table_name_15 WHERE common_name = "panther chameleon"
What date is the Victoria Park venue?
CREATE TABLE table_name_3 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_3 WHERE venue = "victoria park"
How many people were injured in total in East Champaran, Bihar with more than 2 people killed?
CREATE TABLE table_name_83 (injured VARCHAR, place VARCHAR, killed VARCHAR)
SELECT COUNT(injured) FROM table_name_83 WHERE place = "east champaran, bihar" AND killed > 2
What is 1st Leg, when Team 1 is "Portol Palma Mallorca"?
CREATE TABLE table_name_45 (team_1 VARCHAR)
SELECT 1 AS st_leg FROM table_name_45 WHERE team_1 = "portol palma mallorca"
What is the home of the team with Carlos Boozer (27) as the leading scorer?
CREATE TABLE table_name_1 (home VARCHAR, leading_scorer VARCHAR)
SELECT home FROM table_name_1 WHERE leading_scorer = "carlos boozer (27)"
Which Category was from before 2009 with a Role/Episode of Libby Goldstein and Junie Lowry-Johnson?
CREATE TABLE table_name_60 (category VARCHAR, year VARCHAR, role_episode VARCHAR)
SELECT category FROM table_name_60 WHERE year < 2009 AND role_episode = "libby goldstein and junie lowry-johnson"
What is Apogee, when Inclination is 65°, and when Launch Date/Time is ( GMT ) is 15 February 1973, 01:11?
CREATE TABLE table_name_48 (apogee VARCHAR, inclination VARCHAR, launch_date_time___gmt__ VARCHAR)
SELECT apogee FROM table_name_48 WHERE inclination = "65°" AND launch_date_time___gmt__ = "15 february 1973, 01:11"
What is the maximum number of final tables made among poker players with earnings less than 200000?
CREATE TABLE poker_player (Final_Table_Made INTEGER, Earnings INTEGER)
SELECT MAX(Final_Table_Made) FROM poker_player WHERE Earnings < 200000
Away team Swindon Town had a Tie no listing of Replay with what as an Attendance?
CREATE TABLE table_name_74 (attendance VARCHAR, tie_no VARCHAR, away_team VARCHAR)
SELECT attendance FROM table_name_74 WHERE tie_no = "replay" AND away_team = "swindon town"
Which chassis is more recent than 1972 and has more than 0 Pts. ?
CREATE TABLE table_name_53 (chassis VARCHAR, year VARCHAR, pts VARCHAR)
SELECT chassis FROM table_name_53 WHERE year > 1972 AND pts > 0
What is the position with a neutral H/A/N and more than 2 innings?
CREATE TABLE table_name_93 (pos INTEGER, h_a_n VARCHAR, inn VARCHAR)
SELECT AVG(pos) FROM table_name_93 WHERE h_a_n = "neutral" AND inn > 2
What are the forms of the conjucated vos(*) where él / ella / usted is muela
CREATE TABLE table_1977630_2 (vos__ VARCHAR, _ VARCHAR, él___ella___usted VARCHAR)
SELECT vos__ * _ FROM table_1977630_2 WHERE él___ella___usted = "muela"
What is the total number of bronze medals of West Germany, which is ranked 2 and has less than 1 total medals?
CREATE TABLE table_name_83 (bronze VARCHAR, total VARCHAR, rank VARCHAR, nation VARCHAR)
SELECT COUNT(bronze) FROM table_name_83 WHERE rank = 2 AND nation = "west germany" AND total < 1
What date was the race at the Symmons Plains Raceway?
CREATE TABLE table_22905641_2 (date VARCHAR, circuit VARCHAR)
SELECT date FROM table_22905641_2 WHERE circuit = "Symmons Plains Raceway"
Is it live or studio before 1983?
CREATE TABLE table_name_98 (live___studio VARCHAR, year INTEGER)
SELECT live___studio FROM table_name_98 WHERE year < 1983
What was the number of the crowd when the Wollongong Hawks were the home team?
CREATE TABLE table_name_53 (crowd INTEGER, home_team VARCHAR)
SELECT SUM(crowd) FROM table_name_53 WHERE home_team = "wollongong hawks"
What is the Purpose of the Callsign with a Freq currently of 4rph?
CREATE TABLE table_name_43 (purpose VARCHAR, freq_currently VARCHAR)
SELECT purpose FROM table_name_43 WHERE freq_currently = "4rph"
How many wins has more than 165 against?
CREATE TABLE table_name_80 (wins INTEGER, against INTEGER)
SELECT MAX(wins) FROM table_name_80 WHERE against > 165
Which Home Team has a Result of 124-101?
CREATE TABLE table_name_10 (home_team VARCHAR, result VARCHAR)
SELECT home_team FROM table_name_10 WHERE result = "124-101"
What is the nationality of the player who scored 13 goals
CREATE TABLE table_24565004_7 (nationality² VARCHAR, goals¹ VARCHAR)
SELECT nationality² FROM table_24565004_7 WHERE goals¹ = 13
Which Bats have Throws of r, and a DOB of 22 may 1973?
CREATE TABLE table_name_49 (bats VARCHAR, throws VARCHAR, dob VARCHAR)
SELECT bats FROM table_name_49 WHERE throws = "r" AND dob = "22 may 1973"
Episode of 16 involves which performer 1?
CREATE TABLE table_name_64 (performer_1 VARCHAR, episode VARCHAR)
SELECT performer_1 FROM table_name_64 WHERE episode = 16
What was the result in the event 1 medley for the man with a 4 (6 in 31.85s) in the event 3 squat lift?
CREATE TABLE table_24302700_2 (event_1_medley VARCHAR, event_3_squat_lift VARCHAR)
SELECT event_1_medley FROM table_24302700_2 WHERE event_3_squat_lift = "4 (6 in 31.85s)"
What is Record, when High Rebounds is "Tyson Chandler (6)"?
CREATE TABLE table_name_68 (record VARCHAR, high_rebounds VARCHAR)
SELECT record FROM table_name_68 WHERE high_rebounds = "tyson chandler (6)"
What is the type of the player whose transfer fee was €20m?
CREATE TABLE table_13770460_3 (type VARCHAR, transfer_fee VARCHAR)
SELECT type FROM table_13770460_3 WHERE transfer_fee = "€20M"
Name the catalog for alfa records and cd format
CREATE TABLE table_name_84 (catalog VARCHAR, label VARCHAR, format VARCHAR)
SELECT catalog FROM table_name_84 WHERE label = "alfa records" AND format = "cd"
What is the dpi of a scanner with the mm dimensions 280 x 95 x 40?
CREATE TABLE table_16409745_1 (dpi VARCHAR, dimensions__mm_ VARCHAR)
SELECT dpi FROM table_16409745_1 WHERE dimensions__mm_ = "280 x 95 x 40"
How tall is the player from farmington, ky?
CREATE TABLE table_26916717_1 (height VARCHAR, home_town VARCHAR)
SELECT height FROM table_26916717_1 WHERE home_town = "Farmington, KY"
If the aggregate is 3-4, what is the first leg?
CREATE TABLE table_17968233_2 (home__1st_leg_ VARCHAR, aggregate VARCHAR)
SELECT home__1st_leg_ FROM table_17968233_2 WHERE aggregate = "3-4"
when the points for is 139 is points difference?
CREATE TABLE table_20396710_1 (points_difference VARCHAR, points_for VARCHAR)
SELECT COUNT(points_difference) FROM table_20396710_1 WHERE points_for = "139"
What are the age groups for the Big League World Series?
CREATE TABLE table_name_26 (age_groups VARCHAR, competition_name VARCHAR)
SELECT age_groups FROM table_name_26 WHERE competition_name = "big league world series"
When az is the runner up nad feyenoord came in third place how many overall winners are there?
CREATE TABLE table_20867295_2 (winner VARCHAR, third_place VARCHAR, runner_up VARCHAR)
SELECT COUNT(winner) FROM table_20867295_2 WHERE third_place = "Feyenoord" AND runner_up = "AZ"
Name the course for team time trial
CREATE TABLE table_name_58 (course VARCHAR, type VARCHAR)
SELECT course FROM table_name_58 WHERE type = "team time trial"
What is the average end year of the player from swe and a summer transfer window?
CREATE TABLE table_name_81 (ends INTEGER, nat VARCHAR, transfer_window VARCHAR)
SELECT AVG(ends) FROM table_name_81 WHERE nat = "swe" AND transfer_window = "summer"
With 37 tries against, what is the try bonus?
CREATE TABLE table_name_82 (try_bonus VARCHAR, tries_against VARCHAR)
SELECT try_bonus FROM table_name_82 WHERE tries_against = "37"
What is the total number of Week(s), when Attendance is 61,603?
CREATE TABLE table_name_23 (week VARCHAR, attendance VARCHAR)
SELECT COUNT(week) FROM table_name_23 WHERE attendance = "61,603"
How many volts has an energy-to-weight ratio of 54 kj/kg to 2.0v?
CREATE TABLE table_name_44 (volts VARCHAR, energy_to_weight_ratio VARCHAR)
SELECT volts FROM table_name_44 WHERE energy_to_weight_ratio = "54 kj/kg to 2.0v"
Who had the most rebounds when the team record was 15-27?
CREATE TABLE table_23285805_6 (high_rebounds VARCHAR, record VARCHAR)
SELECT high_rebounds FROM table_23285805_6 WHERE record = "15-27"
Margin of victory on no. 4 was?
CREATE TABLE table_21649285_2 (margin_of_victory VARCHAR, no VARCHAR)
SELECT margin_of_victory FROM table_21649285_2 WHERE no = 4
What reference, written by Nelson Riddle, suggests 2 violas?
CREATE TABLE table_2414_1 (reference VARCHAR, violas VARCHAR, author VARCHAR)
SELECT reference FROM table_2414_1 WHERE violas = 2 AND author = "Nelson Riddle"
How many nationalities does Tom Colley have?
CREATE TABLE table_1965650_4 (nationality VARCHAR, player VARCHAR)
SELECT COUNT(nationality) FROM table_1965650_4 WHERE player = "Tom Colley"
What was the opponent on August 29?
CREATE TABLE table_name_57 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_57 WHERE date = "august 29"
What was the average of the Off Reb with steals less than 8 and FTM-FTA of 16-17?
CREATE TABLE table_name_29 (off_reb INTEGER, ftm_fta VARCHAR, steals VARCHAR)
SELECT AVG(off_reb) FROM table_name_29 WHERE ftm_fta = "16-17" AND steals < 8
What is the type where the country is esp?
CREATE TABLE table_11891841_2 (type VARCHAR, country VARCHAR)
SELECT type FROM table_11891841_2 WHERE country = "ESp"
What school or team has round of 2 with less than 42 picks?
CREATE TABLE table_name_50 (school_club_team VARCHAR, round VARCHAR, pick VARCHAR)
SELECT school_club_team FROM table_name_50 WHERE round = 2 AND pick < 42
What is Birthplace, when Ring Name is Masunoyama Tomoharu?
CREATE TABLE table_name_70 (birthplace VARCHAR, ring_name VARCHAR)
SELECT birthplace FROM table_name_70 WHERE ring_name = "masunoyama tomoharu"
Name the birth of the person married 24 may 1935
CREATE TABLE table_name_8 (birth VARCHAR, marriage VARCHAR)
SELECT birth FROM table_name_8 WHERE marriage = "24 may 1935"
How many poles are there in the 2009 season with 2 races and more than 0 F/Laps?
CREATE TABLE table_name_45 (poles VARCHAR, f_laps VARCHAR, season VARCHAR, races VARCHAR)
SELECT COUNT(poles) FROM table_name_45 WHERE season = "2009" AND races = 2 AND f_laps > 0
What place has a draw smaller than 2?
CREATE TABLE table_name_90 (place INTEGER, draw INTEGER)
SELECT AVG(place) FROM table_name_90 WHERE draw < 2
Which week did the Baltimore Ravens play at home ?
CREATE TABLE table_name_79 (week VARCHAR, host_team VARCHAR)
SELECT week FROM table_name_79 WHERE host_team = "baltimore ravens"
Who was the opponent the Buffalo Bills played when their record was 4-4?
CREATE TABLE table_name_34 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_34 WHERE record = "4-4"
How many poles did the player have during the Formula BMW Pacific race?
CREATE TABLE table_17246160_1 (poles INTEGER, series VARCHAR)
SELECT MAX(poles) FROM table_17246160_1 WHERE series = "Formula BMW Pacific"
What type of bridge is in Cooperstown?
CREATE TABLE table_name_8 (type VARCHAR, location VARCHAR)
SELECT type FROM table_name_8 WHERE location = "cooperstown"
Which year has has a Engine of maserati straight-6?
CREATE TABLE table_name_31 (year VARCHAR, engine VARCHAR)
SELECT COUNT(year) FROM table_name_31 WHERE engine = "maserati straight-6"