question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the lowest number of ties in the NFL, with less than 2 losses and less than 15 wins?
CREATE TABLE table_name_12 (ties INTEGER, wins VARCHAR, league VARCHAR, losses VARCHAR)
SELECT MIN(ties) FROM table_name_12 WHERE league = "nfl" AND losses < 2 AND wins < 15
What was the surface when he played with John Alexander?
CREATE TABLE table_26309085_1 (surface VARCHAR, partner VARCHAR)
SELECT surface FROM table_26309085_1 WHERE partner = "John Alexander"
When Tom Watson placed t6, what was the 2 par?
CREATE TABLE table_name_35 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_35 WHERE place = "t6" AND player = "tom watson"
How many districts have an area of 17.72 KM2?
CREATE TABLE table_1104312_5 (english_name VARCHAR, area_in_km² VARCHAR)
SELECT COUNT(english_name) FROM table_1104312_5 WHERE area_in_km² = "17.72"
What was the previous conference for the team with the Governors as their mascot that joined the Indiana Lake Shore conference?
CREATE TABLE table_name_88 (previous_conference VARCHAR, conference_joined VARCHAR, mascot VARCHAR)
SELECT previous_conference FROM table_name_88 WHERE conference_joined = "indiana lake shore" AND mascot = "governors"
What is the value for 2007 when 2008 is Q1?
CREATE TABLE table_name_68 (Id VARCHAR)
SELECT 2007 FROM table_name_68 WHERE 2008 = "q1"
Which Date has an Attendance of 57,013?
CREATE TABLE table_name_36 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_36 WHERE attendance = "57,013"
What was the amount of winners share (in $) in the game with a margin victory of 2 strokes?
CREATE TABLE table_1940012_2 (winners_share___$__ VARCHAR, margin_of_victory VARCHAR)
SELECT winners_share___$__ FROM table_1940012_2 WHERE margin_of_victory = "2 strokes"
How much did the Modern Pentathlon III Series coin weigh?
CREATE TABLE table_name_65 (weight VARCHAR, series VARCHAR, reverse VARCHAR)
SELECT weight FROM table_name_65 WHERE series = "iii series" AND reverse = "modern pentathlon"
Which Points is the highest one that has a Nationality of aut, and a Name of thomas morgenstern?
CREATE TABLE table_name_32 (points INTEGER, nationality VARCHAR, name VARCHAR)
SELECT MAX(points) FROM table_name_32 WHERE nationality = "aut" AND name = "thomas morgenstern"
When the change (2011 to 2012) is +13.4% what is the country?
CREATE TABLE table_14752049_6 (country VARCHAR, change__2011_to_2012_ VARCHAR)
SELECT country FROM table_14752049_6 WHERE change__2011_to_2012_ = "+13.4%"
What type of bridge is Colton's Crossing Bridge?
CREATE TABLE table_name_46 (type VARCHAR, name VARCHAR)
SELECT type FROM table_name_46 WHERE name = "colton's crossing bridge"
tipuani municipality when tacacoma municipality is 6?
CREATE TABLE table_2509202_2 (tipuani_municipality VARCHAR, tacacoma_municipality VARCHAR)
SELECT tipuani_municipality FROM table_2509202_2 WHERE tacacoma_municipality = "6"
List the Episode of all TV series sorted by rating.
CREATE TABLE TV_series (Episode VARCHAR, rating VARCHAR)
SELECT Episode FROM TV_series ORDER BY rating
Which opponent has a Score of 2–5?
CREATE TABLE table_name_23 (opponent VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_23 WHERE score = "2–5"
What Rating has Viewers (m) of 2.73?
CREATE TABLE table_name_96 (rating VARCHAR, viewers__m_ VARCHAR)
SELECT rating FROM table_name_96 WHERE viewers__m_ = 2.73
Which School's Mascot is Raiders?
CREATE TABLE table_name_28 (school VARCHAR, mascot VARCHAR)
SELECT school FROM table_name_28 WHERE mascot = "raiders"
What's the diameter of kaiwan fluctus?
CREATE TABLE table_name_30 (diameter__km_ VARCHAR, name VARCHAR)
SELECT diameter__km_ FROM table_name_30 WHERE name = "kaiwan fluctus"
Which Joined has a Nickname of knights, and an Enrollment larger than 2,960?
CREATE TABLE table_name_61 (joined INTEGER, nickname VARCHAR, enrollment VARCHAR)
SELECT SUM(joined) FROM table_name_61 WHERE nickname = "knights" AND enrollment > 2 OFFSET 960
What is the highest Year, when Finish is "51", and when Start is less than 64?
CREATE TABLE table_name_29 (year INTEGER, finish VARCHAR, start VARCHAR)
SELECT MAX(year) FROM table_name_29 WHERE finish = 51 AND start < 64
What college did the player with a school of huntsville high school go to?
CREATE TABLE table_name_42 (college VARCHAR, school VARCHAR)
SELECT college FROM table_name_42 WHERE school = "huntsville high school"
What is the engine code of the xdrive23d model?
CREATE TABLE table_name_11 (engine_code VARCHAR, model VARCHAR)
SELECT engine_code FROM table_name_11 WHERE model = "xdrive23d"
Who was the opponent when there was 81 rushing yards?
CREATE TABLE table_26108103_2 (opponent VARCHAR, rushing_yards VARCHAR)
SELECT opponent FROM table_26108103_2 WHERE rushing_yards = 81
Who had the high assists on the date December 12?
CREATE TABLE table_11960944_4 (high_assists VARCHAR, date VARCHAR)
SELECT high_assists FROM table_11960944_4 WHERE date = "December 12"
Name the song choice when week number is hollywood
CREATE TABLE table_15796054_3 (song_choice VARCHAR, week__number VARCHAR)
SELECT song_choice FROM table_15796054_3 WHERE week__number = "Hollywood"
When is the latest year that Real Colorado Foxes did not qualify for the playoffs but make it to Open Cup 2nd Round?
CREATE TABLE table_name_95 (year INTEGER, playoffs VARCHAR, open_cup VARCHAR)
SELECT MAX(year) FROM table_name_95 WHERE playoffs = "did not qualify" AND open_cup = "2nd round"
Which PAL M has a PAL I of 50HZ?
CREATE TABLE table_name_55 (pal_m VARCHAR, pal_i VARCHAR)
SELECT pal_m FROM table_name_55 WHERE pal_i = "50hz"
Name the mens singles when mens doubles is george georgoudis gerostergiou
CREATE TABLE table_14903881_1 (mens_singles VARCHAR, mens_doubles VARCHAR)
SELECT mens_singles FROM table_14903881_1 WHERE mens_doubles = "George Georgoudis Gerostergiou"
What is the total number of Score, when Country is "United States", and when Player is "Lee Trevino"?
CREATE TABLE table_name_75 (score VARCHAR, country VARCHAR, player VARCHAR)
SELECT COUNT(score) FROM table_name_75 WHERE country = "united states" AND player = "lee trevino"
What time did the team from Ukraine have?
CREATE TABLE table_name_76 (time VARCHAR, country VARCHAR)
SELECT time FROM table_name_76 WHERE country = "ukraine"
What is the highest number of wins?
CREATE TABLE table_26609690_1 (wins INTEGER)
SELECT MAX(wins) FROM table_26609690_1
How many Laps with a Grid smaller than 3 did Driver NIki Lauda have?
CREATE TABLE table_name_42 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT AVG(laps) FROM table_name_42 WHERE driver = "niki lauda" AND grid < 3
What team picked 80?
CREATE TABLE table_name_94 (team VARCHAR, pick VARCHAR)
SELECT team FROM table_name_94 WHERE pick = 80
What is every title when U.S. viewers is 1.04 million.
CREATE TABLE table_26736040_1 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT title FROM table_26736040_1 WHERE us_viewers__millions_ = "1.04"
Who won in 1927
CREATE TABLE table_1342359_17 (incumbent VARCHAR, first_elected VARCHAR)
SELECT incumbent FROM table_1342359_17 WHERE first_elected = 1927
What is the sum of Year with a Type of informal, and a Location with justus lipsius building, brussels, and a Date with 23 may?
CREATE TABLE table_name_77 (year INTEGER, date VARCHAR, type VARCHAR, location VARCHAR)
SELECT SUM(year) FROM table_name_77 WHERE type = "informal" AND location = "justus lipsius building, brussels" AND date = "23 may"
Which party did Thomas L. Young belong to?
CREATE TABLE table_name_58 (party VARCHAR, representative VARCHAR)
SELECT party FROM table_name_58 WHERE representative = "thomas l. young"
Show different tourist attractions' names, ids, and the corresponding number of visits.
CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR)
SELECT T1.Name, T2.Tourist_Attraction_ID, COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID
How many marriages between women have % same-sex marriages of 1.06?
CREATE TABLE table_19614212_1 (marriages_between_women VARCHAR, _percentage_same_sex_marriages VARCHAR)
SELECT marriages_between_women FROM table_19614212_1 WHERE _percentage_same_sex_marriages = "1.06"
How many golden tickets were given out when the auditions were held in San Francisco, California?
CREATE TABLE table_name_51 (golden_tickets VARCHAR, audition_city VARCHAR)
SELECT COUNT(golden_tickets) FROM table_name_51 WHERE audition_city = "san francisco, california"
What is the status of channel 44.1?
CREATE TABLE table_12271718_1 (status VARCHAR, channel VARCHAR)
SELECT status FROM table_12271718_1 WHERE channel = "44.1"
Which player is a tight end with a round higher than 3?
CREATE TABLE table_name_4 (name VARCHAR, position VARCHAR, round VARCHAR)
SELECT name FROM table_name_4 WHERE position = "tight end" AND round > 3
What day did ARchie Roberts die?
CREATE TABLE table_16527640_3 (date_of_death VARCHAR, player VARCHAR)
SELECT date_of_death FROM table_16527640_3 WHERE player = "Archie Roberts"
What is the lowest top 50 ranking that the episode titled "the god-why-don't-you-love-me blues" received?
CREATE TABLE table_22170495_7 (top_50_ranking INTEGER, title VARCHAR)
SELECT MIN(top_50_ranking) FROM table_22170495_7 WHERE title = "The God-Why-Don't-You-Love-Me Blues"
What is the date where the away team is Richmond?
CREATE TABLE table_name_30 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_30 WHERE away_team = "richmond"
what venue does tim southee bowl at?
CREATE TABLE table_name_14 (venue VARCHAR, player VARCHAR)
SELECT venue FROM table_name_14 WHERE player = "tim southee"
Name the college for david carter
CREATE TABLE table_26533354_8 (college VARCHAR, player VARCHAR)
SELECT college FROM table_26533354_8 WHERE player = "David Carter"
What is the Heat for Smiljana Marinović?
CREATE TABLE table_name_88 (heat VARCHAR, name VARCHAR)
SELECT COUNT(heat) FROM table_name_88 WHERE name = "smiljana marinović"
Name all the products with next entry ID greater than 8.
CREATE TABLE catalog_contents (catalog_entry_name VARCHAR, next_entry_id INTEGER)
SELECT catalog_entry_name FROM catalog_contents WHERE next_entry_id > 8
Which year were both the Premier Division Ewyas Harold and Division Three Stoke Prior champions?
CREATE TABLE table_name_24 (season VARCHAR, premier_division VARCHAR, division_three VARCHAR)
SELECT season FROM table_name_24 WHERE premier_division = "ewyas harold" AND division_three = "stoke prior"
What is the English title for years after 1981 originating from Argentina?
CREATE TABLE table_name_93 (english_title VARCHAR, year VARCHAR, country VARCHAR)
SELECT english_title FROM table_name_93 WHERE year > 1981 AND country = "argentina"
What is the Place of the Player with Money greater than 300 and a Score of 71-69-70-70=280?
CREATE TABLE table_name_1 (place VARCHAR, money___$__ VARCHAR, score VARCHAR)
SELECT place FROM table_name_1 WHERE money___$__ > 300 AND score = 71 - 69 - 70 - 70 = 280
What is the branding for callsign dypv?
CREATE TABLE table_27588823_2 (branding VARCHAR, callsign VARCHAR)
SELECT branding FROM table_27588823_2 WHERE callsign = "DYPV"
Is icewind dale available for windows
CREATE TABLE table_1322914_1 (windows VARCHAR, title VARCHAR)
SELECT windows FROM table_1322914_1 WHERE title = "Icewind Dale"
Which venue hosted a tournament in 1965?
CREATE TABLE table_name_78 (venue VARCHAR, year VARCHAR)
SELECT venue FROM table_name_78 WHERE year = 1965
Name the location attendance for april 5
CREATE TABLE table_17322817_10 (location_attendance VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_17322817_10 WHERE date = "April 5"
What is the average number of points for places over 7 and having a draw order of 4?
CREATE TABLE table_name_49 (points INTEGER, place VARCHAR, draw VARCHAR)
SELECT AVG(points) FROM table_name_49 WHERE place > 7 AND draw = 4
How many tournaments were at sime darby lpga malaysia?
CREATE TABLE table_21649285_2 (no VARCHAR, tournament VARCHAR)
SELECT COUNT(no) FROM table_21649285_2 WHERE tournament = "Sime Darby LPGA Malaysia"
What is the Team with a Machine that is nsr250 and has Points of 8?
CREATE TABLE table_name_39 (team VARCHAR, machine VARCHAR, points VARCHAR)
SELECT team FROM table_name_39 WHERE machine = "nsr250" AND points = 8
Return the gender and name of artist who produced the song with the lowest resolution.
CREATE TABLE artist (gender VARCHAR, artist_name VARCHAR); CREATE TABLE song (artist_name VARCHAR, resolution VARCHAR)
SELECT T1.gender, T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.resolution LIMIT 1
What is the average number of laps that has a Time/Retired of +1 lap, a Driver of olivier panis, and a Grid larger than 4?
CREATE TABLE table_name_70 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT AVG(laps) FROM table_name_70 WHERE time_retired = "+1 lap" AND driver = "olivier panis" AND grid > 4
What is Third Vice President, when Second Vice President is "Baudelio Palma"?
CREATE TABLE table_name_16 (third_vice_president VARCHAR, second_vice_president VARCHAR)
SELECT third_vice_president FROM table_name_16 WHERE second_vice_president = "baudelio palma"
What is the number of 2002 populations having a 2011 population of exactly 5399?
CREATE TABLE table_2562572_2 (population__2002_ VARCHAR, population__2011_ VARCHAR)
SELECT COUNT(population__2002_) FROM table_2562572_2 WHERE population__2011_ = 5399
Find the subject ID, name of subject and the corresponding number of courses for each subject, and sort by the course count in ascending order.
CREATE TABLE Courses (subject_id VARCHAR); CREATE TABLE Subjects (subject_name VARCHAR, subject_id VARCHAR)
SELECT T1.subject_id, T2.subject_name, COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT(*)
What is the church in the Sub-Parish of Fresvik called?
CREATE TABLE table_name_94 (church_name VARCHAR, sub_parish__sokn_ VARCHAR)
SELECT church_name FROM table_name_94 WHERE sub_parish__sokn_ = "fresvik"
What is the highest Game, when High Assists is "Hedo Türkoğlu (7)"?
CREATE TABLE table_name_86 (game INTEGER, high_assists VARCHAR)
SELECT MAX(game) FROM table_name_86 WHERE high_assists = "hedo türkoğlu (7)"
Who is the winner in des moines, iowa where p.h. finkbank was the runner-up?
CREATE TABLE table_name_14 (winner VARCHAR, location VARCHAR, runner_up VARCHAR)
SELECT winner FROM table_name_14 WHERE location = "des moines, iowa" AND runner_up = "p.h. finkbank"
I want the country for score of 274 and runner-up of virginie lagoutte-clément
CREATE TABLE table_name_93 (country VARCHAR, score VARCHAR, runner_s__up VARCHAR)
SELECT country FROM table_name_93 WHERE score = "274" AND runner_s__up = "virginie lagoutte-clément"
What was the position of Jon Perlman?
CREATE TABLE table_name_94 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_94 WHERE player = "jon perlman"
Name the game site for week 6
CREATE TABLE table_14984103_1 (game_site VARCHAR, week VARCHAR)
SELECT game_site FROM table_14984103_1 WHERE week = 6
What are the country codes for countries that do not speak English?
CREATE TABLE countrylanguage (CountryCode VARCHAR, LANGUAGE VARCHAR)
SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = "English"
What's the Ri Song-Hui when the olympic record is the world record and snatch was snatch?
CREATE TABLE table_name_49 (ri_song_hui___prk__ VARCHAR, world_record VARCHAR)
SELECT ri_song_hui___prk__ FROM table_name_49 WHERE world_record = "olympic record" AND "snatch" = "snatch"
For which league is the open cup the quarter finals
CREATE TABLE table_1214035_1 (league VARCHAR, open_cup VARCHAR)
SELECT league FROM table_1214035_1 WHERE open_cup = "Quarter Finals"
Who was the opponent at the game with a result of W 38-14?
CREATE TABLE table_name_92 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_92 WHERE result = "w 38-14"
what is the number of starts in 1977
CREATE TABLE table_19864214_3 (starts VARCHAR, seasons VARCHAR)
SELECT starts FROM table_19864214_3 WHERE seasons = "1977"
how many times have there been helps by damon stoudamire (13)
CREATE TABLE table_13464416_6 (record VARCHAR, high_assists VARCHAR)
SELECT COUNT(record) FROM table_13464416_6 WHERE high_assists = "Damon Stoudamire (13)"
What type of game had a result of 1:2?
CREATE TABLE table_name_7 (type_of_game VARCHAR, results¹ VARCHAR)
SELECT type_of_game FROM table_name_7 WHERE results¹ = "1:2"
what artist won in 1953
CREATE TABLE table_name_41 (artist VARCHAR, year VARCHAR)
SELECT artist FROM table_name_41 WHERE year = "1953"
In how many different games did Oliver Miller (7) did the high rebounds?
CREATE TABLE table_30087032_5 (game VARCHAR, high_rebounds VARCHAR)
SELECT COUNT(game) FROM table_30087032_5 WHERE high_rebounds = "Oliver Miller (7)"
What is the To par when fredrik andersson hed was runner-up?
CREATE TABLE table_name_86 (to_par VARCHAR, runner_s__up VARCHAR)
SELECT to_par FROM table_name_86 WHERE runner_s__up = "fredrik andersson hed"
How many floors did the tallest building in Aston have?
CREATE TABLE table_name_43 (floors VARCHAR, location VARCHAR)
SELECT floors FROM table_name_43 WHERE location = "aston"
What's the points if the goals against were 222?
CREATE TABLE table_name_24 (points VARCHAR, goals_against VARCHAR)
SELECT points FROM table_name_24 WHERE goals_against = "222"
Name the gore number for others # 6.6%
CREATE TABLE table_23014476_1 (gore__number INTEGER, others__number VARCHAR)
SELECT MIN(gore__number) FROM table_23014476_1 WHERE others__number = "6.6%"
Which countries have at least 3 cities?
CREATE TABLE country (country VARCHAR, country_id VARCHAR); CREATE TABLE city (country_id VARCHAR)
SELECT T2.country FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id GROUP BY T2.country_id HAVING COUNT(*) >= 3
Name the total number directed by for uk viewers being 6.86
CREATE TABLE table_18012738_1 (directed_by VARCHAR, uk_viewers__million_ VARCHAR)
SELECT COUNT(directed_by) FROM table_18012738_1 WHERE uk_viewers__million_ = "6.86"
Which date did Chris Duhon (13) receive high assists?
CREATE TABLE table_17060277_6 (date VARCHAR, high_assists VARCHAR)
SELECT date FROM table_17060277_6 WHERE high_assists = "Chris Duhon (13)"
What is the total number of Poles, when Position is 6th, and when Points is less than 164?
CREATE TABLE table_name_27 (poles VARCHAR, position VARCHAR, points VARCHAR)
SELECT COUNT(poles) FROM table_name_27 WHERE position = "6th" AND points < 164
Who is the Monarch whose Heir is Robert Curthose when the Reason is that the father became king?
CREATE TABLE table_name_67 (monarch VARCHAR, heir VARCHAR, reason VARCHAR)
SELECT monarch FROM table_name_67 WHERE heir = "robert curthose" AND reason = "father became king"
What is the smallest shot % with ends won larger than 29 and ends lost smaller than 26?
CREATE TABLE table_name_1 (shot_pct INTEGER, ends_won VARCHAR, ends_lost VARCHAR)
SELECT MIN(shot_pct) FROM table_name_1 WHERE ends_won > 29 AND ends_lost < 26
Which Spanish voice actor does the same character as French voice actor Véronique Desmadryl?
CREATE TABLE table_name_36 (spanish_voice_actor VARCHAR, french_voice_actor VARCHAR)
SELECT spanish_voice_actor FROM table_name_36 WHERE french_voice_actor = "véronique desmadryl"
What is the maximum number of assists for players named Anastasia Kostaki?
CREATE TABLE table_24913533_4 (assists INTEGER, player VARCHAR)
SELECT MAX(assists) FROM table_24913533_4 WHERE player = "Anastasia Kostaki"
Which Games is the highest one that has a Drawn smaller than 0?
CREATE TABLE table_name_26 (games INTEGER, drawn INTEGER)
SELECT MAX(games) FROM table_name_26 WHERE drawn < 0
How much Lost has a Drawn larger than 1, and Points smaller than 14, and an Against larger than 10?
CREATE TABLE table_name_61 (lost VARCHAR, against VARCHAR, drawn VARCHAR, points VARCHAR)
SELECT COUNT(lost) FROM table_name_61 WHERE drawn > 1 AND points < 14 AND against > 10
I want to know the location that has a record of 3-0
CREATE TABLE table_name_66 (location VARCHAR, record VARCHAR)
SELECT location FROM table_name_66 WHERE record = "3-0"
How many points did Albert Herrnstein make?
CREATE TABLE table_14342367_7 (points VARCHAR, player VARCHAR)
SELECT points FROM table_14342367_7 WHERE player = "Albert Herrnstein"
who had the high assists on march 30?
CREATE TABLE table_name_78 (high_assists VARCHAR, date VARCHAR)
SELECT high_assists FROM table_name_78 WHERE date = "march 30"
What is the Tournament with a Score that is 2–6, 6–4, 3–6?
CREATE TABLE table_name_55 (tournament VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_55 WHERE score = "2–6, 6–4, 3–6"
What is the full amount of Total for Austria when the number of gold is less than 0?
CREATE TABLE table_name_45 (total INTEGER, nation VARCHAR, gold VARCHAR)
SELECT SUM(total) FROM table_name_45 WHERE nation = "austria" AND gold < 0
What year was communications and corporate affairs held by Jeff Rotman?
CREATE TABLE table_12113818_1 (year VARCHAR, communications_and_corporate_affairs VARCHAR)
SELECT year FROM table_12113818_1 WHERE communications_and_corporate_affairs = "Jeff Rotman"
What is the name of the person born in 1909?
CREATE TABLE table_name_26 (name VARCHAR, date_of_birth VARCHAR)
SELECT name FROM table_name_26 WHERE date_of_birth = "1909"