answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT album FROM table_name_95 WHERE length = "4:30"
what album is 4:30 long
CREATE TABLE table_name_95 (album VARCHAR, length VARCHAR)
SELECT away_team FROM table_name_26 WHERE venue = "corio oval"
What is the away team at corio oval?
CREATE TABLE table_name_26 (away_team VARCHAR, venue VARCHAR)
SELECT attendance FROM table_14959246_2 WHERE date = "December 10, 1972"
What was the attendance at the game played on December 10, 1972?
CREATE TABLE table_14959246_2 (attendance VARCHAR, date VARCHAR)
SELECT team FROM table_name_61 WHERE game > 55 AND date = "february 24"
Who was the Team that was played against on February 24 and a game after game 55?
CREATE TABLE table_name_61 (team VARCHAR, game VARCHAR, date VARCHAR)
SELECT political_group FROM table_name_58 WHERE name = "p. maelius capitolinus"
What is the Political group for p. maelius capitolinus?
CREATE TABLE table_name_58 (political_group VARCHAR, name VARCHAR)
SELECT outgoing_manager FROM table_27683516_3 WHERE date_of_vacancy = "10 October 2010"
What is the outgoing manager when the date of vacancy is 10 october 2010?
CREATE TABLE table_27683516_3 (outgoing_manager VARCHAR, date_of_vacancy VARCHAR)
SELECT year FROM table_name_13 WHERE serial_title = "the three musketeers"
I want the year for the three musketeers
CREATE TABLE table_name_13 (year VARCHAR, serial_title VARCHAR)
SELECT to_par FROM table_name_48 WHERE money___$__ > 5 OFFSET 500
Which To par has a Money ($) larger than 5,500?
CREATE TABLE table_name_48 (to_par VARCHAR, money___$__ INTEGER)
SELECT country FROM table_name_57 WHERE player = "phil mickelson"
What country is phil mickelson from?
CREATE TABLE table_name_57 (country VARCHAR, player VARCHAR)
SELECT MAX(poles) FROM table_2190919_3
What was the maximum amount of the poles?
CREATE TABLE table_2190919_3 (poles INTEGER)
SELECT area FROM table_name_71 WHERE years = "1–8" AND decile < 7 AND name = "waikari school"
Which area has Years of 1–8, a Decile smaller than 7, and a Name of waikari school?
CREATE TABLE table_name_71 (area VARCHAR, name VARCHAR, years VARCHAR, decile VARCHAR)
SELECT country FROM table_name_32 WHERE to_par = "–2" AND player = "jim thorpe"
Which Country has a To par of –2, and a Player of jim thorpe?
CREATE TABLE table_name_32 (country VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT date FROM table_name_3 WHERE catalog = "reveal50cd/lp" AND region = "united kingdom"
What's the date in the United Kingdom having a catalog of reveal50cd/lp?
CREATE TABLE table_name_3 (date VARCHAR, catalog VARCHAR, region VARCHAR)
SELECT riding_penalties__pts_ FROM table_name_83 WHERE swimming_time__pts_ = "2:18.16 (1264)"
What is the riding penaltie (pts) for the athlete that has a Swimming Time (pts) of 2:18.16 (1264)?
CREATE TABLE table_name_83 (riding_penalties__pts_ VARCHAR, swimming_time__pts_ VARCHAR)
SELECT content FROM table_name_13 WHERE package_option = "qualsiasi" AND television_service = "sky primafila 14"
What is the content when the package/option is qualsiasi and sky primafila 14 is the television service?
CREATE TABLE table_name_13 (content VARCHAR, package_option VARCHAR, television_service VARCHAR)
SELECT incumbent FROM table_2668374_18 WHERE party = "Federalist" AND first_elected = "1803"
What incumbent was a federalist that was first elected in 1803?
CREATE TABLE table_2668374_18 (incumbent VARCHAR, party VARCHAR, first_elected VARCHAR)
SELECT frequency FROM table_name_24 WHERE coverage = "oaxaca guerrero puebla"
What is the frequency of the station with a coverage of oaxaca guerrero puebla?
CREATE TABLE table_name_24 (frequency VARCHAR, coverage VARCHAR)
SELECT ad_freq FROM table_name_28 WHERE show_name = "off the bench"
What is the ad frequency for the Show Off The Bench?
CREATE TABLE table_name_28 (ad_freq VARCHAR, show_name VARCHAR)
SELECT MIN(snatch) FROM table_name_45 WHERE total__kg_ < 318 AND clean_ & _jerk > 175
WHAT IS THE SNATCH WITH TOTAL KG SMALLER THAN 318, AND CLEAN JERK LARGER THAN 175?
CREATE TABLE table_name_45 (snatch INTEGER, total__kg_ VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
SELECT opponent FROM table_name_44 WHERE date = "july 27"
Who was the opponent on July 27?
CREATE TABLE table_name_44 (opponent VARCHAR, date VARCHAR)
SELECT area_in_acres__ha_ FROM table_name_20 WHERE park_name = "bald eagle state park"
What is the area in acres (ha) for the park bald eagle state park?
CREATE TABLE table_name_20 (area_in_acres__ha_ VARCHAR, park_name VARCHAR)
SELECT MAX(drawn) FROM table_name_86 WHERE diff < 186 AND points < 12 AND played < 6
What is the maximum number of draws when the diff is smaller than 186, points are fewer than 12 and games played fewer than 6?
CREATE TABLE table_name_86 (drawn INTEGER, played VARCHAR, diff VARCHAR, points VARCHAR)
SELECT team FROM table_name_77 WHERE manager = "george graham"
Which team has george graham as the manager?
CREATE TABLE table_name_77 (team VARCHAR, manager VARCHAR)
SELECT ID FROM Highschooler WHERE name = "Kyle"
Show the ID of the high schooler named Kyle.
CREATE TABLE Highschooler (ID VARCHAR, name VARCHAR)
SELECT MIN(draws) FROM table_name_80 WHERE byes < 4
What is the smallest draws for Byes less than 4?
CREATE TABLE table_name_80 (draws INTEGER, byes INTEGER)
SELECT date FROM table_name_24 WHERE result = "draw"
On what date was the result a draw?
CREATE TABLE table_name_24 (date VARCHAR, result VARCHAR)
SELECT SUM(attendance) FROM table_name_74 WHERE date = "august 16"
What was the attendance for the game on August 16?
CREATE TABLE table_name_74 (attendance INTEGER, date VARCHAR)
SELECT party FROM table_1805191_33 WHERE district = "New York 26"
What is the party affiliation of New York 26?
CREATE TABLE table_1805191_33 (party VARCHAR, district VARCHAR)
SELECT crowd FROM table_name_24 WHERE home_team = "north melbourne"
How many were in the crowd when North Melbourne was the home team?
CREATE TABLE table_name_24 (crowd VARCHAR, home_team VARCHAR)
SELECT writer_s FROM table_18305523_2 WHERE cover_date = "19 October 1985"
Who wrote the story that is cover date 19 October 1985?
CREATE TABLE table_18305523_2 (writer_s VARCHAR, cover_date VARCHAR)
SELECT date FROM table_name_61 WHERE clock = "0.8-1.6ghz"
Which date has a Clock of 0.8-1.6ghz?
CREATE TABLE table_name_61 (date VARCHAR, clock VARCHAR)
SELECT record FROM table_name_52 WHERE attendance = "8,000"
Who won when the attendance was 8,000?
CREATE TABLE table_name_52 (record VARCHAR, attendance VARCHAR)
SELECT score FROM table_17355716_10 WHERE high_points = "Carlos Boozer (20)"
what is the score of the match with high points carlos boozer (20)
CREATE TABLE table_17355716_10 (score VARCHAR, high_points VARCHAR)
SELECT class_a FROM table_14630796_1 WHERE class_aAAA = Carthage
Name the class a for carthage
CREATE TABLE table_14630796_1 (class_a VARCHAR, class_aAAA VARCHAR, Carthage VARCHAR)
SELECT away_team FROM table_name_6 WHERE home_team = "carlton"
What was the away team that faced Carlton?
CREATE TABLE table_name_6 (away_team VARCHAR, home_team VARCHAR)
SELECT tv_time FROM table_name_29 WHERE week = 3
What is the time in week 3?
CREATE TABLE table_name_29 (tv_time VARCHAR, week VARCHAR)
SELECT SUM(total_apps) FROM table_name_28 WHERE pl_g > 0 AND player = "benayoun" AND cl_apps > 9
What is the sum of the total apps of player benayoun, who has a PL G greater than 0 and more than 9 CL apps?
CREATE TABLE table_name_28 (total_apps INTEGER, cl_apps VARCHAR, pl_g VARCHAR, player VARCHAR)
SELECT departure FROM table_17200372_2 WHERE going_to = "Spalding"
Name the departure for spalding
CREATE TABLE table_17200372_2 (departure VARCHAR, going_to VARCHAR)
SELECT COUNT(score) FROM table_17323529_5 WHERE location_attendance = "Staples Center 13,266"
Name the total number of score for staples center 13,266
CREATE TABLE table_17323529_5 (score VARCHAR, location_attendance VARCHAR)
SELECT away_team AS score FROM table_name_38 WHERE venue = "princes park"
What was the away team's score at Princes Park?
CREATE TABLE table_name_38 (away_team VARCHAR, venue VARCHAR)
SELECT group_a_winner FROM table_1137142_1 WHERE group_d_winner = "Nocerina"
What group a winner was for nocerina?
CREATE TABLE table_1137142_1 (group_a_winner VARCHAR, group_d_winner VARCHAR)
SELECT result FROM table_name_92 WHERE round = 5 AND event = "mt one"
Which Result has a Round of 5, and an Event of mt one?
CREATE TABLE table_name_92 (result VARCHAR, round VARCHAR, event VARCHAR)
SELECT iata FROM table_name_30 WHERE state_territory = "queensland" AND icao = "ybrk"
What IATA has queensland as the state/territory and an ICAO of ybrk?
CREATE TABLE table_name_30 (iata VARCHAR, state_territory VARCHAR, icao VARCHAR)
SELECT pick__number FROM table_name_45 WHERE player = "brent meeke"
What is the Pick # for brent meeke?
CREATE TABLE table_name_45 (pick__number VARCHAR, player VARCHAR)
SELECT m939_series FROM table_name_54 WHERE m809_series = "m817" AND m39_series = "m51"
Name the M939 series with M809 series of m817 and M39 series of m51
CREATE TABLE table_name_54 (m939_series VARCHAR, m809_series VARCHAR, m39_series VARCHAR)
SELECT opponent FROM table_name_67 WHERE against = "norway"
who is the opponent when norway is against?
CREATE TABLE table_name_67 (opponent VARCHAR, against VARCHAR)
SELECT tournament FROM table_name_65 WHERE partner = "tom gorman"
What Tournament has a Partner of tom gorman?
CREATE TABLE table_name_65 (tournament VARCHAR, partner VARCHAR)
SELECT player FROM table_name_63 WHERE date = "june 14, 1969"
Which player is associated with the date June 14, 1969?
CREATE TABLE table_name_63 (player VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_68 WHERE edition = "1985 world group i"
Who is the opponent for the 1985 World Group i edition?
CREATE TABLE table_name_68 (opponent VARCHAR, edition VARCHAR)
SELECT venue FROM table_name_56 WHERE away_team = "melbourne"
Which venue was melbourne the away team of?
CREATE TABLE table_name_56 (venue VARCHAR, away_team VARCHAR)
SELECT name FROM table_name_22 WHERE tour_apps > 7 AND tests > 4 AND career_caps = 20
What name has tour Apps larger than 7, tests larger than 4, and a Career caps of 20?
CREATE TABLE table_name_22 (name VARCHAR, career_caps VARCHAR, tour_apps VARCHAR, tests VARCHAR)
SELECT Team, COUNT(*) FROM technician GROUP BY Team
Show different teams of technicians and the number of technicians in each team.
CREATE TABLE technician (Team VARCHAR)
SELECT finish FROM table_1893276_2 WHERE eliminated = "Jim"
When jim is eliminated what is the finish?
CREATE TABLE table_1893276_2 (finish VARCHAR, eliminated VARCHAR)
SELECT AVG(average) FROM table_name_14 WHERE goalkeeper = "jacobo" AND matches > 32
What is the average of the team who has Jacobo as a goalkeeper and has played more than 32 matches?
CREATE TABLE table_name_14 (average INTEGER, goalkeeper VARCHAR, matches VARCHAR)
SELECT high_rebounds FROM table_name_75 WHERE location = "mohegan sun arena" AND record = "24-7"
Who had the most rebounds in the game at the Mohegan Sun Arena that led to a 24-7 record?
CREATE TABLE table_name_75 (high_rebounds VARCHAR, location VARCHAR, record VARCHAR)
SELECT l2_cache FROM table_name_78 WHERE frequency = "1500mhz"
What's amount of L2 Cache on a device that has a Frequency of 1500mhz?
CREATE TABLE table_name_78 (l2_cache VARCHAR, frequency VARCHAR)
SELECT away_team FROM table_name_3 WHERE venue = "glenferrie oval"
When the Venue was Glenferrie Oval, who is the Away team?
CREATE TABLE table_name_3 (away_team VARCHAR, venue VARCHAR)
SELECT original_japanese FROM table_2160215_1 WHERE english___manga_uk__ = "Sean Barrett"
Who was the original Japanese cast if Sean Barrett acted on the English (Manga UK) version?
CREATE TABLE table_2160215_1 (original_japanese VARCHAR, english___manga_uk__ VARCHAR)
SELECT opponent FROM table_name_9 WHERE home_away = "home" AND date = "july 27"
Name the opponent which has a home/away of home and date of july 27
CREATE TABLE table_name_9 (opponent VARCHAR, home_away VARCHAR, date VARCHAR)
SELECT date FROM table_name_56 WHERE venue = "lake oval"
When was the game played at Lake Oval?
CREATE TABLE table_name_56 (date VARCHAR, venue VARCHAR)
SELECT developer_s_ FROM table_name_22 WHERE genre = "adventure"
Who was the developer(s) of the genre Adventure?
CREATE TABLE table_name_22 (developer_s_ VARCHAR, genre VARCHAR)
SELECT COUNT(population__region_total_) FROM table_12555835_1 WHERE year = 1947
How many figures are given for the region's total in 1947?
CREATE TABLE table_12555835_1 (population__region_total_ VARCHAR, year VARCHAR)
SELECT score FROM table_name_14 WHERE location = "tiger stadium" AND date = "october 12"
What was the score at Tiger Stadium on October 12?
CREATE TABLE table_name_14 (score VARCHAR, location VARCHAR, date VARCHAR)
SELECT result FROM table_1341577_10 WHERE first_elected = 1980
what's result of first elected being 1980
CREATE TABLE table_1341577_10 (result VARCHAR, first_elected VARCHAR)
SELECT date_of_appointment FROM table_name_73 WHERE replaced_by = "reiner geyer"
What was the date of appointment for the replaced manager, reiner geyer?
CREATE TABLE table_name_73 (date_of_appointment VARCHAR, replaced_by VARCHAR)
SELECT SUM(pick) FROM table_name_99 WHERE position = "guard"
What is the sum of the pick of the guard position player?
CREATE TABLE table_name_99 (pick INTEGER, position VARCHAR)
SELECT publication_date FROM table_name_90 WHERE reported_price = "$500,000" AND publisher_s_ = "people" AND person_s_ = "sean preston federline"
What was the publication date of the photos of Sean Preston Federline that cost $500,000 and were published by People?
CREATE TABLE table_name_90 (publication_date VARCHAR, person_s_ VARCHAR, reported_price VARCHAR, publisher_s_ VARCHAR)
SELECT SUM(ave__no) FROM table_name_98 WHERE name = "albula alps" AND height__m_ > 3418
Which sum of AVE-No has a Name of albula alps, and a Height (m) larger than 3418?
CREATE TABLE table_name_98 (ave__no INTEGER, name VARCHAR, height__m_ VARCHAR)
SELECT away FROM table_name_15 WHERE home = "2-2"
WHAT IS THE AWAY WITH HOME AT 2-2?
CREATE TABLE table_name_15 (away VARCHAR, home VARCHAR)
SELECT SUM(total) FROM table_name_10 WHERE gold > 1 AND bronze > 0
Name the sum of total with gold more than 1 and bronze more than 0
CREATE TABLE table_name_10 (total INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT height__mtr_ FROM table_23495048_2 WHERE contestant = "Ulrike Wolful"
How many meters tall is Ulrike Wolful?
CREATE TABLE table_23495048_2 (height__mtr_ VARCHAR, contestant VARCHAR)
SELECT name FROM table_15463188_7 WHERE school_club_team = "State"
Name the name of the state
CREATE TABLE table_15463188_7 (name VARCHAR, school_club_team VARCHAR)
SELECT high_rebounds FROM table_name_13 WHERE series = "4–2"
What is the High rebounds with a Series with 4–2?
CREATE TABLE table_name_13 (high_rebounds VARCHAR, series VARCHAR)
SELECT MAX(attendance) FROM table_name_56 WHERE home = "hispano"
What was the highest attendance for the Hispano team?
CREATE TABLE table_name_56 (attendance INTEGER, home VARCHAR)
SELECT japanese_title FROM table_name_88 WHERE romaji_title = "ashita wa ashita no kaze ga fuku"
What title to the japanese give the romani title ashita wa ashita no kaze ga fuku?
CREATE TABLE table_name_88 (japanese_title VARCHAR, romaji_title VARCHAR)
SELECT adelaide FROM table_name_6 WHERE sydney = "yes" AND perth = "yes"
Name the Adelaide for Sydney of yes and Perth of yes
CREATE TABLE table_name_6 (adelaide VARCHAR, sydney VARCHAR, perth VARCHAR)
SELECT date FROM table_22654073_6 WHERE high_points = "LeBron James , Mo Williams (21)"
Name the date for lebron james , mo williams (21)
CREATE TABLE table_22654073_6 (date VARCHAR, high_points VARCHAR)
SELECT cores FROM table_2467150_2 WHERE tdp = "17 W"
What is every value for cores if TDP is 17 W?
CREATE TABLE table_2467150_2 (cores VARCHAR, tdp VARCHAR)
SELECT MIN(assists) FROM table_name_71 WHERE pims = 70 AND goals < 19
What is the smallest number of assists with 70 Pims and less than 19 goals?
CREATE TABLE table_name_71 (assists INTEGER, pims VARCHAR, goals VARCHAR)
SELECT investor_id, AVG(share_count) FROM TRANSACTIONS GROUP BY investor_id ORDER BY AVG(share_count)
Show the average share count of transactions each each investor, ordered by average share count.
CREATE TABLE TRANSACTIONS (investor_id VARCHAR, share_count INTEGER)
SELECT fcc_info FROM table_name_74 WHERE city_of_license = "tribune, kansas"
What is the FCC info for the city of Tribune, Kansas?
CREATE TABLE table_name_74 (fcc_info VARCHAR, city_of_license VARCHAR)
SELECT COUNT(points) FROM table_name_1 WHERE artist = "mia martini"
How many points does mia martini have?
CREATE TABLE table_name_1 (points VARCHAR, artist VARCHAR)
SELECT SUM(points) FROM table_name_59 WHERE rank = "2nd" AND wins < 6
What is the total of the points for wins under 6 and a rank of 2nd?
CREATE TABLE table_name_59 (points INTEGER, rank VARCHAR, wins VARCHAR)
SELECT type FROM table_name_26 WHERE rank = 2
What is the type for rank 2?
CREATE TABLE table_name_26 (type VARCHAR, rank VARCHAR)
SELECT pens FROM table_name_10 WHERE conv = "6"
I want to know the pens with conv of 6
CREATE TABLE table_name_10 (pens VARCHAR, conv VARCHAR)
SELECT game_3 FROM table_name_75 WHERE game_1 = "brett kenny"
Which Game 3 has a Game 1 of brett kenny?
CREATE TABLE table_name_75 (game_3 VARCHAR, game_1 VARCHAR)
SELECT MAX(long) FROM table_name_3 WHERE loss < 7 AND avg_g < 25.1
What was the highest long with less than 7 losses and an Avg/G smaller than 25.1?
CREATE TABLE table_name_3 (long INTEGER, loss VARCHAR, avg_g VARCHAR)
SELECT name FROM table_name_33 WHERE qual_2 = "1:46.025"
What name has a qual 2 of 1:46.025?
CREATE TABLE table_name_33 (name VARCHAR, qual_2 VARCHAR)
SELECT format FROM table_name_70 WHERE frequency > 1050 AND station = "kvto"
Which format has a Frequency larger than 1050, and a Station of kvto?
CREATE TABLE table_name_70 (format VARCHAR, frequency VARCHAR, station VARCHAR)
SELECT date FROM table_name_60 WHERE home_team = "carlton"
When did Carlton play as the home team?
CREATE TABLE table_name_60 (date VARCHAR, home_team VARCHAR)
SELECT outcome FROM table_177273_2 WHERE year = 1975
What was the outcome in 1975?
CREATE TABLE table_177273_2 (outcome VARCHAR, year VARCHAR)
SELECT time_retired FROM table_name_94 WHERE rider = "simone grotzkyj"
What was the time/retired for the car raced by Simone Grotzkyj?
CREATE TABLE table_name_94 (time_retired VARCHAR, rider VARCHAR)
SELECT COUNT(date) FROM table_name_39 WHERE score_in_the_final = "4–6, 4–6"
How many days had a score of 4–6, 4–6?
CREATE TABLE table_name_39 (date VARCHAR, score_in_the_final VARCHAR)
SELECT MIN(first_elected) FROM table_name_19 WHERE party = "republican" AND district = "minnesota 1"
What is the lowest First Elected, when Party is "Republican", and when District is "Minnesota 1"?
CREATE TABLE table_name_19 (first_elected INTEGER, party VARCHAR, district VARCHAR)
SELECT MIN(number_of_seasons_in_top_division) FROM table_11250_4
What is the least number of seasons in top division?
CREATE TABLE table_11250_4 (number_of_seasons_in_top_division INTEGER)
SELECT MAX(matches_as_champion) FROM table_name_16 WHERE rank = 5
Which Matches has champion Rank of 5?
CREATE TABLE table_name_16 (matches_as_champion INTEGER, rank VARCHAR)
SELECT COUNT(*) FROM Church WHERE Open_Date < 1850
How many churches opened before 1850 are there?
CREATE TABLE Church (Open_Date INTEGER)
SELECT COUNT(party) FROM table_1342292_4 WHERE incumbent = "William B. Cravens"
How many parties does william b. cravens represent?
CREATE TABLE table_1342292_4 (party VARCHAR, incumbent VARCHAR)
SELECT COUNT(total_goals) FROM table_name_64 WHERE league_cup_apps = "2" AND fa_cup_goals < 0
What is the goals number of goals for the player who had 2 league cup apps and 0 FA cup goals?
CREATE TABLE table_name_64 (total_goals VARCHAR, league_cup_apps VARCHAR, fa_cup_goals VARCHAR)
SELECT position FROM table_20785990_2 WHERE home_town = "North Babylon, NY"
What is the position of the player who's hometown is North Babylon, NY?
CREATE TABLE table_20785990_2 (position VARCHAR, home_town VARCHAR)