question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
How many students are there?
CREATE TABLE student (Id VARCHAR)
SELECT COUNT(*) FROM student
What was the attendance for the game where the score was 0-6?
CREATE TABLE table_name_8 (attendance VARCHAR, score VARCHAR)
SELECT attendance FROM table_name_8 WHERE score = "0-6"
Which Top-10 has a Cuts made larger than 42?
CREATE TABLE table_name_57 (top_10 INTEGER, cuts_made INTEGER)
SELECT MIN(top_10) FROM table_name_57 WHERE cuts_made > 42
How many tries against did the club with 383 points against have?
CREATE TABLE table_name_39 (tries_against VARCHAR, points_against VARCHAR)
SELECT tries_against FROM table_name_39 WHERE points_against = "383"
What's the name of the train to Madurai Junction?
CREATE TABLE table_23477312_1 (train_name VARCHAR, destination VARCHAR)
SELECT train_name FROM table_23477312_1 WHERE destination = "Madurai Junction"
Name the southern lakota for morning
CREATE TABLE table_1499791_2 (southern_lakota VARCHAR, english_gloss VARCHAR)
SELECT southern_lakota FROM table_1499791_2 WHERE english_gloss = "morning"
What unit has gen et sp nov as the novelty?
CREATE TABLE table_name_51 (unit VARCHAR, novelty VARCHAR)
SELECT unit FROM table_name_51 WHERE novelty = "gen et sp nov"
What country is Paul Runyan from?
CREATE TABLE table_name_6 (country VARCHAR, name VARCHAR)
SELECT country FROM table_name_6 WHERE name = "paul runyan"
what is the length (miles) when the east or north terminus is ne 2 in lincoln?
CREATE TABLE table_name_95 (length__miles_ VARCHAR, east_or_north_terminus VARCHAR)
SELECT COUNT(length__miles_) FROM table_name_95 WHERE east_or_north_terminus = "ne 2 in lincoln"
What was the home score at the Princes Park game?
CREATE TABLE table_name_95 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_95 WHERE venue = "princes park"
How many escorts does the nation with 6 cruisers have?
CREATE TABLE table_name_74 (escorts VARCHAR, cruisers VARCHAR)
SELECT escorts FROM table_name_74 WHERE cruisers = "6"
What is the week when type is cardio workout?
CREATE TABLE table_27512025_1 (week VARCHAR, type VARCHAR)
SELECT week FROM table_27512025_1 WHERE type = "Cardio Workout"
For the Cage Combat Fighting Championships: Mayhem, what was the record?
CREATE TABLE table_name_13 (record VARCHAR, event VARCHAR)
SELECT record FROM table_name_13 WHERE event = "cage combat fighting championships: mayhem"
How many rounds did Blane Smith play linebacker?
CREATE TABLE table_name_12 (round VARCHAR, position VARCHAR, player VARCHAR)
SELECT COUNT(round) FROM table_name_12 WHERE position = "linebacker" AND player = "blane smith"
What is the rank when there are more than 107 laps and the qual is 137.825?
CREATE TABLE table_name_26 (rank VARCHAR, laps VARCHAR, qual VARCHAR)
SELECT rank FROM table_name_26 WHERE laps > 107 AND qual = "137.825"
What is the coinage metal for a KM number of S75?
CREATE TABLE table_26336060_19 (coinage_metal VARCHAR, km_number VARCHAR)
SELECT coinage_metal FROM table_26336060_19 WHERE km_number = "S75"
Who was the away team playing at Carlton?
CREATE TABLE table_16387653_1 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_16387653_1 WHERE home_team = "Carlton"
How many appearances were made by people that had 5 goals and less than 7 rank?
CREATE TABLE table_name_95 (appearances VARCHAR, goals VARCHAR, rank VARCHAR)
SELECT COUNT(appearances) FROM table_name_95 WHERE goals = 5 AND rank < 7
What is the name of the ot position player with a round greater than 4?
CREATE TABLE table_name_69 (name VARCHAR, round VARCHAR, position VARCHAR)
SELECT name FROM table_name_69 WHERE round > 4 AND position = "ot"
Where did the team play and what was the attendance against new jersey?
CREATE TABLE table_13619135_7 (location_attendance VARCHAR, team VARCHAR)
SELECT location_attendance FROM table_13619135_7 WHERE team = "New Jersey"
Opponent of @ braves, and a Loss of pelfrey (2–5) had what score?
CREATE TABLE table_name_88 (score VARCHAR, opponent VARCHAR, loss VARCHAR)
SELECT score FROM table_name_88 WHERE opponent = "@ braves" AND loss = "pelfrey (2–5)"
Which apparatus had a final score that was more than 17.75?
CREATE TABLE table_name_38 (apparatus VARCHAR, score_final INTEGER)
SELECT apparatus FROM table_name_38 WHERE score_final > 17.75
What's the average number of silver medals for germany (GER) having more than 3 bronze?
CREATE TABLE table_name_44 (silver INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT AVG(silver) FROM table_name_44 WHERE nation = "germany (ger)" AND bronze > 3
What's the rank for Daewoo Business Center when the notes are cancelled?
CREATE TABLE table_name_39 (rank VARCHAR, notes VARCHAR, name VARCHAR)
SELECT rank FROM table_name_39 WHERE notes = "cancelled" AND name = "daewoo business center"
What was the venue where there were 55 runs?
CREATE TABLE table_name_12 (venue VARCHAR, runs VARCHAR)
SELECT venue FROM table_name_12 WHERE runs = "55"
What's the title of the episode with a production code 136?
CREATE TABLE table_12226390_6 (title VARCHAR, production_code VARCHAR)
SELECT title FROM table_12226390_6 WHERE production_code = 136
what are the times where the play is 5
CREATE TABLE table_27733909_1 (date VARCHAR, game VARCHAR)
SELECT date FROM table_27733909_1 WHERE game = 5
How many times did jim vivona win?
CREATE TABLE table_name_2 (win__number VARCHAR, winner VARCHAR)
SELECT COUNT(win__number) FROM table_name_2 WHERE winner = "jim vivona"
What Date has a Location Attendance of reunion arena?
CREATE TABLE table_name_44 (date VARCHAR, location_attendance VARCHAR)
SELECT date FROM table_name_44 WHERE location_attendance = "reunion arena"
What is the Team Record, when the Result is l 0–24?
CREATE TABLE table_name_52 (team_record VARCHAR, result VARCHAR)
SELECT team_record FROM table_name_52 WHERE result = "l 0–24"
What is the highest measure number?
CREATE TABLE table_256286_39 (meas_num INTEGER)
SELECT MAX(meas_num) FROM table_256286_39
with silver count at 0, what is the lowest bronze count?
CREATE TABLE table_name_82 (bronze INTEGER, silver INTEGER)
SELECT MIN(bronze) FROM table_name_82 WHERE silver < 0
Which year did the World indoor championships gave a position of 3rd?
CREATE TABLE table_name_12 (year INTEGER, competition VARCHAR, position VARCHAR)
SELECT SUM(year) FROM table_name_12 WHERE competition = "world indoor championships" AND position = "3rd"
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 withdrawal FROM table_name_95 WHERE lb & sc_number < 16 AND sr_number = 2011
What Secretary has a Social AO of lieke de boer?
CREATE TABLE table_name_12 (secretary VARCHAR, social_ao VARCHAR)
SELECT secretary FROM table_name_12 WHERE social_ao = "lieke de boer"
What is the average silver for a rank less than 8, were there were no more than 4 bronze and 12 in total?
CREATE TABLE table_name_44 (silver INTEGER, bronze VARCHAR, rank VARCHAR, total VARCHAR)
SELECT AVG(silver) FROM table_name_44 WHERE rank < 8 AND total = 12 AND bronze < 4
I want the control trailers for 1931 with builder of grcw
CREATE TABLE table_name_45 (Control VARCHAR, year VARCHAR, builder VARCHAR)
SELECT Control AS trailers FROM table_name_45 WHERE year = "1931" AND builder = "grcw"
Name the location attendance for january 18
CREATE TABLE table_23286112_8 (location_attendance VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_23286112_8 WHERE date = "January 18"
Is mt lawley day or boarding?
CREATE TABLE table_name_84 (day_boarding VARCHAR, location VARCHAR)
SELECT day_boarding FROM table_name_84 WHERE location = "mt lawley"
What is the accession number of the protein with a divergence from human lineage of 937.5?
CREATE TABLE table_name_74 (accession_number VARCHAR, divergence_from_human_lineage__mya_ VARCHAR)
SELECT accession_number FROM table_name_74 WHERE divergence_from_human_lineage__mya_ = 937.5
How many songs have a lead vocal?
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "lead"
What was the box score during a home game of the Adelaide 36ers?
CREATE TABLE table_name_39 (Box VARCHAR, home_team VARCHAR)
SELECT Box AS score FROM table_name_39 WHERE home_team = "adelaide 36ers"
What is Greg Norman's place?
CREATE TABLE table_name_89 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_89 WHERE player = "greg norman"
Which home team has a venue of windy hill?
CREATE TABLE table_name_32 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_32 WHERE venue = "windy hill"
What year has a not nominated result and a nomination title of "the color of fame"?
CREATE TABLE table_name_62 (year__ceremony_ VARCHAR, result VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT year__ceremony_ FROM table_name_62 WHERE result = "not nominated" AND film_title_used_in_nomination = "the color of fame"
what's the grand finalist where winners is collingwood
CREATE TABLE table_1139835_3 (grand_finalist VARCHAR, winners VARCHAR)
SELECT grand_finalist FROM table_1139835_3 WHERE winners = "Collingwood"
What is the average number of laps for grid 8?
CREATE TABLE table_name_69 (laps INTEGER, grid VARCHAR)
SELECT AVG(laps) FROM table_name_69 WHERE grid = 8
What's the model designation of the model with GVW of 2828/2.78 kg/ton and axle ratio of 9/47?
CREATE TABLE table_20866024_3 (model_designation VARCHAR, gvw__kg_ton_ VARCHAR, axle_ratio VARCHAR)
SELECT model_designation FROM table_20866024_3 WHERE gvw__kg_ton_ = "2828/2.78" AND axle_ratio = "9/47"
What event is on 18 December 2009?
CREATE TABLE table_name_59 (event VARCHAR, date VARCHAR)
SELECT event FROM table_name_59 WHERE date = "18 december 2009"
What is the membership card held by both members living in Hartford and ones living in Waterbury address?
CREATE TABLE member (membership_card VARCHAR, address VARCHAR)
SELECT membership_card FROM member WHERE address = 'Hartford' INTERSECT SELECT membership_card FROM member WHERE address = 'Waterbury'
Name the number of song for julia bermejo
CREATE TABLE table_19763199_5 (song VARCHAR, artist VARCHAR)
SELECT COUNT(song) FROM table_19763199_5 WHERE artist = "Julia Bermejo"
Name the most pick number for cfl team being edmonton eskimos
CREATE TABLE table_16575609_4 (pick__number INTEGER, cfl_team VARCHAR)
SELECT MAX(pick__number) FROM table_16575609_4 WHERE cfl_team = "Edmonton Eskimos"
On what date is the winning team Abt Sportsline and pole position Mattias Ekström in the Circuit Ricardo Tormo , Valencia?
CREATE TABLE table_26267607_2 (date VARCHAR, circuit VARCHAR, winning_team VARCHAR, pole_position VARCHAR)
SELECT date FROM table_26267607_2 WHERE winning_team = "Abt Sportsline" AND pole_position = "Mattias Ekström" AND circuit = "circuit Ricardo Tormo , Valencia"
Which Crowd has a Home team of st kilda?
CREATE TABLE table_name_85 (crowd VARCHAR, home_team VARCHAR)
SELECT crowd FROM table_name_85 WHERE home_team = "st kilda"
Which Name has a Position smaller than 2?
CREATE TABLE table_name_72 (name VARCHAR, position INTEGER)
SELECT name FROM table_name_72 WHERE position < 2
What season has a number less than 90, Mitte as the league and spvgg ruhmannsfelden as the team?
CREATE TABLE table_name_95 (season VARCHAR, team VARCHAR, number VARCHAR, league VARCHAR)
SELECT season FROM table_name_95 WHERE number < 90 AND league = "mitte" AND team = "spvgg ruhmannsfelden"
What is the smallest number of third place earned for the Es Sahel at a rank less than 3?
CREATE TABLE table_name_37 (third INTEGER, club VARCHAR, rank VARCHAR)
SELECT MIN(third) FROM table_name_37 WHERE club = "es sahel" AND rank < 3
What was the retired time for someone who was on grid 18?
CREATE TABLE table_name_76 (time_retired VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_76 WHERE grid = "18"
What chassis had an entrant of G.A. Vandervell?
CREATE TABLE table_name_5 (chassis VARCHAR, entrant VARCHAR)
SELECT chassis FROM table_name_5 WHERE entrant = "g.a. vandervell"
Find the number of orchestras whose record format is "CD" or "DVD".
CREATE TABLE orchestra (Major_Record_Format VARCHAR)
SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = "CD" OR Major_Record_Format = "DVD"
What is the name of the player with t6 as his place and a country of United states?
CREATE TABLE table_name_85 (player VARCHAR, place VARCHAR, country VARCHAR)
SELECT player FROM table_name_85 WHERE place = "t6" AND country = "united states"
Who were Dürr's opponents in the final on year 1968?
CREATE TABLE table_2112025_3 (opponents_in_the_final VARCHAR, year VARCHAR)
SELECT opponents_in_the_final FROM table_2112025_3 WHERE year = 1968
What was the date of game 4?
CREATE TABLE table_name_92 (date VARCHAR, game VARCHAR)
SELECT date FROM table_name_92 WHERE game = 4
What year's Season had an Overall of 77?
CREATE TABLE table_name_70 (season VARCHAR, overall VARCHAR)
SELECT season FROM table_name_70 WHERE overall = "77"
How many laps recorded in 2001?
CREATE TABLE table_17802778_1 (laps VARCHAR, year VARCHAR)
SELECT laps FROM table_17802778_1 WHERE year = 2001
What was the location and attendance with a score of w 89–86 (ot)?
CREATE TABLE table_name_62 (location_attendance VARCHAR, score VARCHAR)
SELECT location_attendance FROM table_name_62 WHERE score = "w 89–86 (ot)"
Which Constructor has Pergusa in the Circuit?
CREATE TABLE table_name_49 (constructor VARCHAR, circuit VARCHAR)
SELECT constructor FROM table_name_49 WHERE circuit = "pergusa"
The EPT German open was won by which listed winner?
CREATE TABLE table_name_8 (winner VARCHAR, event VARCHAR)
SELECT winner FROM table_name_8 WHERE event = "ept german open"
What is the amount of cash on hand that has an after debt of $327,094
CREATE TABLE table_name_60 (cash_on_hand VARCHAR, after_debt VARCHAR)
SELECT cash_on_hand FROM table_name_60 WHERE after_debt = "$327,094"
Which country had a round of Q3?
CREATE TABLE table_name_58 (country VARCHAR, round VARCHAR)
SELECT country FROM table_name_58 WHERE round = "q3"
What are the names and parties of representatives?
CREATE TABLE representative (Name VARCHAR, Party VARCHAR)
SELECT Name, Party FROM representative
When was the release date for technology that has a Multi 1 of 10.5×?
CREATE TABLE table_name_72 (release_date VARCHAR, multi_1 VARCHAR)
SELECT release_date FROM table_name_72 WHERE multi_1 = "10.5×"
On the date of june 7 what was the score?
CREATE TABLE table_name_31 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_31 WHERE date = "june 7"
What is the boat builder for a boat built in 1910/11 and a number of 39?
CREATE TABLE table_name_42 (boat_builder VARCHAR, year_built VARCHAR, number VARCHAR)
SELECT boat_builder FROM table_name_42 WHERE year_built = "1910/11" AND number = 39
What is Date, when Visitor is Toronto?
CREATE TABLE table_name_37 (date VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_37 WHERE visitor = "toronto"
What year had an issue price of $94.95 and theme of Amethyst crystal?
CREATE TABLE table_name_87 (year INTEGER, issue_price VARCHAR, theme VARCHAR)
SELECT AVG(year) FROM table_name_87 WHERE issue_price = "$94.95" AND theme = "amethyst crystal"
what is the name of the episode whose premiere was in march 2, 1997?
CREATE TABLE table_2226817_12 (title VARCHAR, original_air_date VARCHAR)
SELECT title FROM table_2226817_12 WHERE original_air_date = "March 2, 1997"
What home team played Fitzroy?
CREATE TABLE table_name_57 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_57 WHERE away_team = "fitzroy"
Who was the opponent in the championship in Johannesburg, South Africa?
CREATE TABLE table_name_63 (opponent_in_the_final VARCHAR, championship VARCHAR)
SELECT opponent_in_the_final FROM table_name_63 WHERE championship = "johannesburg, south africa"
What is the episode number of the episode broadcast on 21 September 2001?
CREATE TABLE table_name_79 (episode_number VARCHAR, broadcast_date VARCHAR)
SELECT episode_number FROM table_name_79 WHERE broadcast_date = "21 september 2001"
What is the number in attendance at Los Angeles Memorial Coliseum?
CREATE TABLE table_name_68 (attendance VARCHAR, venue VARCHAR)
SELECT COUNT(attendance) FROM table_name_68 WHERE venue = "los angeles memorial coliseum"
What is the 1st week sales for the album finding forever before the number 6?
CREATE TABLE table_name_51 (album VARCHAR, number VARCHAR)
SELECT SUM(1 AS st_week_sales) FROM table_name_51 WHERE album = "finding forever" AND number < 6
Who position did matthew tassone who was drafted after round 5 play?
CREATE TABLE table_name_24 (position VARCHAR, round VARCHAR, player VARCHAR)
SELECT position FROM table_name_24 WHERE round > 5 AND player = "matthew tassone"
With the Royal Navy as Combatants B, what was the result?
CREATE TABLE table_26977890_1 (result VARCHAR, combatants_b VARCHAR)
SELECT result FROM table_26977890_1 WHERE combatants_b = "Royal Navy"
Moorabbin oval is home to what team?
CREATE TABLE table_name_53 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_53 WHERE venue = "moorabbin oval"
Which Surface has an Outcome of runner-up, and a Score in the final of 4–6, 6–7, 6–2, 2–6?
CREATE TABLE table_name_87 (surface VARCHAR, outcome VARCHAR, score_in_the_final VARCHAR)
SELECT surface FROM table_name_87 WHERE outcome = "runner-up" AND score_in_the_final = "4–6, 6–7, 6–2, 2–6"
Return the first names and last names of employees who earn more than 30000 in salary.
CREATE TABLE employee (fname VARCHAR, lname VARCHAR, salary INTEGER)
SELECT fname, lname FROM employee WHERE salary > 30000
What is the date released when the Left Bloc had 3.2%?
CREATE TABLE table_name_35 (date_released VARCHAR, left_bloc VARCHAR)
SELECT date_released FROM table_name_35 WHERE left_bloc = "3.2%"
Name the total number of dar for disney channel and number is 613
CREATE TABLE table_15887683_9 (dar VARCHAR, television_service VARCHAR, n° VARCHAR)
SELECT COUNT(dar) FROM table_15887683_9 WHERE television_service = "Disney Channel" AND n° = 613
What is the record for Big Ten Team #4 Purdue?
CREATE TABLE table_23058971_8 (winner VARCHAR, big_ten_team VARCHAR)
SELECT winner FROM table_23058971_8 WHERE big_ten_team = "#4 Purdue"
What is the frequency MHz of the ERP W's greater than 250?
CREATE TABLE table_name_55 (frequency_mhz INTEGER, erp_w INTEGER)
SELECT AVG(frequency_mhz) FROM table_name_55 WHERE erp_w > 250
What is the Competition with a Result of win with a Score that is 1-0?
CREATE TABLE table_name_91 (competition VARCHAR, result VARCHAR, score VARCHAR)
SELECT competition FROM table_name_91 WHERE result = "win" AND score = "1-0"
What is the average rank for players with under 26 events and less than 2 wins?
CREATE TABLE table_name_74 (rank INTEGER, events VARCHAR, wins VARCHAR)
SELECT AVG(rank) FROM table_name_74 WHERE events < 26 AND wins < 2
Name the ends lost for 67 pa
CREATE TABLE table_15333005_1 (Ends VARCHAR, pa VARCHAR)
SELECT Ends AS lost FROM table_15333005_1 WHERE pa = 67
Which venue was fouded before 2000 for basketball?
CREATE TABLE table_name_31 (venue VARCHAR, founded VARCHAR, sport VARCHAR)
SELECT venue FROM table_name_31 WHERE founded < 2000 AND sport = "basketball"
Where were jamie cox & scott kremerskothen paired?
CREATE TABLE table_name_24 (venue VARCHAR, batsmen VARCHAR)
SELECT venue FROM table_name_24 WHERE batsmen = "jamie cox & scott kremerskothen"
What is the lowest code number for the remainder of the municipality that has an area bigger than 15.34 squared kilometers, a population greater than 762 and a language of xhosa spoken?
CREATE TABLE table_name_3 (code INTEGER, place VARCHAR, area__km_2__ VARCHAR, population VARCHAR, most_spoken_language VARCHAR)
SELECT MIN(code) FROM table_name_3 WHERE population > 762 AND most_spoken_language = "xhosa" AND area__km_2__ > 15.34 AND place = "remainder of the municipality"
What visiting team has a record of 9–5–2?
CREATE TABLE table_name_93 (visitor VARCHAR, record VARCHAR)
SELECT visitor FROM table_name_93 WHERE record = "9–5–2"
Show the range that has the most number of mountains.
CREATE TABLE mountain (Range VARCHAR)
SELECT Range FROM mountain GROUP BY Range ORDER BY COUNT(*) DESC LIMIT 1
What district did S. William Green belong to?
CREATE TABLE table_1341663_33 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341663_33 WHERE incumbent = "S. William Green"