answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT COUNT(year) FROM table_name_67 WHERE points > 0
Which year had more than 0 points?
CREATE TABLE table_name_67 (year VARCHAR, points INTEGER)
SELECT competition FROM table_name_89 WHERE venue = "kuala lumpur" AND result = "4-0" AND date = "july 26, 1977"
On July 26, 1977, what competition played at the venue of Kuala Lumpur, resulted in 4-0?
CREATE TABLE table_name_89 (competition VARCHAR, date VARCHAR, venue VARCHAR, result VARCHAR)
SELECT club FROM table_name_40 WHERE goals > 0 AND season = "2011"
What club had over 0 goals in 2011?
CREATE TABLE table_name_40 (club VARCHAR, goals VARCHAR, season VARCHAR)
SELECT episode FROM table_24051050_1 WHERE contest = "Heat 1"
In what episode did heat 1 take place?
CREATE TABLE table_24051050_1 (episode VARCHAR, contest VARCHAR)
SELECT league FROM table_name_90 WHERE year = "1996"
Name the league for 1996
CREATE TABLE table_name_90 (league VARCHAR, year VARCHAR)
SELECT population FROM table_name_88 WHERE _number_of_phones_as__percentage_of_population = 118
How many people live where there are 118% of people have phones?
CREATE TABLE table_name_88 (population VARCHAR, _number_of_phones_as__percentage_of_population VARCHAR)
SELECT rank_points FROM table_name_75 WHERE event = "wc beijing" AND score_points = "13" AND total = "18"
Name the Rank points which have an Event of wc beijing, and Score points of 13, and a Total of 18?
CREATE TABLE table_name_75 (rank_points VARCHAR, total VARCHAR, event VARCHAR, score_points VARCHAR)
SELECT record FROM table_name_82 WHERE home = "ottawa senators" AND date = "december 21"
which Record has a Home of ottawa senators on Date of december 21?
CREATE TABLE table_name_82 (record VARCHAR, home VARCHAR, date VARCHAR)
SELECT position FROM table_name_20 WHERE player = "robert nkemdiche"
Which position does Robert Nkemdiche play?
CREATE TABLE table_name_20 (position VARCHAR, player VARCHAR)
SELECT arrival FROM table_18333678_2 WHERE departure = "11.35"
when does the train departuring at 11.35 arrive
CREATE TABLE table_18333678_2 (arrival VARCHAR, departure VARCHAR)
SELECT normal_temperature FROM table_name_8 WHERE city = "abbotsford, british columbia"
What is the normal temperature of Abbotsford, British Columbia?
CREATE TABLE table_name_8 (normal_temperature VARCHAR, city VARCHAR)
SELECT score_points FROM table_name_9 WHERE event = "og beijing" AND rank_points = "olympic gold medalist"
Which Score points has an Event of og beijing, and Rank points of olympic gold medalist?
CREATE TABLE table_name_9 (score_points VARCHAR, event VARCHAR, rank_points VARCHAR)
SELECT status FROM table_name_4 WHERE configuration = "b-b" AND type = "diesel-mechanical"
for type diesel-mechanical and configuration b-b, what is the status?
CREATE TABLE table_name_4 (status VARCHAR, configuration VARCHAR, type VARCHAR)
SELECT date FROM table_name_66 WHERE visitor = "ny islanders"
What date has ny islanders as the visitor?
CREATE TABLE table_name_66 (date VARCHAR, visitor VARCHAR)
SELECT COUNT(swimsuit) FROM table_name_39 WHERE evening_gown = 8.329 AND average < 8.497
Name the total number of swimsuits when evening gown is 8.329 and average is less than 8.497
CREATE TABLE table_name_39 (swimsuit VARCHAR, evening_gown VARCHAR, average VARCHAR)
SELECT team_2 FROM table_name_79 WHERE team_1 = "al-ismaily"
What team played against Al-Ismaily (team 1)?
CREATE TABLE table_name_79 (team_2 VARCHAR, team_1 VARCHAR)
SELECT COUNT(international_tourist_arrivals__2012_) FROM table_14752049_6 WHERE rank = 1
When the 1 is the rank what is the overall amount of international tourist arrivals in 2012?
CREATE TABLE table_14752049_6 (international_tourist_arrivals__2012_ VARCHAR, rank VARCHAR)
SELECT location FROM table_13456202_1 WHERE mascot = "Panthers"
What are the locations with a panthers mascot?
CREATE TABLE table_13456202_1 (location VARCHAR, mascot VARCHAR)
SELECT h_ci__ka_m_ FROM table_2282444_1 WHERE t_c__°c_ = "720"
When 720 is the t c (°c) what is the h ci (ka/m)?
CREATE TABLE table_2282444_1 (h_ci__ka_m_ VARCHAR, t_c__°c_ VARCHAR)
SELECT performer_4 FROM table_14934885_1 WHERE performer_3 = "Kate Robbins"
Who was performer 4 when Kate Robbins was performer 3?
CREATE TABLE table_14934885_1 (performer_4 VARCHAR, performer_3 VARCHAR)
SELECT number_of_channels FROM table_233830_1 WHERE channels = "WXYZUV"
If the channels is wxyzuv, what is the number of channels?
CREATE TABLE table_233830_1 (number_of_channels VARCHAR, channels VARCHAR)
SELECT MAX(rank) FROM table_name_67 WHERE lane > 6 AND heat = 3 AND nationality = "colombia"
What is the highest rank when the lane is larger than 6, and the heat is 3, and the nationality is colombia?
CREATE TABLE table_name_67 (rank INTEGER, nationality VARCHAR, lane VARCHAR, heat VARCHAR)
SELECT floors FROM table_name_66 WHERE location = "jewellery quarter"
How many floors did the building at the Jewellery quarter have?
CREATE TABLE table_name_66 (floors VARCHAR, location VARCHAR)
SELECT engine FROM table_name_44 WHERE driver = "luigi villoresi"
I want the engine for luigi villoresi
CREATE TABLE table_name_44 (engine VARCHAR, driver VARCHAR)
SELECT high_assists FROM table_name_80 WHERE high_rebounds = "dwight howard , rashard lewis (10)"
What is High Assists, when High Rebounds is "Dwight Howard , Rashard Lewis (10)"?
CREATE TABLE table_name_80 (high_assists VARCHAR, high_rebounds VARCHAR)
SELECT heat_rank FROM table_name_22 WHERE country = "senegal"
Name the heat rank for senegal
CREATE TABLE table_name_22 (heat_rank VARCHAR, country VARCHAR)
SELECT date FROM table_name_42 WHERE total < 19 AND venue = "anz stadium"
What day was the total smaller than 19 at Venue of anz stadium?
CREATE TABLE table_name_42 (date VARCHAR, total VARCHAR, venue VARCHAR)
SELECT COUNT(position) FROM table_2781227_4 WHERE player = "John Jakopin"
For player is john jakopin mention the total number of position
CREATE TABLE table_2781227_4 (position VARCHAR, player VARCHAR)
SELECT COUNT(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Dan'
How many friends does Dan have?
CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR)
SELECT COUNT(gold) FROM table_name_64 WHERE bronze > 1 AND total > 4
What is the total of Golds with more bronzes than 1 and totaled larger than 4?
CREATE TABLE table_name_64 (gold VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT runner_s__up FROM table_name_26 WHERE winning_score = –8(68 - 68 - 72 - 72 = 280)
Which Runner(s)-up has a Winning score of –8 (68-68-72-72=280)?
CREATE TABLE table_name_26 (runner_s__up VARCHAR, winning_score VARCHAR)
SELECT game_name FROM table_name_55 WHERE top_prize = "$888"
What is the name of the game with a top prize of $888?
CREATE TABLE table_name_55 (game_name VARCHAR, top_prize VARCHAR)
SELECT opponent FROM table_name_17 WHERE location = "sec tournament"
Who did they play at sec tournament?
CREATE TABLE table_name_17 (opponent VARCHAR, location VARCHAR)
SELECT AVG(attendance) FROM table_name_45 WHERE record = "17-18"
What was the average attendance when the record was 17-18?
CREATE TABLE table_name_45 (attendance INTEGER, record VARCHAR)
SELECT MAX(byes) FROM table_name_13 WHERE benalla_dfl = "longwood" AND against < 1944
What's the most number of byes for Longwood having less than 1944 against?
CREATE TABLE table_name_13 (byes INTEGER, benalla_dfl VARCHAR, against VARCHAR)
SELECT date_of_appointment FROM table_16075179_6 WHERE outgoing_manager = "Wim Jansen"
When was the date of appointment for the manager replacing Wim Jansen?
CREATE TABLE table_16075179_6 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)
SELECT COUNT(tv_season) FROM table_19188562_2 WHERE rating__adults_18_49_ = "1.2"
How many tv series had an adult rating of 1.2?
CREATE TABLE table_19188562_2 (tv_season VARCHAR, rating__adults_18_49_ VARCHAR)
SELECT player FROM table_name_47 WHERE finish = "t48" AND year_s__won = "1997"
Who won in 1997 with a finish of t48?
CREATE TABLE table_name_47 (player VARCHAR, finish VARCHAR, year_s__won VARCHAR)
SELECT COUNT(song) FROM table_19763199_5 WHERE artist = "Solydo"
Name the number of song for solydo
CREATE TABLE table_19763199_5 (song VARCHAR, artist VARCHAR)
SELECT group_position FROM table_name_55 WHERE date = "24 september 2002"
Date of 24 september 2002 is what group position?
CREATE TABLE table_name_55 (group_position VARCHAR, date VARCHAR)
SELECT to_par FROM table_name_54 WHERE player = "nick price"
What was the score to par after two rounds for Nick Price?
CREATE TABLE table_name_54 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_63 WHERE player = "tom kite"
What was Tom Kite's to par?
CREATE TABLE table_name_63 (to_par VARCHAR, player VARCHAR)
SELECT period FROM table_name_56 WHERE matches = "0 0" AND country = "portugal"
Name the period with matches of 0 0 of portugal
CREATE TABLE table_name_56 (period VARCHAR, matches VARCHAR, country VARCHAR)
SELECT title FROM table_name_8 WHERE original_airdate = "june 13, 1999"
What is the title of the program that was originally aired on June 13, 1999?
CREATE TABLE table_name_8 (title VARCHAR, original_airdate VARCHAR)
SELECT COUNT(largest_ethnic_group__2002_) FROM table_2562572_44 WHERE population__2011_ = 5082
What is the largest ethnic group in the settlement with a 2011 population of 5082?
CREATE TABLE table_2562572_44 (largest_ethnic_group__2002_ VARCHAR, population__2011_ VARCHAR)
SELECT time_retired FROM table_name_54 WHERE grid < 2
What was the time of the driver in grid 2?
CREATE TABLE table_name_54 (time_retired VARCHAR, grid INTEGER)
SELECT MIN(year) FROM table_name_57 WHERE venue = "barcelona, spain"
What year was the venue in Barcelona, Spain?
CREATE TABLE table_name_57 (year INTEGER, venue VARCHAR)
SELECT category FROM table_name_95 WHERE result = "nominated" AND award = "drama desk award" AND nominee = "nathan lane"
What is Category, when Result is "Nominated", when Award is "Drama Desk Award", and when Nominee is "Nathan Lane"?
CREATE TABLE table_name_95 (category VARCHAR, nominee VARCHAR, result VARCHAR, award VARCHAR)
SELECT DISTINCT T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 3 AND T2.firstname <> "COVIN" AND T2.lastname <> "JEROME"
Find the last names of the students in third grade that are not taught by COVIN JEROME.
CREATE TABLE list (lastname VARCHAR, classroom VARCHAR, grade VARCHAR); CREATE TABLE teachers (classroom VARCHAR, lastname VARCHAR, firstname VARCHAR)
SELECT AVG(laps) FROM table_name_80 WHERE rider = "max biaggi"
What is the average number of laps for max biaggi
CREATE TABLE table_name_80 (laps INTEGER, rider VARCHAR)
SELECT AVG(year) FROM table_name_32 WHERE cargo__tonnes_ = "13 585"
What year had cargo tonnes of 13 585?
CREATE TABLE table_name_32 (year INTEGER, cargo__tonnes_ VARCHAR)
SELECT AVG(goals_against) FROM table_name_39 WHERE games_played < 8
What is the mean number of goals against when there were fewer than 8 games played?
CREATE TABLE table_name_39 (goals_against INTEGER, games_played INTEGER)
SELECT SUM(points) FROM table_name_42 WHERE entrant = "peter whitehead" AND chassis = "ferrari 125"
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 location FROM table_name_95 WHERE previous_conference = "independents" AND mascot = "hilltoppers"
Which Location has a Previous Conference of independents, and a Mascot of hilltoppers?
CREATE TABLE table_name_95 (location VARCHAR, previous_conference VARCHAR, mascot VARCHAR)
SELECT MIN(year) FROM table_name_90 WHERE binibining_pilipinas_international = "jessie alice salones dixson"
What is the smallest Year with a Binibining Pilipinas-International of jessie alice salones dixson?
CREATE TABLE table_name_90 (year INTEGER, binibining_pilipinas_international VARCHAR)
SELECT webkit FROM table_name_71 WHERE prince_xml = "font"
For the item with a Prince XML value of 'font', what is the WebKit value?
CREATE TABLE table_name_71 (webkit VARCHAR, prince_xml VARCHAR)
SELECT country FROM stadium WHERE capacity > 60000 INTERSECT SELECT country FROM stadium WHERE capacity < 50000
Which country has both stadiums with capacity greater than 60000 and stadiums with capacity less than 50000?
CREATE TABLE stadium (country VARCHAR, capacity INTEGER)
SELECT neck FROM table_name_16 WHERE shoulder = "10.688 (.420)"
What is the neck measurement of the gun with a shoulder measurement of 10.688 (.420)?
CREATE TABLE table_name_16 (neck VARCHAR, shoulder VARCHAR)
SELECT date FROM table_22879262_7 WHERE game = 29
what ist he date of game 29?
CREATE TABLE table_22879262_7 (date VARCHAR, game VARCHAR)
SELECT MAX(points) FROM table_name_62 WHERE drawn = 0 AND games > 5
Drawn of 0, and a Games larger than 5 has what amount of highest points?
CREATE TABLE table_name_62 (points INTEGER, drawn VARCHAR, games VARCHAR)
SELECT exaltation FROM table_name_21 WHERE fall = "moon"
Which exaltation has a fall of moon?
CREATE TABLE table_name_21 (exaltation VARCHAR, fall VARCHAR)
SELECT best_10_year_period FROM table_1710426_2 WHERE best_15_year_period = "Fischer"
Which people had the best 10-year period when Fischer had best 15-year period?
CREATE TABLE table_1710426_2 (best_10_year_period VARCHAR, best_15_year_period VARCHAR)
SELECT AVG(tied) FROM table_name_33 WHERE wins > 19
What is the average number of ties for years with more than 19 wins?
CREATE TABLE table_name_33 (tied INTEGER, wins INTEGER)
SELECT against FROM table_name_31 WHERE venue = "brewery field , bridgend"
Name the Against of Venue of brewery field , bridgend?
CREATE TABLE table_name_31 (against VARCHAR, venue VARCHAR)
SELECT intergiro_classification FROM table_name_29 WHERE trofeo_fast_team = "gb-mg maglificio"
Who held the Intergiro classificaiton when the Trofeo Fast Team is gb-mg maglificio?
CREATE TABLE table_name_29 (intergiro_classification VARCHAR, trofeo_fast_team VARCHAR)
SELECT tie_no FROM table_name_34 WHERE away_team = "wigan athletic"
What is the Tie number of when Wigan Athletic was the away team?
CREATE TABLE table_name_34 (tie_no VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_50 WHERE date = "13 april 1997"
Which Score has a Date of 13 april 1997?
CREATE TABLE table_name_50 (score VARCHAR, date VARCHAR)
SELECT DISTINCT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed
Show the ids of all employees who have authorized destruction.
CREATE TABLE Documents_to_be_destroyed (Destruction_Authorised_by_Employee_ID VARCHAR)
SELECT AVG(jianshu) FROM table_name_29 WHERE rank < 2 AND qiangshu < 9.85
What is the average Jianshu higher than rank 2, with a Qiangshu smaller than 9.85?
CREATE TABLE table_name_29 (jianshu INTEGER, rank VARCHAR, qiangshu VARCHAR)
SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"
What is the zip code of staff with first name as Janessa and last name as Sawayn lived?
CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT away_team AS score FROM table_name_76 WHERE venue = "vfl park"
What did the away team score at VFL Park?
CREATE TABLE table_name_76 (away_team VARCHAR, venue VARCHAR)
SELECT event FROM table_name_55 WHERE opponent = "matt eckerle"
At what event did he fight matt eckerle?
CREATE TABLE table_name_55 (event VARCHAR, opponent VARCHAR)
SELECT venue FROM table_name_23 WHERE team = "neman"
what is the venue of neman
CREATE TABLE table_name_23 (venue VARCHAR, team VARCHAR)
SELECT b_mountain_channel FROM table_name_75 WHERE station_call_letters = "k41go"
What B Mountain Channel has station call letters of k41go?
CREATE TABLE table_name_75 (b_mountain_channel VARCHAR, station_call_letters VARCHAR)
SELECT surface FROM table_name_32 WHERE tournament = "sunderland"
What kind of surface was the Tournament at Sunderland played on?
CREATE TABLE table_name_32 (surface VARCHAR, tournament VARCHAR)
SELECT win_percentage FROM table_name_9 WHERE wins = "46"
Where the wins are 46, what is the win%?
CREATE TABLE table_name_9 (win_percentage VARCHAR, wins VARCHAR)
SELECT MAX(week) FROM table_name_77 WHERE attendance = "58,701"
Which week had the highest attendance with 58,701?
CREATE TABLE table_name_77 (week INTEGER, attendance VARCHAR)
SELECT COUNT(ansi_code) FROM table_18600760_20 WHERE latitude = "48.142938"
How many ansi codes are there for latitude 48.142938?
CREATE TABLE table_18600760_20 (ansi_code VARCHAR, latitude VARCHAR)
SELECT alt_name FROM table_191323_2 WHERE nssdc_id_no = "1970-054A"
What are the alternative name/s of those satellites whose nssdc id number is 1970-054a?
CREATE TABLE table_191323_2 (alt_name VARCHAR, nssdc_id_no VARCHAR)
SELECT march_27_29 FROM table_1708610_3 WHERE january_15_16 = "January 15, 1991"
Name march 27-29 where january 15-16 is january 15, 1991
CREATE TABLE table_1708610_3 (march_27_29 VARCHAR, january_15_16 VARCHAR)
SELECT MAX(_number) FROM table_12803263_1
What is the most number?
CREATE TABLE table_12803263_1 (_number INTEGER)
SELECT format FROM table_name_86 WHERE _number_episodes < 22 AND _number_disc_s_ = 4 AND region_4 = "n/a"
What was the format for the 4 disc season that had less than 22 episodes and n/a for region 4?
CREATE TABLE table_name_86 (format VARCHAR, region_4 VARCHAR, _number_episodes VARCHAR, _number_disc_s_ VARCHAR)
SELECT operator FROM table_1612760_1 WHERE destination = "Dalston Junction"
Who is the operator to destination Dalston Junction?
CREATE TABLE table_1612760_1 (operator VARCHAR, destination VARCHAR)
SELECT COUNT(year) FROM table_name_78 WHERE title = "magia nuda"
How many years have a Title of Magia Nuda?
CREATE TABLE table_name_78 (year VARCHAR, title VARCHAR)
SELECT champion FROM table_name_53 WHERE runner_up = "elon"
Who won when Elon was the runner-up?
CREATE TABLE table_name_53 (champion VARCHAR, runner_up VARCHAR)
SELECT score FROM table_name_54 WHERE opponent = "golden state warriors"
What was the score for the game against the Golden State Warriors?
CREATE TABLE table_name_54 (score VARCHAR, opponent VARCHAR)
SELECT withdrawal FROM table_name_95 WHERE lb & sc_number < 16 AND sr_number = 2011
what is the withdrawal when the lb&sc number is less than 16 and the s.r. number is 2011?
CREATE TABLE table_name_95 (withdrawal VARCHAR, sr_number VARCHAR, lb VARCHAR, sc_number VARCHAR)
SELECT club FROM table_name_13 WHERE league = "mhl" AND established = 2010
What Club Established in 2010 has a League of MHL?
CREATE TABLE table_name_13 (club VARCHAR, league VARCHAR, established VARCHAR)
SELECT COUNT(directed_by) FROM table_16471432_4 WHERE series__number = 62
How many directors were there in total for the episode with series #62?
CREATE TABLE table_16471432_4 (directed_by VARCHAR, series__number VARCHAR)
SELECT COUNT(written_by) FROM table_27155243_4 WHERE episode__number = 3
How many items appear in the written by column in episode 3?
CREATE TABLE table_27155243_4 (written_by VARCHAR, episode__number VARCHAR)
SELECT surface FROM table_name_60 WHERE date = "3 october 2003"
Which Surface has a Date of 3 october 2003?
CREATE TABLE table_name_60 (surface VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_79 WHERE opponent = "morton"
How many people attended in the game against morton?
CREATE TABLE table_name_79 (attendance VARCHAR, opponent VARCHAR)
SELECT MIN(attendance) FROM table_14102379_4 WHERE record = "4–6"
what is the minimum attendance with record being 4–6
CREATE TABLE table_14102379_4 (attendance INTEGER, record VARCHAR)
SELECT brazil_scorers FROM table_name_18 WHERE competition = "world cup" AND score = "1-2"
Who were the Brazil scorers for the World Cup Competition with a 1-2 score?
CREATE TABLE table_name_18 (brazil_scorers VARCHAR, competition VARCHAR, score VARCHAR)
SELECT title FROM table_27657925_1 WHERE production_code = "231"
When 231 is the production code what is the title?
CREATE TABLE table_27657925_1 (title VARCHAR, production_code VARCHAR)
SELECT AVG(year) FROM table_name_94 WHERE competition = "commonwealth youth games"
Which Year has a Competition of commonwealth youth games?
CREATE TABLE table_name_94 (year INTEGER, competition VARCHAR)
SELECT zone FROM table_name_42 WHERE round = "semifinal" AND against = "israel" AND opponent = "anna smashnova"
What zone was the Semifinal game played against Israel with Anna Smashnova as the opponent?
CREATE TABLE table_name_42 (zone VARCHAR, opponent VARCHAR, round VARCHAR, against VARCHAR)
SELECT viewers__millions_ FROM table_23117208_3 WHERE prod_code = "RP#213"
how many millions of spectator did has the episode whose prod.code was rp#213?
CREATE TABLE table_23117208_3 (viewers__millions_ VARCHAR, prod_code VARCHAR)
SELECT MIN(diameter) FROM table_name_7 WHERE name = "dardanus sulcus"
What is dardanus sulcus' lowest diameter?
CREATE TABLE table_name_7 (diameter INTEGER, name VARCHAR)
SELECT location_attendance FROM table_18894744_6 WHERE record = "13-5"
Where was the game with a 13-5 record played, and in front of how many people?
CREATE TABLE table_18894744_6 (location_attendance VARCHAR, record VARCHAR)