question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the total Design flow (LPM) with a Partner of app, a Construction Start of 2008 january, and a Population Served larger than 3500?
CREATE TABLE table_name_6 (design_flow__lpm_ INTEGER, population_served VARCHAR, partner VARCHAR, construction_start VARCHAR)
SELECT SUM(design_flow__lpm_) FROM table_name_6 WHERE partner = "app" AND construction_start = "2008 january" AND population_served > 3500
What coach premiered February 16, 2008 later than episode 21.0?
CREATE TABLE table_2140071_8 (coach VARCHAR, premier_date VARCHAR, episode VARCHAR)
SELECT coach FROM table_2140071_8 WHERE premier_date = "February 16, 2008" AND episode > 21.0
Opponent of andry laffita had what score?
CREATE TABLE table_name_7 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_7 WHERE opponent = "andry laffita"
What point is the lowest for listings of chassis labeled AGS JH23 before 1988?
CREATE TABLE table_name_73 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT MIN(points) FROM table_name_73 WHERE chassis = "ags jh23" AND year < 1988
For which industry was the profit smaller than 14.2 billion and the assets larger than 2,467.9 billion?
CREATE TABLE table_name_83 (industry VARCHAR, profits__billion_$_ VARCHAR, assets__billion_$_ VARCHAR)
SELECT industry FROM table_name_83 WHERE profits__billion_$_ < 14.2 AND assets__billion_$_ > 2 OFFSET 467.9
What are the lowest cuts made that have events less than 4?
CREATE TABLE table_name_84 (cuts_made INTEGER, events INTEGER)
SELECT MIN(cuts_made) FROM table_name_84 WHERE events < 4
Can you tell me the Score that has the Team of memphis?
CREATE TABLE table_name_89 (score VARCHAR, team VARCHAR)
SELECT score FROM table_name_89 WHERE team = "memphis"
How many losses have points against greater than 592, with high park demons as the club, and points for greater than 631?
CREATE TABLE table_name_45 (loses VARCHAR, points_for VARCHAR, points_against VARCHAR, club VARCHAR)
SELECT COUNT(loses) FROM table_name_45 WHERE points_against > 592 AND club = "high park demons" AND points_for > 631
What is the per-capita GDP of the country with an overall GDP of 80.955?
CREATE TABLE table_name_40 (gdp_per_capita__us$_ VARCHAR, gdp__billion_us$_ VARCHAR)
SELECT gdp_per_capita__us$_ FROM table_name_40 WHERE gdp__billion_us$_ = "80.955"
What was the crowd size for the Home team of melbourne?
CREATE TABLE table_name_54 (crowd VARCHAR, home_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_54 WHERE home_team = "melbourne"
Which street is 12.2 miles long?
CREATE TABLE table_10568553_1 (street_names VARCHAR, milepost VARCHAR)
SELECT street_names FROM table_10568553_1 WHERE milepost = "12.2"
What is the language that was used most often in songs with resolution above 500?
CREATE TABLE song (artist_name VARCHAR, languages VARCHAR, resolution INTEGER)
SELECT artist_name FROM song WHERE resolution > 500 GROUP BY languages ORDER BY COUNT(*) DESC LIMIT 1
What generation is the member born on 1992.12.23 in?
CREATE TABLE table_name_4 (generation VARCHAR, birthday VARCHAR)
SELECT generation FROM table_name_4 WHERE birthday = "1992.12.23"
Who is the opponent in the final on August 14, 2006?
CREATE TABLE table_name_3 (opponent_in_the_final VARCHAR, date VARCHAR)
SELECT opponent_in_the_final FROM table_name_3 WHERE date = "august 14, 2006"
Which season had EV Bad Wörishofen in the West?
CREATE TABLE table_name_60 (season VARCHAR, west VARCHAR)
SELECT season FROM table_name_60 WHERE west = "ev bad wörishofen"
Find the first and last name of students who are not in the largest major.
CREATE TABLE student (fname VARCHAR, lname VARCHAR, major VARCHAR)
SELECT fname, lname FROM student WHERE major <> (SELECT major FROM student GROUP BY major ORDER BY COUNT(*) DESC LIMIT 1)
What is the land area of the RCM having a density of 21.1?
CREATE TABLE table_214920_1 (land_area VARCHAR, density__pop_per_km2_ VARCHAR)
SELECT land_area FROM table_214920_1 WHERE density__pop_per_km2_ = "21.1"
How many votes did Obama get in Lake County?
CREATE TABLE table_20799905_1 (obama_number INTEGER, county VARCHAR)
SELECT MIN(obama_number) FROM table_20799905_1 WHERE county = "LAKE"
Which Rank has a Heat larger than 7?
CREATE TABLE table_name_58 (rank INTEGER, heat INTEGER)
SELECT MAX(rank) FROM table_name_58 WHERE heat > 7
Which format is released on May 27, 2009?
CREATE TABLE table_name_77 (format VARCHAR, date VARCHAR)
SELECT format FROM table_name_77 WHERE date = "may 27, 2009"
Which Home has a Score of 0:2?
CREATE TABLE table_name_63 (home VARCHAR, score VARCHAR)
SELECT home FROM table_name_63 WHERE score = "0:2"
On what date did a game higher than 10 have a score of 99-89?
CREATE TABLE table_name_26 (date VARCHAR, game VARCHAR, score VARCHAR)
SELECT date FROM table_name_26 WHERE game > 10 AND score = "99-89"
What was the segment b for Netflix s01e21?
CREATE TABLE table_name_34 (segment_b VARCHAR, netflix VARCHAR)
SELECT segment_b FROM table_name_34 WHERE netflix = "s01e21"
what is the conference joined for the county 69 ripley in 1952 in versailles?
CREATE TABLE table_name_58 (conference_joined VARCHAR, location VARCHAR, county VARCHAR, year_joined VARCHAR)
SELECT conference_joined FROM table_name_58 WHERE county = "69 ripley" AND year_joined = 1952 AND location = "versailles"
Name the winner for genoa to livorno
CREATE TABLE table_name_39 (winner VARCHAR, course VARCHAR)
SELECT winner FROM table_name_39 WHERE course = "genoa to livorno"
What is Japan's Area km²?
CREATE TABLE table_name_45 (area_km² VARCHAR, country VARCHAR)
SELECT area_km² FROM table_name_45 WHERE country = "japan"
Who was the Co-Driver of the winner of 1992's race?
CREATE TABLE table_name_24 (co_drivers VARCHAR, year VARCHAR)
SELECT co_drivers FROM table_name_24 WHERE year = 1992
what's the evening gown with swimsuit being 9.134
CREATE TABLE table_11970261_2 (evening_gown VARCHAR, swimsuit VARCHAR)
SELECT evening_gown FROM table_11970261_2 WHERE swimsuit = "9.134"
Which state or territory had a channel number of exactly 7?
CREATE TABLE table_27871460_2 (state_or_territory VARCHAR, channel_number VARCHAR)
SELECT state_or_territory FROM table_27871460_2 WHERE channel_number = 7
What is the lowest round Trinity school was drafted with an overall higher than 21?
CREATE TABLE table_name_89 (round INTEGER, school_club_team VARCHAR, overall VARCHAR)
SELECT MIN(round) FROM table_name_89 WHERE school_club_team = "trinity" AND overall < 21
What is the average grid number with a ferrari and a time or retired time of 1:32:35.101?
CREATE TABLE table_name_10 (grid INTEGER, constructor VARCHAR, time_retired VARCHAR)
SELECT AVG(grid) FROM table_name_10 WHERE constructor = "ferrari" AND time_retired = "1:32:35.101"
What was the to par when the score was 71-70-72-68=281?
CREATE TABLE table_name_92 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_92 WHERE score = 71 - 70 - 72 - 68 = 281
Tell me the number of regions with an area of 58.81
CREATE TABLE table_name_76 (region VARCHAR, area__km_2__ VARCHAR)
SELECT COUNT(region) FROM table_name_76 WHERE area__km_2__ = 58.81
If the college is SMU, what is the position?
CREATE TABLE table_27132791_3 (position VARCHAR, college VARCHAR)
SELECT position FROM table_27132791_3 WHERE college = "SMU"
Name the opponent for 4th
CREATE TABLE table_17120964_5 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_17120964_5 WHERE date = "4th"
Who was the leading score in the game at the Warriors?
CREATE TABLE table_name_54 (leading_scorer VARCHAR, home VARCHAR)
SELECT leading_scorer FROM table_name_54 WHERE home = "warriors"
What was the to par for the game with a score of 74-69-66=209?
CREATE TABLE table_name_24 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_24 WHERE score = 74 - 69 - 66 = 209
What were the results of episodes with the first air date of March 6, 2008?
CREATE TABLE table_11220799_2 (finish VARCHAR, first_air_date VARCHAR)
SELECT finish FROM table_11220799_2 WHERE first_air_date = "March 6, 2008"
Find the name, city, and country of the airport that has the highest latitude.
CREATE TABLE airports (name VARCHAR, city VARCHAR, country VARCHAR, elevation VARCHAR)
SELECT name, city, country FROM airports ORDER BY elevation DESC LIMIT 1
Name the change for english democrats
CREATE TABLE table_name_78 (change VARCHAR, party VARCHAR)
SELECT change FROM table_name_78 WHERE party = "english democrats"
What's the average of all years tournaments were hosted in Doha, Qatar?
CREATE TABLE table_name_81 (year INTEGER, venue VARCHAR)
SELECT AVG(year) FROM table_name_81 WHERE venue = "doha, qatar"
What is the time of the rider with a speed of 102.962mph?
CREATE TABLE table_name_92 (time VARCHAR, speed VARCHAR)
SELECT time FROM table_name_92 WHERE speed = "102.962mph"
Who won the rookie award the week the transition award was given to Brodie Merrill and the offensive award was given to Pat Maddalena?
CREATE TABLE table_14132239_3 (rookie VARCHAR, transition VARCHAR, offensive VARCHAR)
SELECT rookie FROM table_14132239_3 WHERE transition = "Brodie Merrill" AND offensive = "Pat Maddalena"
What is the 2012 value with A in 2010 at the Tournament of Wimbledon?
CREATE TABLE table_name_13 (tournament VARCHAR)
SELECT 2012 FROM table_name_13 WHERE 2010 = "a" AND tournament = "wimbledon"
Name the wicket for 19-03-2007
CREATE TABLE table_name_59 (wicket VARCHAR, date VARCHAR)
SELECT wicket FROM table_name_59 WHERE date = "19-03-2007"
Who's the partner that played against Alicia Molik Mara Santangelo on clay?
CREATE TABLE table_name_7 (partner VARCHAR, surface VARCHAR, opponents_in_the_final VARCHAR)
SELECT partner FROM table_name_7 WHERE surface = "clay" AND opponents_in_the_final = "alicia molik mara santangelo"
What team has a position of running back and picked after 2?
CREATE TABLE table_name_44 (team VARCHAR, pick VARCHAR, position VARCHAR)
SELECT team FROM table_name_44 WHERE pick > 2 AND position = "running back"
In which distinct years was the governor "Eliot Spitzer"?
CREATE TABLE party (YEAR VARCHAR, Governor VARCHAR)
SELECT DISTINCT YEAR FROM party WHERE Governor = "Eliot Spitzer"
Name the pursuit for 1994 lillehammer
CREATE TABLE table_name_43 (pursuit VARCHAR, event VARCHAR)
SELECT pursuit FROM table_name_43 WHERE event = "1994 lillehammer"
What was the lowest attendance for week 1?
CREATE TABLE table_name_48 (attendance INTEGER, week VARCHAR)
SELECT MIN(attendance) FROM table_name_48 WHERE week = 1
What score has 2000 as the year?
CREATE TABLE table_name_80 (score VARCHAR, year VARCHAR)
SELECT score FROM table_name_80 WHERE year = 2000
Which Name has a Nationality of nor, and Points of 136?
CREATE TABLE table_name_99 (name VARCHAR, nationality VARCHAR, points VARCHAR)
SELECT name FROM table_name_99 WHERE nationality = "nor" AND points = 136
What is Henri Crockett's highest overall with more than 3 picks?
CREATE TABLE table_name_65 (overall INTEGER, pick__number VARCHAR, name VARCHAR)
SELECT MAX(overall) FROM table_name_65 WHERE pick__number > 3 AND name = "henri crockett"
Which opponent led to a record of 10-6?
CREATE TABLE table_name_94 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_94 WHERE record = "10-6"
What is the Population where the Median House-hold Income is $25,016?
CREATE TABLE table_name_59 (population INTEGER, median_house__hold_income VARCHAR)
SELECT MIN(population) FROM table_name_59 WHERE median_house__hold_income = "$25,016"
who was the incoming manager for the 12th position in the table
CREATE TABLE table_26914759_3 (incoming_manager VARCHAR, position_in_table VARCHAR)
SELECT incoming_manager FROM table_26914759_3 WHERE position_in_table = "12th"
What is the latest year that has ferrari 166 fl as the winning constructor?
CREATE TABLE table_name_7 (year INTEGER, winning_constructor VARCHAR)
SELECT MAX(year) FROM table_name_7 WHERE winning_constructor = "ferrari 166 fl"
What opponent has a loss of Trachsel (10-11)?
CREATE TABLE table_name_12 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_12 WHERE loss = "trachsel (10-11)"
How many total medals for the nation ranked 7 with 1 silver and under 4 bronzes?
CREATE TABLE table_name_56 (total INTEGER, rank VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT AVG(total) FROM table_name_56 WHERE bronze < 4 AND silver = 1 AND rank = "7"
Where was the game held on August 20, 2004?
CREATE TABLE table_name_78 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_78 WHERE date = "august 20, 2004"
Name the score when game is 19
CREATE TABLE table_17103645_10 (score VARCHAR, game VARCHAR)
SELECT score FROM table_17103645_10 WHERE game = 19
What Series had 14 races and 12th position?
CREATE TABLE table_name_11 (series VARCHAR, races VARCHAR, position VARCHAR)
SELECT series FROM table_name_11 WHERE races = 14 AND position = "12th"
How many points were there when the try bonus was 2?
CREATE TABLE table_name_35 (points VARCHAR, try_bonus VARCHAR)
SELECT points FROM table_name_35 WHERE try_bonus = "2"
What call sign has a frequency of 91.3 MHz?
CREATE TABLE table_name_81 (call_sign VARCHAR, frequency_mhz VARCHAR)
SELECT call_sign FROM table_name_81 WHERE frequency_mhz = 91.3
Which Date has a Tournament of at&t pebble beach national pro-am, and a Margin of victory of 1 stroke, and a To par of –11?
CREATE TABLE table_name_14 (date VARCHAR, to_par VARCHAR, tournament VARCHAR, margin_of_victory VARCHAR)
SELECT date FROM table_name_14 WHERE tournament = "at&t pebble beach national pro-am" AND margin_of_victory = "1 stroke" AND to_par = "–11"
What launched has mariner 4 as the spacecraft?
CREATE TABLE table_name_17 (launched VARCHAR, spacecraft VARCHAR)
SELECT launched FROM table_name_17 WHERE spacecraft = "mariner 4"
What is the country of t1 place player wayne grady?
CREATE TABLE table_name_9 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT country FROM table_name_9 WHERE place = "t1" AND player = "wayne grady"
Which rapid has a distance in km smaller than 14.2, and a Station of kōmyōji?
CREATE TABLE table_name_91 (rapid VARCHAR, distance__km_ VARCHAR, station VARCHAR)
SELECT rapid FROM table_name_91 WHERE distance__km_ < 14.2 AND station = "kōmyōji"
What is the Film with winner Jerome Kern in the 19th Ceremony?
CREATE TABLE table_name_47 (film VARCHAR, ceremony VARCHAR, name VARCHAR)
SELECT film FROM table_name_47 WHERE ceremony = "19th" AND name = "jerome kern"
What tournament has 1r as the 2011?
CREATE TABLE table_name_12 (tournament VARCHAR)
SELECT tournament FROM table_name_12 WHERE 2011 = "1r"
where was mazouz ghaouti executed?
CREATE TABLE table_2861364_1 (place_of_execution VARCHAR, executed_person VARCHAR)
SELECT place_of_execution FROM table_2861364_1 WHERE executed_person = "Mazouz Ghaouti"
What are flight numbers of flights arriving at City "Aberdeen"?
CREATE TABLE FLIGHTS (FlightNo VARCHAR, DestAirport VARCHAR); CREATE TABLE AIRPORTS (AirportCode VARCHAR, City VARCHAR)
SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = "Aberdeen"
What is the total for Chuquisaca?
CREATE TABLE table_21249915_1 (total VARCHAR, department VARCHAR)
SELECT total FROM table_21249915_1 WHERE department = "Chuquisaca"
Can you tell me the total number of Prev that has the Chng of +10, and the Rating larger than 2765?
CREATE TABLE table_name_26 (prev VARCHAR, chng VARCHAR, rating VARCHAR)
SELECT COUNT(prev) FROM table_name_26 WHERE chng = "+10" AND rating > 2765
What is the col (m) of the Barurumea Ridge peak?
CREATE TABLE table_18946749_2 (col__m_ INTEGER, peak VARCHAR)
SELECT MAX(col__m_) FROM table_18946749_2 WHERE peak = "Barurumea Ridge"
What is the Netflix where Segment D is pressure gauges ?
CREATE TABLE table_15187735_12 (netflix VARCHAR, segment_d VARCHAR)
SELECT netflix FROM table_15187735_12 WHERE segment_d = "Pressure Gauges"
What is the cable rank for episode no. 4?
CREATE TABLE table_24399615_3 (cable_rank VARCHAR, episode_no VARCHAR)
SELECT cable_rank FROM table_24399615_3 WHERE episode_no = 4
What is the total number of draws when there are 1465 against matches and less than 2 byes?
CREATE TABLE table_name_76 (draws VARCHAR, against VARCHAR, byes VARCHAR)
SELECT COUNT(draws) FROM table_name_76 WHERE against = 1465 AND byes < 2
Show the flight number of flights with three lowest distances.
CREATE TABLE Flight (flno VARCHAR, distance VARCHAR)
SELECT flno FROM Flight ORDER BY distance LIMIT 3
What is the lowest number of laps for Marco Simoncelli on a grid higher than 11?
CREATE TABLE table_name_86 (laps INTEGER, rider VARCHAR, grid VARCHAR)
SELECT MIN(laps) FROM table_name_86 WHERE rider = "marco simoncelli" AND grid > 11
Which Championship has a Score of 2–6, 4–6, 4–6?
CREATE TABLE table_name_91 (championship VARCHAR, score VARCHAR)
SELECT championship FROM table_name_91 WHERE score = "2–6, 4–6, 4–6"
What was the result for the fil Paljas?
CREATE TABLE table_name_1 (result VARCHAR, film_title VARCHAR)
SELECT result FROM table_name_1 WHERE film_title = "paljas"
what is the year for borderlands 2?
CREATE TABLE table_name_81 (year VARCHAR, game VARCHAR)
SELECT year FROM table_name_81 WHERE game = "borderlands 2"
Which Round is the lowest one that has a College/Junior/Club Team (League) of oshawa generals (oha), and a Player of bob kelly?
CREATE TABLE table_name_83 (round INTEGER, college_junior_club_team__league_ VARCHAR, player VARCHAR)
SELECT MIN(round) FROM table_name_83 WHERE college_junior_club_team__league_ = "oshawa generals (oha)" AND player = "bob kelly"
Which Athletes have a Rank of bronze?
CREATE TABLE table_name_44 (athletes VARCHAR, rank VARCHAR)
SELECT athletes FROM table_name_44 WHERE rank = "bronze"
Which CONMEBOL 1994 has a Supercopa 1994 of n/a, and a Recopa 1994 of n/a, and a Team of san lorenzo?
CREATE TABLE table_name_12 (conmebol_1994 VARCHAR, team VARCHAR, supercopa_1994 VARCHAR, recopa_1994 VARCHAR)
SELECT conmebol_1994 FROM table_name_12 WHERE supercopa_1994 = "n/a" AND recopa_1994 = "n/a" AND team = "san lorenzo"
What is the Winner when anke huber chanda rubin was semi finalist?
CREATE TABLE table_name_31 (winner VARCHAR, semi_finalists VARCHAR)
SELECT winner FROM table_name_31 WHERE semi_finalists = "anke huber chanda rubin"
What is every value when Mitchell is 676?
CREATE TABLE table_1818471_1 (value VARCHAR, mitchell VARCHAR)
SELECT value FROM table_1818471_1 WHERE mitchell = 676
If the Home team was st kilda, what was the score of the Away team they played?
CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_16 WHERE home_team = "st kilda"
What engine did the porsche 718 chassis use?
CREATE TABLE table_name_52 (engine VARCHAR, chassis VARCHAR)
SELECT engine FROM table_name_52 WHERE chassis = "porsche 718"
What Country has a Career of 1989–2004?
CREATE TABLE table_name_26 (country VARCHAR, career VARCHAR)
SELECT country FROM table_name_26 WHERE career = "1989–2004"
What is the sum of gold medals with a total of 12 medals and less than 4 bronze medals?
CREATE TABLE table_name_72 (gold INTEGER, total VARCHAR, bronze VARCHAR)
SELECT SUM(gold) FROM table_name_72 WHERE total = 12 AND bronze < 4
What's the power of Mom's Radio 101.5 Tacloban?
CREATE TABLE table_name_7 (power__kw_ VARCHAR, branding VARCHAR)
SELECT power__kw_ FROM table_name_7 WHERE branding = "mom's radio 101.5 tacloban"
Which Year(s) won with a To par of 12?
CREATE TABLE table_name_84 (year_s__won VARCHAR, to_par VARCHAR)
SELECT year_s__won FROM table_name_84 WHERE to_par = 12
display the job title of jobs which minimum salary is greater than 9000.
CREATE TABLE jobs (job_title VARCHAR, min_salary INTEGER)
SELECT job_title FROM jobs WHERE min_salary > 9000
How many languages is refractaire as the film title used in nomination?
CREATE TABLE table_22073745_1 (languages VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT COUNT(languages) FROM table_22073745_1 WHERE film_title_used_in_nomination = "Refractaire"
What event did Rashid Sidek participate in?
CREATE TABLE table_name_8 (event VARCHAR, name VARCHAR)
SELECT event FROM table_name_8 WHERE name = "rashid sidek"
What were the lowest amount of points for season 1994?
CREATE TABLE table_name_33 (points INTEGER, season VARCHAR)
SELECT MIN(points) FROM table_name_33 WHERE season = "1994"
What is the pressure in ultra high vacuum?
CREATE TABLE table_170097_1 (pressure_in_hpa__mbar_ VARCHAR, vacuum_range VARCHAR)
SELECT pressure_in_hpa__mbar_ FROM table_170097_1 WHERE vacuum_range = "Ultra high vacuum"
Who was the opponent when attendance was 60,355?
CREATE TABLE table_name_87 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_87 WHERE attendance = "60,355"