question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the sum of rank when total is 3 and the nation is Australia?
CREATE TABLE table_name_12 (rank INTEGER, total VARCHAR, nation VARCHAR)
SELECT SUM(rank) FROM table_name_12 WHERE total = 3 AND nation = "australia"
What is the most lanes used in races with more than 1 heat and a winning mark of 7.25?
CREATE TABLE table_name_60 (lane INTEGER, heat VARCHAR, mark VARCHAR)
SELECT MAX(lane) FROM table_name_60 WHERE heat > 1 AND mark = "7.25"
Playing against the Seattle Seahawks in a week after week 1 before 69,149 people what was the result of the game?
CREATE TABLE table_name_63 (result VARCHAR, opponent VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_63 WHERE week > 1 AND attendance = "69,149" AND opponent = "seattle seahawks"
What is the voltage iinput [V/A] of the whr-g54s model?
CREATE TABLE table_name_89 (voltage_input_ VARCHAR, v_a VARCHAR, model VARCHAR)
SELECT voltage_input_[v_a] FROM table_name_89 WHERE model = "whr-g54s"
Who was the driver when there were 35 laps?
CREATE TABLE table_name_10 (driver VARCHAR, laps VARCHAR)
SELECT driver FROM table_name_10 WHERE laps = "35"
ilm of taukukauppiaat has how many total number of years?
CREATE TABLE table_name_52 (year VARCHAR, film VARCHAR)
SELECT COUNT(year) FROM table_name_52 WHERE film = "taukukauppiaat"
How many different counts for won points does Flavia Pennetta have?
CREATE TABLE table_27615896_20 (points VARCHAR, player VARCHAR)
SELECT COUNT(points) AS won FROM table_27615896_20 WHERE player = "Flavia Pennetta"
how many country has moto3/125cc with 15
CREATE TABLE table_2889810_2 (country VARCHAR, moto3_125cc VARCHAR)
SELECT country FROM table_2889810_2 WHERE moto3_125cc = 15
Who directed the episode with production code ca311?
CREATE TABLE table_25740548_4 (directed_by VARCHAR, production_code VARCHAR)
SELECT directed_by FROM table_25740548_4 WHERE production_code = "CA311"
How many longs have a gain less than 379, and 0.8 as an avg/g?
CREATE TABLE table_name_11 (long INTEGER, gain VARCHAR, avg_g VARCHAR)
SELECT SUM(long) FROM table_name_11 WHERE gain < 379 AND avg_g = 0.8
How many dar are in germany?
CREATE TABLE table_15887683_15 (dar VARCHAR, country VARCHAR)
SELECT dar FROM table_15887683_15 WHERE country = "Germany"
Show the dates, places, and names of events in descending order of the attendance.
CREATE TABLE event (Date VARCHAR, Name VARCHAR, venue VARCHAR, Event_Attendance VARCHAR)
SELECT Date, Name, venue FROM event ORDER BY Event_Attendance DESC
How many Losses have South West DFL of coleraine, and an Against smaller than 891?
CREATE TABLE table_name_51 (losses VARCHAR, south_west_dfl VARCHAR, against VARCHAR)
SELECT COUNT(losses) FROM table_name_51 WHERE south_west_dfl = "coleraine" AND against < 891
What is the lowest overall amount of shutouts?
CREATE TABLE table_29743928_4 (shutouts INTEGER)
SELECT MIN(shutouts) FROM table_29743928_4
What's the pick number of the player whose position is CB?
CREATE TABLE table_10812938_5 (pick__number VARCHAR, position VARCHAR)
SELECT pick__number FROM table_10812938_5 WHERE position = "CB"
What is the archive of the show that aired on 18april1970?
CREATE TABLE table_2102898_1 (archive VARCHAR, broadcast_date VARCHAR)
SELECT archive FROM table_2102898_1 WHERE broadcast_date = "18April1970"
Name the total number of outgoing manager for villarreal b
CREATE TABLE table_27666856_3 (outgoing_manager VARCHAR, team VARCHAR)
SELECT COUNT(outgoing_manager) FROM table_27666856_3 WHERE team = "Villarreal B"
Name the type for 1245 enrollment
CREATE TABLE table_2076533_1 (type VARCHAR, enrollment__2005_ VARCHAR)
SELECT type FROM table_2076533_1 WHERE enrollment__2005_ = 1245
What region has the Chrysalis label, and a Catalog of chr 1047?
CREATE TABLE table_name_13 (region VARCHAR, label VARCHAR, catalog VARCHAR)
SELECT region FROM table_name_13 WHERE label = "chrysalis" AND catalog = "chr 1047"
What is High Rebounds, when Location Attendance is "Time Warner Cable Arena 10,848"?
CREATE TABLE table_name_14 (high_rebounds VARCHAR, location_attendance VARCHAR)
SELECT high_rebounds FROM table_name_14 WHERE location_attendance = "time warner cable arena 10,848"
What is Player, when Place is 2?
CREATE TABLE table_name_93 (player VARCHAR, place VARCHAR)
SELECT player FROM table_name_93 WHERE place = "2"
Which Winners club has an Event of hang tight?
CREATE TABLE table_name_68 (winners_club VARCHAR, event VARCHAR)
SELECT winners_club FROM table_name_68 WHERE event = "hang tight"
Name the uk air date for audience share in timeslot in 7.3%
CREATE TABLE table_19834691_4 (uk_air_date VARCHAR, audience_share_in_timeslot VARCHAR)
SELECT uk_air_date FROM table_19834691_4 WHERE audience_share_in_timeslot = "7.3%"
What is the score of the game on January 12?
CREATE TABLE table_name_46 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_46 WHERE date = "january 12"
What was the away team score when the home team was Carlton?
CREATE TABLE table_name_94 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_94 WHERE home_team = "carlton"
What was the result of the game at the Riverfront Stadium after week 8?
CREATE TABLE table_name_77 (result VARCHAR, location VARCHAR, week VARCHAR)
SELECT result FROM table_name_77 WHERE location = "riverfront stadium" AND week = "8"
What aircraft has 129 made?
CREATE TABLE table_name_40 (aircraft VARCHAR, quantity VARCHAR)
SELECT aircraft FROM table_name_40 WHERE quantity = "129"
What place did the celebrity who is famous for being an athlete finish?
CREATE TABLE table_name_39 (finished VARCHAR, famous_for VARCHAR)
SELECT finished FROM table_name_39 WHERE famous_for = "athlete"
What is the sum of the cultural and educational panel value with an administrative panel of 0 and an agricultural panel value less than 0?
CREATE TABLE table_name_87 (cultural_and_educational_panel INTEGER, administrative_panel VARCHAR, agricultural_panel VARCHAR)
SELECT SUM(cultural_and_educational_panel) FROM table_name_87 WHERE administrative_panel = 0 AND agricultural_panel < 0
Which Geological Trend has an Operator(s) of woc?
CREATE TABLE table_name_41 (geological_trend VARCHAR, operator_s_ VARCHAR)
SELECT geological_trend FROM table_name_41 WHERE operator_s_ = "woc"
What Tournament was against Daniel Elsner?
CREATE TABLE table_name_63 (tournament VARCHAR, opponent VARCHAR)
SELECT tournament FROM table_name_63 WHERE opponent = "daniel elsner"
How many times did episode 1.8 air?
CREATE TABLE table_14937957_1 (original_airdate VARCHAR, episode__number VARCHAR)
SELECT COUNT(original_airdate) FROM table_14937957_1 WHERE episode__number = "1.8"
What is the average number of 2nd place finishes for racers active in the year 2000 and more than 0 titles?
CREATE TABLE table_name_16 (years_active VARCHAR, titles VARCHAR)
SELECT AVG(2 AS nd_pl) FROM table_name_16 WHERE years_active = "2000" AND titles > 0
On what day was game 2 played?
CREATE TABLE table_name_56 (date VARCHAR, game VARCHAR)
SELECT date FROM table_name_56 WHERE game = 2
What seasons does Nick lucas appear?
CREATE TABLE table_12441518_1 (main_cast_seasons VARCHAR, character VARCHAR)
SELECT main_cast_seasons FROM table_12441518_1 WHERE character = "Nick Lucas"
What is the name of the player that was Pick 15?
CREATE TABLE table_name_8 (player VARCHAR, pick__number VARCHAR)
SELECT player FROM table_name_8 WHERE pick__number = "15"
What rank has andy bichel (qld) as the player?
CREATE TABLE table_name_80 (rank VARCHAR, player VARCHAR)
SELECT rank FROM table_name_80 WHERE player = "andy bichel (qld)"
What lowest games have a Goal Ratio of 0, and Goals smaller than 0?
CREATE TABLE table_name_87 (games INTEGER, goal_ratio VARCHAR, goals VARCHAR)
SELECT MIN(games) FROM table_name_87 WHERE goal_ratio = 0 AND goals < 0
What engine was used by Curb Motorsports after 1982 that had 11 points?
CREATE TABLE table_name_2 (engine VARCHAR, team VARCHAR, year VARCHAR, points VARCHAR)
SELECT engine FROM table_name_2 WHERE year > 1982 AND points = 11 AND team = "curb motorsports"
What is the host city during the 2012 season?
CREATE TABLE table_name_47 (host_city VARCHAR, season VARCHAR)
SELECT host_city FROM table_name_47 WHERE season = 2012
How many Latin Americans were there in 2001 in the province with 0.0% 2001 and 0.2% 2011?
CREATE TABLE table_1939405_2 (latin_americans_2001 INTEGER, _percentage_2001 VARCHAR, _percentage_2011 VARCHAR)
SELECT MAX(latin_americans_2001) FROM table_1939405_2 WHERE _percentage_2001 = "0.0%" AND _percentage_2011 = "0.2%"
What is the sum of Events played when the cuts made is less than 0?
CREATE TABLE table_name_82 (events_played INTEGER, cuts_made INTEGER)
SELECT SUM(events_played) FROM table_name_82 WHERE cuts_made < 0
How much does the coin with a 14mm diameter weigh?
CREATE TABLE table_name_52 (weight VARCHAR, diameter VARCHAR)
SELECT weight FROM table_name_52 WHERE diameter = "14mm"
When philippe gilbert is the winner who is the points classification?
CREATE TABLE table_18733814_2 (points_classification VARCHAR, winner VARCHAR)
SELECT points_classification FROM table_18733814_2 WHERE winner = "Philippe Gilbert"
What player has a rating greater than 2746, with a prev less than 4, and +4 as the chng?
CREATE TABLE table_name_83 (player VARCHAR, chng VARCHAR, rating VARCHAR, prev VARCHAR)
SELECT player FROM table_name_83 WHERE rating > 2746 AND prev < 4 AND chng = "+4"
What was the lowest population of the GEO ID 3805373380 and the water square mileage smaller than 5.729?
CREATE TABLE table_name_25 (pop__2010_ INTEGER, geo_id VARCHAR, water__sqmi_ VARCHAR)
SELECT MIN(pop__2010_) FROM table_name_25 WHERE geo_id = 3805373380 AND water__sqmi_ < 5.729
What tournament has a 2008 value of A, q1 in 2005, and 1r in 2004?
CREATE TABLE table_name_31 (tournament VARCHAR)
SELECT tournament FROM table_name_31 WHERE 2008 = "a" AND 2005 = "q1" AND 2004 = "1r"
What years did Tom Lehman win?
CREATE TABLE table_name_25 (year_s__won VARCHAR, player VARCHAR)
SELECT year_s__won FROM table_name_25 WHERE player = "tom lehman"
What is the Set 5 with a Game that is 59?
CREATE TABLE table_name_9 (set_5 VARCHAR, game VARCHAR)
SELECT set_5 FROM table_name_9 WHERE game = 59
What is the Rank of the Film with a Worldwide Gross of $183,031,272?
CREATE TABLE table_name_19 (rank INTEGER, worldwide_gross VARCHAR)
SELECT SUM(rank) FROM table_name_19 WHERE worldwide_gross = "$183,031,272"
What tournament was played 16 September 2012?
CREATE TABLE table_name_63 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_63 WHERE date = "16 september 2012"
What is the number of networks when the size of rest bit field is 8?
CREATE TABLE table_name_93 (number_of_networks VARCHAR, size_of_rest_bit_field VARCHAR)
SELECT number_of_networks FROM table_name_93 WHERE size_of_rest_bit_field = "8"
What is the figure for La Crescenta-Montrose when Gelndale is $57,112?
CREATE TABLE table_name_64 (la_crescenta__montrose VARCHAR, glendale VARCHAR)
SELECT la_crescenta__montrose FROM table_name_64 WHERE glendale = "$57,112"
Which skip's second is Martin Hejhal?
CREATE TABLE table_name_51 (skip VARCHAR, second VARCHAR)
SELECT skip FROM table_name_51 WHERE second = "martin hejhal"
How many points when the Grid was 1?
CREATE TABLE table_name_75 (points VARCHAR, grid VARCHAR)
SELECT points FROM table_name_75 WHERE grid = "1"
what is the finish when the manager is tom kotchman and record is 43-33?
CREATE TABLE table_name_82 (finish VARCHAR, manager VARCHAR, record VARCHAR)
SELECT finish FROM table_name_82 WHERE manager = "tom kotchman" AND record = "43-33"
What is Pick, when Round is "6", when Nationality is "Canada", when Draft is greater than 1983, and when Player is "Ed Ward Category:Articles with hCards"?
CREATE TABLE table_name_37 (pick VARCHAR, player VARCHAR, draft VARCHAR, round VARCHAR, nationality VARCHAR)
SELECT pick FROM table_name_37 WHERE round = "6" AND nationality = "canada" AND draft > 1983 AND player = "ed ward category:articles with hcards"
What is the largest goal number when the transfer fee was £0.8m?
CREATE TABLE table_name_50 (goals INTEGER, transfer_fee VARCHAR)
SELECT MAX(goals) FROM table_name_50 WHERE transfer_fee = "£0.8m"
What is the control for the school accredited by the higher learning commission ( nca ), ccne?
CREATE TABLE table_2076522_2 (control VARCHAR, accreditation VARCHAR)
SELECT control FROM table_2076522_2 WHERE accreditation = "The Higher Learning Commission ( NCA ), CCNE"
In which country are there 1,278.13 exports?
CREATE TABLE table_26160007_1 (country VARCHAR, exports VARCHAR)
SELECT country FROM table_26160007_1 WHERE exports = "1,278.13"
When altos hornos zapla is the home (1st leg) what is overall amount of 1st leg?
CREATE TABLE table_14219514_2 (home__1st_leg_ VARCHAR)
SELECT COUNT(1 AS st_leg) FROM table_14219514_2 WHERE home__1st_leg_ = "Altos Hornos Zapla"
What's the top year with the Chassis ats hs1?
CREATE TABLE table_name_33 (year INTEGER, chassis VARCHAR)
SELECT MAX(year) FROM table_name_33 WHERE chassis = "ats hs1"
how many 10wi and bbi is 6/101
CREATE TABLE table_28846752_5 (bbi VARCHAR)
SELECT COUNT(10 AS wi) FROM table_28846752_5 WHERE bbi = "6/101"
Which Rank has Notes of fb, and a Time of 5:57.31?
CREATE TABLE table_name_70 (rank VARCHAR, notes VARCHAR, time VARCHAR)
SELECT rank FROM table_name_70 WHERE notes = "fb" AND time = "5:57.31"
Who was the opponent during the competition in which the bowling figures were 5-33 (10)?
CREATE TABLE table_name_82 (versus VARCHAR, bowling_figures_wickets_runs__overs_ VARCHAR)
SELECT versus FROM table_name_82 WHERE bowling_figures_wickets_runs__overs_ = "5-33 (10)"
Which season did jackie stewart enter with entries less than 215?
CREATE TABLE table_name_67 (seasons VARCHAR, entries VARCHAR, driver VARCHAR)
SELECT seasons FROM table_name_67 WHERE entries < 215 AND driver = "jackie stewart"
What year saw a score of 8-5?
CREATE TABLE table_name_9 (year VARCHAR, score VARCHAR)
SELECT year FROM table_name_9 WHERE score = "8-5"
On which date did the shock at latitude 08.909° s occur?
CREATE TABLE table_25675509_1 (date__yyyy_mm_dd_ VARCHAR, latitude VARCHAR)
SELECT date__yyyy_mm_dd_ FROM table_25675509_1 WHERE latitude = "08.909° S"
Tell me the average gold for moldova and bronze less than 1
CREATE TABLE table_name_25 (gold INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT AVG(gold) FROM table_name_25 WHERE nation = "moldova" AND bronze < 1
What is the catalog number for the Grilled Cheese label?
CREATE TABLE table_name_33 (catalog VARCHAR, label VARCHAR)
SELECT catalog FROM table_name_33 WHERE label = "grilled cheese"
When the score is 71 and the player is from United States what is the place?
CREATE TABLE table_name_89 (place VARCHAR, score VARCHAR, country VARCHAR)
SELECT place FROM table_name_89 WHERE score = 71 AND country = "united states"
Show the total number of rooms of the apartments in the building with short name "Columbus Square".
CREATE TABLE Apartment_Buildings (building_id VARCHAR, building_short_name VARCHAR); CREATE TABLE Apartments (room_count INTEGER, building_id VARCHAR)
SELECT SUM(T2.room_count) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_short_name = "Columbus Square"
Which Artist has an Issue Price of $1,541.95?
CREATE TABLE table_name_20 (artist VARCHAR, issue_price VARCHAR)
SELECT artist FROM table_name_20 WHERE issue_price = "$1,541.95"
What was the Clean and Jerk weight for the year that had a Snatch result of 190kg?
CREATE TABLE table_name_13 (clean_and_jerk VARCHAR, snatch VARCHAR)
SELECT clean_and_jerk FROM table_name_13 WHERE snatch = "190kg"
Which week 1 had a week 2 of Claudia Nathalia?
CREATE TABLE table_name_1 (week_1 VARCHAR, week_2 VARCHAR)
SELECT week_1 FROM table_name_1 WHERE week_2 = "claudia nathalia"
What's the score for December of 30?
CREATE TABLE table_name_48 (score VARCHAR, december VARCHAR)
SELECT score FROM table_name_48 WHERE december = 30
What is the Time with an Away that is broadview hawks?
CREATE TABLE table_name_91 (time VARCHAR, away VARCHAR)
SELECT time FROM table_name_91 WHERE away = "broadview hawks"
Who was the opponent of the match in South Dakota, United States which has 2 rounds?
CREATE TABLE table_name_63 (opponent VARCHAR, round VARCHAR, location VARCHAR)
SELECT opponent FROM table_name_63 WHERE round = 2 AND location = "south dakota, united states"
In what area is Morven School?
CREATE TABLE table_name_75 (area VARCHAR, name VARCHAR)
SELECT area FROM table_name_75 WHERE name = "morven school"
Find the names of the candidates whose support percentage is lower than their oppose rate.
CREATE TABLE candidate (people_id VARCHAR, support_rate INTEGER, oppose_rate VARCHAR); CREATE TABLE people (name VARCHAR, people_id VARCHAR)
SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t2.support_rate < t2.oppose_rate
What is the record of the game with a score of 101–92?
CREATE TABLE table_name_29 (record VARCHAR, score VARCHAR)
SELECT record FROM table_name_29 WHERE score = "101–92"
What is the intergiro classification of alexander gontchenkov?
CREATE TABLE table_12261926_2 (intergiro_classification VARCHAR, winner VARCHAR)
SELECT intergiro_classification FROM table_12261926_2 WHERE winner = "Alexander Gontchenkov"
Name the distance for Course of vittorio veneto to marina romea
CREATE TABLE table_name_3 (distance VARCHAR, course VARCHAR)
SELECT distance FROM table_name_3 WHERE course = "vittorio veneto to marina romea"
How many titles had an average rating of 8.9%?
CREATE TABLE table_18539834_2 (romaji_title VARCHAR, average_ratings VARCHAR)
SELECT COUNT(romaji_title) FROM table_18539834_2 WHERE average_ratings = "8.9%"
What's the T-100 when the IS-3 is 150 (225)?
CREATE TABLE table_name_51 (t_100 VARCHAR, is_3_m1945 VARCHAR)
SELECT t_100 FROM table_name_51 WHERE is_3_m1945 = "150 (225)"
Find the names of all English songs.
CREATE TABLE song (song_name VARCHAR, languages VARCHAR)
SELECT song_name FROM song WHERE languages = "english"
What title was published on November 2001 and has a 1st Doctor?
CREATE TABLE table_name_99 (title VARCHAR, doctor VARCHAR, published VARCHAR)
SELECT title FROM table_name_99 WHERE doctor = "1st" AND published = "november 2001"
Who is the builder with a works number of 2534?
CREATE TABLE table_name_16 (builder VARCHAR, works_number VARCHAR)
SELECT builder FROM table_name_16 WHERE works_number = "2534"
Name the max game for attendance being 54774
CREATE TABLE table_16710829_2 (game INTEGER, attendance VARCHAR)
SELECT MAX(game) FROM table_16710829_2 WHERE attendance = 54774
Which Japanese Title has a TV Station of ntv?
CREATE TABLE table_name_19 (japanese_title VARCHAR, tv_station VARCHAR)
SELECT japanese_title FROM table_name_19 WHERE tv_station = "ntv"
What was the place when the score was 67-73-73=213?
CREATE TABLE table_name_23 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_23 WHERE score = 67 - 73 - 73 = 213
What is Away, when Home is "marathon"?
CREATE TABLE table_name_14 (away VARCHAR, home VARCHAR)
SELECT away FROM table_name_14 WHERE home = "marathon"
What was the aspect ratio if the vertical pixel is 480 and pixel aspect ratio is 1:1?
CREATE TABLE table_272313_1 (aspect_ratio VARCHAR, vertical VARCHAR, pixel_aspect_ratio VARCHAR)
SELECT aspect_ratio FROM table_272313_1 WHERE vertical = 480 AND pixel_aspect_ratio = "1:1"
What is the title for the Korean progran on KBS2?
CREATE TABLE table_name_96 (title VARCHAR, language VARCHAR, network VARCHAR)
SELECT title FROM table_name_96 WHERE language = "korean" AND network = "kbs2"
Who was Betty's partner when the surface is hard?
CREATE TABLE table_2820584_2 (partner VARCHAR, surface VARCHAR)
SELECT partner FROM table_2820584_2 WHERE surface = "Hard"
Who was the team for game 34?
CREATE TABLE table_name_79 (team VARCHAR, game VARCHAR)
SELECT team FROM table_name_79 WHERE game = 34
Can you tell me the Chinese that has the Chapter larger than 4, and the English Translation of food transformations?
CREATE TABLE table_name_7 (chinese VARCHAR, chapter VARCHAR, english_translation VARCHAR)
SELECT chinese FROM table_name_7 WHERE chapter > 4 AND english_translation = "food transformations"
What Nation of citizenship has a stock car vehicle with a year of 2012?
CREATE TABLE table_name_13 (nation_of_citizenship VARCHAR, type_of_vehicle VARCHAR, year VARCHAR)
SELECT nation_of_citizenship FROM table_name_13 WHERE type_of_vehicle = "stock car" AND year = 2012
What is the original air date of the episode written by David Zuckerman?
CREATE TABLE table_23242958_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT original_air_date FROM table_23242958_1 WHERE written_by = "David Zuckerman"
What is the height of valérie dionne at Club Sainte-Foy?
CREATE TABLE table_name_48 (height VARCHAR, club VARCHAR, name VARCHAR)
SELECT height FROM table_name_48 WHERE club = "sainte-foy" AND name = "valérie dionne"