context
stringlengths
27
484
question
stringlengths
12
244
answer
stringlengths
32
484
CREATE TABLE table_name_97 (nat VARCHAR, moving_from VARCHAR)
What nation had a moving from of espanyol?
SELECT nat FROM table_name_97 WHERE moving_from = "espanyol"
CREATE TABLE table_16387953_1 (date VARCHAR, ground VARCHAR)
On what dates where games played at Football Park?
SELECT date FROM table_16387953_1 WHERE ground = "Football Park"
CREATE TABLE table_17200372_2 (going_to VARCHAR, calling_at VARCHAR, departure VARCHAR)
Name the number of going to for thurlby, braceborough spa at departure being 16.50
SELECT COUNT(going_to) FROM table_17200372_2 WHERE calling_at = "Thurlby, Braceborough Spa" AND departure = "16.50"
CREATE TABLE table_29799700_2 (series_premiere VARCHAR, tv_network_s_ VARCHAR)
What was the date of the series premiere whose TV network was TV3?
SELECT series_premiere FROM table_29799700_2 WHERE tv_network_s_ = "TV3"
CREATE TABLE table_1672804_2 (region VARCHAR, name_of_city VARCHAR)
What is the region where Iquitos is located?
SELECT region FROM table_1672804_2 WHERE name_of_city = "Iquitos"
CREATE TABLE table_name_31 (date VARCHAR, total VARCHAR)
What date was the total 56–75?
SELECT date FROM table_name_31 WHERE total = "56–75"
CREATE TABLE table_2818164_4 (no_in_series INTEGER, directed_by VARCHAR, original_air_date VARCHAR)
What is the series number for the episode directed by jay sandrich that aired October 23, 1986?
SELECT MIN(no_in_series) FROM table_2818164_4 WHERE directed_by = "Jay Sandrich" AND original_air_date = "October 23, 1986"
CREATE TABLE table_250230_2 (brakes VARCHAR, model VARCHAR, wheels VARCHAR, tyres VARCHAR)
What kind of brakes for the model type rb 4at with 16x8.0jj (front) 16x8.0jj (rear) wheels and 225/50r16 92v(front) 225/50r16 92v(rear) tyres?
SELECT brakes FROM table_250230_2 WHERE wheels = "16x8.0JJ (front) 16x8.0JJ (rear)" AND tyres = "225/50R16 92V(front) 225/50R16 92V(rear)" AND model = "Type RB 4AT"
CREATE TABLE table_2668374_18 (district VARCHAR, incumbent VARCHAR)
What district was John Dawson from?
SELECT district FROM table_2668374_18 WHERE incumbent = "John Dawson"
CREATE TABLE table_name_10 (studio_host VARCHAR, year VARCHAR)
Year of 2006-07 had what studio host?
SELECT studio_host FROM table_name_10 WHERE year = "2006-07"
CREATE TABLE table_name_95 (played VARCHAR, points_against VARCHAR)
Name the played with points against of points against
SELECT played FROM table_name_95 WHERE points_against = "points against"
CREATE TABLE table_name_52 (nominated_work_title VARCHAR, year VARCHAR, award VARCHAR, result VARCHAR, organisation VARCHAR)
what is the nominated work title when the result is won, the organisation is star awards and the award is top 10 most popular female artiste in the year 2007?
SELECT nominated_work_title FROM table_name_52 WHERE result = "won" AND organisation = "star awards" AND award = "top 10 most popular female artiste" AND year > 2007
CREATE TABLE table_name_37 (winning_score VARCHAR, runner_s__up VARCHAR)
What is Winning Score, when Runner(s)-up is Ted Purdy?
SELECT winning_score FROM table_name_37 WHERE runner_s__up = "ted purdy"
CREATE TABLE table_name_42 (date VARCHAR, high_rebounds VARCHAR)
Which Date has High rebounds of pau gasol (9)?
SELECT date FROM table_name_42 WHERE high_rebounds = "pau gasol (9)"
CREATE TABLE table_name_24 (school VARCHAR, team_name VARCHAR)
Which school are the Red Devils from?
SELECT school FROM table_name_24 WHERE team_name = "red devils"
CREATE TABLE table_name_54 (date VARCHAR, location_attendance VARCHAR)
When was the game played that was at the Seattle Center Coliseum?
SELECT date FROM table_name_54 WHERE location_attendance = "seattle center coliseum"
CREATE TABLE table_name_58 (drawn INTEGER, team VARCHAR, played VARCHAR, points VARCHAR)
What is the lowest number of Drawn games for Team Mackenzie where the Played is less and 11 and the Points are greater than 7?
SELECT MIN(drawn) FROM table_name_58 WHERE played < 11 AND points > 7 AND team = "mackenzie"
CREATE TABLE table_29261823_10 (team VARCHAR, aggregate_score VARCHAR)
what is the name of the team which aggregate score is l 1–2
SELECT team FROM table_29261823_10 WHERE aggregate_score = "L 1–2"
CREATE TABLE table_20589703_2 (summer_team VARCHAR, college VARCHAR, player VARCHAR)
What suumer team was James Lomangino from St. John's on?
SELECT summer_team FROM table_20589703_2 WHERE college = "St. John's" AND player = "James Lomangino"
CREATE TABLE table_name_45 (production_company VARCHAR, year VARCHAR)
Which production company has the year of 2005 listed?
SELECT production_company FROM table_name_45 WHERE year = "2005"
CREATE TABLE table_name_76 (constructor VARCHAR, rider VARCHAR)
Who was Constructor for rider Marco Melandri?
SELECT constructor FROM table_name_76 WHERE rider = "marco melandri"
CREATE TABLE table_name_96 (class VARCHAR, quantity VARCHAR)
what is the class when the quantity is 4?
SELECT class FROM table_name_96 WHERE quantity = 4
CREATE TABLE table_name_21 (pos VARCHAR, first_round VARCHAR)
What position does the player with a first round score of 35.7 play?
SELECT pos FROM table_name_21 WHERE first_round = "35.7"
CREATE TABLE table_name_74 (stage VARCHAR, category INTEGER)
What is the stage number when the category is less than 1?
SELECT COUNT(stage) FROM table_name_74 WHERE category < 1
CREATE TABLE table_name_5 (original_airdate VARCHAR, writer_s_ VARCHAR, episode VARCHAR)
What is the original airdate for episode 7-17 (195) from writer Sidney Slon?
SELECT original_airdate FROM table_name_5 WHERE writer_s_ = "sidney slon" AND episode = "7-17 (195)"
CREATE TABLE table_name_65 (birth VARCHAR, became_duchess VARCHAR)
Which Birth has a Became Duchess of 17 april 1711 husband's ascension?
SELECT birth FROM table_name_65 WHERE became_duchess = "17 april 1711 husband's ascension"
CREATE TABLE table_name_72 (position VARCHAR, nationality VARCHAR, goals VARCHAR)
What is the position of the player from England with 62 goals?
SELECT position FROM table_name_72 WHERE nationality = "england" AND goals = "62"
CREATE TABLE table_name_6 (year VARCHAR, wins VARCHAR, win__percentage VARCHAR, matches VARCHAR)
What year was the Win percentage 50.00%, with more than 14 matches, and wins more than 8?
SELECT year FROM table_name_6 WHERE win__percentage = "50.00%" AND matches > 14 AND wins > 8
CREATE TABLE table_name_26 (away_team VARCHAR, venue VARCHAR)
Who was the away team at Princes Park?
SELECT away_team FROM table_name_26 WHERE venue = "princes park"
CREATE TABLE table_name_24 (laps VARCHAR, grid VARCHAR)
What is the total laps for grid 19?
SELECT COUNT(laps) FROM table_name_24 WHERE grid = 19
CREATE TABLE table_27514362_7 (status VARCHAR, entrant VARCHAR)
How many status figures does James Finch have?
SELECT COUNT(status) FROM table_27514362_7 WHERE entrant = "James Finch"
CREATE TABLE table_26476336_2 (institution VARCHAR, new_conference VARCHAR)
What school has the new conference as SELC?
SELECT institution FROM table_26476336_2 WHERE new_conference = "SELC"
CREATE TABLE table_name_59 (track INTEGER, original_album VARCHAR)
Which track has the original album turbulent indigo?
SELECT AVG(track) FROM table_name_59 WHERE original_album = "turbulent indigo"
CREATE TABLE table_name_92 (date VARCHAR, score VARCHAR)
What is the date of the game that ended with a score of 96-89?
SELECT date FROM table_name_92 WHERE score = "96-89"
CREATE TABLE table_name_75 (date VARCHAR, score VARCHAR)
What is the Date of the game with a Score of L 115–118 (OT)?
SELECT date FROM table_name_75 WHERE score = "l 115–118 (ot)"
CREATE TABLE table_name_14 (year VARCHAR, finish VARCHAR, record VARCHAR)
Name the year with finish of 12th and record of 23-36
SELECT year FROM table_name_14 WHERE finish = "12th" AND record = "23-36"
CREATE TABLE table_name_13 (class VARCHAR, wins VARCHAR, points VARCHAR)
What class has over 0 wins and 42 points?
SELECT class FROM table_name_13 WHERE wins > 0 AND points = 42
CREATE TABLE table_name_28 (jun VARCHAR, jul VARCHAR)
Name the june when it has july of 84 °f / 28.9 °c
SELECT jun FROM table_name_28 WHERE jul = "84 °f / 28.9 °c"
CREATE TABLE table_name_14 (attendance VARCHAR, record VARCHAR)
What was the attendance at the game when the record was 49-61?
SELECT attendance FROM table_name_14 WHERE record = "49-61"
CREATE TABLE table_name_85 (round INTEGER, opponent VARCHAR, record VARCHAR)
What was the highest number of rounds that had Hikaru Shinohara as an opponent and a record of 11-7?
SELECT MAX(round) FROM table_name_85 WHERE opponent = "hikaru shinohara" AND record = "11-7"
CREATE TABLE table_name_40 (total_goals VARCHAR, fa_cup_goals VARCHAR, total_apps VARCHAR, name VARCHAR)
how many times is the total apps 1 and the fa cup goals less than 0 for bob mountain?
SELECT COUNT(total_goals) FROM table_name_40 WHERE total_apps = "1" AND name = "bob mountain" AND fa_cup_goals < 0
CREATE TABLE table_25042332_26 (public_network VARCHAR, solar_panel VARCHAR)
How many regions have 0.5% solar panels?
SELECT COUNT(public_network) FROM table_25042332_26 WHERE solar_panel = "0.5%"
CREATE TABLE table_name_83 (away_team VARCHAR)
hat was Hawthorn's score as the away team?
SELECT away_team AS score FROM table_name_83 WHERE away_team = "hawthorn"
CREATE TABLE table_name_76 (winning_driver VARCHAR, winning_team VARCHAR, round VARCHAR)
Who is the driver that one for the winning tpc team qi-meritus that has a round more than 8?
SELECT winning_driver FROM table_name_76 WHERE winning_team = "tpc team qi-meritus" AND round > 8
CREATE TABLE table_name_7 (score VARCHAR, to_par VARCHAR, player VARCHAR)
Which Score has a To par larger than 17, and a Player of mike brady?
SELECT score FROM table_name_7 WHERE to_par > 17 AND player = "mike brady"
CREATE TABLE table_name_91 (class VARCHAR, verb_meaning VARCHAR)
Which class has the verb meaning of to run?
SELECT class FROM table_name_91 WHERE verb_meaning = "to run"
CREATE TABLE table_name_28 (place VARCHAR, score VARCHAR)
What is the Place of the Player with a Score of 70-68=138?
SELECT place FROM table_name_28 WHERE score = 70 - 68 = 138
CREATE TABLE table_name_15 (laps INTEGER, year VARCHAR)
What is the average number of laps in 1949?
SELECT AVG(laps) FROM table_name_15 WHERE year = "1949"
CREATE TABLE table_name_7 (alternate__2_ VARCHAR, coach VARCHAR, captain VARCHAR)
Who is the alternate for Andy Brown, and Nick Grady?
SELECT alternate__2_ FROM table_name_7 WHERE coach = "andy brown" AND captain = "nick grady"
CREATE TABLE table_28680377_2 (title VARCHAR, us_viewers__million_ VARCHAR)
What is the title of the episode watched by 0.88 million U.S. viewers?
SELECT title FROM table_28680377_2 WHERE us_viewers__million_ = "0.88"
CREATE TABLE table_22165661_3 (location VARCHAR, score VARCHAR)
What is the location when 2-1 is the score?
SELECT location FROM table_22165661_3 WHERE score = "2-1"
CREATE TABLE table_name_39 (result_f___a VARCHAR, group_position VARCHAR, opponents VARCHAR)
What was the final score agains Dynamo Kyiv, when the group position was 1st?
SELECT result_f___a FROM table_name_39 WHERE group_position = "1st" AND opponents = "dynamo kyiv"
CREATE TABLE table_2170969_2 (network VARCHAR, viewers_in_millions VARCHAR)
What network garnered 2.74 million viewers for Supernatural?
SELECT network FROM table_2170969_2 WHERE viewers_in_millions = "2.74"
CREATE TABLE table_name_6 (erp_w INTEGER, frequency_mhz INTEGER)
What is the average value for ERP W when frequency is more than 100.1?
SELECT AVG(erp_w) FROM table_name_6 WHERE frequency_mhz > 100.1
CREATE TABLE table_name_84 (top_25 INTEGER, events VARCHAR, top_10 VARCHAR)
I want the most top 25 when events are more than 20 and top 10 is more than 21
SELECT MAX(top_25) FROM table_name_84 WHERE events > 20 AND top_10 > 21
CREATE TABLE table_25965003_3 (access_using_a_croatian_identity_card VARCHAR, countries_and_territories VARCHAR)
Can one access the Jersey territory using a Croatian identity card?
SELECT access_using_a_croatian_identity_card FROM table_25965003_3 WHERE countries_and_territories = "Jersey"
CREATE TABLE table_23308178_5 (score VARCHAR, record VARCHAR)
How many different scores are there for the game with 10-3-4 record?
SELECT COUNT(score) FROM table_23308178_5 WHERE record = "10-3-4"
CREATE TABLE table_21330550_2 (date VARCHAR, big_ten_team VARCHAR)
How many dates have a big ten team of #10 purdue?
SELECT COUNT(date) FROM table_21330550_2 WHERE big_ten_team = "#10 Purdue"
CREATE TABLE table_name_37 (away_team VARCHAR)
What did Essendon score when they were the away team?
SELECT away_team AS score FROM table_name_37 WHERE away_team = "essendon"
CREATE TABLE table_name_57 (poles VARCHAR, season VARCHAR, wins VARCHAR)
How many poles did he have in 2006 with under 2 wins?
SELECT poles FROM table_name_57 WHERE season = "2006" AND wins < 2
CREATE TABLE table_name_28 (source VARCHAR, date VARCHAR)
Which source has a date of June 2008?
SELECT source FROM table_name_28 WHERE date = "june 2008"
CREATE TABLE table_name_62 (episode VARCHAR, share VARCHAR, viewers__millions_ VARCHAR, weekly_rank VARCHAR)
Which Episode has a Viewers (millions) larger than 11.26, a Weekly Rank of #8, and a Share of 12?
SELECT episode FROM table_name_62 WHERE viewers__millions_ > 11.26 AND weekly_rank = "#8" AND share = 12
CREATE TABLE table_name_87 (year INTEGER, driver VARCHAR)
what is the year when the driver was kevin lepage?
SELECT SUM(year) FROM table_name_87 WHERE driver = "kevin lepage"
CREATE TABLE table_name_82 (english_title__chinese_title_ VARCHAR, airing_date VARCHAR, genre VARCHAR, number_of_episodes VARCHAR)
What is the english title of the modern drama, episode 20, that airs on 26 sep- 21 oct?
SELECT english_title__chinese_title_ FROM table_name_82 WHERE genre = "modern drama" AND number_of_episodes = 20 AND airing_date = "26 sep- 21 oct"
CREATE TABLE table_name_74 (_percentage_hindu VARCHAR, area VARCHAR)
What percentage of Azad Kashmir is Hindu?
SELECT _percentage_hindu FROM table_name_74 WHERE area = "azad kashmir"
CREATE TABLE table_name_8 (february INTEGER, record VARCHAR)
How many games in February have a record of 40-15-5?
SELECT SUM(february) FROM table_name_8 WHERE record = "40-15-5"
CREATE TABLE table_name_10 (years_as_tallest VARCHAR, floors VARCHAR, street_address VARCHAR)
WHAT IS THE YEAR'S TALLEST VALUE WITH FLOORS LESS THAN 24, AND 05.0 210 north charles street?
SELECT years_as_tallest FROM table_name_10 WHERE floors < 24 AND street_address = "05.0 210 north charles street"
CREATE TABLE table_name_90 (gain VARCHAR, avg_g VARCHAR, long VARCHAR, name VARCHAR)
What is the total gain for Brandon Mcrae with a loss less than 4, and an Avg/g less than -0.1?
SELECT COUNT(gain) FROM table_name_90 WHERE long < 4 AND name = "brandon mcrae" AND avg_g < -0.1
CREATE TABLE table_name_23 (iata VARCHAR, city VARCHAR)
What is the IATA for the city of Amsterdam?
SELECT iata FROM table_name_23 WHERE city = "amsterdam"
CREATE TABLE table_name_82 (debut VARCHAR, born VARCHAR)
What is the debut for the person born in Poole?
SELECT debut FROM table_name_82 WHERE born = "poole"
CREATE TABLE table_name_63 (name_ VARCHAR, b_ VARCHAR, Pwin_percentage VARCHAR)
What is the name of the person with a PWin% of .696?
SELECT name_[b_] FROM table_name_63 WHERE Pwin_percentage = 0.696
CREATE TABLE table_name_36 (week VARCHAR, venue VARCHAR, attendance VARCHAR)
What is the number of weeks where the venue was memorial stadium and the attendance was less than 41,252?
SELECT COUNT(week) FROM table_name_36 WHERE venue = "memorial stadium" AND attendance < 41 OFFSET 252
CREATE TABLE table_24192190_1 (depth VARCHAR, time__utc_ VARCHAR)
When 11:40:26 is the time (utc) what is the depth?
SELECT depth FROM table_24192190_1 WHERE time__utc_ = "11:40:26"
CREATE TABLE table_name_2 (silver VARCHAR, rank VARCHAR)
How many Silvers that have a Rank of 2?
SELECT COUNT(silver) FROM table_name_2 WHERE rank = "2"
CREATE TABLE table_26996293_3 (player VARCHAR, position VARCHAR)
What player drafted was an OG?
SELECT player FROM table_26996293_3 WHERE position = "OG"
CREATE TABLE table_name_12 (date VARCHAR, visitor VARCHAR, record VARCHAR)
What date was the visitor chicago black hawks, and a Record of 1-1?
SELECT date FROM table_name_12 WHERE visitor = "chicago black hawks" AND record = "1-1"
CREATE TABLE table_name_70 (score VARCHAR, attendance VARCHAR)
What was the score when the Rangers' attendance was 23,493?
SELECT score FROM table_name_70 WHERE attendance = "23,493"
CREATE TABLE table_name_98 (original_canadian_air_date VARCHAR, director VARCHAR)
What is the Original Canadian air-date that was directed by Michael Tolkin?
SELECT original_canadian_air_date FROM table_name_98 WHERE director = "michael tolkin"
CREATE TABLE table_name_32 (player VARCHAR, to_par VARCHAR, score VARCHAR)
What is Player, when To Par is "+1", and when Score is "75-68=143"?
SELECT player FROM table_name_32 WHERE to_par = "+1" AND score = 75 - 68 = 143
CREATE TABLE table_28005160_2 (country VARCHAR, city VARCHAR)
What country is new orleans in?
SELECT country FROM table_28005160_2 WHERE city = "New Orleans"
CREATE TABLE table_name_90 (league VARCHAR, year VARCHAR)
Name the league for 1996
SELECT league FROM table_name_90 WHERE year = "1996"
CREATE TABLE table_name_87 (wins INTEGER, tournament VARCHAR, top_5 VARCHAR)
What is the average number of Wins in a PGA Championship with a Top-5 less than 2?
SELECT AVG(wins) FROM table_name_87 WHERE tournament = "pga championship" AND top_5 < 2
CREATE TABLE table_name_56 (rank INTEGER, notes VARCHAR, time VARCHAR)
What is the highest rank for a 6:52.70 time and notes of sa/b?
SELECT MAX(rank) FROM table_name_56 WHERE notes = "sa/b" AND time = "6:52.70"
CREATE TABLE table_name_92 (date VARCHAR, runner_up VARCHAR)
What is Date when Runner-up is Sofía Mulánovich ( per )?
SELECT date FROM table_name_92 WHERE runner_up = "sofía mulánovich ( per )"
CREATE TABLE table_name_59 (position VARCHAR, throws VARCHAR, dob VARCHAR)
Which Position has Throws of r, and a DOB of 12 february 1983?
SELECT position FROM table_name_59 WHERE throws = "r" AND dob = "12 february 1983"
CREATE TABLE table_name_35 (place VARCHAR, score VARCHAR)
What was the place when the score was 65-70-72=207?
SELECT place FROM table_name_35 WHERE score = 65 - 70 - 72 = 207
CREATE TABLE table_name_62 (score VARCHAR, date VARCHAR)
What was the score on 26 July 1930?
SELECT score FROM table_name_62 WHERE date = "26 july 1930"
CREATE TABLE table_name_61 (colors VARCHAR, school VARCHAR)
What Colors has a School of sesser high school?
SELECT colors FROM table_name_61 WHERE school = "sesser high school"
CREATE TABLE table_name_34 (polish_cup INTEGER, player VARCHAR, ekstraklasa VARCHAR)
What is the sum of Polish Cup, when Player is "Maciej Iwański", and when Ekstraklasa is less than 1?
SELECT SUM(polish_cup) FROM table_name_34 WHERE player = "maciej iwański" AND ekstraklasa < 1
CREATE TABLE table_23429629_4 (semi_final VARCHAR, act VARCHAR)
During the act, Playing on Glasses, what was the semi-final?
SELECT semi_final FROM table_23429629_4 WHERE act = "Playing on Glasses"
CREATE TABLE table_name_14 (year VARCHAR, artist VARCHAR)
what year did david whitfield win
SELECT year FROM table_name_14 WHERE artist = "david whitfield"
CREATE TABLE table_2518850_4 (year_of_previous_participation VARCHAR, prefecture VARCHAR)
What was the year of previous participation for the school in the Kagoshima prefecture?
SELECT year_of_previous_participation FROM table_2518850_4 WHERE prefecture = "Kagoshima"
CREATE TABLE table_25316812_1 (desired_rate__p_ VARCHAR, rate_limit__p_ VARCHAR)
What is the desired rate when the rate limit (p) is 50.33?
SELECT desired_rate__p_ FROM table_25316812_1 WHERE rate_limit__p_ = "50.33"
CREATE TABLE table_name_68 (car__number VARCHAR, make VARCHAR, laps VARCHAR)
What is the car # of the Chevrolet that complete 363 laps?
SELECT COUNT(car__number) FROM table_name_68 WHERE make = "chevrolet" AND laps = 363
CREATE TABLE table_16388439_2 (home_team VARCHAR, ground VARCHAR)
When ground is manuka oval what is the home team score?
SELECT COUNT(home_team) AS score FROM table_16388439_2 WHERE ground = "Manuka Oval"
CREATE TABLE table_name_48 (days_held VARCHAR, reign VARCHAR, defenses VARCHAR)
What is the days held the champion with a reign larger than 3 and 1 defense has?
SELECT days_held FROM table_name_48 WHERE reign > 3 AND defenses = 1
CREATE TABLE table_name_29 (lane VARCHAR, heat VARCHAR, name VARCHAR)
what is the number of times that the heat is 3 and the name is cxhristy ekpukhon ihunaegbo?
SELECT COUNT(lane) FROM table_name_29 WHERE heat = 3 AND name = "cxhristy ekpukhon ihunaegbo"
CREATE TABLE table_name_87 (money___$__ VARCHAR, place VARCHAR, score VARCHAR)
What's the money ($) for the t3 place and the score of 74-74-71-69=288?
SELECT money___$__ FROM table_name_87 WHERE place = "t3" AND score = 74 - 74 - 71 - 69 = 288
CREATE TABLE table_name_55 (score VARCHAR, opponent VARCHAR)
What was the score of the game against Minnesota?
SELECT score FROM table_name_55 WHERE opponent = "minnesota"
CREATE TABLE table_name_35 (draws INTEGER, club VARCHAR, played VARCHAR)
How many draws has a Club of real valladolid that was played less than 38?
SELECT MAX(draws) FROM table_name_35 WHERE club = "real valladolid" AND played < 38