answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT publisher FROM table_name_35 WHERE title = "crysis warhead"
What publisher created Crysis Warhead?
CREATE TABLE table_name_35 (publisher VARCHAR, title VARCHAR)
SELECT partner FROM table_1920271_3 WHERE championship = "US Open" AND outcome = "Runner-up"
Who was her partner at the US Open and they were runner-up?
CREATE TABLE table_1920271_3 (partner VARCHAR, championship VARCHAR, outcome VARCHAR)
SELECT city_country FROM table_name_51 WHERE venue = "adelaide oval"
Name the place where adelaide oval is
CREATE TABLE table_name_51 (city_country VARCHAR, venue VARCHAR)
SELECT opponent FROM table_name_49 WHERE result = "w 13–0"
What is the Opponent of the game with a Result of w 13–0?
CREATE TABLE table_name_49 (opponent VARCHAR, result 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 total_deaths FROM table_name_33 WHERE total_casualties = "6"
How many deaths were there when the total casualties were 6?
CREATE TABLE table_name_33 (total_deaths VARCHAR, total_casualties VARCHAR)
SELECT Name FROM country WHERE Continent = "Asia" AND population > (SELECT MAX(population) FROM country WHERE Continent = "Africa")
Which Asian countries have a population that is larger than any country in Africa?
CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER)
SELECT pick FROM table_name_63 WHERE school = "jasper hs (jasper, texas)"
what is the pick when the school is jasper hs (jasper, texas)?
CREATE TABLE table_name_63 (pick VARCHAR, school VARCHAR)
SELECT mon_23_aug FROM table_26986076_5 WHERE rider = "Tom Snow 250cc Honda"
When tom snow 250cc honda is the rider what is Monday August 23rd?
CREATE TABLE table_26986076_5 (mon_23_aug VARCHAR, rider VARCHAR)
SELECT COUNT(opponents_head_coach) FROM table_28418916_3 WHERE fbs_opponent = "Kent State Golden Flashes"
How many head coaches did Kent state golden flashes have?
CREATE TABLE table_28418916_3 (opponents_head_coach VARCHAR, fbs_opponent VARCHAR)
SELECT cardinalatial_order_and_title FROM table_name_26 WHERE elevated = "circa 1116"
What is the cardinalatial order of the elector elevated circa 1116?
CREATE TABLE table_name_26 (cardinalatial_order_and_title VARCHAR, elevated VARCHAR)
SELECT away_team AS score FROM table_name_16 WHERE venue = "mcg"
What was the score of the away team at the MCG?
CREATE TABLE table_name_16 (away_team VARCHAR, venue VARCHAR)
SELECT MIN(grid) FROM table_name_83 WHERE time_retired = "engine" AND driver = "emerson fittipaldi" AND laps > 70
Tell me the lowest Grid for engine and driver of emerson fittipaldi with more laps than 70
CREATE TABLE table_name_83 (grid INTEGER, laps VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT 2007 FROM table_name_47 WHERE 2009 = "2r" AND 2008 = "1r"
What was the 2007 result for a 2008 result of 1R and 2009 result of 2R?
CREATE TABLE table_name_47 (Id VARCHAR)
SELECT MIN(year) FROM table_name_12 WHERE wins < 5 AND points = 89
What is the earliest year with fewer than 5 wins and 89 points?
CREATE TABLE table_name_12 (year INTEGER, wins VARCHAR, points VARCHAR)
SELECT MAX(year) FROM table_name_20 WHERE actress = "katharine hepburn"
When was the last year when Katharine Hepburn won?
CREATE TABLE table_name_20 (year INTEGER, actress VARCHAR)
SELECT name FROM table_name_34 WHERE best = "57.546"
What is the name of the racer with a best time of 57.546?
CREATE TABLE table_name_34 (name VARCHAR, best VARCHAR)
SELECT rank FROM table_name_51 WHERE qual = "135.328"
How did Johnnie Parsons finish when his qualifying time was 135.328?
CREATE TABLE table_name_51 (rank VARCHAR, qual VARCHAR)
SELECT score FROM table_11960407_2 WHERE team = "@ Cleveland"
What was the result of the game when the raptors played @ cleveland?
CREATE TABLE table_11960407_2 (score VARCHAR, team VARCHAR)
SELECT MAX(chapters) FROM table_10054296_1 WHERE classification = "Fraternity" AND headquarters = "Austin, Texas"
What is the number of chapters listed for the fraternity with a headquarters in Austin, Texas?
CREATE TABLE table_10054296_1 (chapters INTEGER, classification VARCHAR, headquarters VARCHAR)
SELECT AVG(points) FROM table_name_42 WHERE opponent = "vancouver canucks" AND november < 11
Which Points have an Opponent of vancouver canucks, and a November smaller than 11?
CREATE TABLE table_name_42 (points INTEGER, opponent VARCHAR, november VARCHAR)
SELECT venue FROM table_name_40 WHERE year > 1991 AND bronze = "czech republic" AND silver = "russia"
Where was the post 1991 tournament where the Czech Republic received the bronze and Russia received the silver?
CREATE TABLE table_name_40 (venue VARCHAR, silver VARCHAR, year VARCHAR, bronze VARCHAR)
SELECT class_aA FROM table_name_46 WHERE class_aAA = commerce
what AA class has a AAA class of commerce?
CREATE TABLE table_name_46 (class_aA VARCHAR, class_aAA VARCHAR, commerce VARCHAR)
SELECT grade FROM Highschooler GROUP BY grade HAVING COUNT(*) >= 4
Show me all grades that have at least 4 students.
CREATE TABLE Highschooler (grade VARCHAR)
SELECT MAX(draws) FROM table_14876228_1 WHERE wins = 3
Name the most draws when wins is 3
CREATE TABLE table_14876228_1 (draws INTEGER, wins VARCHAR)
SELECT position FROM table_name_84 WHERE overall < 314 AND pick < 8
What is Position, when Overallis less than 314, and when Pick is less than 8?
CREATE TABLE table_name_84 (position VARCHAR, overall VARCHAR, pick VARCHAR)
SELECT COUNT(year) FROM table_name_78 WHERE day_of_week = "friday" AND rank = 10
What is the year of the movie with an opening day on Friday with a rank 10?
CREATE TABLE table_name_78 (year VARCHAR, day_of_week VARCHAR, rank VARCHAR)
SELECT acquis_chapters_open_closed FROM table_name_44 WHERE membership_application = "2009-04-28"
What is the acquis chapter open/closed dates with a membership application in 2009-04-28?
CREATE TABLE table_name_44 (acquis_chapters_open_closed VARCHAR, membership_application VARCHAR)
SELECT additional_info FROM table_2528382_1 WHERE music_director = "Datta Naik"
Which song directed by datta naik had the ending stranza written by Johnny Walker?
CREATE TABLE table_2528382_1 (additional_info VARCHAR, music_director VARCHAR)
SELECT AVG(pick) FROM table_name_59 WHERE player = "clarence mason"
What is the average pick for clarence mason?
CREATE TABLE table_name_59 (pick INTEGER, player VARCHAR)
SELECT arabic FROM table_26919_6 WHERE tigrinya = "ħamuʃte"
Name the arabic for ħamuʃte
CREATE TABLE table_26919_6 (arabic VARCHAR, tigrinya VARCHAR)
SELECT AVG(rank) FROM table_name_90 WHERE director = "michael bay"
What is the average rank for the film directed by michael bay?
CREATE TABLE table_name_90 (rank INTEGER, director VARCHAR)
SELECT actor FROM table_name_94 WHERE year < 1971
What actor was nominated for or won an award before 1971?
CREATE TABLE table_name_94 (actor VARCHAR, year INTEGER)
SELECT tournament FROM table_name_84 WHERE year = 1974 AND venue = "gothenburg , sweden"
What was the tournament that happened in 1974 in gothenburg , sweden?
CREATE TABLE table_name_84 (tournament VARCHAR, year VARCHAR, venue VARCHAR)
SELECT 2013 AS _profit__mil_usd__ FROM table_24307126_3 WHERE assets_2013__bil$_ = "11.2"
Name the 2013 profit for assets being 11.2
CREATE TABLE table_24307126_3 (assets_2013__bil$_ VARCHAR)
SELECT SUM(points) FROM table_name_15 WHERE goals_conceded < 24 AND place < 6 AND goals_scored < 26
what is the points when the goals conceded is less than 24, place is less than 6 and goals scored is less than 26?
CREATE TABLE table_name_15 (points INTEGER, goals_scored VARCHAR, goals_conceded VARCHAR, place VARCHAR)
SELECT game FROM table_name_82 WHERE year < 2010 AND genre = "role-playing game"
What game was before 2010 and was a role-playing game?
CREATE TABLE table_name_82 (game VARCHAR, year VARCHAR, genre VARCHAR)
SELECT record FROM table_name_63 WHERE date = "12 march 2008"
What was the record on 12 march 2008?
CREATE TABLE table_name_63 (record VARCHAR, date VARCHAR)
SELECT 2012 FROM table_name_60 WHERE 2007 = "a" AND 2010 = "a" AND tournament = "canada masters"
What is the 2012 value with an A value in 2007 and A value in 2010 in the Canada Masters?
CREATE TABLE table_name_60 (tournament VARCHAR)
SELECT successor FROM table_224840_4 WHERE district = "Massachusetts 3rd"
Who was the latest to take office in Massachusetts 3rd district?
CREATE TABLE table_224840_4 (successor VARCHAR, district VARCHAR)
SELECT rank FROM table_name_43 WHERE mountain_peak = "crested butte pb"
Name the Rank of Rank Mountain Peak of crested butte pb?
CREATE TABLE table_name_43 (rank VARCHAR, mountain_peak VARCHAR)
SELECT production_code FROM table_22181917_2 WHERE us_viewers__millions_ = "8.56"
What is the production code for the episode with 8.56 million U.S. viewers?
CREATE TABLE table_22181917_2 (production_code VARCHAR, us_viewers__millions_ VARCHAR)
SELECT riding FROM table_name_47 WHERE rank = "4th"
What is the Riding, when the Rank is 4th?
CREATE TABLE table_name_47 (riding VARCHAR, rank VARCHAR)
SELECT office FROM table_197446_1 WHERE term_ended = "January 3, 1993"
What group was in office when the term ended in January 3, 1993?
CREATE TABLE table_197446_1 (office VARCHAR, term_ended VARCHAR)
SELECT AVG(Attendance) FROM SHOW
What is the average attendance of shows?
CREATE TABLE SHOW (Attendance INTEGER)
SELECT driver FROM table_name_21 WHERE time_retired = "+6 laps"
Which driver has a Time/Retired of +6 laps?
CREATE TABLE table_name_21 (driver VARCHAR, time_retired VARCHAR)
SELECT AVG(polish_cup) FROM table_name_20 WHERE puchat_ligi > 0
Which Polish Cup has a Puchat Ligi larger than 0?
CREATE TABLE table_name_20 (polish_cup INTEGER, puchat_ligi INTEGER)
SELECT AVG(year) FROM table_name_13 WHERE opponent = "manly-warringah sea eagles"
Name the average year for manly-warringah sea eagles
CREATE TABLE table_name_13 (year INTEGER, opponent VARCHAR)
SELECT serial_numbers FROM table_name_28 WHERE class = "4-8-4 — oooooooo — northern"
What are the serial numbers for the locomotives of Class 4-8-4 — oooooooo — northern?
CREATE TABLE table_name_28 (serial_numbers VARCHAR, class VARCHAR)
SELECT record FROM table_name_39 WHERE home = "detroit" AND decision = "denis"
Name the record for detroit and decision of denis
CREATE TABLE table_name_39 (record VARCHAR, home VARCHAR, decision VARCHAR)
SELECT left_office FROM table_name_63 WHERE political_party = "ba'ath party ( syria region )" AND took_office = "7 march 1958"
What is Left Office, when Political Party is Ba'ath Party ( Syria Region ), and when Took Office is 7 March 1958?
CREATE TABLE table_name_63 (left_office VARCHAR, political_party VARCHAR, took_office VARCHAR)
SELECT host FROM table_name_29 WHERE ratings = "9.4/27"
Who was the host that garnered ratings of 9.4/27?
CREATE TABLE table_name_29 (host VARCHAR, ratings VARCHAR)
SELECT school FROM table_name_31 WHERE position = "ends"
What is the school of the player who plays ends?
CREATE TABLE table_name_31 (school VARCHAR, position VARCHAR)
SELECT release_price___usd__ FROM table_18823880_10 WHERE socket = "socketG1"
When socketg1 is the socket what is the release price in dollars?
CREATE TABLE table_18823880_10 (release_price___usd__ VARCHAR, socket VARCHAR)
SELECT results FROM table_27758427_2 WHERE lmpc_winning_team = "#89 Intersport Racing"
What was the result for the cirtcuit where the LMPC winning team was #89 Intersport Racing?
CREATE TABLE table_27758427_2 (results VARCHAR, lmpc_winning_team VARCHAR)
SELECT model FROM table_name_61 WHERE comments = "curved daggerboards. design: morelli und melvin"
Which Model has Comments of curved daggerboards. design: morelli und melvin?
CREATE TABLE table_name_61 (model VARCHAR, comments VARCHAR)
SELECT manufacturer FROM table_name_21 WHERE finish < 42 AND start = 19
Who was the maufacturer of the vehicle during the race where Cale Yarborough started at 19 and finished earlier than 42?
CREATE TABLE table_name_21 (manufacturer VARCHAR, finish VARCHAR, start VARCHAR)
SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'
which countries' tv channels are not playing any cartoon written by Todd Casey?
CREATE TABLE TV_Channel (country VARCHAR, id VARCHAR); CREATE TABLE TV_Channel (country VARCHAR); CREATE TABLE cartoon (Channel VARCHAR, written_by VARCHAR)
SELECT style FROM table_28677723_9 WHERE tor_fløysvik = 8
Which style led to a score given by Tor Floysvik of 8?
CREATE TABLE table_28677723_9 (style VARCHAR, tor_fløysvik VARCHAR)
SELECT COUNT(vacator) FROM table_224794_3 WHERE district = "Pennsylvania 33rd"
How many vacators were in the Pennsylvania 33rd district?
CREATE TABLE table_224794_3 (vacator VARCHAR, district VARCHAR)
SELECT MAX(enrollment) FROM table_28243691_1 WHERE institution = "University of North Texas"
What was the highest number of students in attendance for the university of north texas?
CREATE TABLE table_28243691_1 (enrollment INTEGER, institution VARCHAR)
SELECT location FROM table_18893428_1 WHERE driver = "Pierre de Caters"
What is the location that had a driver named Pierre de Caters?
CREATE TABLE table_18893428_1 (location VARCHAR, driver VARCHAR)
SELECT DISTINCT T1.name FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id JOIN bridge AS T3 ON T3.architect_id = T2.id WHERE T3.length_meters > 80
What are the distinct name of the mills built by the architects who have also built a bridge longer than 80 meters?
CREATE TABLE architect (Id VARCHAR); CREATE TABLE mill (name VARCHAR, architect_id VARCHAR); CREATE TABLE bridge (architect_id VARCHAR, length_meters INTEGER)
SELECT COUNT(year) FROM table_name_55 WHERE game = "call of duty 4: modern warfare"
What is the sum number of year when Call of Duty 4: Modern Warfare was the game?
CREATE TABLE table_name_55 (year VARCHAR, game VARCHAR)
SELECT MIN(year) FROM table_name_21 WHERE title = "requiem for a dream" AND category = "best director"
What is the earliest year in which Requiem for a Dream was in the running for Best Director?
CREATE TABLE table_name_21 (year INTEGER, title VARCHAR, category VARCHAR)
SELECT rounds FROM table_name_64 WHERE driver = "ken wharton"
How many rounds did Ken Wharton go?
CREATE TABLE table_name_64 (rounds VARCHAR, driver VARCHAR)
SELECT score FROM table_name_26 WHERE date = "august 1"
Name the score on august 1
CREATE TABLE table_name_26 (score VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_27 WHERE result = "l 13-7 ot"
When the result was l 13-7 ot, who was the opponent?
CREATE TABLE table_name_27 (opponent VARCHAR, result VARCHAR)
SELECT school FROM table_11677100_18 WHERE hometown = "Lake Charles, LA"
What is the school of the player from Lake Charles, LA?
CREATE TABLE table_11677100_18 (school VARCHAR, hometown VARCHAR)
SELECT date FROM table_16729063_2 WHERE opponent = "Los Angeles Raiders"
What date was the opponent the Los Angeles Raiders?
CREATE TABLE table_16729063_2 (date VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_14 WHERE high_points = "clippers"
What is the record when Clippers have the high points?
CREATE TABLE table_name_14 (record VARCHAR, high_points VARCHAR)
SELECT MIN(losses) FROM table_name_83 WHERE goal_difference = -16 AND wins < 8
Which Losses have a Goal Difference of -16, and less than 8 wins?
CREATE TABLE table_name_83 (losses INTEGER, goal_difference VARCHAR, wins VARCHAR)
SELECT building FROM table_13397394_1 WHERE storeys = 12
what are all the building with 12 storeys
CREATE TABLE table_13397394_1 (building VARCHAR, storeys VARCHAR)
SELECT high_points FROM table_23286158_10 WHERE record = "48-30"
When 48-30 is the record who has the highest amount of points?
CREATE TABLE table_23286158_10 (high_points VARCHAR, record VARCHAR)
SELECT winners FROM table_name_44 WHERE runners_up = "lillestrøm" AND third = "lyn"
Who was the winner in the competition in which Lyn took third place and Lillestrøm was the runner-up?
CREATE TABLE table_name_44 (winners VARCHAR, runners_up VARCHAR, third VARCHAR)
SELECT entrant FROM table_name_96 WHERE points < 2
Which entrant scored less than 2 points?
CREATE TABLE table_name_96 (entrant VARCHAR, points INTEGER)
SELECT attendance FROM table_name_34 WHERE week = 10
What was the Attendance on Week 10?
CREATE TABLE table_name_34 (attendance VARCHAR, week VARCHAR)
SELECT catalog FROM table_name_89 WHERE date = "may 27, 2009"
What is the catalog number of the May 27, 2009 release?
CREATE TABLE table_name_89 (catalog VARCHAR, date VARCHAR)
SELECT nba_draft FROM table_name_57 WHERE school = "huntington high school"
Which NBA draft has a School of huntington high school?
CREATE TABLE table_name_57 (nba_draft VARCHAR, school VARCHAR)
SELECT first_year_played FROM table_name_12 WHERE doubles_w_l = "8–3"
Which year first played with Double W-L of 8–3?
CREATE TABLE table_name_12 (first_year_played VARCHAR, doubles_w_l VARCHAR)
SELECT country FROM table_name_30 WHERE player = "bob tway"
Which country is bob tway from?
CREATE TABLE table_name_30 (country VARCHAR, player VARCHAR)
SELECT COUNT(early_chalcolithic) FROM table_23537091_1 WHERE ubaid_period_in_mesopotamia = "Hittite Middle Kingdom , New Kingdom of Egypt"
When hittite middle kingdom , new kingdom of egypt is the ubaid period in mesopotamia how many early chalcolithics are there?
CREATE TABLE table_23537091_1 (early_chalcolithic VARCHAR, ubaid_period_in_mesopotamia VARCHAR)
SELECT directed_by FROM table_29063233_1 WHERE uk_viewers__million_ = "5.77"
Who directed the episode with a UK viewership of exactly 5.77 million?
CREATE TABLE table_29063233_1 (directed_by VARCHAR, uk_viewers__million_ VARCHAR)
SELECT visitor FROM table_name_76 WHERE home = "detroit" AND date = "february 24"
Which visitor has detroit as the home, and february 24 as the date?
CREATE TABLE table_name_76 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT COUNT(team) FROM table_27721131_2 WHERE high_assists = "John Wall (9)" AND score = "W 97–83 (OT)"
What's the team number with John Wall (9) in high assists and a w 97–83 (ot) score?
CREATE TABLE table_27721131_2 (team VARCHAR, high_assists VARCHAR, score VARCHAR)
SELECT MIN(attendance) FROM table_name_46 WHERE week = 11
What is the lowest attendance for week 11?
CREATE TABLE table_name_46 (attendance INTEGER, week VARCHAR)
SELECT loss FROM table_name_1 WHERE record = "76-81"
Name the loss when the record is 76-81
CREATE TABLE table_name_1 (loss VARCHAR, record VARCHAR)
SELECT COUNT(record) FROM table_11964154_7 WHERE score = "L 96–123 (OT)"
How many times was the final score l 96–123 (ot)?
CREATE TABLE table_11964154_7 (record VARCHAR, score VARCHAR)
SELECT AVG(attendance) FROM table_name_6 WHERE date = "april 28"
On April 28, what was the average number of people attending?
CREATE TABLE table_name_6 (attendance INTEGER, date VARCHAR)
SELECT results FROM table_name_79 WHERE first_elected = 1996
What are the results of the incumbent who was first elected in 1996?
CREATE TABLE table_name_79 (results VARCHAR, first_elected VARCHAR)
SELECT week FROM table_name_41 WHERE status = "bottom 2" AND artist = "celine dion"
What week did the contestant finish in the bottom 2 with a Celine Dion song?
CREATE TABLE table_name_41 (week VARCHAR, status VARCHAR, artist VARCHAR)
SELECT attendance FROM table_name_66 WHERE opponent = "pittsburgh steelers"
In the game where they played the Pittsburgh Steelers, what was the attendance?
CREATE TABLE table_name_66 (attendance VARCHAR, opponent VARCHAR)
SELECT song_choice FROM table_15796054_3 WHERE week__number = "Hollywood"
Name the song choice when week number is hollywood
CREATE TABLE table_15796054_3 (song_choice VARCHAR, week__number VARCHAR)
SELECT representative FROM table_name_25 WHERE state = "kentucky" AND years = "1855–1859"
Which Representative was from Kentucky during the years of 1855–1859?
CREATE TABLE table_name_25 (representative VARCHAR, state VARCHAR, years VARCHAR)
SELECT MIN(rank_asia) FROM table_2248784_4
What is the smallest Asian rank?
CREATE TABLE table_2248784_4 (rank_asia INTEGER)
SELECT AVG(no_of_customers) FROM bank
Find the average number of customers cross all banks.
CREATE TABLE bank (no_of_customers INTEGER)
SELECT COUNT(baia_mare) FROM table_name_59 WHERE electrica_north_transylvania < 14.476 AND bistrita = 643 AND zalau < 737
How many Baia Mare have an Electrica North Transylvania under 14.476, Bistrita of 643, and Zalau under 737?
CREATE TABLE table_name_59 (baia_mare VARCHAR, zalau VARCHAR, electrica_north_transylvania VARCHAR, bistrita VARCHAR)
SELECT team FROM table_name_92 WHERE recopa_1994 = "n/a" AND conmebol_1994 = "1st round"
Which Team has a Recopa 1994 of n/a and a CONMEBOL 1994 of 1st round?
CREATE TABLE table_name_92 (team VARCHAR, recopa_1994 VARCHAR, conmebol_1994 VARCHAR)
SELECT constructor FROM table_name_54 WHERE rounds = "1-2" AND driver = "divina galica"
I want the constructor for divina galica rounds of 1-2
CREATE TABLE table_name_54 (constructor VARCHAR, rounds VARCHAR, driver VARCHAR)
SELECT gender FROM table_name_19 WHERE university_students_and_adults__18yrs + _ = "25mm"
Which gender is associated with University students and adults of 25mm?
CREATE TABLE table_name_19 (gender VARCHAR, university_students_and_adults__18yrs VARCHAR, _ VARCHAR)