answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MAX(time_to_ft__m__at_55) AS °__seconds_ FROM table_name_47 WHERE time_to_ft__m__at_40°__seconds_ < 9.6
What is the maximum amount of time a shell travels at 55° when it traveled less than 9.6 seconds at 40°?
CREATE TABLE table_name_47 (time_to_ft__m__at_55 INTEGER, time_to_ft__m__at_40°__seconds_ INTEGER)
SELECT city_of_license FROM table_name_1 WHERE frequency = "0 106.9 fm"
Tell me the city of license for 0 106.9 fm
CREATE TABLE table_name_1 (city_of_license VARCHAR, frequency VARCHAR)
SELECT AVG(order_quantity) FROM order_items
What is the average amount of items ordered in each order?
CREATE TABLE order_items (order_quantity INTEGER)
SELECT name FROM table_name_57 WHERE calculated = "56"
What is the name of the element with a calculated value of 56?
CREATE TABLE table_name_57 (name VARCHAR, calculated VARCHAR)
SELECT AVG(rank) FROM table_name_8 WHERE day_of_week = "wednesday" AND year < 2012 AND studio_s_ = "reliance entertainment"
What is the average rank of the Reliance Entertainment movie with an opening day on Wednesday before 2012?
CREATE TABLE table_name_8 (rank INTEGER, studio_s_ VARCHAR, day_of_week VARCHAR, year VARCHAR)
SELECT listed_owner_s_ FROM table_2187178_1 WHERE primary_sponsor_s_ = "RepairOne"
Name the listen owners for repairone
CREATE TABLE table_2187178_1 (listed_owner_s_ VARCHAR, primary_sponsor_s_ VARCHAR)
SELECT MIN(matches) FROM table_name_99 WHERE clubs = "46 → 32"
What is the lowest number of matches that has a Clubs of 46 → 32?
CREATE TABLE table_name_99 (matches INTEGER, clubs VARCHAR)
SELECT general_classification FROM table_21573750_2 WHERE stage = 4
When 4 is the stage who is the general classification?
CREATE TABLE table_21573750_2 (general_classification VARCHAR, stage VARCHAR)
SELECT MIN(crowd) FROM table_name_21 WHERE home_team = "south melbourne"
What was the attendance when South Melbourne played as the home team?
CREATE TABLE table_name_21 (crowd INTEGER, home_team VARCHAR)
SELECT COUNT(party) FROM table_2668243_22 WHERE district = "South Carolina 2"
how many "Party" are in district south carolina 2?
CREATE TABLE table_2668243_22 (party VARCHAR, district VARCHAR)
SELECT location___state FROM table_name_60 WHERE race_title = "launceston"
What is the location/state of the Launceston race?
CREATE TABLE table_name_60 (location___state VARCHAR, race_title VARCHAR)
SELECT city FROM table_name_59 WHERE icao = "kiah"
Which city has an ICAO of Kiah?
CREATE TABLE table_name_59 (city VARCHAR, icao VARCHAR)
SELECT tournament FROM table_name_1 WHERE 2009 = "1r" AND 2012 = "w"
Can you tell me the Tournament that has the 2009 of 1r, and the 2012 of w?
CREATE TABLE table_name_1 (tournament VARCHAR)
SELECT location FROM table_name_93 WHERE date = "january 23, 2008"
Where was the game located on January 23, 2008?
CREATE TABLE table_name_93 (location VARCHAR, date VARCHAR)
SELECT engine_type FROM table_name_45 WHERE model = "2.3 v5"
Which engine type was used in the model 2.3 v5?
CREATE TABLE table_name_45 (engine_type VARCHAR, model VARCHAR)
SELECT COUNT(outcome) FROM table_2201541_3 WHERE partner = "Paul McNamee"
How many different outcomes did the final with Paul McNamee as a partner have?
CREATE TABLE table_2201541_3 (outcome VARCHAR, partner VARCHAR)
SELECT COUNT(season_no) FROM table_11630008_4 WHERE series_no = 47
How many seasons was series number 47 shown?
CREATE TABLE table_11630008_4 (season_no VARCHAR, series_no VARCHAR)
SELECT film_or_series FROM table_name_39 WHERE award = "inside soap awards" AND category = "best actress" AND year = 2007
What film won best actress at the 2007 Inside Soap Awards?
CREATE TABLE table_name_39 (film_or_series VARCHAR, year VARCHAR, award VARCHAR, category VARCHAR)
SELECT player FROM table_name_53 WHERE average = 38.22
Which player has an average of 38.22?
CREATE TABLE table_name_53 (player VARCHAR, average VARCHAR)
SELECT cause_of_death FROM table_24143253_4 WHERE length_of_marriage = "28 years"
What was the cause of death in the marriage that lasted 28 years?
CREATE TABLE table_24143253_4 (cause_of_death VARCHAR, length_of_marriage VARCHAR)
SELECT studio_analysts FROM table_name_52 WHERE ice_level_reporters = "scott oake"
Which studio analyst has Scott Oake for the ice level reporter?
CREATE TABLE table_name_52 (studio_analysts VARCHAR, ice_level_reporters VARCHAR)
SELECT result FROM table_name_91 WHERE attendance = "25,000"
What were the Results for 25,000 Attendance?
CREATE TABLE table_name_91 (result VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_52 WHERE away_team = "southampton"
What is the date southampton was the away team?
CREATE TABLE table_name_52 (date VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_40 WHERE home_team = "collingwood"
Name the venue for collingwood home team
CREATE TABLE table_name_40 (venue VARCHAR, home_team VARCHAR)
SELECT MIN(attendance) FROM table_26401898_2
Name the most attendance
CREATE TABLE table_26401898_2 (attendance INTEGER)
SELECT AVG(laps) FROM table_name_48 WHERE grid = 9
What is the average number of laps when the grid number is 9?
CREATE TABLE table_name_48 (laps INTEGER, grid VARCHAR)
SELECT são_paulo_career FROM table_name_45 WHERE appearances < 201 AND goals < 2 AND name = "ricardo rocha"
WHAT SAN PAULO CAREER HAD SMALLER THAN 201 APPEARANCES, SMALLER THAN 2 GOALS, AND FOR RICARDO ROCHA?
CREATE TABLE table_name_45 (são_paulo_career VARCHAR, name VARCHAR, appearances VARCHAR, goals VARCHAR)
SELECT COUNT(team) FROM table_28884858_2 WHERE capacity_percentage = "99.3%"
How many teams had a 99.3% capacity rating?
CREATE TABLE table_28884858_2 (team VARCHAR, capacity_percentage VARCHAR)
SELECT T1.Id, T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING COUNT(*) >= 2 INTERSECT SELECT T1.Id, T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model GROUP BY T1.Id HAVING COUNT(*) > 3
What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?
CREATE TABLE CAR_NAMES (model VARCHAR); CREATE TABLE MODEL_LIST (Maker VARCHAR, model VARCHAR); CREATE TABLE CAR_MAKERS (Id VARCHAR, Maker VARCHAR)
SELECT italian FROM table_name_83 WHERE english = "we had heard"
What's the Italian Pluperfect when the English is We Had Heard?
CREATE TABLE table_name_83 (italian VARCHAR, english VARCHAR)
SELECT team_1 FROM table_name_83 WHERE team_2 = "dynamos fc"
Which Team 1 faced Dynamos FC?
CREATE TABLE table_name_83 (team_1 VARCHAR, team_2 VARCHAR)
SELECT tournament FROM table_name_77 WHERE 2004 = "1r" AND 2007 = "1r"
What tournament has 1r as a 2004, and 1r as a 2007?
CREATE TABLE table_name_77 (tournament VARCHAR)
SELECT source FROM table_name_78 WHERE remainder = "15%" AND topinka__r_ = "26%"
Which Source has a Remainder of 15%, and a Topinka of 26%?
CREATE TABLE table_name_78 (source VARCHAR, remainder VARCHAR, topinka__r_ VARCHAR)
SELECT league FROM table_1046454_1 WHERE regular_season = "2nd, Northwest"
what's the league where regular season is 2nd, northwest
CREATE TABLE table_1046454_1 (league VARCHAR, regular_season VARCHAR)
SELECT COUNT(seed) FROM table_29572583_19 WHERE points = 2175
How many seed entries are there when points are 2175?
CREATE TABLE table_29572583_19 (seed VARCHAR, points VARCHAR)
SELECT entrant FROM table_name_42 WHERE engine = "honda v6" AND chassis = "lotus 99t"
Which entrant has a Honda V6 engine and a Lotus 99t chassis?
CREATE TABLE table_name_42 (entrant VARCHAR, engine VARCHAR, chassis VARCHAR)
SELECT average FROM table_23316034_16 WHERE innings = 68
If the innings is 68, what is the average?
CREATE TABLE table_23316034_16 (average VARCHAR, innings VARCHAR)
SELECT outcome FROM table_name_55 WHERE opponent = "frederic jeanclaude"
What is the Outcome of the game against Frederic Jeanclaude?
CREATE TABLE table_name_55 (outcome VARCHAR, opponent VARCHAR)
SELECT airdate FROM table_13036251_1 WHERE international_destination = "Scotland"
what's airdate with international destination being scotland
CREATE TABLE table_13036251_1 (airdate VARCHAR, international_destination VARCHAR)
SELECT worldwide_gross FROM table_name_43 WHERE rank > 8 AND studio = "columbia pictures" AND director_s_ = "martin campbell"
For the movie directed by Martin Campbell at Columbia pictures with a ranking larger than 8, what is its worldwide gross?
CREATE TABLE table_name_43 (worldwide_gross VARCHAR, director_s_ VARCHAR, rank VARCHAR, studio VARCHAR)
SELECT eagle_riders FROM table_17480471_3 WHERE battle_of_the_planets = "Zoltar"
Which eagle riders have battle of the planets as zoltar?
CREATE TABLE table_17480471_3 (eagle_riders VARCHAR, battle_of_the_planets VARCHAR)
SELECT competition FROM table_name_77 WHERE venue = "stavanger"
What competition was contested at stavanger?
CREATE TABLE table_name_77 (competition VARCHAR, venue VARCHAR)
SELECT term_ended FROM table_name_5 WHERE branch = "u.s. marine corps"
When did the term end for the U.S. Marine Corps?
CREATE TABLE table_name_5 (term_ended VARCHAR, branch VARCHAR)
SELECT MIN(pick__number) FROM table_name_70 WHERE league_from = "russian major league"
What is the lowest pick number for the Russian Major League?
CREATE TABLE table_name_70 (pick__number INTEGER, league_from VARCHAR)
SELECT song FROM table_10848177_1 WHERE length = "3:05"
What song has a length of 3:05?
CREATE TABLE table_10848177_1 (song VARCHAR, length VARCHAR)
SELECT T2.lname, T2.fname FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.SportName = "Football" OR T1.SportName = "Lacrosse"
Find the last and first name of students who are playing Football or Lacrosse.
CREATE TABLE SportsInfo (StuID VARCHAR, SportName VARCHAR); CREATE TABLE Student (lname VARCHAR, fname VARCHAR, StuID VARCHAR)
SELECT MAX(place) FROM table_name_23 WHERE ribbon < 9.8 AND total = 19.2
What place had a ribbon below 9.8 and a 19.2 total?
CREATE TABLE table_name_23 (place INTEGER, ribbon VARCHAR, total VARCHAR)
SELECT result FROM table_name_64 WHERE week > 13
What is the result later than week 13?
CREATE TABLE table_name_64 (result VARCHAR, week INTEGER)
SELECT nationality FROM table_name_10 WHERE round < 5 AND player = "bruce affleck"
Can you tell me the Nationality that has the Round smaller than 5, and the Player of bruce affleck?
CREATE TABLE table_name_10 (nationality VARCHAR, round VARCHAR, player VARCHAR)
SELECT COUNT(DISTINCT Hometown) FROM people
How many distinct hometowns did these people have?
CREATE TABLE people (Hometown VARCHAR)
SELECT make FROM table_name_17 WHERE car__number < 40 AND points < 151 AND winnings = "$84,400"
Which driver has a # smaller than 40, less than 151 points, and Winnings of $84,400?
CREATE TABLE table_name_17 (make VARCHAR, winnings VARCHAR, car__number VARCHAR, points VARCHAR)
SELECT political_party FROM table_name_72 WHERE name = "mehdi bej frashëri (2nd time)"
Which Political Party has a Name of mehdi bej frashëri (2nd time)?
CREATE TABLE table_name_72 (political_party VARCHAR, name VARCHAR)
SELECT venue FROM table_name_14 WHERE against < 30 AND opposing_team = "new south wales"
What is Venue, when Against is less than 30, and when Opposing Team is New South Wales?
CREATE TABLE table_name_14 (venue VARCHAR, against VARCHAR, opposing_team VARCHAR)
SELECT MIN(crowd) FROM table_name_42 WHERE away_team = "melbourne"
When the Away team is melbourne, what's the lowest Crowd attended?
CREATE TABLE table_name_42 (crowd INTEGER, away_team VARCHAR)
SELECT home_team AS score FROM table_name_49 WHERE away_team = "north melbourne"
What is the home team score when north Melbourne was the away team?
CREATE TABLE table_name_49 (home_team VARCHAR, away_team VARCHAR)
SELECT runs FROM table_name_28 WHERE batsmen = "james bryant graeme welch"
Which runs had james bryant graeme welch as Batsmen?
CREATE TABLE table_name_28 (runs VARCHAR, batsmen VARCHAR)
SELECT date FROM table_name_64 WHERE visitor = "chicago"
Name the date with chicago visiting
CREATE TABLE table_name_64 (date VARCHAR, visitor VARCHAR)
SELECT trainer FROM table_name_67 WHERE winner = "crowd pleaser"
Who was the trainer when Crowd Pleaser won?
CREATE TABLE table_name_67 (trainer VARCHAR, winner VARCHAR)
SELECT theme FROM table_25374338_1 WHERE original_artist = "Noemi feat. Fiorella Mannoia"
What is the theme where the original artist is Noemi feat. Fiorella Mannoia?
CREATE TABLE table_25374338_1 (theme VARCHAR, original_artist VARCHAR)
SELECT date_of_appointment FROM table_26998135_2 WHERE outgoing_manager = "Mustafa Denizli"
What is the date of appointment when the outgoing manager was mustafa denizli?
CREATE TABLE table_26998135_2 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)
SELECT AVG(grid) FROM table_name_44 WHERE time_retired = "+2.2 secs"
What is the average grid for the +2.2 secs time/retired?
CREATE TABLE table_name_44 (grid INTEGER, time_retired VARCHAR)
SELECT type FROM table_261954_1 WHERE location = "Roanoke, Virginia"
What is every type for the location of Roanoke, Virginia?
CREATE TABLE table_261954_1 (type VARCHAR, location VARCHAR)
SELECT championship FROM table_name_83 WHERE winning_score = −9(66 - 69 - 73 - 71 = 279)
In which championship did the winner have a score of −9 (66-69-73-71=279)?
CREATE TABLE table_name_83 (championship VARCHAR, winning_score VARCHAR)
SELECT uyghur___k̢ona_yezik̢__ FROM table_2008069_2 WHERE chinese = "瓦恰"
Name the uyghur for 瓦恰
CREATE TABLE table_2008069_2 (uyghur___k̢ona_yezik̢__ VARCHAR, chinese VARCHAR)
SELECT southern_lakota FROM table_1499791_2 WHERE yankton_yanktonai = "wakȟáŋyeža"
Name the southern lakota for wakȟáŋyeža
CREATE TABLE table_1499791_2 (southern_lakota VARCHAR, yankton_yanktonai VARCHAR)
SELECT result FROM table_name_33 WHERE year > 2004
What were the results after 2004?
CREATE TABLE table_name_33 (result VARCHAR, year INTEGER)
SELECT MAX(money___) AS $__ FROM table_name_21 WHERE score = 71 - 74 - 69 - 72 = 286
what is the most money ($) when the score is 71-74-69-72=286?
CREATE TABLE table_name_21 (money___ INTEGER, score VARCHAR)
SELECT event FROM table_name_82 WHERE medal = "bronze" AND games = "1988 seoul"
What event did Pakistan get the bronze medal at the 1988 Seoul Games?
CREATE TABLE table_name_82 (event VARCHAR, medal VARCHAR, games VARCHAR)
SELECT nominee FROM table_name_16 WHERE award = "tony award"
Who was the nominee having a Tony award?
CREATE TABLE table_name_16 (nominee VARCHAR, award VARCHAR)
SELECT country FROM table_name_43 WHERE place = "t10" AND player = "rod pampling"
What country was the player, rod pampling, from who placed t10?
CREATE TABLE table_name_43 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT player FROM table_name_88 WHERE score = 69 - 71 - 69 = 208
What Player's Score is 69-71-69=208?
CREATE TABLE table_name_88 (player VARCHAR, score VARCHAR)
SELECT COUNT(against) FROM table_name_20 WHERE status = "first test"
How many against have a status of first test?
CREATE TABLE table_name_20 (against VARCHAR, status VARCHAR)
SELECT county FROM table_18600760_3 WHERE latitude = "46.770977"
What was the county with a latitude of 46.770977?
CREATE TABLE table_18600760_3 (county VARCHAR, latitude VARCHAR)
SELECT region FROM table_name_41 WHERE date = "november 18, 2002"
Which region had the date of November 18, 2002?
CREATE TABLE table_name_41 (region VARCHAR, date VARCHAR)
SELECT SUM(silver) FROM table_name_70 WHERE total < 560 AND bronze > 6 AND gold = 3
What's the sum of Silver with total smaller than 560, a Bronze larger than 6, and a Gold of 3?
CREATE TABLE table_name_70 (silver INTEGER, gold VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT result FROM table_name_49 WHERE date = "october 3"
What is the Result of the game on October 3?
CREATE TABLE table_name_49 (result VARCHAR, date VARCHAR)
SELECT score FROM table_name_97 WHERE visitor = "toronto maple leafs"
What was the score of the game in which the Toronto Maple Leafs were visitors?
CREATE TABLE table_name_97 (score VARCHAR, visitor VARCHAR)
SELECT MAX(week) FROM table_name_46 WHERE opponent = "san francisco 49ers"
Which Week has an Opponent of san francisco 49ers?
CREATE TABLE table_name_46 (week INTEGER, opponent VARCHAR)
SELECT COUNT(gdp__nominal__per_capita), _usd__2012_ FROM table_28741_1 WHERE capital = "Phnom Penh"
What are the numbers for GDP (nominal) per capita and USD (2012) of the area with Phnom Penh as capital?
CREATE TABLE table_28741_1 (_usd__2012_ VARCHAR, gdp__nominal__per_capita VARCHAR, capital VARCHAR)
SELECT COUNT(year_of_intro) FROM table_29474407_11 WHERE name__designation = "Neal submachine gun"
How many years of introduction does the Neal Submachine Gun have?
CREATE TABLE table_29474407_11 (year_of_intro VARCHAR, name__designation VARCHAR)
SELECT name FROM table_24565004_7 WHERE appearances¹ = 252
Which player had 252 appearances
CREATE TABLE table_24565004_7 (name VARCHAR, appearances¹ VARCHAR)
SELECT product FROM table_name_80 WHERE java_ee_compatibility = "1.4" AND vendor = "oracle corporation"
Which Oracle Corporation product has a Java EE compatibility of 1.4?
CREATE TABLE table_name_80 (product VARCHAR, java_ee_compatibility VARCHAR, vendor VARCHAR)
SELECT venue FROM table_name_39 WHERE home_team = "carlton"
What venue is the home of the Carlton team?
CREATE TABLE table_name_39 (venue VARCHAR, home_team VARCHAR)
SELECT _percentage_yes FROM table_256286_61 WHERE yes_votes = 218846
What is the percentage of yes when there were 218846 yes votes
CREATE TABLE table_256286_61 (_percentage_yes VARCHAR, yes_votes VARCHAR)
SELECT season FROM table_name_79 WHERE rating = "+33"
Which season was one of the players rated +33?
CREATE TABLE table_name_79 (season VARCHAR, rating VARCHAR)
SELECT republican_ticket FROM table_name_37 WHERE american_labor_ticket = "spencer c. young"
What name is on the Republican ticket when the American Labor ticket was spencer c. young?
CREATE TABLE table_name_37 (republican_ticket VARCHAR, american_labor_ticket VARCHAR)
SELECT MAX(founded) FROM table_2589963_1 WHERE color = "Green and White"
What year was the school with green and white colors founded?
CREATE TABLE table_2589963_1 (founded INTEGER, color VARCHAR)
SELECT rID FROM Rating EXCEPT SELECT rID FROM Rating WHERE stars = 4
find the ids of reviewers who did not give 4 star.
CREATE TABLE Rating (rID VARCHAR, stars VARCHAR)
SELECT rider FROM table_name_96 WHERE team = "lcr honda 600cc" AND time = "59’ 22.80"
What was the Rider of the LCR Honda 600CC Team with a Time of 59’ 22.80?
CREATE TABLE table_name_96 (rider VARCHAR, team VARCHAR, time VARCHAR)
SELECT airport FROM table_name_63 WHERE iata = "erz"
Which Airport has a IATA of erz?
CREATE TABLE table_name_63 (airport VARCHAR, iata VARCHAR)
SELECT title FROM table_11111116_7 WHERE us_viewers__million_ = "3.02"
What were the names of the episodes that had 3.02 million U.S. viewers?
CREATE TABLE table_11111116_7 (title VARCHAR, us_viewers__million_ VARCHAR)
SELECT COUNT(dismissals) FROM table_19769948_26 WHERE innings = 191
how many dismissals in a game with 191 innings
CREATE TABLE table_19769948_26 (dismissals VARCHAR, innings VARCHAR)
SELECT party FROM table_name_55 WHERE minister = "franco frattini"
What is Party, when Minister is "Franco Frattini"?
CREATE TABLE table_name_55 (party VARCHAR, minister VARCHAR)
SELECT date FROM table_name_7 WHERE venue = "arden street oval"
When did the game at Arden Street Oval occur?
CREATE TABLE table_name_7 (date VARCHAR, venue VARCHAR)
SELECT team FROM table_name_79 WHERE rider = "adam barclay"
What team has adam barclay as the rider?
CREATE TABLE table_name_79 (team VARCHAR, rider VARCHAR)
SELECT agg FROM table_name_28 WHERE team__number2 = "estudiantes"
When Estudiantes was team #2, what was their agg. value?
CREATE TABLE table_name_28 (agg VARCHAR, team__number2 VARCHAR)
SELECT group_position FROM table_name_93 WHERE result_f_a = "5–0"
Result F–A of 5–0 had what group position?
CREATE TABLE table_name_93 (group_position VARCHAR, result_f_a VARCHAR)
SELECT MAX(mass__kg_) FROM table_1558077_2
What is the largest mass(kg)?
CREATE TABLE table_1558077_2 (mass__kg_ INTEGER)
SELECT hometown FROM table_11677100_4 WHERE school = "Brighton High school"
What town is Brighton High School in?
CREATE TABLE table_11677100_4 (hometown VARCHAR, school VARCHAR)
SELECT title FROM table_name_6 WHERE written_by = "david j. burke"
What is the title of the episode written by David J. Burke?
CREATE TABLE table_name_6 (title VARCHAR, written_by VARCHAR)